=cut
-enum 'Action' => qw(payment credit);
+enum 'Action' => [qw(payment credit)];
coerce 'Action', from 'Str', via { lc $_ };
has action => (
is => 'rw',
=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
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