From 7f89ac335f82a836dfce165f72839f3b3c67070a Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 12 Feb 2015 15:12:36 -0800 Subject: [PATCH] fix warning about Action: Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref. --- BatchPayment/Item.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1