« lib/WebService/Braintree/_/AccountUpdaterDailyReport.pm
↑ Summary
lib/WebService/Braintree/_/AddOn.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::_::AchMandate; | ||
| 4 | 22 | $WebService::Braintree::_::AchMandate::VERSION = '1.7'; | |
| 5 | 22 | ▶ | use 5.010_001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 22 | ▶ | use strictures 1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | WebService::Braintree::_::AchMandate | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class represents a ACH mandate. | ||
| 15 | |||
| 16 | This class will only be created as part of a L<response|WebService::Braintree::Result> or L<error response|WebService::Braintree::ErrorResult>. | ||
| 17 | |||
| 18 | =cut | ||
| 19 | |||
| 20 | 22 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | 22 | extends 'WebService::Braintree::_'; | |
| 23 | |||
| 24 | =head1 ATTRIBUTES | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | =head2 accepted_at() | ||
| 29 | |||
| 30 | This is the date this ACH mandate was accepted. | ||
| 31 | |||
| 32 | =cut | ||
| 33 | |||
| 34 | #use Scalar::Util qw(blessed); | ||
| 35 | #use DateTime; | ||
| 36 | #$self->{accepted_at} = DateTime->parse($self->{accepted_at}) | ||
| 37 | # unless (blessed($self->{accepted_at}) // '') eq 'DateTime'; | ||
| 38 | 22 | has accepted_at => ( | |
| 39 | is => 'ro', | ||
| 40 | ); | ||
| 41 | |||
| 42 | =head2 text() | ||
| 43 | |||
| 44 | This is the text for this ACH mandate. | ||
| 45 | |||
| 46 | =cut | ||
| 47 | |||
| 48 | 22 | has text => ( | |
| 49 | is => 'ro', | ||
| 50 | ); | ||
| 51 | |||
| 52 | 22 | __PACKAGE__->meta->make_immutable; | |
| 53 | |||
| 54 | 22 | 1; | |
| 55 | __END__ | ||