« lib/WebService/Braintree/_/MerchantAccount/FundingDetails.pm
↑ Summary
lib/WebService/Braintree/_/PayPalAccount.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||
| 2 | |||
| 3 | package WebService::Braintree::_::MerchantAccount::IndividualDetails; | ||
| 4 | 22 | $WebService::Braintree::_::MerchantAccount::IndividualDetails::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::_::MerchantAccount::IndividualDetails | ||
| 11 | |||
| 12 | =head1 PURPOSE | ||
| 13 | |||
| 14 | This class represents the individual details for a merchant account. | ||
| 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 | ▶ | use MooX::Aliases; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 22 | |||
| 23 | 22 | extends 'WebService::Braintree::_'; | |
| 24 | |||
| 25 | 22 | ▶ | use WebService::Braintree::Types qw( |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 26 | MerchantAccount_AddressDetails | ||
| 27 | 22 | ); | |
| 28 | |||
| 29 | =head1 ATTRIBUTES | ||
| 30 | |||
| 31 | =cut | ||
| 32 | |||
| 33 | =head2 address() | ||
| 34 | |||
| 35 | This is the address for this individual detail. This will be an object of type L<WebService::Braintree::_::MerchantAccount::AddressDetails/>. | ||
| 36 | |||
| 37 | C<< address_details() >> is an alias for this attribute. | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | 22 | has address => ( | |
| 42 | is => 'ro', | ||
| 43 | isa => MerchantAccount_AddressDetails, | ||
| 44 | coerce => 1, | ||
| 45 | alias => 'address_details', | ||
| 46 | ); | ||
| 47 | |||
| 48 | =head2 date_of_birth() | ||
| 49 | |||
| 50 | This is the date of birth for this individual detail. | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | 22 | has date_of_birth => ( | |
| 55 | is => 'ro', | ||
| 56 | ); | ||
| 57 | |||
| 58 | =head2 email() | ||
| 59 | |||
| 60 | This is the email for this individual detail. | ||
| 61 | |||
| 62 | =cut | ||
| 63 | |||
| 64 | 22 | has email => ( | |
| 65 | is => 'ro', | ||
| 66 | ); | ||
| 67 | |||
| 68 | =head2 first_name() | ||
| 69 | |||
| 70 | This is the first name for this individual detail. | ||
| 71 | |||
| 72 | =cut | ||
| 73 | |||
| 74 | 22 | has first_name => ( | |
| 75 | is => 'ro', | ||
| 76 | ); | ||
| 77 | |||
| 78 | =head2 last_name() | ||
| 79 | |||
| 80 | This is the last name for this individual detail. | ||
| 81 | |||
| 82 | =cut | ||
| 83 | |||
| 84 | 22 | has last_name => ( | |
| 85 | is => 'ro', | ||
| 86 | ); | ||
| 87 | |||
| 88 | =head2 phone() | ||
| 89 | |||
| 90 | This is the phone for this individual detail. | ||
| 91 | |||
| 92 | =cut | ||
| 93 | |||
| 94 | 22 | has phone => ( | |
| 95 | is => 'ro', | ||
| 96 | ); | ||
| 97 | |||
| 98 | =head2 ssn_last_4() | ||
| 99 | |||
| 100 | This is the SSN last-4 for this individual detail. | ||
| 101 | |||
| 102 | =cut | ||
| 103 | |||
| 104 | 22 | has ssn_last_4 => ( | |
| 105 | is => 'ro', | ||
| 106 | ); | ||
| 107 | |||
| 108 | 22 | __PACKAGE__->meta->make_immutable; | |
| 109 | |||
| 110 | 22 | 1; | |
| 111 | __END__ | ||