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