# GetOutboundShipment

## Overview

GetOutboundShipment retrieves a single OutboundShipment by ID, including all associated OutboundShipmentLine rows.

## Business Rules

- Lookup key is OutboundShipment id
- Returns the full OutboundShipment record with nested OutboundShipmentLine records
- Returns null with an empty line list when no OutboundShipment matches the given ID

## Process Flow

```mermaid
flowchart TD
    A[Receive outbound shipment id] --> B[Select OutboundShipment by id]
    B --> C{Shipment found?}
    C -->|No| D[Return null and empty lines]
    C -->|Yes| E[Select OutboundShipmentLine rows]
    E --> F[Return shipment and lines]
```

## External Dependencies

- None

## Error Scenarios

- Returns null if the outbound shipment is not found

## Test Cases

- returns outbound shipment with lines when found
- returns null when outbound shipment does not exist
- returns outbound shipment with empty lines when no lines exist
