line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Connect/Account/Relationship.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::Connect::Account::Relationship; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
819
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
168
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub director { return( shift->_set_get_boolean( 'director', @_ ) ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub executive { return( shift->_set_get_boolean( 'executive', @_ ) ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub owner { return( shift->_set_get_boolean( 'owner', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub percent_ownership { return( shift->_set_get_number( 'percent_ownership', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub representative { return( shift->_set_get_boolean( 'representative', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub title { return( shift->_set_get_scalar( 'title', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__END__ |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=encoding utf8 |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 NAME |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
Net::API::Stripe::Connect::Account::Relationship - A Stripe Account Relationship Object |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 SYNOPSIS |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
my $rel = $stripe->person->relationship({ |
43
|
|
|
|
|
|
|
director => $stripe->true, |
44
|
|
|
|
|
|
|
executive => $stripe->true, |
45
|
|
|
|
|
|
|
owner => $stripe->true, |
46
|
|
|
|
|
|
|
percent_ownership => 33, |
47
|
|
|
|
|
|
|
representative => $stripe->true, |
48
|
|
|
|
|
|
|
title => 'Representative Director', |
49
|
|
|
|
|
|
|
}); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 VERSION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
v0.100.0 |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 DESCRIPTION |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Describes the personâs relationship to the account. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=over 4 |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item B<new>( %ARG ) |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Connect::Account::Relationship> object. |
66
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This is instantiated from the method B<relationship> in module L<Net::API::Stripe::Connect::Person> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=back |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 METHODS |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=over 4 |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item B<director> boolean |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Whether the person is a director of the accountâs legal entity. Currently only required for accounts in the EU. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item B<executive> boolean |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Whether the person has significant responsibility to control, manage, or direct the organization. |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=item B<owner> boolean |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Whether the person is an owner of the accountâs legal entity. |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=item B<percent_ownership> decimal |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
The percent owned by the person of the accountâs legal entity. |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=item B<representative> boolean |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Whether the person is authorized as the primary representative of the account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account. |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
=item B<title> string |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
The personâs title (e.g., CEO, Support Engineer). |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=back |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 API SAMPLE |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
{ |
105
|
|
|
|
|
|
|
"id": "person_fake123456789", |
106
|
|
|
|
|
|
|
"object": "person", |
107
|
|
|
|
|
|
|
"account": "acct_fake123456789", |
108
|
|
|
|
|
|
|
"created": 1571602397, |
109
|
|
|
|
|
|
|
"dob": { |
110
|
|
|
|
|
|
|
"day": null, |
111
|
|
|
|
|
|
|
"month": null, |
112
|
|
|
|
|
|
|
"year": null |
113
|
|
|
|
|
|
|
}, |
114
|
|
|
|
|
|
|
"first_name_kana": null, |
115
|
|
|
|
|
|
|
"first_name_kanji": null, |
116
|
|
|
|
|
|
|
"gender": null, |
117
|
|
|
|
|
|
|
"last_name_kana": null, |
118
|
|
|
|
|
|
|
"last_name_kanji": null, |
119
|
|
|
|
|
|
|
"metadata": {}, |
120
|
|
|
|
|
|
|
"relationship": { |
121
|
|
|
|
|
|
|
"director": false, |
122
|
|
|
|
|
|
|
"executive": false, |
123
|
|
|
|
|
|
|
"owner": false, |
124
|
|
|
|
|
|
|
"percent_ownership": null, |
125
|
|
|
|
|
|
|
"representative": false, |
126
|
|
|
|
|
|
|
"title": null |
127
|
|
|
|
|
|
|
}, |
128
|
|
|
|
|
|
|
"requirements": { |
129
|
|
|
|
|
|
|
"currently_due": [], |
130
|
|
|
|
|
|
|
"eventually_due": [], |
131
|
|
|
|
|
|
|
"past_due": [], |
132
|
|
|
|
|
|
|
"pending_verification": [] |
133
|
|
|
|
|
|
|
}, |
134
|
|
|
|
|
|
|
"verification": { |
135
|
|
|
|
|
|
|
"additional_document": { |
136
|
|
|
|
|
|
|
"back": null, |
137
|
|
|
|
|
|
|
"details": null, |
138
|
|
|
|
|
|
|
"details_code": null, |
139
|
|
|
|
|
|
|
"front": null |
140
|
|
|
|
|
|
|
}, |
141
|
|
|
|
|
|
|
"details": null, |
142
|
|
|
|
|
|
|
"details_code": null, |
143
|
|
|
|
|
|
|
"document": { |
144
|
|
|
|
|
|
|
"back": null, |
145
|
|
|
|
|
|
|
"details": null, |
146
|
|
|
|
|
|
|
"details_code": null, |
147
|
|
|
|
|
|
|
"front": null |
148
|
|
|
|
|
|
|
}, |
149
|
|
|
|
|
|
|
"status": "unverified" |
150
|
|
|
|
|
|
|
} |
151
|
|
|
|
|
|
|
} |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head1 HISTORY |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=head2 v0.1 |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
Initial version |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=head1 AUTHOR |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
=head1 SEE ALSO |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
Stripe API documentation: |
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
L<https://stripe.com/docs/api/persons/object> |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
174
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=cut |