backbone-inventory 0.15.0

Inventory: stock ledger of record (SLE) + moving-average valuation; emits COGS/asset AccountingPost (Delivery/Receipt -> GL)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
//! Inventory Module Handlers
//!
//! Generated by metaphor-schema. Do not edit manually.
//!
//! This module provides:
//! - AppState dependency injection container
//! - Custom handler integration points

use std::sync::Arc;

// Import all services
use crate::application::service::PickingBatchService;
use crate::application::service::DeliveryNoteService;
use crate::application::service::DeliveryNoteItemService;
use crate::application::service::InventoryCompanySettingService;
use crate::application::service::LandedCostService;
use crate::application::service::LandedCostLineService;
use crate::application::service::LandedCostAdjustmentLineService;
use crate::application::service::LocationService;
use crate::application::service::StockMoveService;
use crate::application::service::StockMoveLineService;
use crate::application::service::OperationTypeService;
use crate::application::service::TransferService;
use crate::application::service::RouteService;
use crate::application::service::RouteRuleService;
use crate::application::service::ReorderingRuleService;
use crate::application::service::PurchaseReceiptService;
use crate::application::service::PurchaseReceiptItemService;
use crate::application::service::QuantService;
use crate::application::service::ScrapService;
use crate::application::service::ScrapReasonTagService;
use crate::application::service::StockEntryService;
use crate::application::service::StockEntryItemService;
use crate::application::service::StockLedgerEntryService;
use crate::application::service::BinService;
use crate::application::service::StockReconciliationService;
use crate::application::service::StockReconciliationItemService;
use crate::application::service::PackageTypeService;
use crate::application::service::StorageCategoryService;
use crate::application::service::StorageCategoryCapacityService;
use crate::application::service::PutawayRuleService;
use crate::application::service::LotService;
use crate::application::service::PackageService;
use crate::application::service::WarehouseService;
use crate::application::service::StockItemService;

/// Application state for dependency injection.
///
/// This struct holds references to all module services
/// and is passed to HTTP handlers via Axum's State extractor.
///
/// # Example
///
/// ```ignore
/// use axum::extract::State;
///
/// async fn custom_handler(
///     State(state): State<AppState>,
/// ) -> impl IntoResponse {
///     // Access services via state
/// }
/// ```
#[derive(Clone)]
pub struct AppState {
    /// PickingBatch service
    pub picking_batch_service: Arc<PickingBatchService>,
    /// DeliveryNote service
    pub delivery_note_service: Arc<DeliveryNoteService>,
    /// DeliveryNoteItem service
    pub delivery_note_item_service: Arc<DeliveryNoteItemService>,
    /// InventoryCompanySetting service
    pub inventory_company_setting_service: Arc<InventoryCompanySettingService>,
    /// LandedCost service
    pub landed_cost_service: Arc<LandedCostService>,
    /// LandedCostLine service
    pub landed_cost_line_service: Arc<LandedCostLineService>,
    /// LandedCostAdjustmentLine service
    pub landed_cost_adjustment_line_service: Arc<LandedCostAdjustmentLineService>,
    /// Location service
    pub location_service: Arc<LocationService>,
    /// StockMove service
    pub stock_move_service: Arc<StockMoveService>,
    /// StockMoveLine service
    pub stock_move_line_service: Arc<StockMoveLineService>,
    /// OperationType service
    pub operation_type_service: Arc<OperationTypeService>,
    /// Transfer service
    pub transfer_service: Arc<TransferService>,
    /// Route service
    pub route_service: Arc<RouteService>,
    /// RouteRule service
    pub route_rule_service: Arc<RouteRuleService>,
    /// ReorderingRule service
    pub reordering_rule_service: Arc<ReorderingRuleService>,
    /// PurchaseReceipt service
    pub purchase_receipt_service: Arc<PurchaseReceiptService>,
    /// PurchaseReceiptItem service
    pub purchase_receipt_item_service: Arc<PurchaseReceiptItemService>,
    /// Quant service
    pub quant_service: Arc<QuantService>,
    /// Scrap service
    pub scrap_service: Arc<ScrapService>,
    /// ScrapReasonTag service
    pub scrap_reason_tag_service: Arc<ScrapReasonTagService>,
    /// StockEntry service
    pub stock_entry_service: Arc<StockEntryService>,
    /// StockEntryItem service
    pub stock_entry_item_service: Arc<StockEntryItemService>,
    /// StockLedgerEntry service
    pub stock_ledger_entry_service: Arc<StockLedgerEntryService>,
    /// Bin service
    pub bin_service: Arc<BinService>,
    /// StockReconciliation service
    pub stock_reconciliation_service: Arc<StockReconciliationService>,
    /// StockReconciliationItem service
    pub stock_reconciliation_item_service: Arc<StockReconciliationItemService>,
    /// PackageType service
    pub package_type_service: Arc<PackageTypeService>,
    /// StorageCategory service
    pub storage_category_service: Arc<StorageCategoryService>,
    /// StorageCategoryCapacity service
    pub storage_category_capacity_service: Arc<StorageCategoryCapacityService>,
    /// PutawayRule service
    pub putaway_rule_service: Arc<PutawayRuleService>,
    /// Lot service
    pub lot_service: Arc<LotService>,
    /// Package service
    pub package_service: Arc<PackageService>,
    /// Warehouse service
    pub warehouse_service: Arc<WarehouseService>,
    /// StockItem service
    pub stock_item_service: Arc<StockItemService>,
}

