Appearance
Claim Management Commands
Console commands for managing warranty claims.
List Claims
List warranty claims with optional filters.
bash
php bin/console app:claim:list [options]Options:
| Option | Description |
|---|---|
--status | Filter by status (open, in_progress, resolved, closed) |
--customer | Filter by customer email or ID |
--supplier | Filter by supplier email or ID |
--product | Filter by product ID |
--limit | Limit results (default: 50) |
--unassigned | Show only unassigned claims |
Examples:
bash
# List all open claims
php bin/console app:claim:list --status=open
# List unassigned claims
php bin/console app:claim:list --unassigned
# List claims by supplier
php bin/console app:claim:list --status=in_progress --supplier=supplier@example.comShow Claim Details
Display detailed information about a warranty claim.
bash
php bin/console app:claim:show <claim-id>Output includes:
- Claim details (ID, status, dates)
- Product information
- Customer information
- Supplier information
- All messages in the conversation
Create Claim
Create a new warranty claim for a product.
bash
php bin/console app:claim:create <product-id> <description>Arguments:
| Argument | Description |
|---|---|
product-id | The product ID to create claim for |
description | Description of the issue |
Example:
bash
php bin/console app:claim:create 123 "The screen is cracked and not responding to touch"TIP
The command will validate that:
- The product exists
- The product has an active warranty
- No other active claim exists for the product
Update Claim Status
Update the status of a warranty claim.
bash
php bin/console app:claim:status <claim-id> <status> [--force]Arguments:
| Argument | Description |
|---|---|
claim-id | The claim ID |
status | New status: open, in_progress, resolved, closed |
Options:
| Option | Description |
|---|---|
--force, -f | Force update without confirmation |
Example:
bash
php bin/console app:claim:status 123 in_progressAssign Supplier
Assign suppliers to warranty claims with multiple assignment methods.
bash
php bin/console app:claim:assign-supplier [options]Options:
| Option | Description |
|---|---|
--claim, -c | Claim ID to assign supplier to |
--product, -p | Product ID - assigns to all active claims |
--supplier, -s | Supplier email or user ID |
--match-brand, -m | Auto-match supplier by brand name |
--auto-assign, -a | Auto-assign all unassigned claims |
--dry-run | Preview changes without applying |
Examples:
bash
# Manual assignment
php bin/console app:claim:assign-supplier --claim=123 --supplier=supplier@example.com
# Auto-assign all unassigned claims by brand
php bin/console app:claim:assign-supplier --auto-assign --match-brand
# Preview auto-assignment
php bin/console app:claim:assign-supplier --auto-assign --match-brand --dry-runSet Claim Supplier
Set or update the supplier for a specific claim.
bash
php bin/console app:claim:set-supplier <claim-id> <supplier> [--status=<status>]Arguments:
| Argument | Description |
|---|---|
claim-id | The claim ID |
supplier | Supplier email or user ID |
Options:
| Option | Description |
|---|---|
--status | Also update claim status |
Example:
bash
php bin/console app:claim:set-supplier 123 supplier@example.com --status=in_progressList Claim Messages
List all messages for a warranty claim.
bash
php bin/console app:claim:messages <claim-id> [options]Options:
| Option | Description |
|---|---|
--full, -f | Show full message content (not truncated) |
--limit, -l | Limit number of messages (default: 50) |
Example:
bash
php bin/console app:claim:messages 123 --full --limit=10Send Claim Notification
Send push notifications about claims.
bash
php bin/console app:claim:notify <claim-id> [options]Options:
| Option | Description |
|---|---|
--customer, -c | Send to customer |
--supplier, -s | Send to supplier |
--both, -b | Send to both parties |
--title | Custom notification title |
--body | Custom notification body |
Example:
bash
php bin/console app:claim:notify 123 --both --title="Claim Update" --body="Your claim status has changed"Close Claim
Close a warranty claim permanently.
bash
php bin/console app:claim:close <claim-id> [--force]WARNING
Closed claims cannot be reopened. Use the --force flag to skip the confirmation prompt.
Delete Claim
Delete a warranty claim and all associated messages.
bash
php bin/console app:claim:delete <id> [--force]DANGER
This action is irreversible. All claim data and messages will be permanently deleted.
