File Coverage

lib/Net/API/Stripe/Issuing/Dispute/Evidence/Other.pm
Criterion Covered Total %
statement 19 25 76.0
branch n/a
condition n/a
subroutine 7 13 53.8
pod 6 6 100.0
total 32 44 72.7


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Issuing/Dispute/Evidence/Other.pm
3             ## Version v0.101.0
4             ## Copyright(c) 2020 DEGUEST Pte. Ltd.
5             ## Author: Jacques Deguest <jack@deguest.jp>
6             ## Created 2019/11/02
7             ## Modified 2020/11/30
8             ## All rights reserved
9             ##
10             ## This program is free software; you can redistribute it and/or modify it
11             ## under the same terms as Perl itself.
12             ##----------------------------------------------------------------------------
13             package Net::API::Stripe::Issuing::Dispute::Evidence::Other;
14             BEGIN
15             {
16 1     1   1123 use strict;
  1         2  
  1         33  
17 1     1   5 use warnings;
  1         2  
  1         29  
18 1     1   6 use parent qw( Net::API::Stripe::Generic );
  1         1  
  1         5  
19 1     1   73 use vars qw( $VERSION );
  1         2  
  1         49  
20 1     1   23 our( $VERSION ) = 'v0.101.0';
21             };
22              
23 1     1   18 use strict;
  1         5  
  1         28  
24 1     1   7 use warnings;
  1         2  
  1         218  
25              
26 0     0 1   sub additional_documentation { return( shift->_set_get_scalar_or_object( 'additional_documentation', 'Net::API::Stripe::File', @_ ) ); }
27              
28 0     0 1   sub dispute_explanation { return( shift->_set_get_scalar( 'dispute_explanation', @_ ) ); }
29              
30 0     0 1   sub explanation { return( shift->_set_get_scalar( 'explanation', @_ ) ); }
31              
32 0     0 1   sub product_description { return( shift->_set_get_scalar( 'product_description', @_ ) ); }
33              
34 0     0 1   sub product_type { return( shift->_set_get_scalar( 'product_type', @_ ) ); }
35              
36 0     0 1   sub uncategorized_file { return( shift->_set_get_scalar_or_object( 'uncategorized_file', 'Net::API::Stripe::File', @_ ) ); }
37              
38             1;
39              
40             __END__
41              
42             =encoding utf8
43              
44             =head1 NAME
45              
46             Net::API::Stripe::Issuing::Dispute::Evidence::Other - A Stripe Issued Card Evidence Object
47              
48             =head1 SYNOPSIS
49              
50             my $other = $stripe->issuing_evidence->other({
51             dispute_explanation => 'Service was not provided',
52             uncategorized_file => $file_object,
53             });
54              
55             =head1 VERSION
56              
57             v0.101.0
58              
59             =head1 DESCRIPTION
60              
61             Evidence to support an uncategorized dispute. This will only be present if your dispute’s reason is other.
62              
63             This is instantiated by method B<other> in module L<Net::API::Stripe::Issuing::Dispute::Evidence>
64              
65             =head1 CONSTRUCTOR
66              
67             =head2 new( %ARG )
68              
69             Creates a new L<Net::API::Stripe::Issuing::Dispute::Evidence::Other> object.
70             It may also take an hash like arguments, that also are method of the same name.
71              
72             =head1 METHODS
73              
74             =head2 additional_documentation expandable
75              
76             (ID of a L<file upload|https://stripe.com/docs/guides/file-upload>) Additional documentation supporting the dispute.
77              
78             When expanded this is an L<Net::API::Stripe::File> object.
79              
80             =head2 dispute_explanation string
81              
82             Brief freeform text explaining why you are disputing this transaction.
83              
84             =head2 explanation string
85              
86             Explanation of why the cardholder is disputing this transaction.
87              
88             =head2 product_description string
89              
90             Description of the merchandise or service that was purchased.
91              
92             =head2 product_type string
93              
94             Whether the product was a merchandise or service.
95              
96             =head2 uncategorized_file string (expandable)
97              
98             (ID of a file upload) Additional file evidence supporting your dispute.
99              
100             When expanded, this is a L<Net::API::Stripe::File> object.
101              
102             =head1 API SAMPLE
103              
104             {
105             "id": "idp_fake123456789",
106             "object": "issuing.dispute",
107             "amount": 100,
108             "created": 1571480456,
109             "currency": "usd",
110             "disputed_transaction": "ipi_fake123456789",
111             "evidence": {
112             "fraudulent": {
113             "dispute_explanation": "Fraud; card reported lost on 10/19/2019",
114             "uncategorized_file": null
115             },
116             "other": null
117             },
118             "livemode": false,
119             "metadata": {},
120             "reason": "fraudulent",
121             "status": "under_review"
122             }
123              
124             =head1 HISTORY
125              
126             =head2 v0.1
127              
128             Initial version
129              
130             =head1 AUTHOR
131              
132             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
133              
134             =head1 SEE ALSO
135              
136             Stripe API documentation:
137              
138             L<https://stripe.com/docs/api/issuing/disputes>, L<https://stripe.com/docs/issuing/disputes>
139              
140             =head1 COPYRIGHT & LICENSE
141              
142             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
143              
144             You can use, copy, modify and redistribute this package and associated
145             files under the same terms as Perl itself.
146              
147             =cut