impl AppState {
    /// Create a new AppState with all services.
    pub fn new(
        picking_batch_service: Arc<PickingBatchService>,
        delivery_note_service: Arc<DeliveryNoteService>,
        delivery_note_item_service: Arc<DeliveryNoteItemService>,
        inventory_company_setting_service: Arc<InventoryCompanySettingService>,
        landed_cost_service: Arc<LandedCostService>,
        landed_cost_line_service: Arc<LandedCostLineService>,
        landed_cost_adjustment_line_service: Arc<LandedCostAdjustmentLineService>,
        location_service: Arc<LocationService>,
        stock_move_service: Arc<StockMoveService>,
        stock_move_line_service: Arc<StockMoveLineService>,
        operation_type_service: Arc<OperationTypeService>,
        transfer_service: Arc<TransferService>,
        route_service: Arc<RouteService>,
        route_rule_service: Arc<RouteRuleService>,
        reordering_rule_service: Arc<ReorderingRuleService>,
        purchase_receipt_service: Arc<PurchaseReceiptService>,
        purchase_receipt_item_service: Arc<PurchaseReceiptItemService>,
        quant_service: Arc<QuantService>,
        scrap_service: Arc<ScrapService>,
        scrap_reason_tag_service: Arc<ScrapReasonTagService>,
        stock_entry_service: Arc<StockEntryService>,
        stock_entry_item_service: Arc<StockEntryItemService>,
        stock_ledger_entry_service: Arc<StockLedgerEntryService>,
        bin_service: Arc<BinService>,
        stock_reconciliation_service: Arc<StockReconciliationService>,
        stock_reconciliation_item_service: Arc<StockReconciliationItemService>,
        package_type_service: Arc<PackageTypeService>,
        storage_category_service: Arc<StorageCategoryService>,
        storage_category_capacity_service: Arc<StorageCategoryCapacityService>,
        putaway_rule_service: Arc<PutawayRuleService>,
        lot_service: Arc<LotService>,
        package_service: Arc<PackageService>,
        warehouse_service: Arc<WarehouseService>,
        stock_item_service: Arc<StockItemService>
    ) -> Self {
        Self {
            picking_batch_service,
            delivery_note_service,
            delivery_note_item_service,
            inventory_company_setting_service,
            landed_cost_service,
            landed_cost_line_service,
            landed_cost_adjustment_line_service,
            location_service,
            stock_move_service,
            stock_move_line_service,
            operation_type_service,
            transfer_service,
            route_service,
            route_rule_service,
            reordering_rule_service,
            purchase_receipt_service,
            purchase_receipt_item_service,
            quant_service,
            scrap_service,
            scrap_reason_tag_service,
            stock_entry_service,
            stock_entry_item_service,
            stock_ledger_entry_service,
            bin_service,
            stock_reconciliation_service,
            stock_reconciliation_item_service,
            package_type_service,
            storage_category_service,
            storage_category_capacity_service,
            putaway_rule_service,
            lot_service,
            package_service,
            warehouse_service,
            stock_item_service,
        }
    }

