File Coverage

lib/Net/API/Stripe/Issuing/Authorization/VerificationData.pm
Criterion Covered Total %
statement 19 26 73.0
branch n/a
condition n/a
subroutine 7 14 50.0
pod 7 7 100.0
total 33 47 70.2


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Issuing/Authorization/VerificationData.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   24158725 use warnings;
  2         17  
  2         61  
14 2     2   10 use parent qw( Net::API::Stripe::Generic );
  2         5  
  2         60  
15 2     2   11 use vars qw( $VERSION );
  2         3  
  2         14  
16 2     2   145 our( $VERSION ) = 'v0.100.0';
  2         5  
  2         117  
17 2     2   55 };
18              
19             use strict;
20 2     2   12 use warnings;
  2         5  
  2         43  
21 2     2   9  
  2         4  
  2         394  
22              
23 0     0 1    
24              
25 0     0 1    
26              
27 0     0 1    
28              
29 0     0 1   1;
30              
31 0     0 1    
32             =encoding utf8
33 0     0 1    
34             =head1 NAME
35 0     0 1    
36             Net::API::Stripe::Issuing::Authorization::VerificationData - A Stripe Authorization Verification Date Object
37              
38             =head1 SYNOPSIS
39              
40             my $data = $stripe->authorization->verification_data({
41             address_line1_check => 'match',
42             address_postal_code_check => 'match',
43             address_zip_check => 'match',
44             authentication => 'success',
45             cvc_check => 'match',
46             expiry_check => 'match',
47             three_d_secure => { result => 'authenticated' },
48             });
49              
50             =head1 VERSION
51              
52             v0.100.0
53              
54             =head1 DESCRIPTION
55              
56             Verification data used by method B<verification_data> in module L<Net::API::Stripe::Issuing::Authorization>
57              
58             =head1 CONSTRUCTOR
59              
60             =head2 new( %ARG )
61              
62             Creates a new L<Net::API::Stripe::Issuing::Authorization::VerificationData> object.
63             It may also take an hash like arguments, that also are method of the same name.
64              
65             =head1 METHODS
66              
67             =head2 address_line1_check string
68              
69             One of match, mismatch, or not_provided.
70              
71             =head2 address_postal_code_check
72              
73             Whether the cardholder provided a postal code and if it matched the cardholder’s billing.address.postal_code.
74              
75             Possible enum values
76              
77             =over 4
78              
79             =item I<match>
80              
81             Verification succeeded, values matched.
82              
83             =item I<mismatch>
84              
85             Verification failed, values didn’t match.
86              
87             =item I<not_provided>
88              
89             Verification was not performed because no value was provided.
90              
91             =back
92              
93             =head2 address_zip_check string
94              
95             One of match, mismatch, or not_provided.
96              
97             =head2 authentication string
98              
99             One of success, failure, exempt, or none.
100              
101             =head2 cvc_check string
102              
103             One of match, mismatch, or not_provided.
104              
105             =head2 expiry_check
106              
107             Whether the cardholder provided an expiry date and if it matched Stripe’s record.
108              
109             Possible enum values
110              
111             =over 4
112              
113             =item I<match>
114              
115             Verification succeeded, values matched.
116              
117             =item I<mismatch>
118              
119             Verification failed, values didn’t match.
120              
121             =item I<not_provided>
122              
123             Verification was not performed because no value was provided.
124              
125             =back
126              
127             =head2 three_d_secure hash
128              
129             3D Secure details on this authorization.
130              
131             It has the one following property
132              
133             =over 4
134              
135             =item I<result>
136              
137             With following possible enum values
138              
139             =over 8
140              
141             =item I<authenticated>
142              
143             Authentication successful.
144              
145             =item I<failed>
146              
147             Authentication failed.
148              
149             =item I<attempt_acknowledged>
150              
151             The merchant attempted to authenticate the authorization, but the cardholder is not enrolled or was unable to reach Stripe.
152              
153             =back
154              
155             =back
156              
157             =head1 API SAMPLE
158              
159             {
160             "id": "iauth_fake123456789",
161             "object": "issuing.authorization",
162             "approved": true,
163             "authorization_method": "online",
164             "authorized_amount": 500,
165             "authorized_currency": "usd",
166             "balance_transactions": [],
167             "card": null,
168             "cardholder": null,
169             "created": 1540642827,
170             "held_amount": 0,
171             "held_currency": "usd",
172             "is_held_amount_controllable": false,
173             "livemode": false,
174             "merchant_data": {
175             "category": "taxicabs_limousines",
176             "city": "San Francisco",
177             "country": "US",
178             "name": "Rocket Rides",
179             "network_id": "1234567890",
180             "postal_code": "94107",
181             "state": "CA",
182             "url": null
183             },
184             "metadata": {},
185             "pending_authorized_amount": 0,
186             "pending_held_amount": 0,
187             "request_history": [],
188             "status": "reversed",
189             "transactions": [
190             {
191             "id": "ipi_fake123456789",
192             "object": "issuing.transaction",
193             "amount": -100,
194             "authorization": "iauth_fake123456789",
195             "balance_transaction": null,
196             "card": "ic_fake123456789",
197             "cardholder": null,
198             "created": 1540642827,
199             "currency": "usd",
200             "dispute": null,
201             "livemode": false,
202             "merchant_amount": null,
203             "merchant_currency": null,
204             "merchant_data": {
205             "category": "taxicabs_limousines",
206             "city": "San Francisco",
207             "country": "US",
208             "name": "Rocket Rides",
209             "network_id": "1234567890",
210             "postal_code": "94107",
211             "state": "CA",
212             "url": null
213             },
214             "metadata": {},
215             "type": "capture"
216             },
217             {
218             "id": "ipi_fake123456789",
219             "object": "issuing.transaction",
220             "amount": -100,
221             "authorization": "iauth_fake123456789",
222             "balance_transaction": null,
223             "card": "ic_fake123456789",
224             "cardholder": null,
225             "created": 1540642827,
226             "currency": "usd",
227             "dispute": null,
228             "livemode": false,
229             "merchant_amount": null,
230             "merchant_currency": null,
231             "merchant_data": {
232             "category": "taxicabs_limousines",
233             "city": "San Francisco",
234             "country": "US",
235             "name": "Rocket Rides",
236             "network_id": "1234567890",
237             "postal_code": "94107",
238             "state": "CA",
239             "url": null
240             },
241             "metadata": {},
242             "type": "capture"
243             }
244             ],
245             "verification_data": {
246             "address_line1_check": "not_provided",
247             "address_zip_check": "match",
248             "authentication": "none",
249             "cvc_check": "match"
250             },
251             "wallet_provider": null
252             }
253              
254             =head1 HISTORY
255              
256             =head2 v0.1
257              
258             Initial version
259              
260             =head1 AUTHOR
261              
262             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
263              
264             =head1 SEE ALSO
265              
266             Stripe API documentation:
267              
268             L<https://stripe.com/docs/api/issuing/authorizations/object>
269              
270             =head1 COPYRIGHT & LICENSE
271              
272             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
273              
274             You can use, copy, modify and redistribute this package and associated
275             files under the same terms as Perl itself.
276              
277             =cut