fix warning about Action: Passing a list of values to enum is deprecated. Enum values...
[Business-BatchPayment.git] / BatchPayment / Item.pm
index ac11dae..f93f5b3 100644 (file)
@@ -49,7 +49,7 @@ and if set on the Processor object, this is not required.
 =cut
 
 # are we okay with these names?
-enum 'PaymentType' => qw( CC ECHECK );
+enum 'PaymentType' => [qw( CC ECHECK )];
 has payment_type => ( is  => 'rw', isa => 'PaymentType' );
 
 =item amount