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