fix warning about Action: Passing a list of values to enum is deprecated. Enum values...
authorIvan Kohler <ivan@freeside.biz>
Thu, 12 Feb 2015 23:10:33 +0000 (15:10 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 12 Feb 2015 23:10:33 +0000 (15:10 -0800)
BatchPayment.pm
BatchPayment/Item.pm
Changes

index 86ee6b9..abc2a83 100644 (file)
@@ -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
 
index d9a3ec7..ac11dae 100644 (file)
@@ -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 (file)
--- 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