diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-02-12 15:10:33 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-02-12 15:10:33 -0800 |
commit | 5a2f521b4aef0d8cdc709076440edfd0a077aaa3 (patch) | |
tree | 53a72c05d75a8f9012fc48eaff9898049b8e0411 /BatchPayment | |
parent | 0bf7a1ffc63873be09e848b900d89eb23cb99beb (diff) |
fix warning about Action: Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref.
Diffstat (limited to 'BatchPayment')
-rw-r--r-- | BatchPayment/Item.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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', |