File Coverage

blib/lib/Net/API/Stripe/Connect/ApplicationFee/Refund.pm
Criterion Covered Total %
statement 7 15 46.6
branch n/a
condition n/a
subroutine 3 11 27.2
pod 8 8 100.0
total 18 34 52.9


line stmt bran cond sub pod time code
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     1   860 use strict;
  1         2  
  1         28  
15 1     1   5 use parent qw( Net::API::Stripe::Generic );
  1         1  
  1         5  
16 1     1   182 our( $VERSION ) = 'v0.100.0';
17             };
18              
19 0     0 1   sub id { shift->_set_get_scalar( 'id', @_ ); }
20              
21 0     0 1   sub object { shift->_set_get_scalar( 'object', @_ ); }
22              
23 0     0 1   sub amount { shift->_set_get_number( 'amount', @_ ); }
24              
25 0     0 1   sub balance_transaction { shift->_set_get_scalar_or_object( 'balance_transaction', 'Net::API::Stripe::Balance::Transaction', @_ ); }
26              
27 0     0 1   sub created { shift->_set_get_datetime( 'created', @_ ); }
28              
29 0     0 1   sub currency { shift->_set_get_scalar( 'currency', @_ ); }
30              
31 0     0 1   sub fee { shift->_set_get_scalar_or_object( 'fee', 'Net::API::Stripe::Connect::ApplicationFee', @_ ); }
32              
33 0     0 1   sub metadata { shift->_set_get_hash( 'metadata', @_ ); }
34              
35             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