line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Stripe::BalanceTransaction; |
2
|
|
|
|
|
|
|
$Net::Stripe::BalanceTransaction::VERSION = '0.42'; |
3
|
2
|
|
|
2
|
|
16
|
use Moose; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
13
|
|
4
|
2
|
|
|
2
|
|
13907
|
use Moose::Util::TypeConstraints qw(subtype as where message); |
|
2
|
|
|
|
|
7
|
|
|
2
|
|
|
|
|
21
|
|
5
|
|
|
|
|
|
|
extends 'Net::Stripe::Resource'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
# ABSTRACT: represent a BalanceTransaction object from Stripe |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
subtype 'TransactionType', |
10
|
|
|
|
|
|
|
as 'Str', |
11
|
|
|
|
|
|
|
where { $_ =~ /^(?:charge|refund|adjustment|application_fee(?:_refund)?|transfer_?(?:cancelfailure)?)$/ }, |
12
|
|
|
|
|
|
|
message { "A transaction type must be one of charge, refund, adjustment, application_fee, application_fee_refund, transfer, transfer_cancel or transfer_failure" }; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
subtype 'StatusType', |
15
|
|
|
|
|
|
|
as 'Str', |
16
|
|
|
|
|
|
|
where { $_ =~ /^(?:available|pending)$/ }, |
17
|
|
|
|
|
|
|
message { "A Status must be one of available or pending" }; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
has 'id' => (is => 'ro', isa => 'Str'); |
20
|
|
|
|
|
|
|
has 'amount' => (is => 'ro', isa => 'Int'); |
21
|
|
|
|
|
|
|
has 'currency' => (is => 'ro', isa => 'Str', required => 1); |
22
|
|
|
|
|
|
|
has 'net' => (is => 'ro', isa => 'Int'); |
23
|
|
|
|
|
|
|
has 'type' => (is => 'ro', isa => 'TransactionType'); |
24
|
|
|
|
|
|
|
has 'created' => (is => 'ro', isa => 'Int'); |
25
|
|
|
|
|
|
|
has 'available_on' => (is => 'ro', isa => 'Int'); |
26
|
|
|
|
|
|
|
has 'status' => (is => 'ro', isa => 'StatusType'); |
27
|
|
|
|
|
|
|
has 'fee' => (is => 'ro', isa => 'Int'); |
28
|
|
|
|
|
|
|
has 'fee_details' => (is => 'ro', isa => 'Maybe[ArrayRef]'); |
29
|
|
|
|
|
|
|
has 'source' => (is => 'ro', isa => 'Str'); |
30
|
|
|
|
|
|
|
has 'description' => (is => 'ro', isa => 'Maybe[Str]'); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=pod |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 NAME |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Net::Stripe::BalanceTransaction - represent a BalanceTransaction object from Stripe |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 VERSION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
version 0.42 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head2 amount |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Reader: amount |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Type: Int |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head2 available_on |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Reader: available_on |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Type: Int |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head2 boolean_attributes |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Reader: boolean_attributes |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
Type: ArrayRef[Str] |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head2 created |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
Reader: created |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
Type: Int |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=head2 currency |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Reader: currency |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
Type: Str |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
This attribute is required. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head2 description |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
Reader: description |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
Type: Maybe[Str] |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=head2 fee |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
Reader: fee |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Type: Int |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 fee_details |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
Reader: fee_details |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Type: Maybe[ArrayRef] |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 id |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
Reader: id |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Type: Str |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head2 net |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
Reader: net |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Type: Int |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head2 source |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
Reader: source |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Type: Str |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head2 status |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
Reader: status |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Type: StatusType |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head2 type |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
Reader: type |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Type: TransactionType |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head1 AUTHORS |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=over 4 |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=item * |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
Luke Closs |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=item * |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
Rusty Conover |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
=back |
142
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
This software is copyright (c) 2015 by Prime Radiant, Inc., (c) copyright 2014 Lucky Dinosaur LLC. |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
148
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=cut |