| 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
|
|
|
|
|
|
|
package Net::API::Stripe::Balance::Transaction::FeeDetails; |
|
11
|
|
|
|
|
|
|
BEGIN |
|
12
|
|
|
|
|
|
|
{ |
|
13
|
1
|
|
|
1
|
|
1000
|
use strict; |
|
|
1
|
|
|
|
|
4
|
|
|
|
1
|
|
|
|
|
31
|
|
|
14
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
31
|
|
|
15
|
1
|
|
|
1
|
|
7
|
use parent qw( Net::API::Stripe::Generic ); |
|
|
1
|
|
|
|
|
6
|
|
|
|
1
|
|
|
|
|
6
|
|
|
16
|
1
|
|
|
1
|
|
76
|
use vars qw( $VERSION ); |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
47
|
|
|
17
|
1
|
|
|
1
|
|
17
|
our( $VERSION ) = 'v0.100.0'; |
|
18
|
|
|
|
|
|
|
}; |
|
19
|
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
5
|
use strict; |
|
|
1
|
|
|
|
|
12
|
|
|
|
1
|
|
|
|
|
16
|
|
|
21
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
125
|
|
|
22
|
|
|
|
|
|
|
|
|
23
|
0
|
|
|
0
|
1
|
|
sub amount { return( shift->_set_get_number( 'amount', @_ ) ); } |
|
24
|
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
sub application { return( shift->_set_get_scalar( 'application', @_ ) ); } |
|
26
|
|
|
|
|
|
|
|
|
27
|
0
|
|
|
0
|
1
|
|
sub currency { return( shift->_set_get_scalar( 'currency', @_ ) ); } |
|
28
|
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
1
|
|
sub description { return( shift->_set_get_scalar( 'description', @_ ) ); } |
|
30
|
|
|
|
|
|
|
|
|
31
|
0
|
|
|
0
|
1
|
|
sub type { return( shift->_set_get_scalar( 'type', @_ ) ); } |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=encoding utf8 |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Net::API::Stripe::Balance::Transaction::FeeDetails - A Stripe Fee Details Objects |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
my $fee_details = Net::API::Stripe::Balance::Transaction::FeeDetails->new({ |
|
46
|
|
|
|
|
|
|
amount => 2000, |
|
47
|
|
|
|
|
|
|
currency => 'eur', |
|
48
|
|
|
|
|
|
|
description => 'Some transaction', |
|
49
|
|
|
|
|
|
|
type => 'application_fee', |
|
50
|
|
|
|
|
|
|
}); |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head1 VERSION |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
v0.100.0 |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
This is called from within L<Net::API::Stripe::Transaction> from method B<fee_details> |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 CONSTRUCTOR |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 new( %ARG ) |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Creates a new L<Net::API::Stripe::Balance::Transaction::FeeDetails> object. |
|
65
|
|
|
|
|
|
|
It may also take an hash like arguments, that also are method of the same name. |
|
66
|
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 METHODS |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 amount integer |
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Amount of the fee, in cents. |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 application string |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
ID of the Connect application that earned the fee. |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 currency currency |
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Three-letter ISO currency code, in lowercase. Must be a supported currency. |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 description string |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
An arbitrary string attached to the object. Often useful for displaying to users. |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 type string |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Type of the fee, one of: application_fee, stripe_fee or tax. |
|
88
|
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 API SAMPLE |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
{ |
|
92
|
|
|
|
|
|
|
"id": "txn_fake124567890", |
|
93
|
|
|
|
|
|
|
"object": "balance_transaction", |
|
94
|
|
|
|
|
|
|
"amount": 8000, |
|
95
|
|
|
|
|
|
|
"available_on": 1571443200, |
|
96
|
|
|
|
|
|
|
"created": 1571128827, |
|
97
|
|
|
|
|
|
|
"currency": "jpy", |
|
98
|
|
|
|
|
|
|
"description": "Invoice 123456-0039", |
|
99
|
|
|
|
|
|
|
"exchange_rate": null, |
|
100
|
|
|
|
|
|
|
"fee": 288, |
|
101
|
|
|
|
|
|
|
"fee_details": [ |
|
102
|
|
|
|
|
|
|
{ |
|
103
|
|
|
|
|
|
|
"amount": 288, |
|
104
|
|
|
|
|
|
|
"application": null, |
|
105
|
|
|
|
|
|
|
"currency": "jpy", |
|
106
|
|
|
|
|
|
|
"description": "Stripe processing fees", |
|
107
|
|
|
|
|
|
|
"type": "stripe_fee" |
|
108
|
|
|
|
|
|
|
} |
|
109
|
|
|
|
|
|
|
], |
|
110
|
|
|
|
|
|
|
"net": 7712, |
|
111
|
|
|
|
|
|
|
"source": "ch_fake124567890", |
|
112
|
|
|
|
|
|
|
"status": "pending", |
|
113
|
|
|
|
|
|
|
"type": "charge" |
|
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 |