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