    /// Create AppState from module instance.
    pub fn from_module(module: &crate::InventoryModule) -> Self {
        Self {
            picking_batch_service: module.picking_batch_service.clone(),
            delivery_note_service: module.delivery_note_service.clone(),
            delivery_note_item_service: module.delivery_note_item_service.clone(),
            inventory_company_setting_service: module.inventory_company_setting_service.clone(),
            landed_cost_service: module.landed_cost_service.clone(),
            landed_cost_line_service: module.landed_cost_line_service.clone(),
            landed_cost_adjustment_line_service: module.landed_cost_adjustment_line_service.clone(),
            location_service: module.location_service.clone(),
            stock_move_service: module.stock_move_service.clone(),
            stock_move_line_service: module.stock_move_line_service.clone(),
            operation_type_service: module.operation_type_service.clone(),
            transfer_service: module.transfer_service.clone(),
            route_service: module.route_service.clone(),
            route_rule_service: module.route_rule_service.clone(),
            reordering_rule_service: module.reordering_rule_service.clone(),
            purchase_receipt_service: module.purchase_receipt_service.clone(),
            purchase_receipt_item_service: module.purchase_receipt_item_service.clone(),
            quant_service: module.quant_service.clone(),
            scrap_service: module.scrap_service.clone(),
            scrap_reason_tag_service: module.scrap_reason_tag_service.clone(),
            stock_entry_service: module.stock_entry_service.clone(),
            stock_entry_item_service: module.stock_entry_item_service.clone(),
            stock_ledger_entry_service: module.stock_ledger_entry_service.clone(),
            bin_service: module.bin_service.clone(),
            stock_reconciliation_service: module.stock_reconciliation_service.clone(),
            stock_reconciliation_item_service: module.stock_reconciliation_item_service.clone(),
            package_type_service: module.package_type_service.clone(),
            storage_category_service: module.storage_category_service.clone(),
            storage_category_capacity_service: module.storage_category_capacity_service.clone(),
            putaway_rule_service: module.putaway_rule_service.clone(),
            lot_service: module.lot_service.clone(),
            package_service: module.package_service.clone(),
            warehouse_service: module.warehouse_service.clone(),
            stock_item_service: module.stock_item_service.clone(),
        }
    }
}

