File Coverage

lib/Net/API/Stripe/Payment/Source/CodeVerification.pm
Criterion Covered Total %
statement 19 21 90.4
branch n/a
condition n/a
subroutine 7 9 77.7
pod 2 2 100.0
total 28 32 87.5


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Payment/Source/CodeVerification.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   24190263 use warnings;
  2         16  
  2         66  
14 2     2   11 use parent qw( Net::API::Stripe::Generic );
  2         5  
  2         66  
15 2     2   10 use vars qw( $VERSION );
  2         5  
  2         11  
16 2     2   162 our( $VERSION ) = 'v0.100.0';
  2         4  
  2         119  
17 2     2   39 };
18              
19             use strict;
20 2     2   13 use warnings;
  2         4  
  2         100  
21 2     2   16  
  2         6  
  2         183  
22              
23 0     0 1    
24             1;
25 0     0 1    
26              
27             =encoding utf8
28              
29             =head1 NAME
30              
31             Net::API::Stripe::Payment::Source::CodeVerification - A Stripe Code Verification Object
32              
33             =head1 SYNOPSIS
34              
35             my $code = $stripe->source->code_verification({
36             attempts_remaining => 2,
37             status => 'pending',
38             });
39              
40             =head1 VERSION
41              
42             v0.100.0
43              
44             =head1 DESCRIPTION
45              
46             Information related to the code verification flow. Present if the source is authenticated by a verification code (flow is code_verification).
47              
48             This is part of the L<Net::API::Stripe::Payment::Source> object
49              
50             =head1 CONSTRUCTOR
51              
52             =head2 new( %ARG )
53              
54             Creates a new L<Net::API::Stripe::Payment::Source::CodeVerification> object.
55             It may also take an hash like arguments, that also are method of the same name.
56              
57             =head1 METHODS
58              
59             =head2 attempts_remaining integer
60              
61             The number of attempts remaining to authenticate the source object with a verification code.
62              
63             =head2 status string
64              
65             The status of the code verification, either pending (awaiting verification, attempts_remaining should be greater than 0), succeeded (successful verification) or failed (failed verification, cannot be verified anymore as attempts_remaining should be 0).
66              
67             =head1 API SAMPLE
68              
69             {
70             "id": "src_fake123456789",
71             "object": "source",
72             "ach_credit_transfer": {
73             "account_number": "test_52796e3294dc",
74             "routing_number": "110000000",
75             "fingerprint": "kabvkbmvbmbv",
76             "bank_name": "TEST BANK",
77             "swift_code": "TSTEZ122"
78             },
79             "amount": null,
80             "client_secret": "src_client_secret_fake123456789",
81             "created": 1571314413,
82             "currency": "jpy",
83             "flow": "receiver",
84             "livemode": false,
85             "metadata": {},
86             "owner": {
87             "address": null,
88             "email": "jenny.rosen@example.com",
89             "name": null,
90             "phone": null,
91             "verified_address": null,
92             "verified_email": null,
93             "verified_name": null,
94             "verified_phone": null
95             },
96             "receiver": {
97             "address": "121042882-38381234567890123",
98             "amount_charged": 0,
99             "amount_received": 0,
100             "amount_returned": 0,
101             "refund_attributes_method": "email",
102             "refund_attributes_status": "missing"
103             },
104             "statement_descriptor": null,
105             "status": "pending",
106             "type": "ach_credit_transfer",
107             "usage": "reusable"
108             }
109              
110             =head1 HISTORY
111              
112             =head2 v0.1
113              
114             Initial version
115              
116             =head1 AUTHOR
117              
118             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
119              
120             =head1 SEE ALSO
121              
122             Stripe API documentation:
123              
124             L<https://stripe.com/docs/api/sources/object>
125              
126             =head1 COPYRIGHT & LICENSE
127              
128             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
129              
130             You can use, copy, modify and redistribute this package and associated
131             files under the same terms as Perl itself.
132              
133             =cut