fix warning about Action: Passing a list of values to enum is deprecated. Enum values...
authorIvan Kohler <ivan@freeside.biz>
Thu, 12 Feb 2015 23:12:36 +0000 (15:12 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 12 Feb 2015 23:12:36 +0000 (15:12 -0800)
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