updatePhysicalInventory method

Future<PhysicalInventory> updatePhysicalInventory(
  1. String inventoryId,
  2. UpdatePhysicalInventoryRequest request
)

Update physical inventory

Implementation

Future<PhysicalInventory> updatePhysicalInventory(
  String inventoryId,
  UpdatePhysicalInventoryRequest request,
) async {
  final response = await _apiClient.put<Map<String, dynamic>>(
    '/api/v1/inventory/physical-inventories/$inventoryId',
    data: request.toJson(),
  );

  return PhysicalInventory.fromJson(response);
}