File Coverage

lib/Net/API/Stripe/Payment/Source/Owner.pm
Criterion Covered Total %
statement 19 33 57.5
branch n/a
condition n/a
subroutine 7 21 33.3
pod 11 14 78.5
total 37 68 54.4


line stmt bran cond sub pod time code
1             ##----------------------------------------------------------------------------
2             ## Stripe API - ~/lib/Net/API/Stripe/Payment/Source/Owner.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   24179336 use warnings;
  2         13  
  2         218  
14 2     2   13 use parent qw( Net::API::Stripe::Generic );
  2         3  
  2         63  
15 2     2   11 use vars qw( $VERSION );
  2         4  
  2         11  
16 2     2   148 our( $VERSION ) = 'v0.100.0';
  2         11  
  2         118  
17 2     2   61 };
18              
19             use strict;
20 2     2   12 use warnings;
  2         5  
  2         41  
21 2     2   10  
  2         4  
  2         687  
22              
23 0     0 1    
24              
25 0     0 1    
26              
27 0     0 1    
28              
29 0     0 1    
30              
31 0     0 1    
32              
33 0     0 1    
34              
35 0     0 1    
36             1;
37 0     0 1    
38              
39 0     0 1   =encoding utf8
40              
41 0     0 1   =head1 NAME
42              
43 0     0 0   Net::API::Stripe::Payment::Source::Owner - A Stripe Payment Source Owner Object
44              
45 0     0 0   =head1 SYNOPSIS
46              
47 0     0 1   my $owner = $stripe->source->owner({
48             address => $address_object,
49 0     0 0   email => 'john.doe@example.com',
50             name => 'john.doe@example.com',
51             phone => '+81-(0)90-1234-5678',
52             });
53              
54             =head1 VERSION
55              
56             v0.100.0
57              
58             =head1 DESCRIPTION
59              
60             Information about the owner of the payment instrument that may be used or required by particular source types.
61              
62             This is part of the L<Net::API::Stripe::Payment::Source> object
63              
64             =head1 CONSTRUCTOR
65              
66             =head2 new( %ARG )
67              
68             Creates a new L<Net::API::Stripe::Payment::Source::Owner> object.
69             It may also take an hash like arguments, that also are method of the same name.
70              
71             =head1 METHODS
72              
73             =head2 address hash
74              
75             Owner’s address.
76              
77             This is a L<Net::API::Stripe::Address> object.
78              
79             =head2 email string
80              
81             Owner’s email address.
82              
83             =head2 name string
84              
85             Owner’s full name.
86              
87             =head2 phone string
88              
89             Owner’s phone number (including extension).
90              
91             =head2 receiver obsolete?
92              
93             This is a L<Net::API::Stripe::Payment::Source::Receiver> object, but it seems it was removed from the documentation.
94              
95             =head2 redirect obsolete?
96              
97             This is a L<Net::API::Stripe::Payment::Source::Redirect> object, but it seems it was removed from the documentation.
98              
99             =head2 verified_address hash
100              
101             Verified owner’s address. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
102              
103             This is a L<Net::API::Stripe::Address> object.
104              
105             =head2 verified_email string
106              
107             Verified owner’s email address. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
108              
109             =head2 verified_name string
110              
111             Verified owner’s full name. Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
112              
113             =head2 verified_phone string
114              
115             Verified owner’s phone number (including extension). Verified values are verified or provided by the payment method directly (and if supported) at the time of authorization or settlement. They cannot be set or mutated.
116              
117             =head1 API SAMPLE
118              
119             {
120             "id": "src_fake123456789",
121             "object": "source",
122             "ach_credit_transfer": {
123             "account_number": "test_52796e3294dc",
124             "routing_number": "110000000",
125             "fingerprint": "ecpwEzmBOSMOqQTL",
126             "bank_name": "TEST BANK",
127             "swift_code": "TSTEZ122"
128             },
129             "amount": null,
130             "client_secret": "src_client_secret_fake123456789",
131             "created": 1571314413,
132             "currency": "jpy",
133             "flow": "receiver",
134             "livemode": false,
135             "metadata": {},
136             "owner": {
137             "address": null,
138             "email": "jenny.rosen@example.com",
139             "name": null,
140             "phone": null,
141             "verified_address": null,
142             "verified_email": null,
143             "verified_name": null,
144             "verified_phone": null
145             },
146             "receiver": {
147             "address": "121042882-38381234567890123",
148             "amount_charged": 0,
149             "amount_received": 0,
150             "amount_returned": 0,
151             "refund_attributes_method": "email",
152             "refund_attributes_status": "missing"
153             },
154             "statement_descriptor": null,
155             "status": "pending",
156             "type": "ach_credit_transfer",
157             "usage": "reusable"
158             }
159              
160             =head1 HISTORY
161              
162             =head2 v0.1
163              
164             Initial version
165              
166             =head1 AUTHOR
167              
168             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
169              
170             =head1 SEE ALSO
171              
172             Stripe API documentation:
173              
174             L<https://stripe.com/docs/api/sources/object>
175              
176             =head1 COPYRIGHT & LICENSE
177              
178             Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
179              
180             You can use, copy, modify and redistribute this package and associated
181             files under the same terms as Perl itself.
182              
183             =cut