Stripe/Connect/ApplicationFee/Refund.pm

filter: Statementstmt 50.0% 8 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 27.2% 3 / 11 Podpod 100% 8 / 8 totaltotal 54.2% 19 / 35 CC 1 SCAR 5.5
CC
1
Cov
50%
id
2.0
object
2.0
amount
2.0
CRAP 1.7
« Stripe/Token.pm ↑ Summary Stripe/Connect/Business/Profile.pm »
1 ##----------------------------------------------------------------------------
2 ## Stripe API - ~/lib/Net/API/Stripe/Connect/ApplicationFee/Refund.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 ## https://stripe.com/docs/api/fee_refunds/object
11 package Net::API::Stripe::Connect::ApplicationFee::Refund;
12 BEGIN
13 {
14 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 1 ▶ use parent qw( Net::API::Stripe::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶ our( $VERSION ) = 'v0.100.0';
Subroutine BEGIN: called CC=1 SCAR=0.0
17 };
18  
19 0 ▶sub id { shift->_set_get_scalar( 'id', @_ ); }
Subroutine id: not called CC=1 SCAR=6.9
Pod documented
20  
21 0 ▶sub object { shift->_set_get_scalar( 'object', @_ ); }
Subroutine object: not called CC=1 SCAR=6.9
Pod documented
22  
23 0 ▶sub amount { shift->_set_get_number( 'amount', @_ ); }
Subroutine amount: not called CC=1 SCAR=6.9
Pod documented
24  
25 0 ▶sub balance_transaction { shift->_set_get_scalar_or_object( 'balance_transaction', 'Net::API::Stripe::Balance::Transaction', @_ ); }
Subroutine balance_transaction: not called CC=1 SCAR=6.9
Pod documented
26  
27 0 ▶sub created { shift->_set_get_datetime( 'created', @_ ); }
Subroutine created: not called CC=1 SCAR=6.9
Pod documented
28  
29 0 ▶sub currency { shift->_set_get_scalar( 'currency', @_ ); }
Subroutine currency: not called CC=1 SCAR=6.9
Pod documented
30  
31 0 ▶sub fee { shift->_set_get_scalar_or_object( 'fee', 'Net::API::Stripe::Connect::ApplicationFee', @_ ); }
Subroutine fee: not called CC=1 SCAR=6.9
Pod documented
32  
33 0 ▶sub metadata { shift->_set_get_hash( 'metadata', @_ ); }
Subroutine metadata: not called CC=1 SCAR=6.9
Pod documented
34  
35 1 1;
36  
37 __END__
38  
39 =encoding utf8
40  
41 =head1 NAME
42  
43 Net::API::Stripe::Connect::ApplicationFee::Refund - A Stripe Application Fee Refund Object
44  
45 =head1 SYNOPSIS
46  
47 =head1 VERSION
48  
49 v0.100.0
50  
51 =head1 DESCRIPTION
52  
53 Application Fee Refund objects allow you to refund an application fee that has previously been created but not yet refunded. Funds will be refunded to the Stripe account from which the fee was originally collected.
54  
55 =head1 CONSTRUCTOR
56  
57 =over 4
58  
59 =item B<new>( %ARG )
60  
61 Creates a new L<Net::API::Stripe::Connect::ApplicationFee::Refund> 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<id> string
71  
72 Unique identifier for the object.
73  
74 =item B<object> string, value is "fee_refund"
75  
76 String representing the object’s type. Objects of the same type share the same value.
77  
78 =item B<amount> integer
79  
80 Amount, in JPY.
81  
82 =item B<balance_transaction> string (expandable)
83  
84 Balance transaction that describes the impact on your account balance.
85  
86 =item B<created> timestamp
87  
88 Time at which the object was created. Measured in seconds since the Unix epoch.
89  
90 This is a C<DateTime> object.
91  
92 =item B<currency> currency
93  
94 Three-letter ISO currency code, in lowercase. Must be a supported currency.
95  
96 =item B<fee> string (expandable)
97  
98 ID of the application fee that was refunded.
99  
100 =item B<metadata> hash
101  
102 Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
103  
104 =back
105  
106 =head1 API SAMPLE
107  
108 {
109 "id": "fr_fake123456789",
110 "object": "fee_refund",
111 "amount": 100,
112 "balance_transaction": null,
113 "created": 1571480455,
114 "currency": "jpy",
115 "fee": "fee_fake123456789",
116 "metadata": {}
117 }
118  
119 =head1 HISTORY
120  
121 =head2 v0.1
122  
123 Initial version
124  
125 =head1 AUTHOR
126  
127 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
128  
129 =head1 SEE ALSO
130  
131 Stripe API documentation:
132  
133 L<https://stripe.com/docs/api/fee_refunds>, L<https://stripe.com/docs/connect/destination-charges#refunding-app-fee>
134  
135 =head1 COPYRIGHT & LICENSE
136  
137 Copyright (c) 2019-2020 DEGUEST Pte. Ltd.
138  
139 You can use, copy, modify and redistribute this package and associated
140 files under the same terms as Perl itself.
141  
142 =cut
« Stripe/Token.pm ↑ Summary Stripe/Connect/Business/Profile.pm »