Stripe/Balance/Transaction/FeeDetails.pm

filter: Statementstmt 61.5% 8 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 37.5% 3 / 8 Podpod 100% 5 / 5 totaltotal 61.5% 16 / 26 CC 1 SCAR 4.9
CC
1
Cov
62%
amount
2.0
application
2.0
currency
2.0
CRAP 1.6
« Stripe/Balance.pm ↑ Summary Stripe/Billing/Plan/Tiers.pm »
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 <@sitael.tokyo.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 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶ our( $VERSION ) = 'v0.100.0';
Subroutine BEGIN: called CC=1 SCAR=0.0
16 };
17  
18 0 ▶sub amount { shift->_set_get_number( 'amount', @_ ); }
Subroutine amount: not called CC=1 SCAR=6.9
Pod documented
19  
20 0 ▶sub application { shift->_set_get_scalar( 'application', @_ ); }
Subroutine application: not called CC=1 SCAR=6.9
Pod documented
21  
22 0 ▶sub currency { shift->_set_get_scalar( 'currency', @_ ); }
Subroutine currency: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub description { shift->_set_get_scalar( 'description', @_ ); }
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub type { shift->_set_get_scalar( 'type', @_ ); }
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
27  
28 1 1;
29  
30 __END__
31  
32 =encoding utf8
33  
34 =head1 NAME
35  
36 Net::API::Stripe::Balance::Transaction::FeeDetails - A Stripe Fee Details Objects
37  
38 =head1 SYNOPSIS
39  
40 my $fee_details = Net::API::Stripe::Balance::Transaction::FeeDetails->new({
41 amount => 2000,
42 currency => 'eur',
43 description => 'Some transaction',
44 type => 'application_fee',
45 });
46  
47 =head1 VERSION
48  
49 v0.100.0
50  
51 =head1 DESCRIPTION
52  
53 This is called from within L<Net::API::Stripe::Transaction> from method B<fee_details>
54  
55 =head1 CONSTRUCTOR
56  
57 =over 4
58  
59 =item B<new>( %ARG )
60  
61 Creates a new L<Net::API::Stripe::Balance::Transaction::FeeDetails> object.
62 It may also take an hash like arguments, that also are method of the same name.
63  
64 =back
65  
66 =head1 METHODS
67  
68 =over 4
69  
70 =item B<amount> integer
71  
72 Amount of the fee, in cents.
73  
74 =item B<application> string
75  
76 =item B<currency> currency
77  
78 Three-letter ISO currency code, in lowercase. Must be a supported currency.
79  
80 =item B<description> string
81  
82 An arbitrary string attached to the object. Often useful for displaying to users.
83  
84 =item B<type> string
85  
86 Type of the fee, one of: application_fee, stripe_fee or tax.
87  
88 =back
89  
90 =head1 API SAMPLE
91  
92 {
93 "id": "txn_fake124567890",
94 "object": "balance_transaction",
95 "amount": 8000,
96 "available_on": 1571443200,
97 "created": 1571128827,
98 "currency": "jpy",
99 "description": "Invoice 123456-0039",
100 "exchange_rate": null,
101 "fee": 288,
102 "fee_details": [
103 {
104 "amount": 288,
105 "application": null,
106 "currency": "jpy",
107 "description": "Stripe processing fees",
108 "type": "stripe_fee"
109 }
110 ],
111 "net": 7712,
112 "source": "ch_fake124567890",
113 "status": "pending",
114 "type": "charge"
115 }
116  
117 =head1 HISTORY
118  
119 =head2 v0.1
120  
121 Initial version
122  
123 =head1 AUTHOR
124  
125 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
126  
127 =head1 SEE ALSO
128  
129 Stripe API documentation:
130  
131 L<https://stripe.com/docs/api>
132  
133 =head1 COPYRIGHT & LICENSE
134  
135 Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
136  
137 You can use, copy, modify and redistribute this package and associated
138 files under the same terms as Perl itself.
139  
140 =cut
« Stripe/Balance.pm ↑ Summary Stripe/Billing/Plan/Tiers.pm »