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

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 +229 -249
  2. package/README.md +1 -35
  3. package/api.ts +203 -2375
  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 +105 -1733
  9. package/dist/api.js +84 -1379
  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/docs/AccountsApi.md +1 -1
  19. package/docs/CRMApi.md +1 -1
  20. package/docs/Class3CXApi.md +1 -1
  21. package/docs/Class3CXInstallationWizardApi.md +1 -1
  22. package/docs/Class3CXInstallationsApi.md +1 -1
  23. package/docs/Class3CXIntegrationsApi.md +1 -1
  24. package/docs/Class3CXMultiTenantApi.md +1 -1
  25. package/docs/MyPBXToolsApi.md +1 -1
  26. package/docs/OAuth20Api.md +1 -1
  27. package/docs/OrdersApi.md +13 -789
  28. package/docs/PricingApi.md +1 -1
  29. package/docs/ProductsApi.md +1 -1
  30. package/docs/ProvisioningApi.md +1 -1
  31. package/docs/SIPTrunksApi.md +1 -1
  32. package/docs/SMSApi.md +1 -1
  33. package/docs/ServicesApi.md +1 -1
  34. package/docs/ShippingApi.md +1 -1
  35. package/docs/StockManagementApi.md +1 -1
  36. package/docs/SystemApi.md +1 -1
  37. package/docs/TicketsApi.md +1 -1
  38. package/docs/WebhooksApi.md +1 -1
  39. package/getEnums.php +31 -31
  40. package/index.ts +1 -1
  41. package/package.json +1 -1
  42. package/dist/models/CourierEnum.d.ts +0 -18
  43. package/dist/models/CourierEnum.js +0 -20
  44. package/dist/models/PrinterEnum.d.ts +0 -18
  45. package/dist/models/PrinterEnum.js +0 -20
  46. package/docs/BatchDTO.md +0 -57
  47. package/docs/CreditNoteDTO.md +0 -21
  48. package/docs/CreditNoteEntity.md +0 -29
  49. package/docs/CreditNoteItemDTO.md +0 -25
  50. package/docs/CreditNoteItemEntity.md +0 -29
  51. package/docs/CreditNoteModel.md +0 -29
  52. package/docs/OrderDetailsDTO.md +0 -63
  53. package/docs/OrderItemDTO.md +0 -53
  54. package/docs/OrderedItemModel.md +0 -49
  55. package/docs/PostAddOrderNoteRequest.md +0 -20
  56. package/docs/PostSplitOrderRequest.md +0 -20
  57. package/docs/PrinterEntity.md +0 -29
  58. package/docs/PutAllocateItemsRequest.md +0 -20
  59. package/docs/PutAllocateItemsRequestItemsInner.md +0 -22
  60. package/docs/ShipmentDTO.md +0 -31
  61. package/docs/ShipmentItemDTO.md +0 -23
  62. package/docs/ShipmentItemModel.md +0 -29
  63. package/docs/ShipmentModel.md +0 -43
  64. package/docs/ShipmentRequestDTO.md +0 -31
  65. package/docs/ShippingRequestDTO.md +0 -24
  66. package/docs/SupplierModel.md +0 -37
  67. package/hs_err_pid58424.log +0 -247
  68. package/models/CourierEnum.ts +0 -19
  69. package/models/PrinterEnum.ts +0 -19
package/api.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable */
3
3
  /**
4
4
  * Yellowgrid
5
- * Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `http://api.yellowgrid.local` For questions or technical support, please contact support@yellowgrid.co.uk.
5
+ * Welcome to the Yellowgrid API documentation. This API provides secure and comprehensive access to the Yellowgrid platform, enabling developers and integrators to manage accounts, contacts, SIP trunks, SMS messaging, 3CX integrations, and provisioning services. ## Key Features: - **Accounts**: View and manage account details, contacts, client credentials, and verification. - **Provisioning**: Automate setup and configuration of devices and groups. - **SIP Trunks**: Manage trunk creation, changes, DDIs, diverts, and configuration. - **Messaging**: Send SMS messages securely via the messaging gateway. - **3CX Integrations**: Automate licence handling, installation, and multi-tenant setup. ## Authentication: The API supports OAuth 2.0 for authentication and authorization. Ensure you use a valid bearer token for all authenticated endpoints. ## Base URL: `https://bitbucket.org` For questions or technical support, please contact support@yellowgrid.co.uk.
6
6
  *
7
7
  * The version of the OpenAPI document: 0
8
8
  *
@@ -1029,13 +1029,13 @@ export interface AuditLogEntity {
1029
1029
  * @type {string}
1030
1030
  * @memberof AuditLogEntity
1031
1031
  */
1032
- 'action'?: AuditLogEntityActionEnum;
1032
+ 'action'?: string;
1033
1033
  /**
1034
1034
  * type
1035
1035
  * @type {string}
1036
1036
  * @memberof AuditLogEntity
1037
1037
  */
1038
- 'type'?: AuditLogEntityTypeEnum;
1038
+ 'type'?: string;
1039
1039
  /**
1040
1040
  * identifier
1041
1041
  * @type {string}
@@ -1073,93 +1073,6 @@ export interface AuditLogEntity {
1073
1073
  */
1074
1074
  'description'?: string;
1075
1075
  }
1076
-
1077
- export const AuditLogEntityActionEnum = {
1078
- Create: 'CREATE',
1079
- Read: 'READ',
1080
- Update: 'UPDATE',
1081
- Delete: 'DELETE'
1082
- } as const;
1083
-
1084
- export type AuditLogEntityActionEnum = typeof AuditLogEntityActionEnum[keyof typeof AuditLogEntityActionEnum];
1085
- export const AuditLogEntityTypeEnum = {
1086
- AuditLog: 'audit_log',
1087
- PopsOrders: 'pops_orders',
1088
- PopsAccountContacts: 'pops_account_contacts',
1089
- ApiLog: 'api_log',
1090
- PopsBatches: 'pops_batches',
1091
- PopsCourierPrices: 'pops_courier_prices',
1092
- PopsCreditAccounts: 'pops_credit_accounts',
1093
- PopsCreditNotes: 'pops_credit_notes',
1094
- PopsCreditNotesItems: 'pops_credit_notes_items',
1095
- EdtechproClients: 'edtechpro_clients',
1096
- EdtechproSchools: 'edtechpro_schools',
1097
- FreshdeskTickets: 'freshdesk_tickets',
1098
- PopsFtpAccounts: 'pops_ftp_accounts',
1099
- ServiceEvents: 'service_events',
1100
- ServiceEventUpdates: 'service_event_updates',
1101
- ServiceEventSubscriptions: 'service_event_subscriptions',
1102
- PopsInstanceFailoverIps: 'pops_instance_failover_ips',
1103
- PopsOvhDeleteSchedule: 'pops_ovh_delete_schedule',
1104
- PopsOvhInstances: 'pops_ovh_instances',
1105
- PopsInstanceFailover: 'pops_instance_failover',
1106
- PopsInstanceMonitoring: 'pops_instance_monitoring',
1107
- PopsInstanceMonitoringLog: 'pops_instance_monitoring_log',
1108
- PopsInstanceScheduledTasks: 'pops_instance_scheduled_tasks',
1109
- PopsInstance3cxDetails: 'pops_instance_3cx_details',
1110
- PopsInstanceUserCredentials: 'pops_instance_user_credentials',
1111
- IpBlacklist: 'ip_blacklist',
1112
- PopsItemDiscounts: 'pops_item_discounts',
1113
- PopsItems: 'pops_items',
1114
- PopsLinkedOrders: 'pops_linked_orders',
1115
- PopsOfflineInstances: 'pops_offline_instances',
1116
- PopsOrderedItems: 'pops_ordered_items',
1117
- PopsPrizes: 'pops_prizes',
1118
- PopsPrinters: 'pops_printers',
1119
- PopsPromoCodes: 'pops_promo_codes',
1120
- PopsPromoItems: 'pops_promo_items',
1121
- PopsProvisioning: 'pops_provisioning',
1122
- S3Buckets: 's3_buckets',
1123
- PopsShipmentAddress: 'pops_shipment_address',
1124
- PopsShipments: 'pops_shipments',
1125
- PopsShipmentItems: 'pops_shipment_items',
1126
- PopsSipTrunkChangeQueue: 'pops_sip_trunk_change_queue',
1127
- PopsSipTrunks: 'pops_sip_trunks',
1128
- PopsSms: 'pops_sms',
1129
- PopsSmsNumbers: 'pops_sms_numbers',
1130
- PopsSmsWhitelist: 'pops_sms_whitelist',
1131
- PopsDistCourier: 'pops_dist_courier',
1132
- PopsDistDeductions: 'pops_dist_deductions',
1133
- PopsDistOrder: 'pops_dist_order',
1134
- PopsDistItems: 'pops_dist_items',
1135
- PopsDistPrices: 'pops_dist_prices',
1136
- PopsDistManufacturer: 'pops_dist_manufacturer',
1137
- PopsStockTransactions: 'pops_stock_transactions',
1138
- PopsSuppliers: 'pops_suppliers',
1139
- PopsSupplierItems: 'pops_supplier_items',
1140
- Pops3cxBackup: 'pops_3cx_backup',
1141
- Pops3cxBilling: 'pops_3cx_billing',
1142
- PopsDeadLicences: 'pops_dead_licences',
1143
- Pops3cxExts: 'pops_3cx_exts',
1144
- PopsHostingPricing: 'pops_hosting_pricing',
1145
- Pops3cxKeys: 'pops_3cx_keys',
1146
- Pops3cxMacs: 'pops_3cx_macs',
1147
- Pops3cxNumbers: 'pops_3cx_numbers',
1148
- Pops3cxOfficeHours: 'pops_3cx_office_hours',
1149
- Pops3cxPhones: 'pops_3cx_phones',
1150
- Pops3cxSbc: 'pops_3cx_sbc',
1151
- Pops3cxSetup: 'pops_3cx_setup',
1152
- Pops3cxSipTrunks: 'pops_3cx_sip_trunks',
1153
- Pops3cxUsers: 'pops_3cx_users',
1154
- PopsUsers: 'pops_users',
1155
- Webhook: 'webhook',
1156
- PopsXeroLog: 'pops_xero_log',
1157
- Oauth2Clients: 'oauth2_clients',
1158
- Oauth2Tokens: 'oauth2_tokens'
1159
- } as const;
1160
-
1161
- export type AuditLogEntityTypeEnum = typeof AuditLogEntityTypeEnum[keyof typeof AuditLogEntityTypeEnum];
1162
-
1163
1076
  /**
1164
1077
  * OAuth Auth Code Response
1165
1078
  * @export
@@ -1223,127 +1136,6 @@ export interface BasicProductDTO {
1223
1136
  */
1224
1137
  'title'?: string;
1225
1138
  }
