line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
=begin comment |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
Smartcat Integration API |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
OpenAPI spec version: v1 |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Generated by: https://github.com/swagger-api/swagger-codegen.git |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=end comment |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=cut |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
# |
17
|
|
|
|
|
|
|
# NOTE: This class is auto generated by the swagger code generator program. |
18
|
|
|
|
|
|
|
# Do not edit the class manually. |
19
|
|
|
|
|
|
|
# Ref: https://github.com/swagger-api/swagger-codegen |
20
|
|
|
|
|
|
|
# |
21
|
|
|
|
|
|
|
package Smartcat::Client::AccountApi; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
require 5.6.0; |
24
|
1
|
|
|
1
|
|
882
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
25
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
26
|
1
|
|
|
1
|
|
686
|
use utf8; |
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
5
|
|
27
|
1
|
|
|
1
|
|
32
|
use Exporter; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
52
|
|
28
|
1
|
|
|
1
|
|
5
|
use Carp qw( croak ); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
56
|
|
29
|
1
|
|
|
1
|
|
538
|
use Log::Any qw($log); |
|
1
|
|
|
|
|
9255
|
|
|
1
|
|
|
|
|
6
|
|
30
|
|
|
|
|
|
|
|
31
|
1
|
|
|
1
|
|
2995
|
use Smartcat::Client::ApiClient; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
46
|
|
32
|
|
|
|
|
|
|
|
33
|
1
|
|
|
1
|
|
12
|
use base "Class::Data::Inheritable"; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
728
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__PACKAGE__->mk_classdata( 'method_documentation' => {} ); |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub new { |
38
|
1
|
|
|
1
|
0
|
658
|
my $class = shift; |
39
|
1
|
|
|
|
|
2
|
my $api_client; |
40
|
|
|
|
|
|
|
|
41
|
1
|
50
|
33
|
|
|
9
|
if ( $_[0] && ref $_[0] && ref $_[0] eq 'Smartcat::Client::ApiClient' ) { |
|
|
|
33
|
|
|
|
|
42
|
0
|
|
|
|
|
0
|
$api_client = $_[0]; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
else { |
45
|
1
|
|
|
|
|
11
|
$api_client = Smartcat::Client::ApiClient->new(@_); |
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
1
|
|
|
|
|
10
|
bless { api_client => $api_client }, $class; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# |
53
|
|
|
|
|
|
|
# account_add_inhouse_translator |
54
|
|
|
|
|
|
|
# |
55
|
|
|
|
|
|
|
# |
56
|
|
|
|
|
|
|
# |
57
|
|
|
|
|
|
|
# @param InhouseTranslatorCreationModel $model (required) |
58
|
|
|
|
|
|
|
{ |
59
|
|
|
|
|
|
|
my $params = { |
60
|
|
|
|
|
|
|
'model' => { |
61
|
|
|
|
|
|
|
data_type => 'InhouseTranslatorCreationModel', |
62
|
|
|
|
|
|
|
description => '', |
63
|
|
|
|
|
|
|
required => '1', |
64
|
|
|
|
|
|
|
}, |
65
|
|
|
|
|
|
|
}; |
66
|
|
|
|
|
|
|
__PACKAGE__->method_documentation->{'account_add_inhouse_translator'} = { |
67
|
|
|
|
|
|
|
summary => '', |
68
|
|
|
|
|
|
|
params => $params, |
69
|
|
|
|
|
|
|
returns => 'MyTeamMemberModel', |
70
|
|
|
|
|
|
|
}; |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
# @return MyTeamMemberModel |
74
|
|
|
|
|
|
|
# |
75
|
|
|
|
|
|
|
sub account_add_inhouse_translator { |
76
|
0
|
|
|
0
|
0
|
|
my ( $self, %args ) = @_; |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
# verify the required parameter 'model' is set |
79
|
0
|
0
|
|
|
|
|
unless ( exists $args{'model'} ) { |
80
|
0
|
|
|
|
|
|
croak( |
81
|
|
|
|
|
|
|
"Missing the required parameter 'model' when calling account_add_inhouse_translator" |
82
|
|
|
|
|
|
|
); |
83
|
|
|
|
|
|
|
} |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
# parse inputs |
86
|
0
|
|
|
|
|
|
my $_resource_path = '/api/integration/v1/account/myTeam'; |
87
|
|
|
|
|
|
|
|
88
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
89
|
0
|
|
|
|
|
|
my $query_params = {}; |
90
|
0
|
|
|
|
|
|
my $header_params = {}; |
91
|
0
|
|
|
|
|
|
my $form_params = {}; |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
94
|
|
|
|
|
|
|
my $_header_accept = $self->{api_client} |
95
|
0
|
|
|
|
|
|
->select_header_accept( 'application/json', 'text/json' ); |
96
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
97
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
98
|
|
|
|
|
|
|
} |
99
|
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client} |
100
|
0
|
|
|
|
|
|
->select_header_content_type( 'application/json', 'text/json' ); |
101
|
|
|
|
|
|
|
|
102
|
0
|
|
|
|
|
|
my $_body_data; |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
# body params |
105
|
0
|
0
|
|
|
|
|
if ( exists $args{'model'} ) { |
106
|
0
|
|
|
|
|
|
$_body_data = $args{'model'}; |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
# authentication setting, if any |
110
|
0
|
|
|
|
|
|
my $auth_settings = [qw()]; |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
# make the API Call |
113
|
|
|
|
|
|
|
my $response = $self->{api_client}->call_api( |
114
|
0
|
|
|
|
|
|
$_resource_path, $_method, $query_params, $form_params, |
115
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings |
116
|
|
|
|
|
|
|
); |
117
|
0
|
0
|
|
|
|
|
if ( !$response ) { |
118
|
0
|
|
|
|
|
|
return; |
119
|
|
|
|
|
|
|
} |
120
|
|
|
|
|
|
|
my $_response_object = |
121
|
0
|
|
|
|
|
|
$self->{api_client}->deserialize( 'MyTeamMemberModel', $response ); |
122
|
0
|
|
|
|
|
|
return $_response_object; |
123
|
|
|
|
|
|
|
} |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
# |
126
|
|
|
|
|
|
|
# account_get_account_info |
127
|
|
|
|
|
|
|
# |
128
|
|
|
|
|
|
|
# Receiving the account details |
129
|
|
|
|
|
|
|
# |
130
|
|
|
|
|
|
|
{ |
131
|
|
|
|
|
|
|
my $params = {}; |
132
|
|
|
|
|
|
|
__PACKAGE__->method_documentation->{'account_get_account_info'} = { |
133
|
|
|
|
|
|
|
summary => 'Receiving the account details', |
134
|
|
|
|
|
|
|
params => $params, |
135
|
|
|
|
|
|
|
returns => 'AccountModel', |
136
|
|
|
|
|
|
|
}; |
137
|
|
|
|
|
|
|
} |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
# @return AccountModel |
140
|
|
|
|
|
|
|
# |
141
|
|
|
|
|
|
|
sub account_get_account_info { |
142
|
0
|
|
|
0
|
0
|
|
my ( $self, %args ) = @_; |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
# parse inputs |
145
|
0
|
|
|
|
|
|
my $_resource_path = '/api/integration/v1/account'; |
146
|
|
|
|
|
|
|
|
147
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
148
|
0
|
|
|
|
|
|
my $query_params = {}; |
149
|
0
|
|
|
|
|
|
my $header_params = {}; |
150
|
0
|
|
|
|
|
|
my $form_params = {}; |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
153
|
|
|
|
|
|
|
my $_header_accept = $self->{api_client} |
154
|
0
|
|
|
|
|
|
->select_header_accept( 'application/json', 'text/json' ); |
155
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
156
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
157
|
|
|
|
|
|
|
} |
158
|
|
|
|
|
|
|
$header_params->{'Content-Type'} = |
159
|
0
|
|
|
|
|
|
$self->{api_client}->select_header_content_type(); |
160
|
|
|
|
|
|
|
|
161
|
0
|
|
|
|
|
|
my $_body_data; |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
# authentication setting, if any |
164
|
0
|
|
|
|
|
|
my $auth_settings = [qw()]; |
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
# make the API Call |
167
|
|
|
|
|
|
|
my $response = $self->{api_client}->call_api( |
168
|
0
|
|
|
|
|
|
$_resource_path, $_method, $query_params, $form_params, |
169
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings |
170
|
|
|
|
|
|
|
); |
171
|
0
|
0
|
|
|
|
|
if ( !$response ) { |
172
|
0
|
|
|
|
|
|
return; |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
my $_response_object = |
175
|
0
|
|
|
|
|
|
$self->{api_client}->deserialize( 'AccountModel', $response ); |
176
|
0
|
|
|
|
|
|
return $_response_object; |
177
|
|
|
|
|
|
|
} |
178
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
# |
180
|
|
|
|
|
|
|
# account_get_lsp_services |
181
|
|
|
|
|
|
|
# |
182
|
|
|
|
|
|
|
# |
183
|
|
|
|
|
|
|
# |
184
|
|
|
|
|
|
|
# @param string $source_language (optional) |
185
|
|
|
|
|
|
|
# @param string $target_language (optional) |
186
|
|
|
|
|
|
|
{ |
187
|
|
|
|
|
|
|
my $params = { |
188
|
|
|
|
|
|
|
'source_language' => { |
189
|
|
|
|
|
|
|
data_type => 'string', |
190
|
|
|
|
|
|
|
description => '', |
191
|
|
|
|
|
|
|
required => '0', |
192
|
|
|
|
|
|
|
}, |
193
|
|
|
|
|
|
|
'target_language' => { |
194
|
|
|
|
|
|
|
data_type => 'string', |
195
|
|
|
|
|
|
|
description => '', |
196
|
|
|
|
|
|
|
required => '0', |
197
|
|
|
|
|
|
|
}, |
198
|
|
|
|
|
|
|
}; |
199
|
|
|
|
|
|
|
__PACKAGE__->method_documentation->{'account_get_lsp_services'} = { |
200
|
|
|
|
|
|
|
summary => '', |
201
|
|
|
|
|
|
|
params => $params, |
202
|
|
|
|
|
|
|
returns => 'ARRAY[LspServiceModel]', |
203
|
|
|
|
|
|
|
}; |
204
|
|
|
|
|
|
|
} |
205
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
# @return ARRAY[LspServiceModel] |
207
|
|
|
|
|
|
|
# |
208
|
|
|
|
|
|
|
sub account_get_lsp_services { |
209
|
0
|
|
|
0
|
0
|
|
my ( $self, %args ) = @_; |
210
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
# parse inputs |
212
|
0
|
|
|
|
|
|
my $_resource_path = '/api/integration/v1/account/lsp/services'; |
213
|
|
|
|
|
|
|
|
214
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
215
|
0
|
|
|
|
|
|
my $query_params = {}; |
216
|
0
|
|
|
|
|
|
my $header_params = {}; |
217
|
0
|
|
|
|
|
|
my $form_params = {}; |
218
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
220
|
|
|
|
|
|
|
my $_header_accept = $self->{api_client} |
221
|
0
|
|
|
|
|
|
->select_header_accept( 'application/json', 'text/json' ); |
222
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
223
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
224
|
|
|
|
|
|
|
} |
225
|
|
|
|
|
|
|
$header_params->{'Content-Type'} = |
226
|
0
|
|
|
|
|
|
$self->{api_client}->select_header_content_type(); |
227
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
# query params |
229
|
0
|
0
|
|
|
|
|
if ( exists $args{'source_language'} ) { |
230
|
|
|
|
|
|
|
$query_params->{'sourceLanguage'} = |
231
|
0
|
|
|
|
|
|
$self->{api_client}->to_query_value( $args{'source_language'} ); |
232
|
|
|
|
|
|
|
} |
233
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
# query params |
235
|
0
|
0
|
|
|
|
|
if ( exists $args{'target_language'} ) { |
236
|
|
|
|
|
|
|
$query_params->{'targetLanguage'} = |
237
|
0
|
|
|
|
|
|
$self->{api_client}->to_query_value( $args{'target_language'} ); |
238
|
|
|
|
|
|
|
} |
239
|
|
|
|
|
|
|
|
240
|
0
|
|
|
|
|
|
my $_body_data; |
241
|
|
|
|
|
|
|
|
242
|
|
|
|
|
|
|
# authentication setting, if any |
243
|
0
|
|
|
|
|
|
my $auth_settings = [qw()]; |
244
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
# make the API Call |
246
|
|
|
|
|
|
|
my $response = $self->{api_client}->call_api( |
247
|
0
|
|
|
|
|
|
$_resource_path, $_method, $query_params, $form_params, |
248
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings |
249
|
|
|
|
|
|
|
); |
250
|
0
|
0
|
|
|
|
|
if ( !$response ) { |
251
|
0
|
|
|
|
|
|
return; |
252
|
|
|
|
|
|
|
} |
253
|
|
|
|
|
|
|
my $_response_object = |
254
|
0
|
|
|
|
|
|
$self->{api_client}->deserialize( 'ARRAY[LspServiceModel]', $response ); |
255
|
0
|
|
|
|
|
|
return $_response_object; |
256
|
|
|
|
|
|
|
} |
257
|
|
|
|
|
|
|
|
258
|
|
|
|
|
|
|
# |
259
|
|
|
|
|
|
|
# account_get_mt_engines_for_account |
260
|
|
|
|
|
|
|
# |
261
|
|
|
|
|
|
|
# Receiving MT engines available for the account |
262
|
|
|
|
|
|
|
# |
263
|
|
|
|
|
|
|
{ |
264
|
|
|
|
|
|
|
my $params = {}; |
265
|
|
|
|
|
|
|
__PACKAGE__->method_documentation->{'account_get_mt_engines_for_account'} = |
266
|
|
|
|
|
|
|
{ |
267
|
|
|
|
|
|
|
summary => 'Receiving MT engines available for the account', |
268
|
|
|
|
|
|
|
params => $params, |
269
|
|
|
|
|
|
|
returns => 'ARRAY[MTEngineModel]', |
270
|
|
|
|
|
|
|
}; |
271
|
|
|
|
|
|
|
} |
272
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
# @return ARRAY[MTEngineModel] |
274
|
|
|
|
|
|
|
# |
275
|
|
|
|
|
|
|
sub account_get_mt_engines_for_account { |
276
|
0
|
|
|
0
|
0
|
|
my ( $self, %args ) = @_; |
277
|
|
|
|
|
|
|
|
278
|
|
|
|
|
|
|
# parse inputs |
279
|
0
|
|
|
|
|
|
my $_resource_path = '/api/integration/v1/account/mtengines'; |
280
|
|
|
|
|
|
|
|
281
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
282
|
0
|
|
|
|
|
|
my $query_params = {}; |
283
|
0
|
|
|
|
|
|
my $header_params = {}; |
284
|
0
|
|
|
|
|
|
my $form_params = {}; |
285
|
|
|
|
|
|
|
|
286
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
287
|
|
|
|
|
|
|
my $_header_accept = $self->{api_client} |
288
|
0
|
|
|
|
|
|
->select_header_accept( 'application/json', 'text/json' ); |
289
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
290
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
291
|
|
|
|
|
|
|
} |
292
|
|
|
|
|
|
|
$header_params->{'Content-Type'} = |
293
|
0
|
|
|
|
|
|
$self->{api_client}->select_header_content_type(); |
294
|
|
|
|
|
|
|
|
295
|
0
|
|
|
|
|
|
my $_body_data; |
296
|
|
|
|
|
|
|
|
297
|
|
|
|
|
|
|
# authentication setting, if any |
298
|
0
|
|
|
|
|
|
my $auth_settings = [qw()]; |
299
|
|
|
|
|
|
|
|
300
|
|
|
|
|
|
|
# make the API Call |
301
|
|
|
|
|
|
|
my $response = $self->{api_client}->call_api( |
302
|
0
|
|
|
|
|
|
$_resource_path, $_method, $query_params, $form_params, |
303
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings |
304
|
|
|
|
|
|
|
); |
305
|
0
|
0
|
|
|
|
|
if ( !$response ) { |
306
|
0
|
|
|
|
|
|
return; |
307
|
|
|
|
|
|
|
} |
308
|
|
|
|
|
|
|
my $_response_object = |
309
|
0
|
|
|
|
|
|
$self->{api_client}->deserialize( 'ARRAY[MTEngineModel]', $response ); |
310
|
0
|
|
|
|
|
|
return $_response_object; |
311
|
|
|
|
|
|
|
} |
312
|
|
|
|
|
|
|
|
313
|
|
|
|
|
|
|
# |
314
|
|
|
|
|
|
|
# account_get_my_team_member_by_external_id |
315
|
|
|
|
|
|
|
# |
316
|
|
|
|
|
|
|
# |
317
|
|
|
|
|
|
|
# |
318
|
|
|
|
|
|
|
# @param string $external_id (required) |
319
|
|
|
|
|
|
|
{ |
320
|
|
|
|
|
|
|
my $params = { |
321
|
|
|
|
|
|
|
'external_id' => { |
322
|
|
|
|
|
|
|
data_type => 'string', |
323
|
|
|
|
|
|
|
description => '', |
324
|
|
|
|
|
|
|
required => '1', |
325
|
|
|
|
|
|
|
}, |
326
|
|
|
|
|
|
|
}; |
327
|
|
|
|
|
|
|
__PACKAGE__->method_documentation->{ |
328
|
|
|
|
|
|
|
'account_get_my_team_member_by_external_id'} = { |
329
|
|
|
|
|
|
|
summary => '', |
330
|
|
|
|
|
|
|
params => $params, |
331
|
|
|
|
|
|
|
returns => 'MyTeamMemberModel', |
332
|
|
|
|
|
|
|
}; |
333
|
|
|
|
|
|
|
} |
334
|
|
|
|
|
|
|
|
335
|
|
|
|
|
|
|
# @return MyTeamMemberModel |
336
|
|
|
|
|
|
|
# |
337
|
|
|
|
|
|
|
sub account_get_my_team_member_by_external_id { |
338
|
0
|
|
|
0
|
0
|
|
my ( $self, %args ) = @_; |
339
|
|
|
|
|
|
|
|
340
|
|
|
|
|
|
|
# verify the required parameter 'external_id' is set |
341
|
0
|
0
|
|
|
|
|
unless ( exists $args{'external_id'} ) { |
342
|
0
|
|
|
|
|
|
croak( |
343
|
|
|
|
|
|
|
"Missing the required parameter 'external_id' when calling account_get_my_team_member_by_external_id" |
344
|
|
|
|
|
|
|
); |
345
|
|
|
|
|
|
|
} |
346
|
|
|
|
|
|
|
|
347
|
|
|
|
|
|
|
# parse inputs |
348
|
0
|
|
|
|
|
|
my $_resource_path = '/api/integration/v1/account/myTeam'; |
349
|
|
|
|
|
|
|
|
350
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
351
|
0
|
|
|
|
|
|
my $query_params = {}; |
352
|
0
|
|
|
|
|
|
my $header_params = {}; |
353
|
0
|
|
|
|
|
|
my $form_params = {}; |
354
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
356
|
|
|
|
|
|
|
my $_header_accept = $self->{api_client} |
357
|
0
|
|
|
|
|
|
->select_header_accept( 'application/json', 'text/json' ); |
358
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
359
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
360
|
|
|
|
|
|
|
} |
361
|
|
|
|
|
|
|
$header_params->{'Content-Type'} = |
362
|
0
|
|
|
|
|
|
$self->{api_client}->select_header_content_type(); |
363
|
|
|
|
|
|
|
|
364
|
|
|
|
|
|
|
# query params |
365
|
0
|
0
|
|
|
|
|
if ( exists $args{'external_id'} ) { |
366
|
|
|
|
|
|
|
$query_params->{'externalId'} = |
367
|
0
|
|
|
|
|
|
$self->{api_client}->to_query_value( $args{'external_id'} ); |
368
|
|
|
|
|
|
|
} |
369
|
|
|
|
|
|
|
|
370
|
0
|
|
|
|
|
|
my $_body_data; |
371
|
|
|
|
|
|
|
|
372
|
|
|
|
|
|
|
# authentication setting, if any |
373
|
0
|
|
|
|
|
|
my $auth_settings = [qw()]; |
374
|
|
|
|
|
|
|
|
375
|
|
|
|
|
|
|
# make the API Call |
376
|
|
|
|
|
|
|
my $response = $self->{api_client}->call_api( |
377
|
0
|
|
|
|
|
|
$_resource_path, $_method, $query_params, $form_params, |
378
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings |
379
|
|
|
|
|
|
|
); |
380
|
0
|
0
|
|
|
|
|
if ( !$response ) { |
381
|
0
|
|
|
|
|
|
return; |
382
|
|
|
|
|
|
|
} |
383
|
|
|
|
|
|
|
my $_response_object = |
384
|
0
|
|
|
|
|
|
$self->{api_client}->deserialize( 'MyTeamMemberModel', $response ); |
385
|
0
|
|
|
|
|
|
return $_response_object; |
386
|
|
|
|
|
|
|
} |
387
|
|
|
|
|
|
|
|
388
|
|
|
|
|
|
|
# |
389
|
|
|
|
|
|
|
# account_get_my_team_member_by_id |
390
|
|
|
|
|
|
|
# |
391
|
|
|
|
|
|
|
# |
392
|
|
|
|
|
|
|
# |
393
|
|
|
|
|
|
|
# @param string $user_id (required) |
394
|
|
|
|
|
|
|
{ |
395
|
|
|
|
|
|
|
my $params = { |
396
|
|
|
|
|
|
|
'user_id' => { |
397
|
|
|
|
|
|
|
data_type => 'string', |
398
|
|
|
|
|
|
|
description => '', |
399
|
|
|
|
|
|
|
required => '1', |
400
|
|
|
|
|
|
|
}, |
401
|
|
|
|
|
|
|
}; |
402
|
|
|
|
|
|
|
__PACKAGE__->method_documentation->{'account_get_my_team_member_by_id'} = { |
403
|
|
|
|
|
|
|
summary => '', |
404
|
|
|
|
|
|
|
params => $params, |
405
|
|
|
|
|
|
|
returns => 'MyTeamMemberModel', |
406
|
|
|
|
|
|
|
}; |
407
|
|
|
|
|
|
|
} |
408
|
|
|
|
|
|
|
|
409
|
|
|
|
|
|
|
# @return MyTeamMemberModel |
410
|
|
|
|
|
|
|
# |
411
|
|
|
|
|
|
|
sub account_get_my_team_member_by_id { |
412
|
0
|
|
|
0
|
0
|
|
my ( $self, %args ) = @_; |
413
|
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
# verify the required parameter 'user_id' is set |
415
|
0
|
0
|
|
|
|
|
unless ( exists $args{'user_id'} ) { |
416
|
0
|
|
|
|
|
|
croak( |
417
|
|
|
|
|
|
|
"Missing the required parameter 'user_id' when calling account_get_my_team_member_by_id" |
418
|
|
|
|
|
|
|
); |
419
|
|
|
|
|
|
|
} |
420
|
|
|
|
|
|
|
|
421
|
|
|
|
|
|
|
# parse inputs |
422
|
0
|
|
|
|
|
|
my $_resource_path = '/api/integration/v1/account/myTeam/{userId}'; |
423
|
|
|
|
|
|
|
|
424
|
0
|
|
|
|
|
|
my $_method = 'GET'; |
425
|
0
|
|
|
|
|
|
my $query_params = {}; |
426
|
0
|
|
|
|
|
|
my $header_params = {}; |
427
|
0
|
|
|
|
|
|
my $form_params = {}; |
428
|
|
|
|
|
|
|
|
429
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
430
|
|
|
|
|
|
|
my $_header_accept = $self->{api_client} |
431
|
0
|
|
|
|
|
|
->select_header_accept( 'application/json', 'text/json' ); |
432
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
433
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
434
|
|
|
|
|
|
|
} |
435
|
|
|
|
|
|
|
$header_params->{'Content-Type'} = |
436
|
0
|
|
|
|
|
|
$self->{api_client}->select_header_content_type(); |
437
|
|
|
|
|
|
|
|
438
|
|
|
|
|
|
|
# path params |
439
|
0
|
0
|
|
|
|
|
if ( exists $args{'user_id'} ) { |
440
|
0
|
|
|
|
|
|
my $_base_variable = "{" . "userId" . "}"; |
441
|
|
|
|
|
|
|
my $_base_value = |
442
|
0
|
|
|
|
|
|
$self->{api_client}->to_path_value( $args{'user_id'} ); |
443
|
0
|
|
|
|
|
|
$_resource_path =~ s/$_base_variable/$_base_value/g; |
444
|
|
|
|
|
|
|
} |
445
|
|
|
|
|
|
|
|
446
|
0
|
|
|
|
|
|
my $_body_data; |
447
|
|
|
|
|
|
|
|
448
|
|
|
|
|
|
|
# authentication setting, if any |
449
|
0
|
|
|
|
|
|
my $auth_settings = [qw()]; |
450
|
|
|
|
|
|
|
|
451
|
|
|
|
|
|
|
# make the API Call |
452
|
|
|
|
|
|
|
my $response = $self->{api_client}->call_api( |
453
|
0
|
|
|
|
|
|
$_resource_path, $_method, $query_params, $form_params, |
454
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings |
455
|
|
|
|
|
|
|
); |
456
|
0
|
0
|
|
|
|
|
if ( !$response ) { |
457
|
0
|
|
|
|
|
|
return; |
458
|
|
|
|
|
|
|
} |
459
|
|
|
|
|
|
|
my $_response_object = |
460
|
0
|
|
|
|
|
|
$self->{api_client}->deserialize( 'MyTeamMemberModel', $response ); |
461
|
0
|
|
|
|
|
|
return $_response_object; |
462
|
|
|
|
|
|
|
} |
463
|
|
|
|
|
|
|
|
464
|
|
|
|
|
|
|
# |
465
|
|
|
|
|
|
|
# account_remove_user_from_my_team |
466
|
|
|
|
|
|
|
# |
467
|
|
|
|
|
|
|
# |
468
|
|
|
|
|
|
|
# |
469
|
|
|
|
|
|
|
# @param string $user_id (required) |
470
|
|
|
|
|
|
|
{ |
471
|
|
|
|
|
|
|
my $params = { |
472
|
|
|
|
|
|
|
'user_id' => { |
473
|
|
|
|
|
|
|
data_type => 'string', |
474
|
|
|
|
|
|
|
description => '', |
475
|
|
|
|
|
|
|
required => '1', |
476
|
|
|
|
|
|
|
}, |
477
|
|
|
|
|
|
|
}; |
478
|
|
|
|
|
|
|
__PACKAGE__->method_documentation->{'account_remove_user_from_my_team'} = { |
479
|
|
|
|
|
|
|
summary => '', |
480
|
|
|
|
|
|
|
params => $params, |
481
|
|
|
|
|
|
|
returns => undef, |
482
|
|
|
|
|
|
|
}; |
483
|
|
|
|
|
|
|
} |
484
|
|
|
|
|
|
|
|
485
|
|
|
|
|
|
|
# @return void |
486
|
|
|
|
|
|
|
# |
487
|
|
|
|
|
|
|
sub account_remove_user_from_my_team { |
488
|
0
|
|
|
0
|
0
|
|
my ( $self, %args ) = @_; |
489
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
# verify the required parameter 'user_id' is set |
491
|
0
|
0
|
|
|
|
|
unless ( exists $args{'user_id'} ) { |
492
|
0
|
|
|
|
|
|
croak( |
493
|
|
|
|
|
|
|
"Missing the required parameter 'user_id' when calling account_remove_user_from_my_team" |
494
|
|
|
|
|
|
|
); |
495
|
|
|
|
|
|
|
} |
496
|
|
|
|
|
|
|
|
497
|
|
|
|
|
|
|
# parse inputs |
498
|
0
|
|
|
|
|
|
my $_resource_path = '/api/integration/v1/account/myTeam/{userId}'; |
499
|
|
|
|
|
|
|
|
500
|
0
|
|
|
|
|
|
my $_method = 'DELETE'; |
501
|
0
|
|
|
|
|
|
my $query_params = {}; |
502
|
0
|
|
|
|
|
|
my $header_params = {}; |
503
|
0
|
|
|
|
|
|
my $form_params = {}; |
504
|
|
|
|
|
|
|
|
505
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
506
|
0
|
|
|
|
|
|
my $_header_accept = $self->{api_client}->select_header_accept(); |
507
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
508
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
509
|
|
|
|
|
|
|
} |
510
|
|
|
|
|
|
|
$header_params->{'Content-Type'} = |
511
|
0
|
|
|
|
|
|
$self->{api_client}->select_header_content_type(); |
512
|
|
|
|
|
|
|
|
513
|
|
|
|
|
|
|
# path params |
514
|
0
|
0
|
|
|
|
|
if ( exists $args{'user_id'} ) { |
515
|
0
|
|
|
|
|
|
my $_base_variable = "{" . "userId" . "}"; |
516
|
|
|
|
|
|
|
my $_base_value = |
517
|
0
|
|
|
|
|
|
$self->{api_client}->to_path_value( $args{'user_id'} ); |
518
|
0
|
|
|
|
|
|
$_resource_path =~ s/$_base_variable/$_base_value/g; |
519
|
|
|
|
|
|
|
} |
520
|
|
|
|
|
|
|
|
521
|
0
|
|
|
|
|
|
my $_body_data; |
522
|
|
|
|
|
|
|
|
523
|
|
|
|
|
|
|
# authentication setting, if any |
524
|
0
|
|
|
|
|
|
my $auth_settings = [qw()]; |
525
|
|
|
|
|
|
|
|
526
|
|
|
|
|
|
|
# make the API Call |
527
|
|
|
|
|
|
|
$self->{api_client}->call_api( |
528
|
0
|
|
|
|
|
|
$_resource_path, $_method, $query_params, $form_params, |
529
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings |
530
|
|
|
|
|
|
|
); |
531
|
0
|
|
|
|
|
|
return; |
532
|
|
|
|
|
|
|
} |
533
|
|
|
|
|
|
|
|
534
|
|
|
|
|
|
|
# |
535
|
|
|
|
|
|
|
# account_search_my_team |
536
|
|
|
|
|
|
|
# |
537
|
|
|
|
|
|
|
# |
538
|
|
|
|
|
|
|
# |
539
|
|
|
|
|
|
|
# @param MyTeamSearchRequestModel $request_model (required) |
540
|
|
|
|
|
|
|
{ |
541
|
|
|
|
|
|
|
my $params = { |
542
|
|
|
|
|
|
|
'request_model' => { |
543
|
|
|
|
|
|
|
data_type => 'MyTeamSearchRequestModel', |
544
|
|
|
|
|
|
|
description => '', |
545
|
|
|
|
|
|
|
required => '1', |
546
|
|
|
|
|
|
|
}, |
547
|
|
|
|
|
|
|
}; |
548
|
|
|
|
|
|
|
__PACKAGE__->method_documentation->{'account_search_my_team'} = { |
549
|
|
|
|
|
|
|
summary => '', |
550
|
|
|
|
|
|
|
params => $params, |
551
|
|
|
|
|
|
|
returns => 'ARRAY[MyTeamMemberModel]', |
552
|
|
|
|
|
|
|
}; |
553
|
|
|
|
|
|
|
} |
554
|
|
|
|
|
|
|
|
555
|
|
|
|
|
|
|
# @return ARRAY[MyTeamMemberModel] |
556
|
|
|
|
|
|
|
# |
557
|
|
|
|
|
|
|
sub account_search_my_team { |
558
|
0
|
|
|
0
|
0
|
|
my ( $self, %args ) = @_; |
559
|
|
|
|
|
|
|
|
560
|
|
|
|
|
|
|
# verify the required parameter 'request_model' is set |
561
|
0
|
0
|
|
|
|
|
unless ( exists $args{'request_model'} ) { |
562
|
0
|
|
|
|
|
|
croak( |
563
|
|
|
|
|
|
|
"Missing the required parameter 'request_model' when calling account_search_my_team" |
564
|
|
|
|
|
|
|
); |
565
|
|
|
|
|
|
|
} |
566
|
|
|
|
|
|
|
|
567
|
|
|
|
|
|
|
# parse inputs |
568
|
0
|
|
|
|
|
|
my $_resource_path = '/api/integration/v1/account/searchMyTeam'; |
569
|
|
|
|
|
|
|
|
570
|
0
|
|
|
|
|
|
my $_method = 'POST'; |
571
|
0
|
|
|
|
|
|
my $query_params = {}; |
572
|
0
|
|
|
|
|
|
my $header_params = {}; |
573
|
0
|
|
|
|
|
|
my $form_params = {}; |
574
|
|
|
|
|
|
|
|
575
|
|
|
|
|
|
|
# 'Accept' and 'Content-Type' header |
576
|
|
|
|
|
|
|
my $_header_accept = $self->{api_client} |
577
|
0
|
|
|
|
|
|
->select_header_accept( 'application/json', 'text/json' ); |
578
|
0
|
0
|
|
|
|
|
if ($_header_accept) { |
579
|
0
|
|
|
|
|
|
$header_params->{'Accept'} = $_header_accept; |
580
|
|
|
|
|
|
|
} |
581
|
|
|
|
|
|
|
$header_params->{'Content-Type'} = $self->{api_client} |
582
|
0
|
|
|
|
|
|
->select_header_content_type( 'application/json', 'text/json' ); |
583
|
|
|
|
|
|
|
|
584
|
0
|
|
|
|
|
|
my $_body_data; |
585
|
|
|
|
|
|
|
|
586
|
|
|
|
|
|
|
# body params |
587
|
0
|
0
|
|
|
|
|
if ( exists $args{'request_model'} ) { |
588
|
0
|
|
|
|
|
|
$_body_data = $args{'request_model'}; |
589
|
|
|
|
|
|
|
} |
590
|
|
|
|
|
|
|
|
591
|
|
|
|
|
|
|
# authentication setting, if any |
592
|
0
|
|
|
|
|
|
my $auth_settings = [qw()]; |
593
|
|
|
|
|
|
|
|
594
|
|
|
|
|
|
|
# make the API Call |
595
|
|
|
|
|
|
|
my $response = $self->{api_client}->call_api( |
596
|
0
|
|
|
|
|
|
$_resource_path, $_method, $query_params, $form_params, |
597
|
|
|
|
|
|
|
$header_params, $_body_data, $auth_settings |
598
|
|
|
|
|
|
|
); |
599
|
0
|
0
|
|
|
|
|
if ( !$response ) { |
600
|
0
|
|
|
|
|
|
return; |
601
|
|
|
|
|
|
|
} |
602
|
|
|
|
|
|
|
my $_response_object = |
603
|
0
|
|
|
|
|
|
$self->{api_client}->deserialize( 'ARRAY[MyTeamMemberModel]', $response ); |
604
|
0
|
|
|
|
|
|
return $_response_object; |
605
|
|
|
|
|
|
|
} |
606
|
|
|
|
|
|
|
|
607
|
|
|
|
|
|
|
1; |