true, 'groups' => ['mutation'], ], normalizationContext: [ 'groups' => ['mutation'], ], description: 'Handle gateway return (success/cancel/failure). Captures the gateway order on success and fills express addresses if forwarded.', ), ] )] class PaymentCallback { #[ApiProperty(identifier: true, readable: true, writable: false)] #[Groups(['mutation'])] public ?int $id = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['mutation'])] public bool $success = false; #[ApiProperty(readable: true, writable: false)] #[Groups(['mutation'])] public string $message = ''; #[ApiProperty(readable: true, writable: false)] #[Groups(['mutation'])] public ?string $orderId = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['mutation'])] public ?string $status = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['mutation'])] public ?string $orderStatus = null; #[ApiProperty(readable: true, writable: false)] #[Groups(['mutation'])] public ?string $gatewayStatus = null; }