/// Builder for AppState.
///
/// Allows incremental construction of AppState.
#[derive(Default)]
pub struct AppStateBuilder {
    picking_batch_service: Option<Arc<PickingBatchService>>,
    delivery_note_service: Option<Arc<DeliveryNoteService>>,
    delivery_note_item_service: Option<Arc<DeliveryNoteItemService>>,
    inventory_company_setting_service: Option<Arc<InventoryCompanySettingService>>,
    landed_cost_service: Option<Arc<LandedCostService>>,
    landed_cost_line_service: Option<Arc<LandedCostLineService>>,
    landed_cost_adjustment_line_service: Option<Arc<LandedCostAdjustmentLineService>>,
    location_service: Option<Arc<LocationService>>,
    stock_move_service: Option<Arc<StockMoveService>>,
    stock_move_line_service: Option<Arc<StockMoveLineService>>,
    operation_type_service: Option<Arc<OperationTypeService>>,
    transfer_service: Option<Arc<TransferService>>,
    route_service: Option<Arc<RouteService>>,
    route_rule_service: Option<Arc<RouteRuleService>>,
    reordering_rule_service: Option<Arc<ReorderingRuleService>>,
    purchase_receipt_service: Option<Arc<PurchaseReceiptService>>,
    purchase_receipt_item_service: Option<Arc<PurchaseReceiptItemService>>,
    quant_service: Option<Arc<QuantService>>,
    scrap_service: Option<Arc<ScrapService>>,
    scrap_reason_tag_service: Option<Arc<ScrapReasonTagService>>,
    stock_entry_service: Option<Arc<StockEntryService>>,
    stock_entry_item_service: Option<Arc<StockEntryItemService>>,
    stock_ledger_entry_service: Option<Arc<StockLedgerEntryService>>,
    bin_service: Option<Arc<BinService>>,
    stock_reconciliation_service: Option<Arc<StockReconciliationService>>,
    stock_reconciliation_item_service: Option<Arc<StockReconciliationItemService>>,
    package_type_service: Option<Arc<PackageTypeService>>,
    storage_category_service: Option<Arc<StorageCategoryService>>,
    storage_category_capacity_service: Option<Arc<StorageCategoryCapacityService>>,
    putaway_rule_service: Option<Arc<PutawayRuleService>>,
    lot_service: Option<Arc<LotService>>,
    package_service: Option<Arc<PackageService>>,
    warehouse_service: Option<Arc<WarehouseService>>,
    stock_item_service: Option<Arc<StockItemService>>,
}

impl AppStateBuilder {
    /// Create a new builder.
    pub fn new() -> Self {
        Self::default()
    }

    /// Set the PickingBatch service.
    pub fn with_picking_batch_service(mut self, service: Arc<PickingBatchService>) -> Self {
        self.picking_batch_service = Some(service);
        self
    }

    /// Set the DeliveryNote service.
    pub fn with_delivery_note_service(mut self, service: Arc<DeliveryNoteService>) -> Self {
        self.delivery_note_service = Some(service);
        self
    }

    /// Set the DeliveryNoteItem service.
    pub fn with_delivery_note_item_service(mut self, service: Arc<DeliveryNoteItemService>) -> Self {
        self.delivery_note_item_service = Some(service);
        self
    }

    /// Set the InventoryCompanySetting service.
    pub fn with_inventory_company_setting_service(mut self, service: Arc<InventoryCompanySettingService>) -> Self {
        self.inventory_company_setting_service = Some(service);
        self
    }

    /// Set the LandedCost service.
    pub fn with_landed_cost_service(mut self, service: Arc<LandedCostService>) -> Self {
        self.landed_cost_service = Some(service);
        self
    }

    /// Set the LandedCostLine service.
    pub fn with_landed_cost_line_service(mut self, service: Arc<LandedCostLineService>) -> Self {
        self.landed_cost_line_service = Some(service);
        self
    }

    /// Set the LandedCostAdjustmentLine service.
    pub fn with_landed_cost_adjustment_line_service(mut self, service: Arc<LandedCostAdjustmentLineService>) -> Self {
        self.landed_cost_adjustment_line_service = Some(service);
        self
    }

    /// Set the Location service.
    pub fn with_location_service(mut self, service: Arc<LocationService>) -> Self {
        self.location_service = Some(service);
        self
    }

    /// Set the StockMove service.
    pub fn with_stock_move_service(mut self, service: Arc<StockMoveService>) -> Self {
        self.stock_move_service = Some(service);
        self
    }

    /// Set the StockMoveLine service.
    pub fn with_stock_move_line_service(mut self, service: Arc<StockMoveLineService>) -> Self {
        self.stock_move_line_service = Some(service);
        self
    }

