lib/WebService/Braintree/_/Dispute/Transaction.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 21 / 21 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/WebService/Braintree/_/Dispute/HistoryEvent.pm ↑ Summary lib/WebService/Braintree/_/Dispute/TransactionDetails.pm »
1 # vim: sw=4 ts=4 ft=perl
2  
3 package WebService::Braintree::_::Dispute::Transaction;
4 22 $WebService::Braintree::_::Dispute::Transaction::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::_::Dispute::Transaction
11  
12 =head1 PURPOSE
13  
14 This class represents a transaction of a dispute.
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 amount()
29  
30 This is the amount for this dispute's transaction.
31  
32 =cut
33  
34 # Coerce this to "big_decimal"
35 22 has amount => (
36 is => 'ro',
37 );
38  
39 =head2 created_at()
40  
41 This is when this dispute's transaction was created.
42  
43 =cut
44  
45 # Coerce this to DateTime
46 22 has created_at => (
47 is => 'ro',
48 );
49  
50 =head2 id()
51  
52 This is the ID for this dispute's transaction.
53  
54 =cut
55  
56 22 has id => (
57 is => 'ro',
58 );
59  
60 =head2 order_id()
61  
62 This is the order ID for this dispute's transaction.
63  
64 =cut
65  
66 22 has order_id => (
67 is => 'ro',
68 );
69  
70 =head2 purchase_order_number()
71  
72 This is the purchase order number for this dispute's transaction.
73  
74 =cut
75  
76 22 has purchase_order_number => (
77 is => 'ro',
78 );
79  
80 =head2 payment_instrument_subtype()
81  
82 This is the payment instrument subtype for this dispute's transaction.
83  
84 =cut
85  
86 22 has payment_instrument_subtype => (
87 is => 'ro',
88 );
89  
90 22 __PACKAGE__->meta->make_immutable;
91  
92 22 1;
93 __END__
« lib/WebService/Braintree/_/Dispute/HistoryEvent.pm ↑ Summary lib/WebService/Braintree/_/Dispute/TransactionDetails.pm »