1226
- /**
1227
- * Batch DTO
1228
- * @export
1229
- * @interface BatchDTO
1230
- */
1231
- export interface BatchDTO {
1232
- /**
1233
- * id
1234
- * @type {number}
1235
- * @memberof BatchDTO
1236
- */
1237
- 'id'?: number;
1238
- /**
1239
- * orderId
1240
- * @type {number}
1241
- * @memberof BatchDTO
1242
- */
1243
- 'orderId'?: number;
1244
- /**
1245
- * supplierId
1246
- * @type {number}
1247
- * @memberof BatchDTO
1248
- */
1249
- 'supplierId'?: number;
1250
- /**
1251
- * poNumber
1252
- * @type {string}
1253
- * @memberof BatchDTO
1254
- */
1255
- 'poNumber'?: string;
1256
- /**
1257
- * carriage
1258
- * @type {number}
1259
- * @memberof BatchDTO
1260
- */
1261
- 'carriage'?: number;
1262
- /**
1263
- * courier
1264
- * @type {string}
1265
- * @memberof BatchDTO
1266
- */
1267
- 'courier'?: string;
1268
- /**
1269
- * courierService
1270
- * @type {string}
1271
- * @memberof BatchDTO
1272
- */
1273
- 'courierService'?: string;
1274
- /**
1275
- * courierReference
1276
- * @type {string}
1277
- * @memberof BatchDTO
1278
- */
1279
- 'courierReference'?: string;
1280
- /**
1281
- * courierUnique
1282
- * @type {string}
1283
- * @memberof BatchDTO
1284
- */
1285
- 'courierUnique'?: string;
1286
- /**
1287
- * notes
1288
- * @type {string}
1289
- * @memberof BatchDTO
1290
- */
1291
- 'notes'?: string;
1292
- /**
1293
- * ordered
1294
- * @type {number}
1295
- * @memberof BatchDTO
1296
- */
1297
- 'ordered'?: number;
1298
- /**
1299
- * carriagePaid
1300
- * @type {number}
1301
- * @memberof BatchDTO
1302
- */
1303
- 'carriagePaid'?: number;
1304
- /**
1305
- * carriageRefunded
1306
- * @type {number}
1307
- * @memberof BatchDTO
1308
- */
1309
- 'carriageRefunded'?: number;
1310
- /**
1311
- * carriageRefundedDue
1312
- * @type {number}
1313
- * @memberof BatchDTO
1314
- */
1315
- 'carriageRefundedDue'?: number;
1316
- /**
1317
- * netdespatchLabel
1318
- * @type {string}
1319
- * @memberof BatchDTO
1320
- */
1321
- 'netdespatchLabel'?: string;
1322
- /**
1323
- * courierBoxes
1324
- * @type {number}
1325
- * @memberof BatchDTO
1326
- */
1327
- 'courierBoxes'?: number;
1328
- /**
1329
- * mac
1330
- * @type {string}
1331
- * @memberof BatchDTO
1332
- */
1333
- 'mac'?: string;
1334
- /**
1335
- * Shipments
1336
- * @type {Array<ShipmentDTO>}
1337
- * @memberof BatchDTO
1338
- */
1339
- 'shipments'?: Array<ShipmentDTO>;
1340
- /**
1341
- * Items
1342
- * @type {Array<OrderedItemModel>}
1343
- * @memberof BatchDTO
1344
- */
1345
- 'items'?: Array<OrderedItemModel>;
1346
- }
1347
1139
  /**
1348
1140
  * BatchesEntity
1349
1141
  * @export
@@ -1899,155 +1691,6 @@ export interface CreditAccountEntity {
1899
1691
  */
1900
1692
  'prizePromo'?: boolean;
1901
1693
  }
1902
- /**
1903
- * Credit Note
1904
- * @export
1905
- * @interface CreditNoteDTO
1906
- */
1907
- export interface CreditNoteDTO {
1908
- /**
1909
- * Items
1910
- * @type {Array<CreditNoteItemDTO>}
1911
- * @memberof CreditNoteDTO
1912
- */
1913
- 'items'?: Array<CreditNoteItemDTO>;
1914
- }
1915
- /**
1916
- * CreditNotesEntity
1917
- * @export
1918
- * @interface CreditNoteEntity
1919
- */
1920
- export interface CreditNoteEntity {
1921
- /**
1922
- * id
1923
- * @type {number}
1924
- * @memberof CreditNoteEntity
1925
- */
1926
- 'id'?: number;
1927
- /**
1928
- * orderId
1929
- * @type {number}
1930
- * @memberof CreditNoteEntity
1931
- */
1932
- 'orderId'?: number;
1933
- /**
1934
- * transactionId
1935
- * @type {string}
1936
- * @memberof CreditNoteEntity
1937
- */
1938
- 'transactionId'?: string;
1939
- /**
1940
- * amount
1941
- * @type {number}
1942
- * @memberof CreditNoteEntity
1943
- */
1944
- 'amount'?: number;
1945
- /**
1946
- * timestamp
1947
- * @type {string}
1948
- * @memberof CreditNoteEntity
1949
- */
1950
- 'timestamp'?: string;
1951
- }
1952
- /**
1953
- * Credit Note Item
1954
- * @export
1955
- * @interface CreditNoteItemDTO
1956
- */
1957
- export interface CreditNoteItemDTO {
1958
- /**
1959
- * Item ID
1960
- * @type {number}
1961
- * @memberof CreditNoteItemDTO
1962
- */
1963
- 'itemId'?: number;
1964
- /**
1965
- * Quantity
1966
- * @type {number}
1967
- * @memberof CreditNoteItemDTO
1968
- */
1969
- 'quantity'?: number | null;
1970
- /**
1971
- * Amount
1972
- * @type {number}
1973
- * @memberof CreditNoteItemDTO
1974
- */
1975
- 'amount'?: number | null;
1976
- }
1977
- /**
1978
- * CreditNotesItemsEntity
1979
- * @export
1980
- * @interface CreditNoteItemEntity
1981
- */
1982
- export interface CreditNoteItemEntity {
1983
- /**
1984
- * id
1985
- * @type {number}
1986
- * @memberof CreditNoteItemEntity
1987
- */
1988
- 'id'?: number;
1989
- /**
1990
- * creditNoteId
1991
- * @type {number}
1992
- * @memberof CreditNoteItemEntity
1993
- */
1994
- 'creditNoteId'?: number;
1995
- /**
1996
- * orderId
1997
- * @type {number}
1998
- * @memberof CreditNoteItemEntity
1999
- */
2000
- 'orderId'?: number;
2001
- /**
2002
- * itemId
2003
- * @type {number}
2004
- * @memberof CreditNoteItemEntity
2005
- */
2006
- 'itemId'?: number;
2007
- /**
2008
- * amount
2009
- * @type {number}
2010
- * @memberof CreditNoteItemEntity
2011
- */
2012
- 'amount'?: number;
2013
- }
2014
- /**
2015
- * Credit Note Model
2016
- * @export
2017
- * @interface CreditNoteModel
2018
- */
2019
- export interface CreditNoteModel {
2020
- /**
2021
- * id
2022
- * @type {number}
2023
- * @memberof CreditNoteModel
2024
- */
2025
- 'id'?: number;
2026
- /**
2027
- * orderId
2028
- * @type {number}
2029
- * @memberof CreditNoteModel
2030
- */
2031
- 'orderId'?: number;
2032
- /**
2033
- * transactionId
2034
- * @type {string}
2035
- * @memberof CreditNoteModel
2036
- */
2037
- 'transactionId'?: string;
2038
- /**
2039
- * amount
2040
- * @type {number}
2041
- * @memberof CreditNoteModel
2042
- */
2043
- 'amount'?: number;
2044
- /**
2045
- * timestamp
2046
- * @type {string}
2047
- * @memberof CreditNoteModel
2048
- */
2049
- 'timestamp'?: string;
2050
- }
2051
1694
  /**
2052
1695
  * CRM Contact
2053
1696
  * @export
@@ -3771,7 +3414,7 @@ export interface ItemDTO {
3771
3414
  * @type {Array<TcxSbcDTO>}
3772
3415
  * @memberof ItemDTO
3773
3416
  */
3774
- 'sbcs'?: Array<TcxSbcDTO>;
3417
+ 'sbcs'?: Array<TcxSbcDTO> | null;
3775
3418
  /**
3776
3419
  * Readonly
3777
3420
  * @type {boolean}
@@ -4159,202 +3802,63 @@ export interface OfflineInstancesEntity {
4159
3802
  'alerted'?: number;
4160
3803
  }
4161
3804
  /**
4162
- * Order Details
3805
+ * OrdersEntity
4163
3806
  * @export
4164
- * @interface OrderDetailsDTO
3807
+ * @interface OrderEntity
4165
3808
  */
