Skip to content

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:

OptionDescription
--statusFilter by status (open, in_progress, resolved, closed)
--customerFilter by customer email or ID
--supplierFilter by supplier email or ID
--productFilter by product ID
--limitLimit results (default: 50)
--unassignedShow 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.com

Show 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:

ArgumentDescription
product-idThe product ID to create claim for
descriptionDescription 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:

ArgumentDescription
claim-idThe claim ID
statusNew status: open, in_progress, resolved, closed

Options:

OptionDescription
--force, -fForce update without confirmation

Example:

bash
php bin/console app:claim:status 123 in_progress

Assign Supplier

Assign suppliers to warranty claims with multiple assignment methods.

bash
php bin/console app:claim:assign-supplier [options]

Options:

OptionDescription
--claim, -cClaim ID to assign supplier to
--product, -pProduct ID - assigns to all active claims
--supplier, -sSupplier email or user ID
--match-brand, -mAuto-match supplier by brand name
--auto-assign, -aAuto-assign all unassigned claims
--dry-runPreview 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-run

Set 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:

ArgumentDescription
claim-idThe claim ID
supplierSupplier email or user ID

Options:

OptionDescription
--statusAlso update claim status

Example:

bash
php bin/console app:claim:set-supplier 123 supplier@example.com --status=in_progress

List Claim Messages

List all messages for a warranty claim.

bash
php bin/console app:claim:messages <claim-id> [options]

Options:

OptionDescription
--full, -fShow full message content (not truncated)
--limit, -lLimit number of messages (default: 50)

Example:

bash
php bin/console app:claim:messages 123 --full --limit=10

Send Claim Notification

Send push notifications about claims.

bash
php bin/console app:claim:notify <claim-id> [options]

Options:

OptionDescription
--customer, -cSend to customer
--supplier, -sSend to supplier
--both, -bSend to both parties
--titleCustom notification title
--bodyCustom 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.

MyWarranties - Warranty Management System