File Coverage

blib/lib/Net/API/Stripe/Dispute/Evidence.pm
Criterion Covered Total %
statement 7 34 20.5
branch n/a
condition n/a
subroutine 3 30 10.0
pod 27 27 100.0
total 37 91 40.6


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 <@sitael.tokyo.deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2020/05/15
8             ##
9             ##----------------------------------------------------------------------------
10             ## https://stripe.com/docs/api/disputes/evidence_object
11             package Net::API::Stripe::Dispute::Evidence;
12             BEGIN
13             {
14 1     1   872 use strict;
  1         2  
  1         28  
15 1     1   5 use parent qw( Net::API::Stripe::Generic );
  1         2  
  1         4  
16 1     1   424 our( $VERSION ) = 'v0.100.0';
17             };
18              
19 0     0 1   sub access_activity_log { shift->_set_get_scalar( 'access_activity_log', @_ ); }
20              
21 0     0 1   sub billing_address { shift->_set_get_scalar( 'billing_address', @_ ); }
22              
23 0     0 1   sub cancellation_policy { shift->_set_get_scalar_or_object( 'cancellation_policy', 'Net::API::Stripe::File', @_ ); }
24              
25 0     0 1   sub cancellation_policy_disclosure { shift->_set_get_scalar( 'cancellation_policy_disclosure', @_ ); }
26              
27 0     0 1   sub cancellation_rebuttal { shift->_set_get_scalar( 'cancellation_rebuttal', @_ ); }
28              
29 0     0 1   sub customer_communication { shift->_set_get_scalar_or_object( 'customer_communication', 'Net::API::Stripe::File', @_ ); }
30              
31 0     0 1   sub customer_email_address { shift->_set_get_scalar( 'customer_email_address', @_ ); }
32              
33 0     0 1   sub customer_name { shift->_set_get_scalar( 'customer_name', @_ ); }
34              
35 0     0 1   sub customer_purchase_ip { shift->_set_get_scalar( 'customer_purchase_ip', @_ ); }
36              
37 0     0 1   sub customer_signature { shift->_set_get_scalar_or_object( 'customer_signature', 'Net::API::Stripe::File', @_ ); }
38              
39 0     0 1   sub duplicate_charge_documentation { shift->_set_get_scalar_or_object( 'duplicate_charge_documentation', 'Net::API::Stripe::File', @_ ); }
40              
41 0     0 1   sub duplicate_charge_explanation { shift->_set_get_scalar( 'duplicate_charge_explanation', @_ ); }
42              
43 0     0 1   sub duplicate_charge_id { shift->_set_get_scalar( 'duplicate_charge_id', @_ ); }
44              
45 0     0 1   sub product_description { shift->_set_get_scalar( 'product_description', @_ ); }
46              
47 0     0 1   sub receipt { shift->_set_get_scalar_or_object( 'receipt', 'Net::API::Stripe::File', @_ ); }
48              
49 0     0 1   sub refund_policy { shift->_set_get_scalar_or_object( 'refund_policy', 'Net::API::Stripe::File', @_ ); }
50              
51 0     0 1   sub refund_policy_disclosure { shift->_set_get_scalar( 'refund_policy_disclosure', @_ ); }
52              
53 0     0 1   sub refund_refusal_explanation { shift->_set_get_scalar( 'refund_refusal_explanation', @_ ); }
54              
55 0     0 1   sub service_date { shift->_set_get_scalar( 'service_date', @_ ); }
56              
57 0     0 1   sub service_documentation { shift->_set_get_scalar_or_object( 'service_documentation', 'Net::API::Stripe::File', @_ ); }
58              
59 0     0 1   sub shipping_address { shift->_set_get_scalar( 'shipping_address', @_ ); }
60              
61 0     0 1   sub shipping_carrier { shift->_set_get_scalar( 'shipping_carrier', @_ ); }
62              
63 0     0 1   sub shipping_date { shift->_set_get_scalar( 'shipping_date', @_ ); }
64              
65 0     0 1   sub shipping_documentation { shift->_set_get_scalar_or_object( 'shipping_documentation', 'Net::API::Stripe::File', @_ ); }
66              
67 0     0 1   sub shipping_tracking_number { shift->_set_get_scalar( 'shipping_tracking_number', @_ ); }
68              
69 0     0 1   sub uncategorized_file { shift->_set_get_scalar_or_object( 'uncategorized_file', 'Net::API::Stripe::File', @_ ); }
70              
71 0     0 1   sub uncategorized_text { shift->_set_get_scalar( 'uncategorized_text', @_ ); }
72              
73             1;
74              
75             __END__
76              
77             =encoding utf8
78              
79             =head1 NAME
80              
81             Net::API::Stripe::Dispute::Evidence - A Stripe Dispute Evidence Object
82              
83             =head1 SYNOPSIS
84              
85             my $evidence = $stripe->dispute->evidence({
86             access_activity_log => null,
87             billing_address => '1-2-3 Kudan-Minami, Chiyoda-ku',
88             cancellation_policy => undef,
89             cancellation_policy_disclosure => undef,
90             cancellation_rebuttal => undef,
91             customer_communication => undef,
92             customer_email_address => 'john.doe@example.com',
93             customer_name => 'John Doe',
94             customer_purchase_ip => '1.2.3.4',
95             customer_signature => undef,
96             duplicate_charge_documentation => undef,
97             duplicate_charge_explanation => undef,
98             duplicate_charge_id => undef,
99             product_description => 'Professional service',
100             receipt => undef,
101             refund_policy => undef,
102             refund_policy_disclosure => undef,
103             refund_refusal_explanation => 'Customer has already used Big Corp, Inc service billed',
104             service_date => '2020-04-07',
105             service_documentation => undef,
106             shipping_address => undef,
107             shipping_carrier => undef,
108             shipping_date => undef,
109             shipping_documentation => undef,
110             shipping_tracking_number => undef,
111             uncategorized_file => undef,
112             uncategorized_text => undef,
113             });
114              
115             =head1 VERSION
116              
117             v0.100.0
118              
119             =head1 DESCRIPTION
120              
121             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>.
122              
123             This is instantiated by method B<evidence> in module L<Net::API::Stripe::Dispute>
124              
125             =head1 CONSTRUCTOR
126              
127             =over 4
128              
129             =item B<new>( %ARG )
130              
131             Creates a new L<Net::API::Stripe::Dispute::Evidence> object.
132             It may also take an hash like arguments, that also are method of the same name.
133              
134             =back
135              
136             =head1 METHODS
137              
138             =over 4
139              
140             =item B<access_activity_log> string
141              
142             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.
143              
144             =item B<billing_address> string
145              
146             The billing address provided by the customer.
147              
148             =item B<cancellation_policy> string (expandable)
149              
150             (ID of a file upload) Your subscription cancellation policy, as shown to the customer.
151              
152             When expanded, this is a L<Net::API::Stripe::File> object.
153              
154             =item B<cancellation_policy_disclosure> string
155              
156             An explanation of how and when the customer was shown your refund policy prior to purchase.
157              
158             =item B<cancellation_rebuttal> string
159              
160             A justification for why the customer’s subscription was not canceled.
161              
162             =item B<customer_communication> string (expandable)
163              
164             (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.
165              
166             When expanded, this is a L<Net::API::Stripe::File> object.
167              
168             =item B<customer_email_address> string
169              
170             The email address of the customer.
171              
172             =item B<customer_name> string
173              
174             The name of the customer.
175              
176             =item B<customer_purchase_ip> string
177              
178             The IP address that the customer used when making the purchase.
179              
180             =item B<customer_signature> string (expandable)
181              
182             (ID of a file upload) A relevant document or contract showing the customer’s signature.
183              
184             When expanded, this is a L<Net::API::Stripe::File> object.
185              
186             =item B<duplicate_charge_documentation> string (expandable)
187              
188             (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.
189              
190             When expanded, this is a L<Net::API::Stripe::File> object.
191              
192             =item B<duplicate_charge_explanation> string
193              
194             An explanation of the difference between the disputed charge versus the prior charge that appears to be a duplicate.
195              
196             =item B<duplicate_charge_id> string
197              
198             The Stripe ID for the prior charge which appears to be a duplicate of the disputed charge.
199              
200             =item B<product_description> string
201              
202             A description of the product or service that was sold.
203              
204             =item B<receipt> string (expandable)
205              
206             (ID of a file upload) Any receipt or message sent to the customer notifying them of the charge.
207              
208             When expanded, this is a L<Net::API::Stripe::File> object.
209              
210             =item B<refund_policy> string (expandable)
211              
212             (ID of a file upload) Your refund policy, as shown to the customer.
213              
214             When expanded, this is a L<Net::API::Stripe::File> object.
215              
216             =item B<refund_policy_disclosure> string
217              
218             Documentation demonstrating that the customer was shown your refund policy prior to purchase.
219              
220             =item B<refund_refusal_explanation> string
221              
222             A justification for why the customer is not entitled to a refund.
223              
224             =item B<service_date> string
225              
226             The date on which the customer received or began receiving the purchased service, in a clear human-readable format.
227              
228             =item B<service_documentation> string (expandable)
229              
230             (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.
231              
232             When expanded, this is a L<Net::API::Stripe::File> object.
233              
234             =item B<shipping_address> string
235              
236             The address to which a physical product was shipped. You should try to include as complete address information as possible.
237              
238             =item B<shipping_carrier> string
239              
240             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.
241              
242             =item B<shipping_date> string
243              
244             The date on which a physical product began its route to the shipping address, in a clear human-readable format.
245              
246             =item B<shipping_documentation> string (expandable)
247              
248             (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.
249              
250             =item B<shipping_tracking_number> string
251              
252             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.
253              
254             =item B<uncategorized_file> string (expandable)
255              
256             (ID of a file upload) Any additional evidence or statements.
257              
258             =item B<uncategorized_text> string
259              
260             Any additional evidence or statements.
261              
262             =back
263              
264             =head1 API SAMPLE
265              
266             {
267             "access_activity_log": null,
268             "billing_address": null,
269             "cancellation_policy": null,
270             "cancellation_policy_disclosure": null,
271             "cancellation_rebuttal": null,
272             "customer_communication": null,
273             "customer_email_address": null,
274             "customer_name": null,
275             "customer_purchase_ip": null,
276             "customer_signature": null,
277             "duplicate_charge_documentation": null,
278             "duplicate_charge_explanation": null,
279             "duplicate_charge_id": null,
280             "product_description": null,
281             "receipt": null,
282             "refund_policy": null,
283             "refund_policy_disclosure": null,
284             "refund_refusal_explanation": null,
285             "service_date": null,
286             "service_documentation": null,
287             "shipping_address": null,
288             "shipping_carrier": null,
289             "shipping_date": null,
290             "shipping_documentation": null,
291             "shipping_tracking_number": null,
292             "uncategorized_file": null,
293             "uncategorized_text": null
294             }
295              
296             =head1 HISTORY
297              
298             =head2 v0.1
299              
300             Initial version
301              
302             =head1 AUTHOR
303              
304             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
305              
306             =head1 SEE ALSO
307              
308             Stripe API documentation:
309              
310             L<https://stripe.com/docs/api/disputes/evidence_object#dispute_evidence_object>
311              
312             =head1 COPYRIGHT & LICENSE
313              
314             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
315              
316             You can use, copy, modify and redistribute this package and associated
317             files under the same terms as Perl itself.
318              
319             =cut