| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package WebService::Braintree::Dispute; | 
| 2 |  |  |  |  |  |  | $WebService::Braintree::Dispute::VERSION = '0.94'; | 
| 3 | 20 |  |  | 20 |  | 362 | use 5.010_001; | 
|  | 20 |  |  |  |  | 103 |  | 
| 4 | 20 |  |  | 20 |  | 112 | use strictures 1; | 
|  | 20 |  |  |  |  | 119 |  | 
|  | 20 |  |  |  |  | 748 |  | 
| 5 |  |  |  |  |  |  |  | 
| 6 |  |  |  |  |  |  | =head1 NAME | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | WebService::Braintree::Dispute | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | =head1 PURPOSE | 
| 11 |  |  |  |  |  |  |  | 
| 12 |  |  |  |  |  |  | This class represents a dispute. | 
| 13 |  |  |  |  |  |  |  | 
| 14 |  |  |  |  |  |  | =cut | 
| 15 |  |  |  |  |  |  |  | 
| 16 | 20 |  |  | 20 |  | 6683 | use WebService::Braintree::Dispute::TransactionDetails; | 
|  | 20 |  |  |  |  | 53 |  | 
|  | 20 |  |  |  |  | 672 |  | 
| 17 | 20 |  |  | 20 |  | 5852 | use WebService::Braintree::Dispute::Status; | 
|  | 20 |  |  |  |  | 47 |  | 
|  | 20 |  |  |  |  | 793 |  | 
| 18 | 20 |  |  | 20 |  | 4558 | use WebService::Braintree::Dispute::Reason; | 
|  | 20 |  |  |  |  | 38 |  | 
|  | 20 |  |  |  |  | 434 |  | 
| 19 |  |  |  |  |  |  |  | 
| 20 | 20 |  |  | 20 |  | 88 | use Moose; | 
|  | 20 |  |  |  |  | 36 |  | 
|  | 20 |  |  |  |  | 102 |  | 
| 21 |  |  |  |  |  |  | extends 'WebService::Braintree::ResultObject'; | 
| 22 |  |  |  |  |  |  |  | 
| 23 |  |  |  |  |  |  | =head1 CLASS METHODS | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | This class is B<NOT> an interface, so it does B<NOT> have any class methods. | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | =head1 OBJECT METHODS | 
| 28 |  |  |  |  |  |  |  | 
| 29 |  |  |  |  |  |  | =cut | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | sub BUILD { | 
| 32 | 0 |  |  | 0 | 0 |  | my ($self, $attrs) = @_; | 
| 33 |  |  |  |  |  |  |  | 
| 34 | 0 |  |  |  |  |  | $self->build_sub_object($attrs, | 
| 35 |  |  |  |  |  |  | method => 'transaction_details', | 
| 36 |  |  |  |  |  |  | class  => 'Dispute::TransactionDetails', | 
| 37 |  |  |  |  |  |  | key    => 'transaction', | 
| 38 |  |  |  |  |  |  | ); | 
| 39 |  |  |  |  |  |  |  | 
| 40 | 0 |  |  |  |  |  | $self->set_attributes_from_hash($self, $attrs); | 
| 41 |  |  |  |  |  |  | } | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  | =pod | 
| 44 |  |  |  |  |  |  |  | 
| 45 |  |  |  |  |  |  | In addition to the methods provided by B<TODO>, this class provides the | 
| 46 |  |  |  |  |  |  | following methods: | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | =head2 transaction_details() | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | This returns the transaction details associated with this dispute (if any). | 
| 51 |  |  |  |  |  |  | This will be an object of type | 
| 52 |  |  |  |  |  |  | L<WebService::Braintree::Dispute::TransactionDetails/>. | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | =cut | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | has transaction_details => (is => 'rw'); | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | __PACKAGE__->meta->make_immutable; | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | 1; | 
| 61 |  |  |  |  |  |  | __END__ | 
| 62 |  |  |  |  |  |  |  | 
| 63 |  |  |  |  |  |  | =head1 TODO | 
| 64 |  |  |  |  |  |  |  | 
| 65 |  |  |  |  |  |  | =over 4 | 
| 66 |  |  |  |  |  |  |  | 
| 67 |  |  |  |  |  |  | =item Need to document the keys and values that are returned | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | =item Need to document the required and optional input parameters | 
| 70 |  |  |  |  |  |  |  | 
| 71 |  |  |  |  |  |  | =item Need to document the possible errors/exceptions | 
| 72 |  |  |  |  |  |  |  | 
| 73 |  |  |  |  |  |  | =back | 
| 74 |  |  |  |  |  |  |  | 
| 75 |  |  |  |  |  |  | =cut |