File Coverage

lib/Net/API/Stripe/Dispute/Evidence.pm
Criterion Covered Total %
statement 19 46 41.3
branch n/a
condition n/a
subroutine 7 34 20.5
pod 27 27 100.0
total 53 107 49.5


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Dispute/Evidence.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             ## https://stripe.com/docs/api/disputes/evidence_object
11             BEGIN
12             {
13             use strict;
14 2     2   24064652 use warnings;
  2         15  
  2         67  
15 2     2   13 use parent qw( Net::API::Stripe::Generic );
  2         3  
  2         63  
16 2     2   10 use vars qw( $VERSION );
  2         4  
  2         11  
17 2     2   153 our( $VERSION ) = 'v0.100.0';
  2         3  
  2         120  
18 2     2   44 };
19              
20             use strict;
21 2     2   10 use warnings;
  2         3  
  2         42  
22 2     2   10  
  2         4  
  2         1026  
23              
24 0     0 1    
25              
26 0     0 1    
27              
28 0     0 1    
29              
30 0     0 1    
31              
32 0     0 1    
33              
34 0     0 1    
35              
36 0     0 1    
37              
38 0     0 1    
39              
40 0     0 1    
41              
42 0     0 1    
43              
44 0     0 1    
45              
46 0     0 1    
47              
48 0     0 1    
49              
50 0     0 1   1;
51              
52 0     0 1    
53             =encoding utf8
54 0     0 1    
55             =head1 NAME
56 0     0 1    
57             Net::API::Stripe::Dispute::Evidence - A Stripe Dispute Evidence Object
58 0     0 1    
59             =head1 SYNOPSIS
60 0     0 1    
61             my $evidence = $stripe->dispute->evidence({
62 0     0 1   access_activity_log => null,
63             billing_address => '1-2-3 Kudan-Minami, Chiyoda-ku',
64 0     0 1   cancellation_policy => undef,
65             cancellation_policy_disclosure => undef,
66 0     0 1   cancellation_rebuttal => undef,
67             customer_communication => undef,
68 0     0 1   customer_email_address => 'john.doe@example.com',
69             customer_name => 'John Doe',
70 0     0 1   customer_purchase_ip => '1.2.3.4',
71             customer_signature => undef,
72 0     0 1   duplicate_charge_documentation => undef,
73             duplicate_charge_explanation => undef,
74 0     0 1   duplicate_charge_id => undef,
75             product_description => 'Professional service',
76 0     0 1   receipt => undef,
77             refund_policy => undef,
78             refund_policy_disclosure => undef,
79             refund_refusal_explanation => 'Customer has already used Big Corp, Inc service billed',
80             service_date => '2020-04-07',
81             service_documentation => undef,
82             shipping_address => undef,
83             shipping_carrier => undef,
84             shipping_date => undef,
85             shipping_documentation => undef,
86             shipping_tracking_number => undef,
87             uncategorized_file => undef,
88             uncategorized_text => undef,
89             });
90              
91             =head1 VERSION
92              
93             v0.100.0
94              
95             =head1 DESCRIPTION
96              
97             A dispute occurs when a customer questions your charge with their card issuer. When this happens, you're given the opportunity to respond to the dispute with evidence that shows that the charge is legitimate. You can find more information about the dispute process in L<Stripe Disputes and Fraud documentation|https://stripe.com/docs/disputes>.
98              
99             This is instantiated by method B<evidence> in module L<Net::API::Stripe::Dispute>
100              
101             =head1 CONSTRUCTOR
102              
103             =head2 new( %ARG )
104              
105             Creates a new L<Net::API::Stripe::Dispute::Evidence> object.
106             It may also take an hash like arguments, that also are method of the same name.
107              
108             =head1 METHODS
109              
110             =head2 access_activity_log string
111              
112             Any server or activity logs showing proof that the customer accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.
113              
114             =head2 billing_address string
115              
116             The billing address provided by the customer.
117              
118             =head2 cancellation_policy string (expandable)
119              
120             (ID of a file upload) Your subscription cancellation policy, as shown to the customer.
121              
122             When expanded, this is a L<Net::API::Stripe::File> object.
123              
124             =head2 cancellation_policy_disclosure string
125              
126             An explanation of how and when the customer was shown your refund policy prior to purchase.
127              
128             =head2 cancellation_rebuttal string
129              
130             A justification for why the customer’s subscription was not canceled.
131              
132             =head2 customer_communication string (expandable)
133              
134             (ID of a file upload) Any communication with the customer that you feel is relevant to your case. Examples include emails proving that the customer received the product or service, or demonstrating their use of or satisfaction with the product or service.
135              
136             When expanded, this is a L<Net::API::Stripe::File> object.
137              
138             =head2 customer_email_address string
139              
140             The email address of the customer.
141              
142             =head2 customer_name string
143              
144             The name of the customer.
145              
146             =head2 customer_purchase_ip string
147              
148             The IP address that the customer used when making the purchase.
149              
150             =head2 customer_signature string (expandable)
151              
152             (ID of a file upload) A relevant document or contract showing the customer’s signature.
153              
154             When expanded, this is a L<Net::API::Stripe::File> object.
155              
156             =head2 duplicate_charge_documentation string (expandable)
157              
158             (ID of a file upload) Documentation for the prior charge that can uniquely identify the charge, such as a receipt, shipping label, work order, etc. This document should be paired with a similar document from the disputed payment that proves the two payments are separate.
159              
160             When expanded, this is a L<Net::API::Stripe::File> object.
161              
162             =head2 duplicate_charge_explanation string
163              
164             An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate.
165              
166             =head2 duplicate_charge_id string
167              
168             The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.
169              
170             =head2 product_description string
171              
172             A description of the product or service that was sold.
173              
174             =head2 receipt string (expandable)
175              
176             (ID of a file upload) Any receipt or message sent to the customer notifying them of the charge.
177              
178             When expanded, this is a L<Net::API::Stripe::File> object.
179              
180             =head2 refund_policy string (expandable)
181              
182             (ID of a file upload) Your refund policy, as shown to the customer.
183              
184             When expanded, this is a L<Net::API::Stripe::File> object.
185              
186             =head2 refund_policy_disclosure string
187              
188             Documentation demonstrating that the customer was shown your refund policy prior to purchase.
189              
190             =head2 refund_refusal_explanation string
191              
192             A justification for why the customer is not entitled to a refund.
193              
194             =head2 service_date string
195              
196             The date on which the customer received or began receiving the purchased service, in a clear human-readable format.
197              
198             =head2 service_documentation string (expandable)
199              
200             (ID of a file upload) Documentation showing proof that a service was provided to the customer. This could include a copy of a signed contract, work order, or other form of written agreement.
201              
202             When expanded, this is a L<Net::API::Stripe::File> object.
203              
204             =head2 shipping_address string
205              
206             The address to which a physical product was shipped. You should try to include as complete address information as possible.
207              
208             =head2 shipping_carrier string
209              
210             The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.
211              
212             =head2 shipping_date string
213              
214             The date on which a physical product began its route to the shipping address, in a clear human-readable format.
215              
216             =head2 shipping_documentation string (expandable)
217              
218             (ID of a file upload) Documentation showing proof that a product was shipped to the customer at the same address the customer provided to you. This could include a copy of the shipment receipt, shipping label, etc. It should show the customer’s full shipping address, if possible.
219              
220             =head2 shipping_tracking_number string
221              
222             The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
223              
224             =head2 uncategorized_file string (expandable)
225              
226             (ID of a file upload) Any additional evidence or statements.
227              
228             =head2 uncategorized_text string
229              
230             Any additional evidence or statements.
231              
232             =head1 API SAMPLE
233              
234             {
235             "access_activity_log": null,
236             "billing_address": null,
237             "cancellation_policy": null,
238             "cancellation_policy_disclosure": null,
239             "cancellation_rebuttal": null,
240             "customer_communication": null,
241             "customer_email_address": null,
242             "customer_name": null,
243             "customer_purchase_ip": null,
244             "customer_signature": null,
245             "duplicate_charge_documentation": null,
246             "duplicate_charge_explanation": null,
247             "duplicate_charge_id": null,
248             "product_description": null,
249             "receipt": null,
250             "refund_policy": null,
251             "refund_policy_disclosure": null,
252             "refund_refusal_explanation": null,
253             "service_date": null,
254             "service_documentation": null,
255             "shipping_address": null,
256             "shipping_carrier": null,
257             "shipping_date": null,
258             "shipping_documentation": null,
259             "shipping_tracking_number": null,
260             "uncategorized_file": null,
261             "uncategorized_text": null
262             }
263              
264             =head1 HISTORY
265              
266             =head2 v0.1
267              
268             Initial version
269              
270             =head1 AUTHOR
271              
272             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
273              
274             =head1 SEE ALSO
275              
276             Stripe API documentation:
277              
278             L<https://stripe.com/docs/api/disputes/evidence_object#dispute_evidence_object>
279              
280             =head1 COPYRIGHT & LICENSE
281              
282             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
283              
284             You can use, copy, modify and redistribute this package and associated
285             files under the same terms as Perl itself.
286              
287             =cut