line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
2
|
|
|
|
|
|
|
## Stripe API - ~/lib/Net/API/Stripe/Treasury/DebitReversal.pm |
3
|
|
|
|
|
|
|
## Version v0.1.0 |
4
|
|
|
|
|
|
|
## Copyright(c) 2022 DEGUEST Pte. Ltd. |
5
|
|
|
|
|
|
|
## Author: Jacques Deguest <jack@deguest.jp> |
6
|
|
|
|
|
|
|
## Created 2022/10/29 |
7
|
|
|
|
|
|
|
## Modified 2022/10/29 |
8
|
|
|
|
|
|
|
## |
9
|
|
|
|
|
|
|
##---------------------------------------------------------------------------- |
10
|
|
|
|
|
|
|
package Net::API::Stripe::Treasury::DebitReversal; |
11
|
|
|
|
|
|
|
BEGIN |
12
|
|
|
|
|
|
|
{ |
13
|
2
|
|
|
2
|
|
21363783
|
use strict; |
|
2
|
|
|
|
|
17
|
|
|
2
|
|
|
|
|
72
|
|
14
|
2
|
|
|
2
|
|
13
|
use parent qw( Net::API::Stripe::Generic ); |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
13
|
|
15
|
2
|
|
|
2
|
|
822
|
our( $VERSION ) = 'v0.1.0'; |
16
|
|
|
|
|
|
|
}; |
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
1
|
|
sub id { return( shift->_set_get_scalar( 'id', @_ ) ); } |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
0
|
1
|
|
sub object { return( shift->_set_get_scalar( 'object', @_ ) ); } |
21
|
|
|
|
|
|
|
|
22
|
0
|
|
|
0
|
1
|
|
sub amount { return( shift->_set_get_number( 'amount', @_ ) ); } |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
0
|
1
|
|
sub currency { return( shift->_set_get_number( 'currency', @_ ) ); } |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
0
|
1
|
|
sub financial_account { return( shift->_set_get_scalar( 'financial_account', @_ ) ); } |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
0
|
1
|
|
sub hosted_regulatory_receipt_url { return( shift->_set_get_scalar( 'hosted_regulatory_receipt_url', @_ ) ); } |
29
|
|
|
|
|
|
|
|
30
|
0
|
|
|
0
|
1
|
|
sub linked_flows { return( shift->_set_get_class( 'linked_flows', |
31
|
|
|
|
|
|
|
{ issuing_dispute => { type => "scalar" } }, @_ ) ); } |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
0
|
1
|
|
sub livemode { return( shift->_set_get_boolean( 'livemode', @_ ) ); } |
34
|
|
|
|
|
|
|
|
35
|
0
|
|
|
0
|
1
|
|
sub metadata { return( shift->_set_get_hash( 'metadata', @_ ) ); } |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
0
|
1
|
|
sub network { return( shift->_set_get_scalar( 'network', @_ ) ); } |
38
|
|
|
|
|
|
|
|
39
|
0
|
|
|
0
|
1
|
|
sub received_debit { return( shift->_set_get_scalar( 'received_debit', @_ ) ); } |
40
|
|
|
|
|
|
|
|
41
|
0
|
|
|
0
|
1
|
|
sub status { return( shift->_set_get_scalar( 'status', @_ ) ); } |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
0
|
1
|
|
sub status_transitions { return( shift->_set_get_object( 'status_transitions', 'Net::API::Stripe::Billing::Subscription::Schedule', @_ ) ); } |
44
|
|
|
|
|
|
|
|
45
|
0
|
|
|
0
|
1
|
|
sub transaction { return( shift->_set_get_scalar_or_object( 'transaction', 'Net::API::Stripe::Treasury::Transaction', @_ ) ); } |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1; |
48
|
|
|
|
|
|
|
# NOTE: POD |
49
|
|
|
|
|
|
|
__END__ |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=encoding utf8 |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 NAME |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Net::API::Stripe::Treasury::DebitReversal - The DebitReversal object |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 SYNOPSIS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 VERSION |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
v0.1.0 |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 DESCRIPTION |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
You can reverse some L<ReceivedDebits|https://stripe.com/docs/api/treasury/received_debits> depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 METHODS |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head2 id string |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Unique identifier for the object. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 object string |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
String representing the object's type. Objects of the same type share the same value. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 amount integer |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Amount (in cents) transferred. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 currency currency |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Three-letter L<ISO currency code|https://www.iso.org/iso-4217-currency-codes.html>, in lowercase. Must be a L<supported currency|https://stripe.com/docs/currencies>. |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 financial_account string |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
The FinancialAccount to reverse funds from. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head2 hosted_regulatory_receipt_url string |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
A L<hosted transaction receipt|https://stripe.com/docs/treasury/moving-money/regulatory-receipts> URL that is provided when money movement is considered regulated under Stripe's money transmission licenses. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 linked_flows hash |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Other flows linked to a DebitReversal. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
It has the following properties: |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=over 4 |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=item C<issuing_dispute> string |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Set if there is an Issuing dispute associated with the DebitReversal. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=back |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=head2 livemode boolean |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Has the value C<true> if the object exists in live mode or the value C<false> if the object exists in test mode. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head2 metadata hash |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Set of L<key-value pairs|https://stripe.com/docs/api/metadata> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head2 network string |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
The rails used to reverse the funds. |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head2 received_debit string |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
The ReceivedDebit being reversed. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head2 status string |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
Status of the DebitReversal |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
=head2 status_transitions object |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
Hash containing timestamps of when the object transitioned to a particular C<status>. |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
This is a L<Net::API::Stripe::Billing::Subscription::Schedule> object. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=head2 transaction expandable |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
The Transaction associated with this object. |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
When expanded this is an L<Net::API::Stripe::Treasury::Transaction> object. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
=head1 API SAMPLE |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
[ |
142
|
|
|
|
|
|
|
{ |
143
|
|
|
|
|
|
|
"amount" : "1000", |
144
|
|
|
|
|
|
|
"currency" : "usd", |
145
|
|
|
|
|
|
|
"financial_account" : "fa_1Le9F32eZvKYlo2CjbQcDQUE", |
146
|
|
|
|
|
|
|
"hosted_regulatory_receipt_url" : "https://payments.stripe.com/regulatory-receipt/CBQaFwoVYWNjdF8xMDMyRDgyZVp2S1lsbzJDKN6u0JgGMgZ5wklFW6A6NpM6vaRPqAA3MfviuxTVdP3EJG4azU5gXKVEXCmp3Kb06tC0LoZCqWCdfl0iQhcDzdQfLekmyQ", |
147
|
|
|
|
|
|
|
"id" : "debrev_1Le9F42eZvKYlo2Cb7q6jmDW", |
148
|
|
|
|
|
|
|
"linked_flows" : null, |
149
|
|
|
|
|
|
|
"livemode" : 0, |
150
|
|
|
|
|
|
|
"metadata" : {}, |
151
|
|
|
|
|
|
|
"network" : "ach", |
152
|
|
|
|
|
|
|
"object" : "treasury.debit_reversal", |
153
|
|
|
|
|
|
|
"received_debit" : "rd_1Le9F42eZvKYlo2C0TIJJqNP", |
154
|
|
|
|
|
|
|
"status" : "processing", |
155
|
|
|
|
|
|
|
"status_transitions" : { |
156
|
|
|
|
|
|
|
"completed_at" : null |
157
|
|
|
|
|
|
|
}, |
158
|
|
|
|
|
|
|
"transaction" : "trxn_1Le9F32eZvKYlo2C2dtkse82" |
159
|
|
|
|
|
|
|
} |
160
|
|
|
|
|
|
|
] |
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
=head1 HISTORY |
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
=head2 v0.1.0 |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
Initial version |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
=head1 AUTHOR |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
Jacques Deguest E<lt>F<jack@deguest.jp>E<gt> |
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=head1 SEE ALSO |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
L<Stripe API documentation|https://stripe.com/docs/api/treasury/debit_reversals> |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
Copyright (c) 2019-2022 DEGUEST Pte. Ltd. |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
You can use, copy, modify and redistribute this package and associated |
181
|
|
|
|
|
|
|
files under the same terms as Perl itself. |
182
|
|
|
|
|
|
|
|
183
|
|
|
|
|
|
|
=cut |