4166
- export interface OrderDetailsDTO {
3809
+ export interface OrderEntity {
4167
3810
  /**
4168
- * ID
3811
+ * id
4169
3812
  * @type {number}
4170
- * @memberof OrderDetailsDTO
3813
+ * @memberof OrderEntity
4171
3814
  */
4172
3815
  'id'?: number;
4173
3816
  /**
4174
- * Reference
3817
+ * externalId
4175
3818
  * @type {string}
4176
- * @memberof OrderDetailsDTO
3819
+ * @memberof OrderEntity
4177
3820
  */
4178
- 'reference'?: string | null;
3821
+ 'reference'?: string;
4179
3822
  /**
4180
- * Invoice Number
3823
+ * sourceId
3824
+ * @type {number}
3825
+ * @memberof OrderEntity
3826
+ */
3827
+ 'sourceId'?: number;
3828
+ /**
3829
+ * sageInv
4181
3830
  * @type {string}
4182
- * @memberof OrderDetailsDTO
3831
+ * @memberof OrderEntity
4183
3832
  */
4184
3833
  'invoiceNumber'?: string;
4185
3834
  /**
4186
- * Invoice ID
3835
+ * invoiceId
4187
3836
  * @type {string}
4188
- * @memberof OrderDetailsDTO
3837
+ * @memberof OrderEntity
4189
3838
  */
4190
3839
  'invoiceId'?: string | null;
4191
3840
  /**
4192
- * Date Time
3841
+ * creditAccountId
3842
+ * @type {number}
3843
+ * @memberof OrderEntity
3844
+ */
3845
+ 'customerId'?: number;
3846
+ /**
3847
+ * orderDate
4193
3848
  * @type {string}
4194
- * @memberof OrderDetailsDTO
3849
+ * @memberof OrderEntity
4195
3850
  */
4196
3851
  'orderDate'?: string;
4197
3852
  /**
4198
- * Paid
4199
- * @type {boolean}
4200
- * @memberof OrderDetailsDTO
3853
+ * orderPostedDate
3854
+ * @type {string}
3855
+ * @memberof OrderEntity
4201
3856
  */
4202
- 'paid'?: boolean;
3857
+ 'orderPostedDate'?: string;
4203
3858
  /**
4204
- * Complete
4205
- * @type {boolean}
4206
- * @memberof OrderDetailsDTO
4207
- */
4208
- 'complete'?: boolean;
4209
- /**
4210
- * Quote
4211
- * @type {boolean}
4212
- * @memberof OrderDetailsDTO
4213
- */
4214
- 'quote'?: boolean;
4215
- /**
4216
- *
4217
- * @type {AccountSummaryDTO}
4218
- * @memberof OrderDetailsDTO
4219
- */
4220
- 'customer'?: AccountSummaryDTO;
4221
- /**
4222
- *
4223
- * @type {AddressModel}
4224
- * @memberof OrderDetailsDTO
4225
- */
4226
- 'shippingAddress'?: AddressModel;
4227
- /**
4228
- * Items
4229
- * @type {Array<ItemDTO>}
4230
- * @memberof OrderDetailsDTO
4231
- */
4232
- 'items'?: Array<ItemDTO>;
4233
- /**
4234
- * Carriage Charge
4235
- * @type {number}
4236
- * @memberof OrderDetailsDTO
4237
- */
4238
- 'carriageCharge'?: number;
4239
- /**
4240
- * Fulfillable
4241
- * @type {boolean}
4242
- * @memberof OrderDetailsDTO
4243
- */
4244
- 'fulfillable'?: boolean | null;
4245
- /**
4246
- * Provisioning URL
4247
- * @type {string}
4248
- * @memberof OrderDetailsDTO
4249
- */
4250
- 'provisioningUrl'?: string | null;
4251
- /**
4252
- *
4253
- * @type {ShippingServiceDTO}
4254
- * @memberof OrderDetailsDTO
4255
- */
4256
- 'shippingService'?: ShippingServiceDTO;
4257
- /**
4258
- * Readonly
4259
- * @type {boolean}
4260
- * @memberof OrderDetailsDTO
4261
- */
4262
- 'readonly'?: boolean;
4263
- /**
4264
- * Detailed Items
4265
- * @type {Array<OrderItemDTO>}
4266
- * @memberof OrderDetailsDTO
4267
- */
4268
- 'detailedItems'?: Array<OrderItemDTO>;
4269
- /**
4270
- * Batches
4271
- * @type {Array<BatchDTO>}
4272
- * @memberof OrderDetailsDTO
4273
- */
4274
- 'batches'?: Array<BatchDTO>;
4275
- /**
4276
- * Audit Log
4277
- * @type {Array<AuditLogEntity>}
4278
- * @memberof OrderDetailsDTO
4279
- */
4280
- 'logEntries'?: Array<AuditLogEntity>;
4281
- /**
4282
- * Card Payment Link
4283
- * @type {string}
4284
- * @memberof OrderDetailsDTO
4285
- */
4286
- 'paymentLink'?: string | null;
4287
- /**
4288
- * Credits
4289
- * @type {Array<CreditNoteModel>}
4290
- * @memberof OrderDetailsDTO
4291
- */
4292
- 'credits'?: Array<CreditNoteModel>;
4293
- /**
4294
- * Customer Email
4295
- * @type {string}
4296
- * @memberof OrderDetailsDTO
4297
- */
4298
- 'customerEmail'?: string;
4299
- }
4300
- /**
4301
- * OrdersEntity
4302
- * @export
4303
- * @interface OrderEntity
4304
- */
4305
- export interface OrderEntity {
4306
- /**
4307
- * id
4308
- * @type {number}
4309
- * @memberof OrderEntity
4310
- */
4311
- 'id'?: number;
4312
- /**
4313
- * externalId
4314
- * @type {string}
4315
- * @memberof OrderEntity
4316
- */
4317
- 'reference'?: string;
4318
- /**
4319
- * sourceId
4320
- * @type {number}
4321
- * @memberof OrderEntity
4322
- */
4323
- 'sourceId'?: number;
4324
- /**
4325
- * sageInv
4326
- * @type {string}
4327
- * @memberof OrderEntity
4328
- */
4329
- 'invoiceNumber'?: string;
4330
- /**
4331
- * invoiceId
4332
- * @type {string}
4333
- * @memberof OrderEntity
4334
- */
4335
- 'invoiceId'?: string | null;
4336
- /**
4337
- * creditAccountId
4338
- * @type {number}
4339
- * @memberof OrderEntity
4340
- */
4341
- 'customerId'?: number;
4342
- /**
4343
- * orderDate
4344
- * @type {string}
4345
- * @memberof OrderEntity
4346
- */
4347
- 'orderDate'?: string;
4348
- /**
4349
- * orderPostedDate
4350
- * @type {string}
4351
- * @memberof OrderEntity
4352
- */
4353
- 'orderPostedDate'?: string;
4354
- /**
4355
- * buyerEmail
4356
- * @type {string}
4357
- * @memberof OrderEntity
3859
+ * buyerEmail
3860
+ * @type {string}
3861
+ * @memberof OrderEntity
4358
3862
  */
4359
3863
  'buyerEmail'?: string;
4360
3864
  /**
@@ -4652,115 +4156,6 @@ export interface OrderEntity {
4652
4156
  */
4653
4157
  'fulfillable'?: boolean | null;
4654
4158
  }
4655
- /**
4656
- * Order Item Details
4657
- * @export
4658
- * @interface OrderItemDTO
4659
- */
4660
- export interface OrderItemDTO {
4661
- /**
4662
- * SKU
4663
- * @type {string}
4664
- * @memberof OrderItemDTO
4665
- */
4666
- 'sku'?: string;
4667
- /**
4668
- * Quantity
4669
- * @type {number}
4670
- * @memberof OrderItemDTO
4671
- */
4672
- 'quantity'?: number;
4673
- /**
4674
- * ID
4675
- * @type {number}
4676
- * @memberof OrderItemDTO
4677
- */
4678
- 'id'?: number | null;
4679
- /**
4680
- * Order ID
4681
- * @type {number}
4682
- * @memberof OrderItemDTO
4683
- */
4684
- 'orderId'?: number | null;
4685
- /**
4686
- * Title
4687
- * @type {string}
4688
- * @memberof OrderItemDTO
4689
- */
4690
- 'title'?: string;
4691
- /**
4692
- * Price
4693
- * @type {number}
4694
- * @memberof OrderItemDTO
4695
- */
4696
- 'price'?: number;
4697
- /**
4698
- * 3CX Licence Key
4699
- * @type {string}
4700
- * @memberof OrderItemDTO
4701
- */
4702
- 'licenceKey'?: string | null;
4703
- /**
4704
- * Date Time
4705
- * @type {string}
4706
- * @memberof OrderItemDTO
4707
- */
4708
- 'licenceExpiry'?: string;
4709
- /**
4710
- * Date Time
4711
- * @type {string}
4712
- * @memberof OrderItemDTO
4713
- */
4714
- 'processDate'?: string;
4715
- /**
4716
- * 3CX Hosting
4717
- * @type {boolean}
4718
- * @memberof OrderItemDTO
4719
- */
4720
- 'hosting'?: boolean | null;
4721
- /**
4722
- * Promo Item
4723
- * @type {boolean}
4724
- * @memberof OrderItemDTO
4725
- */
4726
- 'promoItem'?: boolean;
4727
- /**
4728
- * Refunded
4729
- * @type {number}
4730
- * @memberof OrderItemDTO
4731
- */
4732
- 'refunded'?: number | null;
4733
- /**
4734
- * SBCs
4735
- * @type {Array<TcxSbcDTO>}
4736
- * @memberof OrderItemDTO
4737
- */
4738
- 'sbcs'?: Array<TcxSbcDTO>;
4739
- /**
4740
- * Readonly
4741
- * @type {boolean}
4742
- * @memberof OrderItemDTO
4743
- */
4744
- 'readonly'?: boolean;
4745
- /**
4746
- * 3CX Sales Code
4747
- * @type {string}
4748
- * @memberof OrderItemDTO
4749
- */
4750
- 'tcxSalesCode'?: string | null;
4751
- /**
4752
- * Suppliers
4753
- * @type {Array<SupplierModel>}
4754
- * @memberof OrderItemDTO
4755
- */
4756
- 'suppliers'?: Array<SupplierModel>;
4757
- /**
4758
- * Allocated
4759
- * @type {number}
4760
- * @memberof OrderItemDTO
4761
- */
4762
- 'allocated'?: number | null;
4763
- }
4764
4159
  /**
4765
4160
  * EdTechPro Order Request
4766
4161
  * @export
@@ -5178,152 +4573,55 @@ export interface OrderedItemEntity {
5178
4573
  'returnedStock'?: number;
5179
4574
  }
5180
4575
  /**
5181
- * Ordered Item Model
4576
+ *
5182
4577
  * @export
5183
- * @interface OrderedItemModel
4578
+ * @interface PatchSetTcxWizardCnameRequest
5184
4579
  */
5185
- export interface OrderedItemModel {
4580
+ export interface PatchSetTcxWizardCnameRequest {
5186
4581
  /**
5187
- * id
5188
- * @type {number}
5189
- * @memberof OrderedItemModel
4582
+ * CNAME
4583
+ * @type {string}
4584
+ * @memberof PatchSetTcxWizardCnameRequest
5190
4585
  */
5191
- 'id'?: number;
4586
+ 'cname'?: string;
4587
+ }
4588
+ /**
4589
+ *
4590
+ * @export
4591
+ * @interface PatchUpdateAccountContactPasswordRequest
4592
+ */
4593
+ export interface PatchUpdateAccountContactPasswordRequest {
5192
4594
  /**
5193
- * itemId
5194
- * @type {number}
5195
- * @memberof OrderedItemModel
4595
+ * Password
4596
+ * @type {string}
4597
+ * @memberof PatchUpdateAccountContactPasswordRequest
5196
4598
  */
5197
- 'itemId'?: number;
4599
+ 'password'?: string;
4600
+ }
4601
+ /**
4602
+ * Customer Account
4603
+ * @export
4604
+ * @interface PortalAccountModel
4605
+ */
4606
+ export interface PortalAccountModel {
5198
4607
  /**
5199
- * orderedQuantity
4608
+ * ID
5200
4609
  * @type {number}
5201
- * @memberof OrderedItemModel
4610
+ * @memberof PortalAccountModel
5202
4611
  */
5203
- 'orderedQuantity'?: number;
4612
+ 'id'?: number;
5204
4613
  /**
5205
- * itemStatus
5206
- * @type {number}
5207
- * @memberof OrderedItemModel
4614
+ * Contact Name
4615
+ * @type {string}
4616
+ * @memberof PortalAccountModel
5208
4617
  */
5209
- 'itemStatus'?: number;
4618
+ 'name'?: string;
5210
4619
  /**
5211
- * supplierId
5212
- * @type {number}
5213
- * @memberof OrderedItemModel
4620
+ * Email
4621
+ * @type {string}
4622
+ * @memberof PortalAccountModel
5214
4623
  */
5215
- 'supplierId'?: number;
5216
- /**
5217
- * supplierItemId
5218
- * @type {number}
5219
- * @memberof OrderedItemModel
5220
- */
5221
- 'supplierItemId'?: number;
5222
- /**
5223
- * supplierPrice
5224
- * @type {number}
5225
- * @memberof OrderedItemModel
5226
- */
5227
- 'supplierPrice'?: number;
5228
- /**
5229
- * statusDate
5230
- * @type {string}
5231
- * @memberof OrderedItemModel
5232
- */
5233
- 'statusDate'?: string;
5234
- /**
5235
- * statusAuthor
5236
- * @type {number}
5237
- * @memberof OrderedItemModel
5238
- */
5239
- 'statusAuthor'?: number;
5240
- /**
5241
- * supplierPaid
5242
- * @type {number}
5243
- * @memberof OrderedItemModel
5244
- */
5245
- 'supplierPaid'?: number;
5246
- /**
5247
- * supplierCreditDue
5248
- * @type {number}
5249
- * @memberof OrderedItemModel
5250
- */
5251
- 'supplierCreditDue'?: number;
5252
- /**
5253
- * supplierCreditReceived
5254
- * @type {number}
5255
- * @memberof OrderedItemModel
5256
- */
5257
- 'supplierCreditReceived'?: number;
5258
- /**
5259
- * supplierSku
5260
- * @type {string}
5261
- * @memberof OrderedItemModel
5262
- */
5263
- 'supplierSku'?: string;
5264
- /**
5265
- * returnedStock
5266
- * @type {number}
5267
- * @memberof OrderedItemModel
5268
- */
5269
- 'returnedStock'?: number;
5270
- /**
5271
- *
5272
- * @type {SupplierModel}
5273
- * @memberof OrderedItemModel
5274
- */
5275
- 'supplier'?: SupplierModel;
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;
4624
+ 'email'?: string;
5327
4625
  /**
5328
4626
  * Phone Number
5329
4627
  * @type {string}
@@ -5500,19 +4798,6 @@ export interface PortalLoginModel {
5500
4798
  */
5501
4799
  'redirect_uri'?: string;
5502
4800
  }
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
- }
5516
4801
  /**
5517
4802
  *
5518
4803
  * @export
@@ -5595,19 +4880,6 @@ export interface PostGetProductRequest {
5595
4880
  */
5596
4881
  'hosting'?: boolean | null;
5597
4882
  }
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
- }
5611
4883
  /**
5612
4884
  * Price & Stock List
5613
4885
  * @export
@@ -5645,43 +4917,6 @@ export interface PriceListItemModel {
5645
4917
  */
5646
4918
  'stock'?: number | null;
5647
4919
  }
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
- }
5685
4920
  /**
5686
4921
  * PrizesEntity
5687
4922
  * @export
@@ -6069,38 +5304,6 @@ export interface ProvisioningRequestEntity {
6069
5304
  */
6070
5305
  'auth'?: string;
6071
5306
  }
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
- }
6104
5307
  /**
6105
5308
  * Azure Recordings Backup
6106
5309
  * @export
@@ -6429,58 +5632,6 @@ export interface ShipmentAddressEntity {
6429
5632
  */
6430
5633
  'shipPhoneNumber'?: string;
