Stripe/Payment/Source/Owner.pm

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