line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Balance/Pending.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::Balance::Pending; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
1
|
|
|
1
|
|
810
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
29
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
15
|
1
|
|
|
1
|
|
141
|
our( $VERSION ) = 'v0.100.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub amount { shift->_set_get_number( 'amount', @_ ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub currency { shift->_set_get_scalar( 'currency', @_ ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub source_types { return( shift->_set_get_hash_as_object( 'source_types', 'Net::API::Stripe::Payment::Source::Types', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=encoding utf8 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Net::API::Stripe::Balance::Pending - A Stripe Pending Fund Object |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPSIS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 VERSION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
v0.100.0 |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This is called from L<Net::API::Stripe::Balance> by B<pending> method. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=over 4 |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=item B<new>( %ARG ) |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Balance::Pending> object. |
51
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=back |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 METHODS |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=over 4 |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item B<amount> integer |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Balance amount. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=item B<currency> currency |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Three-letter ISO currency code, in lowercase. Must be a supported currency. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=item B<source_types> hash |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Breakdown of balance by source types. This is a virtual L<Net::API::Stripe::Payment::Source::Types> module that contains the following properties: |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=over 8 |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item I<bank_account> integer |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Amount for bank account. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=item I<card> integer |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Amount for card. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=back |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=back |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 API SAMPLE |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
{ |
88
|
|
|
|
|
|
|
"object": "balance", |
89
|
|
|
|
|
|
|
"available": [ |
90
|
|
|
|
|
|
|
{ |
91
|
|
|
|
|
|
|
"amount": 7712, |
92
|
|
|
|
|
|
|
"currency": "jpy", |
93
|
|
|
|
|
|
|
"source_types": { |
94
|
|
|
|
|
|
|
"card": 7712 |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
], |
98
|
|
|
|
|
|
|
"connect_reserved": [ |
99
|
|
|
|
|
|
|
{ |
100
|
|
|
|
|
|
|
"amount": 0, |
101
|
|
|
|
|
|
|
"currency": "jpy" |
102
|
|
|
|
|
|
|
} |
103
|
|
|
|
|
|
|
], |
104
|
|
|
|
|
|
|
"livemode": false, |
105
|
|
|
|
|
|
|
"pending": [ |
106
|
|
|
|
|
|
|
{ |
107
|
|
|
|
|
|
|
"amount": 0, |
108
|
|
|
|
|
|
|
"currency": "jpy", |
109
|
|
|
|
|
|
|
"source_types": { |
110
|
|
|
|
|
|
|
"card": 0 |
111
|
|
|
|
|
|
|
} |
112
|
|
|
|
|
|
|
} |
113
|
|
|
|
|
|
|
] |
114
|
|
|
|
|
|
|
} |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head1 HISTORY |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head2 v0.1 |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Initial version |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head1 AUTHOR |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
=head1 SEE ALSO |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
Stripe API documentation: |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
L<https://stripe.com/docs/api> |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
137
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=cut |