6431
5634
  }
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
-
6484
5635
  /**
6485
5636
  * ShipmentsEntity
6486
5637
  * @export
@@ -6560,25 +5711,6 @@ export interface ShipmentEntity {
6560
5711
  */
6561
5712
  'provId'?: number;
6562
5713
  }
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
- }
6582
5714
  /**
6583
5715
  * ShipmentItemsEntity
6584
5716
  * @export
@@ -6617,263 +5749,61 @@ export interface ShipmentItemEntity {
6617
5749
  'itemId'?: string;
6618
5750
  }
6619
5751
  /**
6620
- * Shipment Item
5752
+ *
6621
5753
  * @export
6622
- * @interface ShipmentItemModel
5754
+ * @interface ShippingConsignmentModel
6623
5755
  */
6624
- export interface ShipmentItemModel {
6625
- /**
6626
- * id
6627
- * @type {number}
6628
- * @memberof ShipmentItemModel
6629
- */
6630
- 'id'?: number;
5756
+ export interface ShippingConsignmentModel {
6631
5757
  /**
6632
- * shipmentId
6633
- * @type {number}
6634
- * @memberof ShipmentItemModel
5758
+ *
5759
+ * @type {ShippingServiceModel}
5760
+ * @memberof ShippingConsignmentModel
6635
5761
  */
6636
- 'shipmentId'?: number;
5762
+ 'service'?: ShippingServiceModel;
6637
5763
  /**
6638
- * batchId
6639
- * @type {number}
6640
- * @memberof ShipmentItemModel
5764
+ * ID/Number
5765
+ * @type {string}
5766
+ * @memberof ShippingConsignmentModel
6641
5767
  */
6642
- 'batchId'?: number;
5768
+ 'id'?: string;
6643
5769
  /**
6644
- * quantity
6645
- * @type {number}
6646
- * @memberof ShipmentItemModel
5770
+ * Tracking Number
5771
+ * @type {string}
5772
+ * @memberof ShippingConsignmentModel
6647
5773
  */
6648
- 'quantity'?: number;
5774
+ 'trackingNumber'?: string;
6649
5775
  /**
6650
- * item
6651
- * @type {string}
6652
- * @memberof ShipmentItemModel
5776
+ * Parcels
5777
+ * @type {Array<string>}
5778
+ * @memberof ShippingConsignmentModel
6653
5779
  */
6654
- 'itemId'?: string;
5780
+ 'parcelIds'?: Array<string>;
6655
5781
  }
6656
5782
  /**
6657
- * Shipment
5783
+ * Shipping Information
6658
5784
  * @export
6659
- * @interface ShipmentModel
5785
+ * @interface ShippingInformationDTO
6660
5786
  */
6661
- export interface ShipmentModel {
5787
+ export interface ShippingInformationDTO {
6662
5788
  /**
6663
- * id
6664
- * @type {number}
6665
- * @memberof ShipmentModel
5789
+ * Items
5790
+ * @type {Array<BasicItemDTO>}
5791
+ * @memberof ShippingInformationDTO
6666
5792
  */
6667
- 'id'?: number;
5793
+ 'items'?: Array<BasicItemDTO>;
6668
5794
  /**
6669
- * batchId
6670
- * @type {number}
6671
- * @memberof ShipmentModel
5795
+ * Destination Post Code
5796
+ * @type {string}
5797
+ * @memberof ShippingInformationDTO
6672
5798
  */
6673
- 'batchId'?: number;
5799
+ 'postalCode'?: string;
6674
5800
  /**
6675
- * courier
5801
+ * Destination ISO
6676
5802
  * @type {string}
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
5803
+ * @memberof ShippingInformationDTO
6840
5804
  */
6841
5805
  'iso'?: string;
6842
5806
  }
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
-
6877
5807
  /**
6878
5808
  * Shipping Service
6879
5809
  * @export
@@ -8504,67 +7434,6 @@ export interface SupplierItemEntity {
8504
7434
  */
8505
7435
  'supplierSku'?: string;
8506
7436
  }
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
- }
8568
7437
  /**
8569
7438
  * 3CX Wizard Restore From Backup
8570
7439
  * @export
@@ -18170,48 +17039,6 @@ export type PostAuthoriseScopeEnum = typeof PostAuthoriseScopeEnum[keyof typeof
18170
17039
  */
18171
17040
  export const OrdersApiAxiosParamCreator = function (configuration?: Configuration) {
18172
17041
  return {
18173
- /**
18174
- * Delete Shipment (Admin)
18175
- * @summary Delete Shipment (Admin)
18176
- * @param {number} id Order ID
18177
- * @param {number} batchId Batch ID
18178
- * @param {number} shipmentId Shipment ID
18179
- * @param {*} [options] Override http request option.
18180
- * @throws {RequiredError}
18181
- */
18182
- deleteCreateShipment: async (id: number, batchId: number, shipmentId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18183
- // verify required parameter 'id' is not null or undefined
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)));
18193
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18194
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18195
- let baseOptions;
18196
- if (configuration) {
18197
- baseOptions = configuration.baseOptions;
18198
- }
18199
-
18200
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
18201
- const localVarHeaderParameter = {} as any;
18202
- const localVarQueryParameter = {} as any;
18203
-
18204
-
18205
-
18206
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18207
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18208
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18209
-
18210
- return {
18211
- url: toPathString(localVarUrlObj),
18212
- options: localVarRequestOptions,
18213
- };
18214
- },
18215
17042
  /**
18216
17043
  * Delete Orders (Beta)
18217
17044
  * @summary Delete Orders (Beta)
@@ -18281,16 +17108,16 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18281
17108
  };
18282
17109
  },
18283
17110
  /**
18284
- * Get Order Details (Admin)
18285
- * @summary Get Order Details (Admin)
17111
+ * Get Editable Order (Beta)
17112
+ * @summary Get Editable Order (Beta)
18286
17113
  * @param {number} id Order ID
18287
17114
  * @param {*} [options] Override http request option.
18288
17115
  * @throws {RequiredError}
18289
17116
  */
18290
- getGetAdminOrderDetails: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17117
+ getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18291
17118
  // verify required parameter 'id' is not null or undefined
18292
- assertParamExists('getGetAdminOrderDetails', 'id', id)
18293
- const localVarPath = `/admin/orders/{id}/details`
17119
+ assertParamExists('getGetEditableOrder', 'id', id)
17120
+ const localVarPath = `/orders/{id}/views/editable`
18294
17121
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18295
17122
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18296
17123
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18315,83 +17142,15 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18315
17142
  };
18316
17143
  },
18317
17144
  /**
18318
- * Get Editable Order (Beta)
18319
- * @summary Get Editable Order (Beta)
18320
- * @param {number} id Order ID
18321
- * @param {*} [options] Override http request option.
18322
- * @throws {RequiredError}
18323
- */
18324
- getGetEditableOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18325
- // verify required parameter 'id' is not null or undefined
18326
- assertParamExists('getGetEditableOrder', 'id', id)
18327
- const localVarPath = `/orders/{id}/views/editable`
18328
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18329
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18330
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18331
- let baseOptions;
18332
- if (configuration) {
18333
- baseOptions = configuration.baseOptions;
18334
- }
18335
-
18336
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18337
- const localVarHeaderParameter = {} as any;
18338
- const localVarQueryParameter = {} as any;
18339
-
18340
-
18341
-
18342
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18343
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18344
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18345
-
18346
- return {
18347
- url: toPathString(localVarUrlObj),
18348
- options: localVarRequestOptions,
18349
- };
18350
- },
18351
- /**
18352
- * Download Order PDF
18353
- * @summary Download Order PDF
18354
- * @param {number} id Order ID
18355
- * @param {*} [options] Override http request option.
18356
- * @throws {RequiredError}
18357
- */
18358
- getGetOrderPdf: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18359
- // verify required parameter 'id' is not null or undefined
18360
- assertParamExists('getGetOrderPdf', 'id', id)
18361
- const localVarPath = `/orders/{id}/pdf`
18362
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18363
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18364
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18365
- let baseOptions;
18366
- if (configuration) {
18367
- baseOptions = configuration.baseOptions;
18368
- }
18369
-
18370
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18371
- const localVarHeaderParameter = {} as any;
18372
- const localVarQueryParameter = {} as any;
18373
-
18374
-
18375
-
18376
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18377
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18378
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18379
-
18380
- return {
18381
- url: toPathString(localVarUrlObj),
18382
- options: localVarRequestOptions,
18383
- };
18384
- },
18385
- /**
18386
- * Get Orders (Beta)
18387
- * @summary Get Orders (Beta)
18388
- * @param {number} [pageSize] Number Of Results
18389
- * @param {number} [page] Page Number
18390
- * @param {string} [search] Search
18391
- * @param {boolean | null} [fulfillable] Fulfillable
18392
- * @param {GetGetOrdersStatusEnum} [status] Status
18393
- * @param {GetGetOrdersFilterEnum} [filter] Filter
18394
- * @param {number | null} [customerId] Customer ID
17145
+ * Get Orders (Beta)
17146
+ * @summary Get Orders (Beta)
17147
+ * @param {number} [pageSize] Number Of Results
17148
+ * @param {number} [page] Page Number
17149
+ * @param {string} [search] Search
17150
+ * @param {boolean | null} [fulfillable] Fulfillable
17151
+ * @param {GetGetOrdersStatusEnum} [status] Status
17152
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
17153
+ * @param {number | null} [customerId] Customer ID
18395
17154
  * @param {*} [options] Override http request option.
18396
17155
  * @throws {RequiredError}
18397
17156
  */
@@ -18447,44 +17206,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18447
17206
  options: localVarRequestOptions,
18448
17207
  };
18449
17208
  },
