From 5a2f521b4aef0d8cdc709076440edfd0a077aaa3 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 12 Feb 2015 15:10:33 -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.pm | 6 +----- BatchPayment/Item.pm | 2 +- Changes | 3 +++ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/BatchPayment.pm b/BatchPayment.pm index 86ee6b9..abc2a83 100644 --- a/BatchPayment.pm +++ b/BatchPayment.pm @@ -16,13 +16,9 @@ $DEBUG = 0; Business::BatchPayment - Batch-oriented payment processing -=head1 VERSION - -Version 0.01 - =cut -our $VERSION = '0.01'; +our $VERSION = '0.02_01'; =head1 SYNOPSIS 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', diff --git a/Changes b/Changes index 8d5f1fc..ade973c 100644 --- a/Changes +++ b/Changes @@ -1,4 +1,7 @@ Revision history for Business-BatchPayment +0.02_01 unreleased + - fix warning about Action: Passing a list of values to enum is deprecated. Enum values should be wrapped in an arrayref. + 0.01 unreleased -- 2.11.0