From 5a2f521b4aef0d8cdc709076440edfd0a077aaa3 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 12 Feb 2015 15:10:33 -0800 Subject: 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(-) (limited to 'BatchPayment') diff --git a/BatchPayment/Item.pm b/BatchPayment/Item.pm index d9a3ec7..ac11dae 100644 --- a/BatchPayment/Item.pm +++ b/BatchPayment/Item.pm @@ -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', -- cgit v1.2.1