18450
- /**
18451
- * Add Order Note
18452
- * @summary Add Order Note
18453
- * @param {number} id Order ID
18454
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
18455
- * @param {*} [options] Override http request option.
18456
- * @throws {RequiredError}
18457
- */
18458
- postAddOrderNote: async (id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18459
- // verify required parameter 'id' is not null or undefined
18460
- assertParamExists('postAddOrderNote', 'id', id)
18461
- const localVarPath = `/admin/orders/{id}/notes`
18462
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18463
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18464
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18465
- let baseOptions;
18466
- if (configuration) {
18467
- baseOptions = configuration.baseOptions;
18468
- }
18469
-
18470
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18471
- const localVarHeaderParameter = {} as any;
18472
- const localVarQueryParameter = {} as any;
18473
-
18474
-
18475
-
18476
- localVarHeaderParameter['Content-Type'] = 'application/json';
18477
-
18478
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18479
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18480
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18481
- localVarRequestOptions.data = serializeDataIfNeeded(postAddOrderNoteRequest, localVarRequestOptions, configuration)
18482
-
18483
- return {
18484
- url: toPathString(localVarUrlObj),
18485
- options: localVarRequestOptions,
18486
- };
18487
- },
18488
17209
  /**
18489
17210
  * Create An Order (Admin)
18490
17211
  * @summary Create An Order (Admin)
@@ -18524,90 +17245,6 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18524
17245
  options: localVarRequestOptions,
18525
17246
  };
18526
17247
  },
18527
- /**
18528
- * Create Shipping Consignment
18529
- * @summary Create Shipping Consignment
18530
- * @param {number} id Order ID
18531
- * @param {number} shipmentId Shipment ID
18532
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
18533
- * @param {*} [options] Override http request option.
18534
- * @throws {RequiredError}
18535
- */
18536
- postCreateConsignment: async (id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18537
- // verify required parameter 'id' is not null or undefined
18538
- assertParamExists('postCreateConsignment', 'id', id)
18539
- // verify required parameter 'shipmentId' is not null or undefined
18540
- assertParamExists('postCreateConsignment', 'shipmentId', shipmentId)
18541
- const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/consignment`
18542
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18543
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18544
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18545
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18546
- let baseOptions;
18547
- if (configuration) {
18548
- baseOptions = configuration.baseOptions;
18549
- }
18550
-
18551
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18552
- const localVarHeaderParameter = {} as any;
18553
- const localVarQueryParameter = {} as any;
18554
-
18555
-
18556
-
18557
- localVarHeaderParameter['Content-Type'] = 'application/json';
18558
-
18559
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18560
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18561
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18562
- localVarRequestOptions.data = serializeDataIfNeeded(shippingRequestDTO, localVarRequestOptions, configuration)
18563
-
18564
- return {
18565
- url: toPathString(localVarUrlObj),
18566
- options: localVarRequestOptions,
18567
- };
18568
- },
18569
- /**
18570
- * Create Shipment (Admin)
18571
- * @summary Create Shipment (Admin)
18572
- * @param {number} id Order ID
18573
- * @param {number} batchId Batch ID
18574
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18575
- * @param {*} [options] Override http request option.
18576
- * @throws {RequiredError}
18577
- */
18578
- postCreateShipment: async (id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18579
- // verify required parameter 'id' is not null or undefined
18580
- assertParamExists('postCreateShipment', 'id', id)
18581
- // verify required parameter 'batchId' is not null or undefined
18582
- assertParamExists('postCreateShipment', 'batchId', batchId)
18583
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18584
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18585
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18586
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18587
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18588
- let baseOptions;
18589
- if (configuration) {
18590
- baseOptions = configuration.baseOptions;
18591
- }
18592
-
18593
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18594
- const localVarHeaderParameter = {} as any;
18595
- const localVarQueryParameter = {} as any;
18596
-
18597
-
18598
-
18599
- localVarHeaderParameter['Content-Type'] = 'application/json';
18600
-
18601
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18602
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18603
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18604
- localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18605
-
18606
- return {
18607
- url: toPathString(localVarUrlObj),
18608
- options: localVarRequestOptions,
18609
- };
18610
- },
18611
17248
  /**
18612
17249
  * Create An Order (Beta)
18613
17250
  * @summary Create An Order (Beta)
@@ -18648,17 +17285,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18648
17285
  };
18649
17286
  },
18650
17287
  /**
18651
- * Issue Credit (Admin)
18652
- * @summary Issue Credit (Admin)
17288
+ * Update An Order (Admin)
17289
+ * @summary Update An Order (Admin)
18653
17290
  * @param {number} id Order ID
18654
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
17291
+ * @param {boolean} [readonly] Readonly Order
17292
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
18655
17293
  * @param {*} [options] Override http request option.
18656
17294
  * @throws {RequiredError}
18657
17295
  */
18658
- postIssueCredit: async (id: number, creditNoteDTO?: CreditNoteDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17296
+ putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18659
17297
  // verify required parameter 'id' is not null or undefined
18660
- assertParamExists('postIssueCredit', 'id', id)
18661
- const localVarPath = `/admin/orders/{id}/credit`
17298
+ assertParamExists('putUpdateAdminOrder', 'id', id)
17299
+ const localVarPath = `/admin/orders/{id}`
18662
17300
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18663
17301
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18664
17302
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18667,63 +17305,22 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18667
17305
  baseOptions = configuration.baseOptions;
18668
17306
  }
18669
17307
 
18670
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18671
- const localVarHeaderParameter = {} as any;
18672
- const localVarQueryParameter = {} as any;
18673
-
18674
-
18675
-
18676
- localVarHeaderParameter['Content-Type'] = 'application/json';
18677
-
18678
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18679
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18680
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18681
- localVarRequestOptions.data = serializeDataIfNeeded(creditNoteDTO, localVarRequestOptions, configuration)
18682
-
18683
- return {
18684
- url: toPathString(localVarUrlObj),
18685
- options: localVarRequestOptions,
18686
- };
18687
- },
18688
- /**
18689
- * Print Shipment Label
18690
- * @summary Print Shipment Label
18691
- * @param {number} id Order ID
18692
- * @param {number} shipmentId Shipment ID
18693
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
18694
- * @param {*} [options] Override http request option.
18695
- * @throws {RequiredError}
18696
- */
18697
- postPrintShippingLabel: async (id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18698
- // verify required parameter 'id' is not null or undefined
18699
- assertParamExists('postPrintShippingLabel', 'id', id)
18700
- // verify required parameter 'shipmentId' is not null or undefined
18701
- assertParamExists('postPrintShippingLabel', 'shipmentId', shipmentId)
18702
- // verify required parameter 'printer' is not null or undefined
18703
- assertParamExists('postPrintShippingLabel', 'printer', printer)
18704
- const localVarPath = `/admin/orders/{id}/shipments/{shipment_id}/label/print`
18705
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18706
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18707
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18708
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18709
- let baseOptions;
18710
- if (configuration) {
18711
- baseOptions = configuration.baseOptions;
18712
- }
18713
-
18714
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17308
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18715
17309
  const localVarHeaderParameter = {} as any;
18716
17310
  const localVarQueryParameter = {} as any;
18717
17311
 
18718
- if (printer !== undefined) {
18719
- localVarQueryParameter['printer'] = printer;
17312
+ if (readonly !== undefined) {
17313
+ localVarQueryParameter['readonly'] = readonly;
18720
17314
  }
18721
17315
 
18722
17316
 
18723
17317
 
17318
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17319
+
18724
17320
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18725
17321
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18726
17322
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17323
+ localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18727
17324
 
18728
17325
  return {
18729
17326
  url: toPathString(localVarUrlObj),
@@ -18731,19 +17328,18 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18731
17328
  };
18732
17329
  },
18733
17330
  /**
18734
- * Send Order Email
18735
- * @summary Send Order Email
17331
+ * Update An Order (Beta)
17332
+ * @summary Update An Order (Beta)
18736
17333
  * @param {number} id Order ID
18737
- * @param {string} email Email Address
17334
+ * @param {boolean} [readonly] Readonly Order
17335
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18738
17336
  * @param {*} [options] Override http request option.
18739
17337
  * @throws {RequiredError}
18740
17338
  */
18741
- postSendOrderEmail: async (id: number, email: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17339
+ putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18742
17340
  // verify required parameter 'id' is not null or undefined
18743
- assertParamExists('postSendOrderEmail', 'id', id)
18744
- // verify required parameter 'email' is not null or undefined
18745
- assertParamExists('postSendOrderEmail', 'email', email)
18746
- const localVarPath = `/admin/orders/{id}/email/send`
17341
+ assertParamExists('putUpdateOrder', 'id', id)
17342
+ const localVarPath = `/orders/{id}`
18747
17343
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18748
17344
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18749
17345
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18752,559 +17348,122 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
18752
17348
  baseOptions = configuration.baseOptions;
18753
17349
  }
18754
17350
 
18755
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17351
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18756
17352
  const localVarHeaderParameter = {} as any;
18757
17353
  const localVarQueryParameter = {} as any;
18758
17354
 
18759
- if (email !== undefined) {
18760
- localVarQueryParameter['email'] = email;
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 Supplier Email
18776
- * @summary Send Supplier Email
18777
- * @param {number} id Order ID
18778
- * @param {number} batchId Batch ID
18779
- * @param {*} [options] Override http request option.
18780
- * @throws {RequiredError}
18781
- */
18782
- postSendSupplierEmail: async (id: number, batchId: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18783
- // verify required parameter 'id' is not null or undefined
18784
- assertParamExists('postSendSupplierEmail', 'id', id)
18785
- // verify required parameter 'batchId' is not null or undefined
18786
- assertParamExists('postSendSupplierEmail', 'batchId', batchId)
18787
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/email/send`
18788
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18789
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)));
18790
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18791
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18792
- let baseOptions;
18793
- if (configuration) {
18794
- baseOptions = configuration.baseOptions;
17355
+ if (readonly !== undefined) {
17356
+ localVarQueryParameter['readonly'] = readonly;
18795
17357
  }
18796
17358
 
18797
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18798
- const localVarHeaderParameter = {} as any;
18799
- const localVarQueryParameter = {} as any;
18800
-
18801
-
18802
-
18803
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18804
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18805
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18806
-
18807
- return {
18808
- url: toPathString(localVarUrlObj),
18809
- options: localVarRequestOptions,
18810
- };
18811
- },
18812
- /**
18813
- * Split Order
18814
- * @summary Split Order
18815
- * @param {number} id Order ID
18816
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
18817
- * @param {*} [options] Override http request option.
18818
- * @throws {RequiredError}
18819
- */
18820
- postSplitOrder: async (id: number, postSplitOrderRequest?: PostSplitOrderRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18821
- // verify required parameter 'id' is not null or undefined
18822
- assertParamExists('postSplitOrder', 'id', id)
18823
- const localVarPath = `/admin/orders/{id}/split`
18824
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18825
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18826
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18827
- let baseOptions;
18828
- if (configuration) {
18829
- baseOptions = configuration.baseOptions;
18830
- }
18831
-
18832
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18833
- const localVarHeaderParameter = {} as any;
18834
- const localVarQueryParameter = {} as any;
18835
-
18836
17359
 
18837
17360
 
18838
17361
  localVarHeaderParameter['Content-Type'] = 'application/json';
18839
-
18840
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18841
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18842
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18843
- localVarRequestOptions.data = serializeDataIfNeeded(postSplitOrderRequest, localVarRequestOptions, configuration)
18844
-
18845
- return {
18846
- url: toPathString(localVarUrlObj),
18847
- options: localVarRequestOptions,
18848
- };
18849
- },
18850
- /**
18851
- * Allocate Items To Supplier
18852
- * @summary Allocate Items To Supplier
18853
- * @param {number} id Order ID
18854
- * @param {number} supplierId Supplier ID
18855
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
18856
- * @param {*} [options] Override http request option.
18857
- * @throws {RequiredError}
18858
- */
18859
- putAllocateItems: async (id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18860
- // verify required parameter 'id' is not null or undefined
18861
- assertParamExists('putAllocateItems', 'id', id)
18862
- // verify required parameter 'supplierId' is not null or undefined
18863
- assertParamExists('putAllocateItems', 'supplierId', supplierId)
18864
- const localVarPath = `/admin/orders/{id}/items/allocate`
18865
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18866
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18867
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18868
- let baseOptions;
18869
- if (configuration) {
18870
- baseOptions = configuration.baseOptions;
18871
- }
18872
-
18873
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18874
- const localVarHeaderParameter = {} as any;
18875
- const localVarQueryParameter = {} as any;
18876
-
18877
- if (supplierId !== undefined) {
18878
- localVarQueryParameter['supplierId'] = supplierId;
18879
- }
18880
-
18881
-
18882
-
18883
- localVarHeaderParameter['Content-Type'] = 'application/json';
18884
-
18885
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18886
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18887
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18888
- localVarRequestOptions.data = serializeDataIfNeeded(putAllocateItemsRequest, localVarRequestOptions, configuration)
18889
-
18890
- return {
18891
- url: toPathString(localVarUrlObj),
18892
- options: localVarRequestOptions,
18893
- };
18894
- },
18895
- /**
18896
- * Update Shipment (Admin)
18897
- * @summary Update Shipment (Admin)
18898
- * @param {number} id Order ID
18899
- * @param {number} batchId Batch ID
18900
- * @param {number} shipmentId Shipment ID
18901
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
18902
- * @param {*} [options] Override http request option.
18903
- * @throws {RequiredError}
18904
- */
18905
- putCreateShipment: async (id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18906
- // verify required parameter 'id' is not null or undefined
18907
- assertParamExists('putCreateShipment', 'id', id)
18908
- // verify required parameter 'batchId' is not null or undefined
18909
- assertParamExists('putCreateShipment', 'batchId', batchId)
18910
- // verify required parameter 'shipmentId' is not null or undefined
18911
- assertParamExists('putCreateShipment', 'shipmentId', shipmentId)
18912
- const localVarPath = `/admin/orders/{id}/batches/{batch_id}/shipments`
18913
- .replace(`{${"id"}}`, encodeURIComponent(String(id)))
18914
- .replace(`{${"batch_id"}}`, encodeURIComponent(String(batchId)))
18915
- .replace(`{${"shipment_id"}}`, encodeURIComponent(String(shipmentId)));
18916
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18917
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18918
- let baseOptions;
18919
- if (configuration) {
18920
- baseOptions = configuration.baseOptions;
18921
- }
18922
-
18923
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18924
- const localVarHeaderParameter = {} as any;
18925
- const localVarQueryParameter = {} as any;
18926
-
18927
-
18928
-
18929
- localVarHeaderParameter['Content-Type'] = 'application/json';
18930
-
18931
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18932
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18933
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18934
- localVarRequestOptions.data = serializeDataIfNeeded(shipmentRequestDTO, localVarRequestOptions, configuration)
18935
-
18936
- return {
18937
- url: toPathString(localVarUrlObj),
18938
- options: localVarRequestOptions,
18939
- };
18940
- },
18941
- /**
18942
- * Update An Order (Admin)
18943
- * @summary Update An Order (Admin)
18944
- * @param {number} id Order ID
18945
- * @param {boolean} [readonly] Readonly Order
18946
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Order Request
18947
- * @param {*} [options] Override http request option.
18948
- * @throws {RequiredError}
18949
- */
18950
- putUpdateAdminOrder: async (id: number, readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18951
- // verify required parameter 'id' is not null or undefined
18952
- assertParamExists('putUpdateAdminOrder', 'id', id)
18953
- const localVarPath = `/admin/orders/{id}`
18954
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18955
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18956
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18957
- let baseOptions;
18958
- if (configuration) {
18959
- baseOptions = configuration.baseOptions;
18960
- }
18961
-
18962
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18963
- const localVarHeaderParameter = {} as any;
18964
- const localVarQueryParameter = {} as any;
18965
-
18966
- if (readonly !== undefined) {
18967
- localVarQueryParameter['readonly'] = readonly;
18968
- }
18969
-
18970
-
18971
-
18972
- localVarHeaderParameter['Content-Type'] = 'application/json';
18973
-
18974
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18975
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18976
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18977
- localVarRequestOptions.data = serializeDataIfNeeded(adminOrderRequestDTO, localVarRequestOptions, configuration)
18978
-
18979
- return {
18980
- url: toPathString(localVarUrlObj),
18981
- options: localVarRequestOptions,
18982
- };
18983
- },
18984
- /**
18985
- * Update An Order (Beta)
18986
- * @summary Update An Order (Beta)
18987
- * @param {number} id Order ID
18988
- * @param {boolean} [readonly] Readonly Order
18989
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
18990
- * @param {*} [options] Override http request option.
18991
- * @throws {RequiredError}
18992
- */
18993
- putUpdateOrder: async (id: number, readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18994
- // verify required parameter 'id' is not null or undefined
18995
- assertParamExists('putUpdateOrder', 'id', id)
18996
- const localVarPath = `/orders/{id}`
18997
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18998
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18999
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19000
- let baseOptions;
19001
- if (configuration) {
19002
- baseOptions = configuration.baseOptions;
19003
- }
19004
-
19005
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
19006
- const localVarHeaderParameter = {} as any;
19007
- const localVarQueryParameter = {} as any;
19008
-
19009
- if (readonly !== undefined) {
19010
- localVarQueryParameter['readonly'] = readonly;
19011
- }
19012
-
19013
-
19014
-
19015
- localVarHeaderParameter['Content-Type'] = 'application/json';
19016
-
19017
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19018
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19019
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19020
- localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
19021
-
19022
- return {
19023
- url: toPathString(localVarUrlObj),
19024
- options: localVarRequestOptions,
19025
- };
19026
- },
19027
- }
19028
- };
19029
-
19030
- /**
19031
- * OrdersApi - functional programming interface
19032
- * @export
19033
- */
19034
- export const OrdersApiFp = function(configuration?: Configuration) {
19035
- const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
19036
- return {
19037
- /**
19038
- * Delete Shipment (Admin)
19039
- * @summary Delete Shipment (Admin)
19040
- * @param {number} id Order ID
19041
- * @param {number} batchId Batch ID
19042
- * @param {number} shipmentId Shipment ID
19043
- * @param {*} [options] Override http request option.
19044
- * @throws {RequiredError}
19045
- */
19046
- async deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19047
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCreateShipment(id, batchId, shipmentId, options);
19048
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19049
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteCreateShipment']?.[localVarOperationServerIndex]?.url;
19050
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19051
- },
19052
- /**
19053
- * Delete Orders (Beta)
19054
- * @summary Delete Orders (Beta)
19055
- * @param {number} id Order ID
19056
- * @param {*} [options] Override http request option.
19057
- * @throws {RequiredError}
19058
- */
19059
- async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19060
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19061
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19062
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19063
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19064
- },
19065
- /**
19066
- * Get Editable Order (Admin)
19067
- * @summary Get Editable Order (Admin)
19068
- * @param {number} id Order ID
19069
- * @param {*} [options] Override http request option.
19070
- * @throws {RequiredError}
19071
- */
19072
- async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
19073
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19074
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19075
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19076
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19077
- },
19078
- /**
19079
- * Get Order Details (Admin)
19080
- * @summary Get Order Details (Admin)
19081
- * @param {number} id Order ID
19082
- * @param {*} [options] Override http request option.
19083
- * @throws {RequiredError}
19084
- */
19085
- async getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
19086
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminOrderDetails(id, options);
19087
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19088
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminOrderDetails']?.[localVarOperationServerIndex]?.url;
19089
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19090
- },
19091
- /**
19092
- * Get Editable Order (Beta)
19093
- * @summary Get Editable Order (Beta)
19094
- * @param {number} id Order ID
19095
- * @param {*} [options] Override http request option.
19096
- * @throws {RequiredError}
19097
- */
19098
- async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
19099
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19100
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19101
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19102
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19103
- },
19104
- /**
19105
- * Download Order PDF
19106
- * @summary Download Order PDF
19107
- * @param {number} id Order ID
19108
- * @param {*} [options] Override http request option.
19109
- * @throws {RequiredError}
19110
- */
19111
- async getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19112
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderPdf(id, options);
19113
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19114
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderPdf']?.[localVarOperationServerIndex]?.url;
19115
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19116
- },
19117
- /**
19118
- * Get Orders (Beta)
19119
- * @summary Get Orders (Beta)
19120
- * @param {number} [pageSize] Number Of Results
19121
- * @param {number} [page] Page Number
19122
- * @param {string} [search] Search
19123
- * @param {boolean | null} [fulfillable] Fulfillable
19124
- * @param {GetGetOrdersStatusEnum} [status] Status
19125
- * @param {GetGetOrdersFilterEnum} [filter] Filter
19126
- * @param {number | null} [customerId] Customer ID
19127
- * @param {*} [options] Override http request option.
19128
- * @throws {RequiredError}
19129
- */
19130
- 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>> {
19131
- const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
19132
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19133
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19134
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19135
- },
19136
- /**
19137
- * Add Order Note
19138
- * @summary Add Order Note
19139
- * @param {number} id Order ID
19140
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19141
- * @param {*} [options] Override http request option.
19142
- * @throws {RequiredError}
19143
- */
19144
- async postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19145
- const localVarAxiosArgs = await localVarAxiosParamCreator.postAddOrderNote(id, postAddOrderNoteRequest, options);
19146
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19147
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postAddOrderNote']?.[localVarOperationServerIndex]?.url;
19148
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19149
- },
19150
- /**
19151
- * Create An Order (Admin)
19152
- * @summary Create An Order (Admin)
19153
- * @param {boolean} [readonly] Readonly Order
19154
- * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19155
- * @param {*} [options] Override http request option.
19156
- * @throws {RequiredError}
19157
- */
19158
- async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19159
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
19160
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19161
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19162
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19163
- },
19164
- /**
19165
- * Create Shipping Consignment
19166
- * @summary Create Shipping Consignment
19167
- * @param {number} id Order ID
19168
- * @param {number} shipmentId Shipment ID
19169
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19170
- * @param {*} [options] Override http request option.
19171
- * @throws {RequiredError}
19172
- */
19173
- async postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19174
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateConsignment(id, shipmentId, shippingRequestDTO, options);
19175
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19176
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateConsignment']?.[localVarOperationServerIndex]?.url;
19177
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19178
- },
19179
- /**
19180
- * Create Shipment (Admin)
19181
- * @summary Create Shipment (Admin)
19182
- * @param {number} id Order ID
19183
- * @param {number} batchId Batch ID
19184
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19185
- * @param {*} [options] Override http request option.
19186
- * @throws {RequiredError}
19187
- */
19188
- async postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19189
- const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateShipment(id, batchId, shipmentRequestDTO, options);
19190
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19191
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateShipment']?.[localVarOperationServerIndex]?.url;
19192
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19193
- },
19194
- /**
19195
- * Create An Order (Beta)
19196
- * @summary Create An Order (Beta)
19197
- * @param {boolean} [readonly] Readonly Order
19198
- * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19199
- * @param {*} [options] Override http request option.
19200
- * @throws {RequiredError}
19201
- */
19202
- async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19203
- const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
19204
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19205
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19206
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19207
- },
19208
- /**
19209
- * Issue Credit (Admin)
19210
- * @summary Issue Credit (Admin)
19211
- * @param {number} id Order ID
19212
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19213
- * @param {*} [options] Override http request option.
19214
- * @throws {RequiredError}
19215
- */
19216
- async postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreditNoteModel>> {
19217
- const localVarAxiosArgs = await localVarAxiosParamCreator.postIssueCredit(id, creditNoteDTO, options);
19218
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19219
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postIssueCredit']?.[localVarOperationServerIndex]?.url;
19220
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17362
+
17363
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17365
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17366
+ localVarRequestOptions.data = serializeDataIfNeeded(customerOrderRequestDTO, localVarRequestOptions, configuration)
17367
+
17368
+ return {
17369
+ url: toPathString(localVarUrlObj),
17370
+ options: localVarRequestOptions,
17371
+ };
19221
17372
  },
