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