From: Ivan Kohler Date: Thu, 12 Feb 2015 23:12:36 +0000 (-0800) Subject: fix warning about Action: Passing a list of values to enum is deprecated. Enum values... X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=7f89ac335f82a836dfce165f72839f3b3c67070a;p=Business-BatchPayment.git fix warning about Action: Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref. --- diff --git a/BatchPayment/Item.pm b/BatchPayment/Item.pm index ac11dae..f93f5b3 100644 --- a/BatchPayment/Item.pm +++ b/BatchPayment/Item.pm @@ -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