17373
+ }
17374
+ };
17375
+
17376
+ /**
17377
+ * OrdersApi - functional programming interface
17378
+ * @export
17379
+ */
17380
+ export const OrdersApiFp = function(configuration?: Configuration) {
17381
+ const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration)
17382
+ return {
19222
17383
  /**
19223
- * Print Shipment Label
19224
- * @summary Print Shipment Label
17384
+ * Delete Orders (Beta)
17385
+ * @summary Delete Orders (Beta)
19225
17386
  * @param {number} id Order ID
19226
- * @param {number} shipmentId Shipment ID
19227
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19228
17387
  * @param {*} [options] Override http request option.
19229
17388
  * @throws {RequiredError}
19230
17389
  */
19231
- async postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>> {
19232
- const localVarAxiosArgs = await localVarAxiosParamCreator.postPrintShippingLabel(id, shipmentId, printer, options);
17390
+ async deleteUpdateOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
17391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUpdateOrder(id, options);
19233
17392
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19234
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postPrintShippingLabel']?.[localVarOperationServerIndex]?.url;
17393
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.deleteUpdateOrder']?.[localVarOperationServerIndex]?.url;
19235
17394
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19236
17395
  },
19237
17396
  /**
19238
- * Send Order Email
19239
- * @summary Send Order Email
17397
+ * Get Editable Order (Admin)
17398
+ * @summary Get Editable Order (Admin)
19240
17399
  * @param {number} id Order ID
19241
- * @param {string} email Email Address
19242
17400
  * @param {*} [options] Override http request option.
19243
17401
  * @throws {RequiredError}
19244
17402
  */
19245
- async postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19246
- const localVarAxiosArgs = await localVarAxiosParamCreator.postSendOrderEmail(id, email, options);
17403
+ async getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AdminOrderRequestDTO>> {
17404
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetAdminEditableOrder(id, options);
19247
17405
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19248
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendOrderEmail']?.[localVarOperationServerIndex]?.url;
17406
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetAdminEditableOrder']?.[localVarOperationServerIndex]?.url;
19249
17407
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19250
17408
  },
19251
17409
  /**
19252
- * Send Supplier Email
19253
- * @summary Send Supplier Email
17410
+ * Get Editable Order (Beta)
17411
+ * @summary Get Editable Order (Beta)
19254
17412
  * @param {number} id Order ID
19255
- * @param {number} batchId Batch ID
19256
17413
  * @param {*} [options] Override http request option.
19257
17414
  * @throws {RequiredError}
19258
17415
  */
19259
- async postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19260
- const localVarAxiosArgs = await localVarAxiosParamCreator.postSendSupplierEmail(id, batchId, options);
17416
+ async getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DetailedOrderRequestDTO>> {
17417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetEditableOrder(id, options);
19261
17418
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19262
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSendSupplierEmail']?.[localVarOperationServerIndex]?.url;
17419
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetEditableOrder']?.[localVarOperationServerIndex]?.url;
19263
17420
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19264
17421
  },
19265
17422
  /**
19266
- * Split Order
19267
- * @summary Split Order
19268
- * @param {number} id Order ID
19269
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
17423
+ * Get Orders (Beta)
17424
+ * @summary Get Orders (Beta)
17425
+ * @param {number} [pageSize] Number Of Results
17426
+ * @param {number} [page] Page Number
17427
+ * @param {string} [search] Search
17428
+ * @param {boolean | null} [fulfillable] Fulfillable
17429
+ * @param {GetGetOrdersStatusEnum} [status] Status
17430
+ * @param {GetGetOrdersFilterEnum} [filter] Filter
17431
+ * @param {number | null} [customerId] Customer ID
19270
17432
  * @param {*} [options] Override http request option.
19271
17433
  * @throws {RequiredError}
19272
17434
  */
19273
- async postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
19274
- const localVarAxiosArgs = await localVarAxiosParamCreator.postSplitOrder(id, postSplitOrderRequest, options);
17435
+ async getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummariesModel>> {
17436
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options);
19275
17437
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19276
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.postSplitOrder']?.[localVarOperationServerIndex]?.url;
17438
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrders']?.[localVarOperationServerIndex]?.url;
19277
17439
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19278
17440
  },
