# Shop Royal Mail reference

<!-- prettier-ignore-start -->

Developer reference for `capell-app/shop-royal-mail`. Start with the [README](../README.md) for what the extension does and how to install it.

## Package Details

Shop Royal Mail is an **Available** Capell package in the **Capell Commerce** product group. It ships as `capell-app/shop-royal-mail` and extends these surfaces: shared.

- Status: Available
- Tier: paid
- Bundle: commerce
- Composer package: `capell-app/shop-royal-mail`
- Namespace: `Capell\ShopRoyalMail`
- Theme key: not applicable

## Technical Shape

### Service providers

- `Capell\ShopRoyalMail\ShopRoyalMailMigrationMetadataServiceProvider`
- `Capell\ShopRoyalMail\ShopRoyalMailServiceProvider`

### Config files

- `packages/shop-royal-mail/config/capell-shop-royal-mail.php`

### Migrations

- `packages/shop-royal-mail/database/migrations/2026_11_24_000001_create_shop_royal_mail_consignments.php`
- `packages/shop-royal-mail/database/migrations/2026_11_27_000002_add_shop_royal_mail_label_claim.php`

### Models

- `ShopRoyalMailConsignment`

### Actions

- `CreateShopRoyalMailConsignmentAction`
- `SyncShopRoyalMailDispatchAction`

### Data objects

- `RoyalMailConfiguration`

### Command signatures

- `shop-royal-mail`

### Manifest action API

- `createConsignment: Capell\ShopRoyalMail\Actions\CreateShopRoyalMailConsignmentAction`
- `syncDispatch: Capell\ShopRoyalMail\Actions\SyncShopRoyalMailDispatchAction`

### Console command classes

- `ShopRoyalMailCommand`

### Manifest contributions

- `configurator: Capell\ShopRoyalMail\Manifest\ShopRoyalMailLabelContribution`
- `console-command: Capell\ShopRoyalMail\Manifest\ShopRoyalMailCommandContribution`
- `health-check: Capell\ShopRoyalMail\Health\ShopRoyalMailHealthCheck`

### Health checks

- `Capell\ShopRoyalMail\Health\ShopRoyalMailHealthCheck`

## Data Model

- Required tables: `shop_royal_mail_consignments`.
- Protected tables: `shop_royal_mail_consignments`.
- Models: `ShopRoyalMailConsignment`.
- Migration files: `2026_11_24_000001_create_shop_royal_mail_consignments.php`, `2026_11_27_000002_add_shop_royal_mail_label_claim.php`.
- Migration impact: run host migrations through the package install flow before opening package surfaces.
- Deletion/retention behaviour: migrations declare restricted-delete relationships; no timed pruning or retention schedule is declared in `capell.json`.

<!-- prettier-ignore-end -->