    /// Set the OperationType service.
    pub fn with_operation_type_service(mut self, service: Arc<OperationTypeService>) -> Self {
        self.operation_type_service = Some(service);
        self
    }

    /// Set the Transfer service.
    pub fn with_transfer_service(mut self, service: Arc<TransferService>) -> Self {
        self.transfer_service = Some(service);
        self
    }

    /// Set the Route service.
    pub fn with_route_service(mut self, service: Arc<RouteService>) -> Self {
        self.route_service = Some(service);
        self
    }

    /// Set the RouteRule service.
    pub fn with_route_rule_service(mut self, service: Arc<RouteRuleService>) -> Self {
        self.route_rule_service = Some(service);
        self
    }

    /// Set the ReorderingRule service.
    pub fn with_reordering_rule_service(mut self, service: Arc<ReorderingRuleService>) -> Self {
        self.reordering_rule_service = Some(service);
        self
    }

    /// Set the PurchaseReceipt service.
    pub fn with_purchase_receipt_service(mut self, service: Arc<PurchaseReceiptService>) -> Self {
        self.purchase_receipt_service = Some(service);
        self
    }

    /// Set the PurchaseReceiptItem service.
    pub fn with_purchase_receipt_item_service(mut self, service: Arc<PurchaseReceiptItemService>) -> Self {
        self.purchase_receipt_item_service = Some(service);
        self
    }

    /// Set the Quant service.
    pub fn with_quant_service(mut self, service: Arc<QuantService>) -> Self {
        self.quant_service = Some(service);
        self
    }

    /// Set the Scrap service.
    pub fn with_scrap_service(mut self, service: Arc<ScrapService>) -> Self {
        self.scrap_service = Some(service);
        self
    }

    /// Set the ScrapReasonTag service.
    pub fn with_scrap_reason_tag_service(mut self, service: Arc<ScrapReasonTagService>) -> Self {
        self.scrap_reason_tag_service = Some(service);
        self
    }

    /// Set the StockEntry service.
    pub fn with_stock_entry_service(mut self, service: Arc<StockEntryService>) -> Self {
        self.stock_entry_service = Some(service);
        self
    }

    /// Set the StockEntryItem service.
    pub fn with_stock_entry_item_service(mut self, service: Arc<StockEntryItemService>) -> Self {
        self.stock_entry_item_service = Some(service);
        self
    }

    /// Set the StockLedgerEntry service.
    pub fn with_stock_ledger_entry_service(mut self, service: Arc<StockLedgerEntryService>) -> Self {
        self.stock_ledger_entry_service = Some(service);
        self
    }

    /// Set the Bin service.
    pub fn with_bin_service(mut self, service: Arc<BinService>) -> Self {
        self.bin_service = Some(service);
        self
    }

    /// Set the StockReconciliation service.
    pub fn with_stock_reconciliation_service(mut self, service: Arc<StockReconciliationService>) -> Self {
        self.stock_reconciliation_service = Some(service);
        self
    }

    /// Set the StockReconciliationItem service.
    pub fn with_stock_reconciliation_item_service(mut self, service: Arc<StockReconciliationItemService>) -> Self {
        self.stock_reconciliation_item_service = Some(service);
        self
    }

    /// Set the PackageType service.
    pub fn with_package_type_service(mut self, service: Arc<PackageTypeService>) -> Self {
        self.package_type_service = Some(service);
        self
    }

    /// Set the StorageCategory service.
    pub fn with_storage_category_service(mut self, service: Arc<StorageCategoryService>) -> Self {
        self.storage_category_service = Some(service);
        self
    }

    /// Set the StorageCategoryCapacity service.
    pub fn with_storage_category_capacity_service(mut self, service: Arc<StorageCategoryCapacityService>) -> Self {
        self.storage_category_capacity_service = Some(service);
        self
    }

    /// Set the PutawayRule service.
    pub fn with_putaway_rule_service(mut self, service: Arc<PutawayRuleService>) -> Self {
        self.putaway_rule_service = Some(service);
        self
    }