19279
17441
  /**
19280
- * Allocate Items To Supplier
19281
- * @summary Allocate Items To Supplier
19282
- * @param {number} id Order ID
19283
- * @param {number} supplierId Supplier ID
19284
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
17442
+ * Create An Order (Admin)
17443
+ * @summary Create An Order (Admin)
17444
+ * @param {boolean} [readonly] Readonly Order
17445
+ * @param {AdminOrderRequestDTO} [adminOrderRequestDTO] Admin Order Request
19285
17446
  * @param {*} [options] Override http request option.
19286
17447
  * @throws {RequiredError}
19287
17448
  */
19288
- async putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
19289
- const localVarAxiosArgs = await localVarAxiosParamCreator.putAllocateItems(id, supplierId, putAllocateItemsRequest, options);
17449
+ async postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
17450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postCreateAdminOrder(readonly, adminOrderRequestDTO, options);
19290
17451
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19291
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putAllocateItems']?.[localVarOperationServerIndex]?.url;
17452
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postCreateAdminOrder']?.[localVarOperationServerIndex]?.url;
19292
17453
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19293
17454
  },
19294
17455
  /**
19295
- * Update Shipment (Admin)
19296
- * @summary Update Shipment (Admin)
19297
- * @param {number} id Order ID
19298
- * @param {number} batchId Batch ID
19299
- * @param {number} shipmentId Shipment ID
19300
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
17456
+ * Create An Order (Beta)
17457
+ * @summary Create An Order (Beta)
17458
+ * @param {boolean} [readonly] Readonly Order
17459
+ * @param {CustomerOrderRequestDTO} [customerOrderRequestDTO] Order Request
19301
17460
  * @param {*} [options] Override http request option.
19302
17461
  * @throws {RequiredError}
19303
17462
  */
19304
- async putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShipmentModel>> {
19305
- const localVarAxiosArgs = await localVarAxiosParamCreator.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options);
17463
+ async postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<OrderSummaryDTO>>> {
17464
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postGetOrders(readonly, customerOrderRequestDTO, options);
19306
17465
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19307
- const localVarOperationServerBasePath = operationServerMap['OrdersApi.putCreateShipment']?.[localVarOperationServerIndex]?.url;
17466
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.postGetOrders']?.[localVarOperationServerIndex]?.url;
19308
17467
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19309
17468
  },
19310
17469
  /**
@@ -19347,18 +17506,6 @@ export const OrdersApiFp = function(configuration?: Configuration) {
19347
17506
  export const OrdersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
19348
17507
  const localVarFp = OrdersApiFp(configuration)
19349
17508
  return {
19350
- /**
19351
- * Delete Shipment (Admin)
19352
- * @summary Delete Shipment (Admin)
19353
- * @param {number} id Order ID
19354
- * @param {number} batchId Batch ID
19355
- * @param {number} shipmentId Shipment ID
19356
- * @param {*} [options] Override http request option.
19357
- * @throws {RequiredError}
19358
- */
19359
- deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19360
- return localVarFp.deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(axios, basePath));
19361
- },
19362
17509
  /**
19363
17510
  * Delete Orders (Beta)
19364
17511
  * @summary Delete Orders (Beta)
@@ -19379,16 +17526,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19379
17526
  getGetAdminEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<AdminOrderRequestDTO> {
19380
17527
  return localVarFp.getGetAdminEditableOrder(id, options).then((request) => request(axios, basePath));
19381
17528
  },
19382
- /**
19383
- * Get Order Details (Admin)
19384
- * @summary Get Order Details (Admin)
19385
- * @param {number} id Order ID
19386
- * @param {*} [options] Override http request option.
19387
- * @throws {RequiredError}
19388
- */
19389
- getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
19390
- return localVarFp.getGetAdminOrderDetails(id, options).then((request) => request(axios, basePath));
19391
- },
19392
17529
  /**
19393
17530
  * Get Editable Order (Beta)
19394
17531
  * @summary Get Editable Order (Beta)
@@ -19399,16 +17536,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19399
17536
  getGetEditableOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<DetailedOrderRequestDTO> {
19400
17537
  return localVarFp.getGetEditableOrder(id, options).then((request) => request(axios, basePath));
19401
17538
  },
19402
- /**
19403
- * Download Order PDF
19404
- * @summary Download Order PDF
19405
- * @param {number} id Order ID
19406
- * @param {*} [options] Override http request option.
19407
- * @throws {RequiredError}
19408
- */
19409
- getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19410
- return localVarFp.getGetOrderPdf(id, options).then((request) => request(axios, basePath));
19411
- },
19412
17539
  /**
19413
17540
  * Get Orders (Beta)
19414
17541
  * @summary Get Orders (Beta)
@@ -19425,17 +17552,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19425
17552
  getGetOrders(pageSize?: number, page?: number, search?: string, fulfillable?: boolean | null, status?: GetGetOrdersStatusEnum, filter?: GetGetOrdersFilterEnum, customerId?: number | null, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummariesModel> {
19426
17553
  return localVarFp.getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(axios, basePath));
19427
17554
  },
19428
- /**
19429
- * Add Order Note
19430
- * @summary Add Order Note
19431
- * @param {number} id Order ID
19432
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19433
- * @param {*} [options] Override http request option.
19434
- * @throws {RequiredError}
19435
- */
19436
- postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19437
- return localVarFp.postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(axios, basePath));
19438
- },
19439
17555
  /**
19440
17556
  * Create An Order (Admin)
19441
17557
  * @summary Create An Order (Admin)
@@ -19447,30 +17563,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19447
17563
  postCreateAdminOrder(readonly?: boolean, adminOrderRequestDTO?: AdminOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19448
17564
  return localVarFp.postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(axios, basePath));
19449
17565
  },
19450
- /**
19451
- * Create Shipping Consignment
19452
- * @summary Create Shipping Consignment
19453
- * @param {number} id Order ID
19454
- * @param {number} shipmentId Shipment ID
19455
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19456
- * @param {*} [options] Override http request option.
19457
- * @throws {RequiredError}
19458
- */
19459
- postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19460
- return localVarFp.postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(axios, basePath));
19461
- },
19462
- /**
19463
- * Create Shipment (Admin)
19464
- * @summary Create Shipment (Admin)
19465
- * @param {number} id Order ID
19466
- * @param {number} batchId Batch ID
19467
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19468
- * @param {*} [options] Override http request option.
19469
- * @throws {RequiredError}
19470
- */
19471
- postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19472
- return localVarFp.postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19473
- },
19474
17566
  /**
19475
17567
  * Create An Order (Beta)
19476
17568
  * @summary Create An Order (Beta)
@@ -19482,87 +17574,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19482
17574
  postGetOrders(readonly?: boolean, customerOrderRequestDTO?: CustomerOrderRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19483
17575
  return localVarFp.postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(axios, basePath));
19484
17576
  },
19485
- /**
19486
- * Issue Credit (Admin)
19487
- * @summary Issue Credit (Admin)
19488
- * @param {number} id Order ID
19489
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19490
- * @param {*} [options] Override http request option.
19491
- * @throws {RequiredError}
19492
- */
19493
- postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig): AxiosPromise<CreditNoteModel> {
19494
- return localVarFp.postIssueCredit(id, creditNoteDTO, options).then((request) => request(axios, basePath));
19495
- },
19496
- /**
19497
- * Print Shipment Label
19498
- * @summary Print Shipment Label
19499
- * @param {number} id Order ID
19500
- * @param {number} shipmentId Shipment ID
19501
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19502
- * @param {*} [options] Override http request option.
19503
- * @throws {RequiredError}
19504
- */
19505
- postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig): AxiosPromise<File> {
19506
- return localVarFp.postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(axios, basePath));
19507
- },
19508
- /**
19509
- * Send Order Email
19510
- * @summary Send Order Email
19511
- * @param {number} id Order ID
19512
- * @param {string} email Email Address
19513
- * @param {*} [options] Override http request option.
19514
- * @throws {RequiredError}
19515
- */
19516
- postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19517
- return localVarFp.postSendOrderEmail(id, email, options).then((request) => request(axios, basePath));
19518
- },
19519
- /**
19520
- * Send Supplier Email
19521
- * @summary Send Supplier Email
19522
- * @param {number} id Order ID
19523
- * @param {number} batchId Batch ID
19524
- * @param {*} [options] Override http request option.
19525
- * @throws {RequiredError}
19526
- */
19527
- postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19528
- return localVarFp.postSendSupplierEmail(id, batchId, options).then((request) => request(axios, basePath));
19529
- },
19530
- /**
19531
- * Split Order
19532
- * @summary Split Order
19533
- * @param {number} id Order ID
19534
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19535
- * @param {*} [options] Override http request option.
19536
- * @throws {RequiredError}
19537
- */
19538
- postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<OrderSummaryDTO>> {
19539
- return localVarFp.postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(axios, basePath));
19540
- },
19541
- /**
19542
- * Allocate Items To Supplier
19543
- * @summary Allocate Items To Supplier
19544
- * @param {number} id Order ID
19545
- * @param {number} supplierId Supplier ID
19546
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19547
- * @param {*} [options] Override http request option.
19548
- * @throws {RequiredError}
19549
- */
19550
- putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
19551
- return localVarFp.putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(axios, basePath));
19552
- },
19553
- /**
19554
- * Update Shipment (Admin)
19555
- * @summary Update Shipment (Admin)
19556
- * @param {number} id Order ID
19557
- * @param {number} batchId Batch ID
19558
- * @param {number} shipmentId Shipment ID
19559
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19560
- * @param {*} [options] Override http request option.
19561
- * @throws {RequiredError}
19562
- */
19563
- putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig): AxiosPromise<ShipmentModel> {
19564
- return localVarFp.putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(axios, basePath));
19565
- },
19566
17577
  /**
19567
17578
  * Update An Order (Admin)
19568
17579
  * @summary Update An Order (Admin)
@@ -19597,20 +17608,6 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
19597
17608
  * @extends {BaseAPI}
19598
17609
  */
