fix warning about Action: Passing a list of values to enum is deprecated. Enum values...
[Business-BatchPayment.git] / BatchPayment / Item.pm
index d9a3ec7..ac11dae 100644 (file)
@@ -31,7 +31,7 @@ Item TO the account identified by the Processor object's login settings."
 
 =cut
 
-enum 'Action' => qw(payment credit);
+enum 'Action' => [qw(payment credit)];
 coerce 'Action', from 'Str', via { lc $_ };
 has action => (
   is  => 'rw',