line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Payment/Source/Types.pm |
3
|
|
|
|
|
|
|
## Version v0.1.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2019 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2020/11/15 |
7
|
|
|
|
|
|
|
## Modified 2020/11/15 |
8
|
|
|
|
|
|
|
## |
9
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
10
|
|
|
|
|
|
|
BEGIN |
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
1012
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
15
|
1
|
|
|
1
|
|
7
|
use vars qw( $VERSION ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
5
|
|
16
|
1
|
|
|
1
|
|
76
|
our( $VERSION ) = 'v0.1.0'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
50
|
|
17
|
1
|
|
|
1
|
|
35
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
use strict; |
20
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
21
|
|
21
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
130
|
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
1; |
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
1
|
|
|
28
|
|
|
|
|
|
|
=encoding utf8 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Net::API::Stripe::Payment::Source::Types - Payment Source Types |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 SYNOPSIS |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
my $types = $stripe->payment->source->types({ |
37
|
|
|
|
|
|
|
bank_account => 1000000, |
38
|
|
|
|
|
|
|
card => 1000, |
39
|
|
|
|
|
|
|
fpx => 0, |
40
|
|
|
|
|
|
|
}); |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 VERSION |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
v0.100.0 |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 DESCRIPTION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This is called from L<Net::API::Stripe::Balance::ConnectReserved> and L<Net::API::Stripe::Balance::Pending> |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 new( %ARG ) |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Payment::Source::Types> object. |
55
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 METHODS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head2 bank_account integer |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Amount for bank account. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head2 card integer |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Amount for card. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head2 fpx integer |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Amount for FPX. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head1 API SAMPLE |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
{ |
74
|
|
|
|
|
|
|
"object": "balance", |
75
|
|
|
|
|
|
|
"available": [ |
76
|
|
|
|
|
|
|
{ |
77
|
|
|
|
|
|
|
"amount": 0, |
78
|
|
|
|
|
|
|
"currency": "jpy", |
79
|
|
|
|
|
|
|
"source_types": { |
80
|
|
|
|
|
|
|
"card": 0 |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
} |
83
|
|
|
|
|
|
|
], |
84
|
|
|
|
|
|
|
"connect_reserved": [ |
85
|
|
|
|
|
|
|
{ |
86
|
|
|
|
|
|
|
"amount": 0, |
87
|
|
|
|
|
|
|
"currency": "jpy" |
88
|
|
|
|
|
|
|
} |
89
|
|
|
|
|
|
|
], |
90
|
|
|
|
|
|
|
"livemode": false, |
91
|
|
|
|
|
|
|
"pending": [ |
92
|
|
|
|
|
|
|
{ |
93
|
|
|
|
|
|
|
"amount": 7712, |
94
|
|
|
|
|
|
|
"currency": "jpy", |
95
|
|
|
|
|
|
|
"source_types": { |
96
|
|
|
|
|
|
|
"card": 7712 |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
} |
99
|
|
|
|
|
|
|
] |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=head1 HISTORY |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 v0.1 |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Initial version |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head1 AUTHOR |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 SEE ALSO |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Stripe API documentation: |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
L<https://stripe.com/docs/api> |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated files under the same terms as Perl itself. |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
=cut |