line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Licensed under the Upwork's API Terms of Use; |
2
|
|
|
|
|
|
|
# you may not use this file except in compliance with the Terms. |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Unless required by applicable law or agreed to in writing, software |
5
|
|
|
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS, |
6
|
|
|
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
7
|
|
|
|
|
|
|
# See the License for the specific language governing permissions and |
8
|
|
|
|
|
|
|
# limitations under the License. |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Author:: Maksym Novozhylov (mnovozhilov@upwork.com) |
11
|
|
|
|
|
|
|
# Copyright:: Copyright 2015(c) Upwork.com |
12
|
|
|
|
|
|
|
# License:: See LICENSE.txt and TOS - https://developers.upwork.com/api-tos.html |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
package Net::Upwork::API::Routers::Reports::Finance::Billings; |
15
|
|
|
|
|
|
|
|
16
|
1
|
|
|
1
|
|
71425
|
use strict; |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
28
|
|
17
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
18
|
1
|
|
|
1
|
|
432
|
use parent "Net::Upwork::API"; |
|
1
|
|
|
|
|
298
|
|
|
1
|
|
|
|
|
12
|
|
19
|
|
|
|
|
|
|
|
20
|
1
|
|
|
1
|
|
64
|
use constant ENTRY_POINT => Net::Upwork::API::Client::ENTRY_POINT_GDS; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
385
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=pod |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Auth |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 FUNCTIONS |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=over 4 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=item new($api) |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Create a new object for accessing Auth API |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
B |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
$api |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
API object |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=cut |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
sub new { |
45
|
0
|
|
|
0
|
1
|
|
my ($class, $api) = @_; |
46
|
0
|
|
|
|
|
|
return Net::Upwork::API::init_router($class, $api, ENTRY_POINT); |
47
|
|
|
|
|
|
|
} |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=item get_by_freelancer |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
Generate Billing Reports for a Specific Freelancer |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
B |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
$freelancer_ref |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Freelancer reference |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
B |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
JSON response as a string |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=cut |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub get_by_freelancer { |
66
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
67
|
0
|
|
|
|
|
|
my $freelancer_ref = shift; |
68
|
0
|
|
|
|
|
|
my %params = @_; |
69
|
|
|
|
|
|
|
|
70
|
0
|
|
|
|
|
|
return $self->client()->get("/finreports/v2/providers/" . $freelancer_ref . "/billings", %params); |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item get_by_freelancers_team |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Generate Billing Reports for a Specific Freelancer's Team |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
B |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
$freelancer_team_ref |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Freelancer's team reference |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
B |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
JSON response as a string |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
=cut |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
sub get_by_freelancers_team { |
90
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
91
|
0
|
|
|
|
|
|
my $freelancer_team_ref = shift; |
92
|
0
|
|
|
|
|
|
my %params = @_; |
93
|
|
|
|
|
|
|
|
94
|
0
|
|
|
|
|
|
return $self->client()->get("/finreports/v2/provider_teams/" . $freelancer_team_ref . "/billings", %params); |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=item get_by_freelancers_company |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
Generate Billing Reports for a Specific Freelancer's Company |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
B |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
$freelancer_company_ref |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Freelancer's company reference |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
B |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
JSON response as a string |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=cut |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
sub get_by_freelancers_company { |
114
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
115
|
0
|
|
|
|
|
|
my $freelancer_company_ref = shift; |
116
|
0
|
|
|
|
|
|
my %params = @_; |
117
|
|
|
|
|
|
|
|
118
|
0
|
|
|
|
|
|
return $self->client()->get("/finreports/v2/provider_companies/" . $freelancer_company_ref . "/billings", %params); |
119
|
|
|
|
|
|
|
} |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
=item get_by_buyers_team |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
Generate Billing Reports for a Specific Buyer's Team |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
B |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
$buyer_team_ref |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
Buyer's team reference |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
B |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
JSON response as a string |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=cut |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
sub get_by_buyers_team { |
138
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
139
|
0
|
|
|
|
|
|
my $buyer_team_ref = shift; |
140
|
0
|
|
|
|
|
|
my %params = @_; |
141
|
|
|
|
|
|
|
|
142
|
0
|
|
|
|
|
|
return $self->client()->get("/finreports/v2/buyer_teams/" . $buyer_team_ref . "/billings", %params); |
143
|
|
|
|
|
|
|
} |
144
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=item get_by_buyers_company |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
Generate Billing Reports for a Specific Buyer's Company |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
B |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
$buyer_company_ref |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
Buyer's company reference |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
B |
156
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
JSON response as a string |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=cut |
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
sub get_by_buyers_company { |
162
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
163
|
0
|
|
|
|
|
|
my $buyer_company_ref = shift; |
164
|
0
|
|
|
|
|
|
my %params = @_; |
165
|
|
|
|
|
|
|
|
166
|
0
|
|
|
|
|
|
return $self->client()->get("/finreports/v2/buyer_companies/" . $buyer_company_ref . "/billings", %params); |
167
|
|
|
|
|
|
|
} |
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
=back |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=head1 AUTHOR |
172
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
Maksym Novozhylov C<< >> |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
=head1 COPYRIGHT |
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Copyright E Upwork Global Corp., 2015 |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
=cut |
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
1; |