19599
17610
  export class OrdersApi extends BaseAPI {
19600
- /**
19601
- * Delete Shipment (Admin)
19602
- * @summary Delete Shipment (Admin)
19603
- * @param {number} id Order ID
19604
- * @param {number} batchId Batch ID
19605
- * @param {number} shipmentId Shipment ID
19606
- * @param {*} [options] Override http request option.
19607
- * @throws {RequiredError}
19608
- * @memberof OrdersApi
19609
- */
19610
- public deleteCreateShipment(id: number, batchId: number, shipmentId: number, options?: RawAxiosRequestConfig) {
19611
- return OrdersApiFp(this.configuration).deleteCreateShipment(id, batchId, shipmentId, options).then((request) => request(this.axios, this.basePath));
19612
- }
19613
-
19614
17611
  /**
19615
17612
  * Delete Orders (Beta)
19616
17613
  * @summary Delete Orders (Beta)
@@ -19635,18 +17632,6 @@ export class OrdersApi extends BaseAPI {
19635
17632
  return OrdersApiFp(this.configuration).getGetAdminEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
19636
17633
  }
19637
17634
 
19638
- /**
19639
- * Get Order Details (Admin)
19640
- * @summary Get Order Details (Admin)
19641
- * @param {number} id Order ID
19642
- * @param {*} [options] Override http request option.
19643
- * @throws {RequiredError}
19644
- * @memberof OrdersApi
19645
- */
19646
- public getGetAdminOrderDetails(id: number, options?: RawAxiosRequestConfig) {
19647
- return OrdersApiFp(this.configuration).getGetAdminOrderDetails(id, options).then((request) => request(this.axios, this.basePath));
19648
- }
19649
-
19650
17635
  /**
19651
17636
  * Get Editable Order (Beta)
19652
17637
  * @summary Get Editable Order (Beta)
@@ -19659,18 +17644,6 @@ export class OrdersApi extends BaseAPI {
19659
17644
  return OrdersApiFp(this.configuration).getGetEditableOrder(id, options).then((request) => request(this.axios, this.basePath));
19660
17645
  }
19661
17646
 
19662
- /**
19663
- * Download Order PDF
19664
- * @summary Download Order PDF
19665
- * @param {number} id Order ID
19666
- * @param {*} [options] Override http request option.
19667
- * @throws {RequiredError}
19668
- * @memberof OrdersApi
19669
- */
19670
- public getGetOrderPdf(id: number, options?: RawAxiosRequestConfig) {
19671
- return OrdersApiFp(this.configuration).getGetOrderPdf(id, options).then((request) => request(this.axios, this.basePath));
19672
- }
19673
-
19674
17647
  /**
19675
17648
  * Get Orders (Beta)
19676
17649
  * @summary Get Orders (Beta)
@@ -19689,19 +17662,6 @@ export class OrdersApi extends BaseAPI {
19689
17662
  return OrdersApiFp(this.configuration).getGetOrders(pageSize, page, search, fulfillable, status, filter, customerId, options).then((request) => request(this.axios, this.basePath));
19690
17663
  }
19691
17664
 
19692
- /**
19693
- * Add Order Note
19694
- * @summary Add Order Note
19695
- * @param {number} id Order ID
19696
- * @param {PostAddOrderNoteRequest} [postAddOrderNoteRequest]
19697
- * @param {*} [options] Override http request option.
19698
- * @throws {RequiredError}
19699
- * @memberof OrdersApi
19700
- */
19701
- public postAddOrderNote(id: number, postAddOrderNoteRequest?: PostAddOrderNoteRequest, options?: RawAxiosRequestConfig) {
19702
- return OrdersApiFp(this.configuration).postAddOrderNote(id, postAddOrderNoteRequest, options).then((request) => request(this.axios, this.basePath));
19703
- }
19704
-
19705
17665
  /**
19706
17666
  * Create An Order (Admin)
19707
17667
  * @summary Create An Order (Admin)
@@ -19715,34 +17675,6 @@ export class OrdersApi extends BaseAPI {
19715
17675
  return OrdersApiFp(this.configuration).postCreateAdminOrder(readonly, adminOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
19716
17676
  }
19717
17677
 
19718
- /**
19719
- * Create Shipping Consignment
19720
- * @summary Create Shipping Consignment
19721
- * @param {number} id Order ID
19722
- * @param {number} shipmentId Shipment ID
19723
- * @param {ShippingRequestDTO} [shippingRequestDTO] Shipping Request
19724
- * @param {*} [options] Override http request option.
19725
- * @throws {RequiredError}
19726
- * @memberof OrdersApi
19727
- */
19728
- public postCreateConsignment(id: number, shipmentId: number, shippingRequestDTO?: ShippingRequestDTO, options?: RawAxiosRequestConfig) {
19729
- return OrdersApiFp(this.configuration).postCreateConsignment(id, shipmentId, shippingRequestDTO, options).then((request) => request(this.axios, this.basePath));
19730
- }
19731
-
19732
- /**
19733
- * Create Shipment (Admin)
19734
- * @summary Create Shipment (Admin)
19735
- * @param {number} id Order ID
19736
- * @param {number} batchId Batch ID
19737
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19738
- * @param {*} [options] Override http request option.
19739
- * @throws {RequiredError}
19740
- * @memberof OrdersApi
19741
- */
19742
- public postCreateShipment(id: number, batchId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19743
- return OrdersApiFp(this.configuration).postCreateShipment(id, batchId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19744
- }
19745
-
19746
17678
  /**
19747
17679
  * Create An Order (Beta)
19748
17680
  * @summary Create An Order (Beta)
@@ -19756,101 +17688,6 @@ export class OrdersApi extends BaseAPI {
19756
17688
  return OrdersApiFp(this.configuration).postGetOrders(readonly, customerOrderRequestDTO, options).then((request) => request(this.axios, this.basePath));
19757
17689
  }
19758
17690
 
19759
- /**
19760
- * Issue Credit (Admin)
19761
- * @summary Issue Credit (Admin)
19762
- * @param {number} id Order ID
19763
- * @param {CreditNoteDTO} [creditNoteDTO] Credit Request
19764
- * @param {*} [options] Override http request option.
19765
- * @throws {RequiredError}
19766
- * @memberof OrdersApi
19767
- */
19768
- public postIssueCredit(id: number, creditNoteDTO?: CreditNoteDTO, options?: RawAxiosRequestConfig) {
19769
- return OrdersApiFp(this.configuration).postIssueCredit(id, creditNoteDTO, options).then((request) => request(this.axios, this.basePath));
19770
- }
19771
-
19772
- /**
19773
- * Print Shipment Label
19774
- * @summary Print Shipment Label
19775
- * @param {number} id Order ID
19776
- * @param {number} shipmentId Shipment ID
19777
- * @param {PostPrintShippingLabelPrinterEnum} printer Printer
19778
- * @param {*} [options] Override http request option.
19779
- * @throws {RequiredError}
19780
- * @memberof OrdersApi
19781
- */
19782
- public postPrintShippingLabel(id: number, shipmentId: number, printer: PostPrintShippingLabelPrinterEnum, options?: RawAxiosRequestConfig) {
19783
- return OrdersApiFp(this.configuration).postPrintShippingLabel(id, shipmentId, printer, options).then((request) => request(this.axios, this.basePath));
19784
- }
19785
-
19786
- /**
19787
- * Send Order Email
19788
- * @summary Send Order Email
19789
- * @param {number} id Order ID
19790
- * @param {string} email Email Address
19791
- * @param {*} [options] Override http request option.
19792
- * @throws {RequiredError}
19793
- * @memberof OrdersApi
19794
- */
19795
- public postSendOrderEmail(id: number, email: string, options?: RawAxiosRequestConfig) {
19796
- return OrdersApiFp(this.configuration).postSendOrderEmail(id, email, options).then((request) => request(this.axios, this.basePath));
19797
- }
19798
-
19799
- /**
19800
- * Send Supplier Email
19801
- * @summary Send Supplier Email
19802
- * @param {number} id Order ID
19803
- * @param {number} batchId Batch ID
19804
- * @param {*} [options] Override http request option.
19805
- * @throws {RequiredError}
19806
- * @memberof OrdersApi
19807
- */
19808
- public postSendSupplierEmail(id: number, batchId: number, options?: RawAxiosRequestConfig) {
19809
- return OrdersApiFp(this.configuration).postSendSupplierEmail(id, batchId, options).then((request) => request(this.axios, this.basePath));
19810
- }
19811
-
19812
- /**
19813
- * Split Order
19814
- * @summary Split Order
19815
- * @param {number} id Order ID
19816
- * @param {PostSplitOrderRequest} [postSplitOrderRequest]
19817
- * @param {*} [options] Override http request option.
19818
- * @throws {RequiredError}
19819
- * @memberof OrdersApi
19820
- */
19821
- public postSplitOrder(id: number, postSplitOrderRequest?: PostSplitOrderRequest, options?: RawAxiosRequestConfig) {
19822
- return OrdersApiFp(this.configuration).postSplitOrder(id, postSplitOrderRequest, options).then((request) => request(this.axios, this.basePath));
19823
- }
19824
-
19825
- /**
19826
- * Allocate Items To Supplier
19827
- * @summary Allocate Items To Supplier
19828
- * @param {number} id Order ID
19829
- * @param {number} supplierId Supplier ID
19830
- * @param {PutAllocateItemsRequest} [putAllocateItemsRequest]
19831
- * @param {*} [options] Override http request option.
19832
- * @throws {RequiredError}
19833
- * @memberof OrdersApi
19834
- */
19835
- public putAllocateItems(id: number, supplierId: number, putAllocateItemsRequest?: PutAllocateItemsRequest, options?: RawAxiosRequestConfig) {
19836
- return OrdersApiFp(this.configuration).putAllocateItems(id, supplierId, putAllocateItemsRequest, options).then((request) => request(this.axios, this.basePath));
19837
- }
19838
-
19839
- /**
19840
- * Update Shipment (Admin)
19841
- * @summary Update Shipment (Admin)
19842
- * @param {number} id Order ID
19843
- * @param {number} batchId Batch ID
19844
- * @param {number} shipmentId Shipment ID
19845
- * @param {ShipmentRequestDTO} [shipmentRequestDTO] Shipment Request
19846
- * @param {*} [options] Override http request option.
19847
- * @throws {RequiredError}
19848
- * @memberof OrdersApi
19849
- */
19850
- public putCreateShipment(id: number, batchId: number, shipmentId: number, shipmentRequestDTO?: ShipmentRequestDTO, options?: RawAxiosRequestConfig) {
19851
- return OrdersApiFp(this.configuration).putCreateShipment(id, batchId, shipmentId, shipmentRequestDTO, options).then((request) => request(this.axios, this.basePath));
19852
- }
19853
-
19854
17691
  /**
19855
17692
  * Update An Order (Admin)
19856
17693
  * @summary Update An Order (Admin)
@@ -19900,15 +17737,6 @@ export const GetGetOrdersFilterEnum = {
19900
17737
  BackOrders: 'BACK_ORDERS'
19901
17738
  } as const;
19902
17739
  export type GetGetOrdersFilterEnum = typeof GetGetOrdersFilterEnum[keyof typeof GetGetOrdersFilterEnum];
19903
- /**
19904
- * @export
19905
- */
19906
- export const PostPrintShippingLabelPrinterEnum = {
19907
- NUMBER_1: 1,
19908
- NUMBER_2: 2,
19909
- NUMBER_3: 3
19910
- } as const;
19911
- export type PostPrintShippingLabelPrinterEnum = typeof PostPrintShippingLabelPrinterEnum[keyof typeof PostPrintShippingLabelPrinterEnum];
19912
17740
 
19913
17741
 
19914
17742
  /**