    /// Set the Lot service.
    pub fn with_lot_service(mut self, service: Arc<LotService>) -> Self {
        self.lot_service = Some(service);
        self
    }

    /// Set the Package service.
    pub fn with_package_service(mut self, service: Arc<PackageService>) -> Self {
        self.package_service = Some(service);
        self
    }

    /// Set the Warehouse service.
    pub fn with_warehouse_service(mut self, service: Arc<WarehouseService>) -> Self {
        self.warehouse_service = Some(service);
        self
    }

    /// Set the StockItem service.
    pub fn with_stock_item_service(mut self, service: Arc<StockItemService>) -> Self {
        self.stock_item_service = Some(service);
        self
    }

    /// Build the AppState.
    ///
    /// # Panics
    ///
    /// Panics if any required service is not set.
    pub fn build(self) -> AppState {
        AppState {
            picking_batch_service: self.picking_batch_service.expect("picking_batch_service is required"),
            delivery_note_service: self.delivery_note_service.expect("delivery_note_service is required"),
            delivery_note_item_service: self.delivery_note_item_service.expect("delivery_note_item_service is required"),
            inventory_company_setting_service: self.inventory_company_setting_service.expect("inventory_company_setting_service is required"),
            landed_cost_service: self.landed_cost_service.expect("landed_cost_service is required"),
            landed_cost_line_service: self.landed_cost_line_service.expect("landed_cost_line_service is required"),
            landed_cost_adjustment_line_service: self.landed_cost_adjustment_line_service.expect("landed_cost_adjustment_line_service is required"),
            location_service: self.location_service.expect("location_service is required"),
            stock_move_service: self.stock_move_service.expect("stock_move_service is required"),
            stock_move_line_service: self.stock_move_line_service.expect("stock_move_line_service is required"),
            operation_type_service: self.operation_type_service.expect("operation_type_service is required"),
            transfer_service: self.transfer_service.expect("transfer_service is required"),
            route_service: self.route_service.expect("route_service is required"),
            route_rule_service: self.route_rule_service.expect("route_rule_service is required"),
            reordering_rule_service: self.reordering_rule_service.expect("reordering_rule_service is required"),
            purchase_receipt_service: self.purchase_receipt_service.expect("purchase_receipt_service is required"),
            purchase_receipt_item_service: self.purchase_receipt_item_service.expect("purchase_receipt_item_service is required"),
            quant_service: self.quant_service.expect("quant_service is required"),
            scrap_service: self.scrap_service.expect("scrap_service is required"),
            scrap_reason_tag_service: self.scrap_reason_tag_service.expect("scrap_reason_tag_service is required"),
            stock_entry_service: self.stock_entry_service.expect("stock_entry_service is required"),
            stock_entry_item_service: self.stock_entry_item_service.expect("stock_entry_item_service is required"),
            stock_ledger_entry_service: self.stock_ledger_entry_service.expect("stock_ledger_entry_service is required"),
            bin_service: self.bin_service.expect("bin_service is required"),
            stock_reconciliation_service: self.stock_reconciliation_service.expect("stock_reconciliation_service is required"),
            stock_reconciliation_item_service: self.stock_reconciliation_item_service.expect("stock_reconciliation_item_service is required"),
            package_type_service: self.package_type_service.expect("package_type_service is required"),
            storage_category_service: self.storage_category_service.expect("storage_category_service is required"),
            storage_category_capacity_service: self.storage_category_capacity_service.expect("storage_category_capacity_service is required"),
            putaway_rule_service: self.putaway_rule_service.expect("putaway_rule_service is required"),
            lot_service: self.lot_service.expect("lot_service is required"),
            package_service: self.package_service.expect("package_service is required"),
            warehouse_service: self.warehouse_service.expect("warehouse_service is required"),
            stock_item_service: self.stock_item_service.expect("stock_item_service is required"),
        }
    }
}