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 <@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
|
|
|
1
|
|
847
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
14
|
1
|
|
|
1
|
|
4
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
321
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub address { shift->_set_get_object( 'address', 'Net::API::Stripe::Address', @_ ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub email { shift->_set_get_scalar( 'email', @_ ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub name { shift->_set_get_scalar( 'name', @_ ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub phone { shift->_set_get_scalar( 'phone', @_ ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub verified_address { shift->_set_get_object( 'verified_address', 'Net::API::Stripe::Address', @_ ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub verified_email { shift->_set_get_scalar( 'verified_email', @_ ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub verified_name { shift->_set_get_scalar( 'verified_name', @_ ); } |
31
|
|
|
|
|
|
|
|
32
|
0
|
|
|
0
|
1
|
|
sub verified_phone { shift->_set_get_scalar( 'verified_phone', @_ ); } |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
0
|
1
|
|
sub receiver { shift->_set_get_object( 'receiver', 'Net::API::Stripe::Payment::Source::Receiver', @_ ); } |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
0
|
1
|
|
sub redirect { shift->_set_get_object( 'redirect', 'Net::API::Stripe::Payment::Source::Redirect', @_ ); } |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
0
|
0
|
|
sub statement_descriptor { shift->_set_get_scalar( 'statement_descriptor', @_ ); } |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
0
|
|
sub status { shift->_set_get_scalar( 'status', @_ ); } |
41
|
|
|
|
|
|
|
|
42
|
0
|
|
|
0
|
1
|
|
sub type { shift->_set_get_scalar( 'type', @_ ); } |
43
|
|
|
|
|
|
|
|
44
|
0
|
|
|
0
|
0
|
|
sub usage { shift->_set_get_scalar( 'usage', @_ ); } |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
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 |