File Coverage

lib/Net/API/Stripe/Dispute/EvidenceDetails.pm
Criterion Covered Total %
statement 19 23 82.6
branch n/a
condition n/a
subroutine 7 11 63.6
pod 4 4 100.0
total 30 38 78.9


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Dispute/EvidenceDetails.pm
3             ## Version v0.100.0
4             ## Copyright(c) 2019 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2020/05/15
8             ##
9             ##----------------------------------------------------------------------------
10             BEGIN
11             {
12             use strict;
13 2     2   24083398 use warnings;
  2         16  
  2         75  
14 2     2   10 use parent qw( Net::API::Stripe::Generic );
  2         4  
  2         59  
15 2     2   11 use vars qw( $VERSION );
  2         4  
  2         10  
16 2     2   136 our( $VERSION ) = 'v0.100.0';
  2         5  
  2         109  
17 2     2   38 };
18              
19             use strict;
20 2     2   11 use warnings;
  2         4  
  2         39  
21 2     2   9  
  2         3  
  2         221  
22              
23 0     0 1    
24              
25 0     0 1    
26             1;
27 0     0 1    
28              
29 0     0 1   =encoding utf8
30              
31             =head1 NAME
32              
33             Net::API::Stripe::Dispute::EvidenceDetails - Dispute Evidence Details Object
34              
35             =head1 SYNOPSIS
36              
37             my $detail = $dispute->evidence_details({
38             due_by => '2020-04-12',
39             has_evidence => $stripe->true,
40             past_due => '2020-05-01',
41             submission_count => 2,
42             });
43              
44             =head1 VERSION
45              
46             v0.100.0
47              
48             =head1 DESCRIPTION
49              
50             This is instantiated by method B<evidence_details> from module L<Net::API::Stripe::Dispute>
51              
52             =head1 CONSTRUCTOR
53              
54             =head2 new( %ARG )
55              
56             Creates a new L<Net::API::Stripe::Dispute::EvidenceDetails> object.
57             It may also take an hash like arguments, that also are method of the same name.
58              
59             =head1 METHODS
60              
61             =head2 due_by timestamp
62              
63             Date by which evidence must be submitted in order to successfully challenge dispute. Will be null if the customer’s bank or credit card company doesn’t allow a response for this particular dispute.
64              
65             =head2 has_evidence boolean
66              
67             Whether evidence has been staged for this dispute.
68              
69             =head2 past_due boolean
70              
71             Whether the last evidence submission was submitted past the due date. Defaults to false if no evidence submissions have occurred. If true, then delivery of the latest evidence is not guaranteed.
72              
73             =head2 submission_count integer
74              
75             The number of times evidence has been submitted. Typically, you may only submit evidence once.
76              
77             =head1 API SAMPLE
78              
79             {
80             "object": "balance",
81             "available": [
82             {
83             "amount": 0,
84             "currency": "jpy",
85             "source_types": {
86             "card": 0
87             }
88             }
89             ],
90             "connect_reserved": [
91             {
92             "amount": 0,
93             "currency": "jpy"
94             }
95             ],
96             "livemode": false,
97             "pending": [
98             {
99             "amount": 7712,
100             "currency": "jpy",
101             "source_types": {
102             "card": 7712
103             }
104             }
105             ]
106             }
107              
108             =head1 HISTORY
109              
110             =head2 v0.1
111              
112             Initial version
113              
114             =head1 AUTHOR
115              
116             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
117              
118             =head1 SEE ALSO
119              
120             Stripe API documentation:
121              
122             L<https://stripe.com/docs/api/disputes/object>
123              
124             =head1 COPYRIGHT & LICENSE
125              
126             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
127              
128             You can use, copy, modify and redistribute this package and associated
129             files under the same terms as Perl itself.
130              
131             =cut
132