``` ruby
case @params['status']
when 'open';             'Pending'
when 'paidout', 'paid';  'Completed'
else                     'Failure'
end
```