line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Balance/Transaction/FeeDetails.pm |
3
|
|
|
|
|
|
|
## Version v0.100.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2019 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2019/11/02 |
7
|
|
|
|
|
|
|
## Modified 2020/05/15 |
8
|
|
|
|
|
|
|
## |
9
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
10
|
|
|
|
|
|
|
BEGIN |
11
|
|
|
|
|
|
|
{ |
12
|
|
|
|
|
|
|
use strict; |
13
|
1
|
|
|
1
|
|
956
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
14
|
1
|
|
|
1
|
|
5
|
use parent qw( Net::API::Stripe::Generic ); |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
28
|
|
15
|
1
|
|
|
1
|
|
5
|
use vars qw( $VERSION ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
16
|
1
|
|
|
1
|
|
69
|
our( $VERSION ) = 'v0.100.0'; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
48
|
|
17
|
1
|
|
|
1
|
|
18
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
use strict; |
20
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
18
|
|
21
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
125
|
|
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
|
26
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
1
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
|
30
|
|
|
|
|
|
|
=encoding utf8 |
31
|
0
|
|
|
0
|
1
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Net::API::Stripe::Balance::Transaction::FeeDetails - A Stripe Fee Details Objects |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 SYNOPSIS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
my $fee_details = Net::API::Stripe::Balance::Transaction::FeeDetails->new({ |
39
|
|
|
|
|
|
|
amount => 2000, |
40
|
|
|
|
|
|
|
currency => 'eur', |
41
|
|
|
|
|
|
|
description => 'Some transaction', |
42
|
|
|
|
|
|
|
type => 'application_fee', |
43
|
|
|
|
|
|
|
}); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 VERSION |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
v0.100.0 |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 DESCRIPTION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This is called from within L<Net::API::Stripe::Transaction> from method B<fee_details> |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 new( %ARG ) |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Balance::Transaction::FeeDetails> object. |
58
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 METHODS |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 amount integer |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Amount of the fee, in cents. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 application string |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
ID of the Connect application that earned the fee. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head2 currency currency |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Three-letter ISO currency code, in lowercase. Must be a supported currency. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 description string |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
An arbitrary string attached to the object. Often useful for displaying to users. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head2 type string |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Type of the fee, one of: application_fee, stripe_fee or tax. |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=head1 API SAMPLE |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
{ |
85
|
|
|
|
|
|
|
"id": "txn_fake124567890", |
86
|
|
|
|
|
|
|
"object": "balance_transaction", |
87
|
|
|
|
|
|
|
"amount": 8000, |
88
|
|
|
|
|
|
|
"available_on": 1571443200, |
89
|
|
|
|
|
|
|
"created": 1571128827, |
90
|
|
|
|
|
|
|
"currency": "jpy", |
91
|
|
|
|
|
|
|
"description": "Invoice 123456-0039", |
92
|
|
|
|
|
|
|
"exchange_rate": null, |
93
|
|
|
|
|
|
|
"fee": 288, |
94
|
|
|
|
|
|
|
"fee_details": [ |
95
|
|
|
|
|
|
|
{ |
96
|
|
|
|
|
|
|
"amount": 288, |
97
|
|
|
|
|
|
|
"application": null, |
98
|
|
|
|
|
|
|
"currency": "jpy", |
99
|
|
|
|
|
|
|
"description": "Stripe processing fees", |
100
|
|
|
|
|
|
|
"type": "stripe_fee" |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
], |
103
|
|
|
|
|
|
|
"net": 7712, |
104
|
|
|
|
|
|
|
"source": "ch_fake124567890", |
105
|
|
|
|
|
|
|
"status": "pending", |
106
|
|
|
|
|
|
|
"type": "charge" |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
=head1 HISTORY |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head2 v0.1 |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Initial version |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head1 AUTHOR |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head1 SEE ALSO |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Stripe API documentation: |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
L<https://stripe.com/docs/api> |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Copyright (c) 2019-2020 DEGUEST Pte. Ltd. |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
130
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
=cut |