line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Stripe::Refund; |
2
|
|
|
|
|
|
|
$Net::Stripe::Refund::VERSION = '0.42'; |
3
|
2
|
|
|
2
|
|
18
|
use Moose; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
20
|
|
4
|
2
|
|
|
2
|
|
14674
|
use Kavorka; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
21
|
|
5
|
|
|
|
|
|
|
extends 'Net::Stripe::Resource'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: represent a Refund object from Stripe |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
has 'id' => (is => 'ro', isa => 'Maybe[Str]'); |
10
|
|
|
|
|
|
|
has 'amount' => (is => 'ro', isa => 'Maybe[Int]'); |
11
|
|
|
|
|
|
|
has 'created' => (is => 'ro', isa => 'Maybe[Int]'); |
12
|
|
|
|
|
|
|
has 'currency' => (is => 'ro', isa => 'Maybe[Str]'); |
13
|
|
|
|
|
|
|
has 'balance_transaction' => (is => 'ro', isa => 'Maybe[Str]'); |
14
|
|
|
|
|
|
|
has 'charge' => (is => 'ro', isa => 'Maybe[Str]'); |
15
|
|
|
|
|
|
|
has 'metadata' => (is => 'ro', isa => 'Maybe[HashRef]'); |
16
|
|
|
|
|
|
|
has 'reason' => (is => 'ro', isa => 'Maybe[Str]'); |
17
|
|
|
|
|
|
|
has 'receipt_number' => (is => 'ro', isa => 'Maybe[Str]'); |
18
|
|
|
|
|
|
|
has 'status' => (is => 'ro', isa => 'Maybe[Str]'); |
19
|
|
|
|
|
|
|
has 'description' => ( |
20
|
|
|
|
|
|
|
is => 'ro', |
21
|
|
|
|
|
|
|
isa => 'Maybe[Str]', |
22
|
|
|
|
|
|
|
lazy => 1, |
23
|
|
|
|
|
|
|
default => sub { |
24
|
|
|
|
|
|
|
warn |
25
|
|
|
|
|
|
|
"Use of Net::Stripe::Refund->description is deprecated and will be removed in the next Net::Stripe release"; |
26
|
|
|
|
|
|
|
return; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
# Create only |
31
|
|
|
|
|
|
|
has 'refund_application_fee' => (is => 'ro', isa => 'Maybe[Bool|Object]'); |
32
|
|
|
|
|
|
|
|
33
|
2
|
0
|
|
2
|
|
5137
|
method form_fields { |
|
2
|
|
|
0
|
|
16
|
|
|
2
|
|
|
|
|
352
|
|
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
return $self->form_fields_for( |
35
|
|
|
|
|
|
|
qw/amount refund_application_fee reason metadata/ |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
__END__ |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=pod |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 NAME |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Net::Stripe::Refund - represent a Refund object from Stripe |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 VERSION |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
version 0.42 |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 amount |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Reader: amount |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Type: Maybe[Int] |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 balance_transaction |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Reader: balance_transaction |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Type: Maybe[Str] |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head2 boolean_attributes |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Reader: boolean_attributes |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Type: ArrayRef[Str] |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 charge |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Reader: charge |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
Type: Maybe[Str] |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 created |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Reader: created |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
Type: Maybe[Int] |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head2 currency |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
Reader: currency |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Type: Maybe[Str] |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 description |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
Reader: description |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Type: Maybe[Str] |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=head2 id |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
Reader: id |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
Type: Maybe[Str] |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 metadata |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
Reader: metadata |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Type: Maybe[HashRef] |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 reason |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Reader: reason |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Type: Maybe[Str] |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head2 receipt_number |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
Reader: receipt_number |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Type: Maybe[Str] |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head2 refund_application_fee |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Reader: refund_application_fee |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Type: Maybe[Bool|Object] |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 status |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
Reader: status |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Type: Maybe[Str] |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=head1 AUTHORS |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=over 4 |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
=item * |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
Luke Closs |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=item * |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
Rusty Conover |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=back |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Prime Radiant, Inc., (c) copyright 2014 Lucky Dinosaur LLC. |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
153
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=cut |