OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.androidpublisher.v2; | 3 library googleapis.androidpublisher.v2; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 13 show |
14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 14 ApiRequestError, |
15 ByteRange; | 15 DetailedApiRequestError, |
| 16 Media, |
| 17 UploadOptions, |
| 18 ResumableUploadOptions, |
| 19 DownloadOptions, |
| 20 PartialDownloadOptions, |
| 21 ByteRange; |
16 | 22 |
17 const core.String USER_AGENT = 'dart-api-client androidpublisher/v2'; | 23 const core.String USER_AGENT = 'dart-api-client androidpublisher/v2'; |
18 | 24 |
19 /** Lets Android application developers access their Google Play accounts. */ | 25 /// Lets Android application developers access their Google Play accounts. |
20 class AndroidpublisherApi { | 26 class AndroidpublisherApi { |
21 /** View and manage your Google Play Developer account */ | 27 /// View and manage your Google Play Developer account |
22 static const AndroidpublisherScope = "https://www.googleapis.com/auth/androidp
ublisher"; | 28 static const AndroidpublisherScope = |
23 | 29 "https://www.googleapis.com/auth/androidpublisher"; |
24 | 30 |
25 final commons.ApiRequester _requester; | 31 final commons.ApiRequester _requester; |
26 | 32 |
27 EditsResourceApi get edits => new EditsResourceApi(_requester); | 33 EditsResourceApi get edits => new EditsResourceApi(_requester); |
28 EntitlementsResourceApi get entitlements => new EntitlementsResourceApi(_reque
ster); | 34 EntitlementsResourceApi get entitlements => |
29 InappproductsResourceApi get inappproducts => new InappproductsResourceApi(_re
quester); | 35 new EntitlementsResourceApi(_requester); |
| 36 InappproductsResourceApi get inappproducts => |
| 37 new InappproductsResourceApi(_requester); |
30 PurchasesResourceApi get purchases => new PurchasesResourceApi(_requester); | 38 PurchasesResourceApi get purchases => new PurchasesResourceApi(_requester); |
31 ReviewsResourceApi get reviews => new ReviewsResourceApi(_requester); | 39 ReviewsResourceApi get reviews => new ReviewsResourceApi(_requester); |
32 | 40 |
33 AndroidpublisherApi(http.Client client, {core.String rootUrl: "https://www.goo
gleapis.com/", core.String servicePath: "androidpublisher/v2/applications/"}) : | 41 AndroidpublisherApi(http.Client client, |
34 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 42 {core.String rootUrl: "https://www.googleapis.com/", |
| 43 core.String servicePath: "androidpublisher/v2/applications/"}) |
| 44 : _requester = |
| 45 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
35 } | 46 } |
36 | 47 |
37 | |
38 class EditsResourceApi { | 48 class EditsResourceApi { |
39 final commons.ApiRequester _requester; | 49 final commons.ApiRequester _requester; |
40 | 50 |
41 EditsApklistingsResourceApi get apklistings => new EditsApklistingsResourceApi
(_requester); | 51 EditsApklistingsResourceApi get apklistings => |
| 52 new EditsApklistingsResourceApi(_requester); |
42 EditsApksResourceApi get apks => new EditsApksResourceApi(_requester); | 53 EditsApksResourceApi get apks => new EditsApksResourceApi(_requester); |
43 EditsDeobfuscationfilesResourceApi get deobfuscationfiles => new EditsDeobfusc
ationfilesResourceApi(_requester); | 54 EditsDeobfuscationfilesResourceApi get deobfuscationfiles => |
44 EditsDetailsResourceApi get details => new EditsDetailsResourceApi(_requester)
; | 55 new EditsDeobfuscationfilesResourceApi(_requester); |
45 EditsExpansionfilesResourceApi get expansionfiles => new EditsExpansionfilesRe
sourceApi(_requester); | 56 EditsDetailsResourceApi get details => |
| 57 new EditsDetailsResourceApi(_requester); |
| 58 EditsExpansionfilesResourceApi get expansionfiles => |
| 59 new EditsExpansionfilesResourceApi(_requester); |
46 EditsImagesResourceApi get images => new EditsImagesResourceApi(_requester); | 60 EditsImagesResourceApi get images => new EditsImagesResourceApi(_requester); |
47 EditsListingsResourceApi get listings => new EditsListingsResourceApi(_request
er); | 61 EditsListingsResourceApi get listings => |
48 EditsTestersResourceApi get testers => new EditsTestersResourceApi(_requester)
; | 62 new EditsListingsResourceApi(_requester); |
| 63 EditsTestersResourceApi get testers => |
| 64 new EditsTestersResourceApi(_requester); |
49 EditsTracksResourceApi get tracks => new EditsTracksResourceApi(_requester); | 65 EditsTracksResourceApi get tracks => new EditsTracksResourceApi(_requester); |
50 | 66 |
51 EditsResourceApi(commons.ApiRequester client) : | 67 EditsResourceApi(commons.ApiRequester client) : _requester = client; |
52 _requester = client; | |
53 | 68 |
54 /** | 69 /// Commits/applies the changes made in this edit back to the app. |
55 * Commits/applies the changes made in this edit back to the app. | 70 /// |
56 * | 71 /// Request parameters: |
57 * Request parameters: | 72 /// |
58 * | 73 /// [packageName] - Unique identifier for the Android app that is being |
59 * [packageName] - Unique identifier for the Android app that is being | 74 /// updated; for example, "com.spiffygame". |
60 * updated; for example, "com.spiffygame". | 75 /// |
61 * | 76 /// [editId] - Unique identifier for this edit. |
62 * [editId] - Unique identifier for this edit. | 77 /// |
63 * | 78 /// Completes with a [AppEdit]. |
64 * Completes with a [AppEdit]. | 79 /// |
65 * | 80 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 81 /// an error. |
67 * error. | 82 /// |
68 * | 83 /// If the used [http.Client] completes with an error when making a REST |
69 * If the used [http.Client] completes with an error when making a REST call, | 84 /// call, this method will complete with the same error. |
70 * this method will complete with the same error. | |
71 */ | |
72 async.Future<AppEdit> commit(core.String packageName, core.String editId) { | 85 async.Future<AppEdit> commit(core.String packageName, core.String editId) { |
73 var _url = null; | 86 var _url = null; |
74 var _queryParams = new core.Map(); | 87 var _queryParams = new core.Map(); |
75 var _uploadMedia = null; | 88 var _uploadMedia = null; |
76 var _uploadOptions = null; | 89 var _uploadOptions = null; |
77 var _downloadOptions = commons.DownloadOptions.Metadata; | 90 var _downloadOptions = commons.DownloadOptions.Metadata; |
78 var _body = null; | 91 var _body = null; |
79 | 92 |
80 if (packageName == null) { | 93 if (packageName == null) { |
81 throw new core.ArgumentError("Parameter packageName is required."); | 94 throw new core.ArgumentError("Parameter packageName is required."); |
82 } | 95 } |
83 if (editId == null) { | 96 if (editId == null) { |
84 throw new core.ArgumentError("Parameter editId is required."); | 97 throw new core.ArgumentError("Parameter editId is required."); |
85 } | 98 } |
86 | 99 |
87 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + ':commit'; | 100 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 101 '/edits/' + |
| 102 commons.Escaper.ecapeVariable('$editId') + |
| 103 ':commit'; |
88 | 104 |
89 var _response = _requester.request(_url, | 105 var _response = _requester.request(_url, "POST", |
90 "POST", | 106 body: _body, |
91 body: _body, | 107 queryParams: _queryParams, |
92 queryParams: _queryParams, | 108 uploadOptions: _uploadOptions, |
93 uploadOptions: _uploadOptions, | 109 uploadMedia: _uploadMedia, |
94 uploadMedia: _uploadMedia, | 110 downloadOptions: _downloadOptions); |
95 downloadOptions: _downloadOptions); | |
96 return _response.then((data) => new AppEdit.fromJson(data)); | 111 return _response.then((data) => new AppEdit.fromJson(data)); |
97 } | 112 } |
98 | 113 |
99 /** | 114 /// Deletes an edit for an app. Creating a new edit will automatically delete |
100 * Deletes an edit for an app. Creating a new edit will automatically delete | 115 /// any of your previous edits so this method need only be called if you want |
101 * any of your previous edits so this method need only be called if you want | 116 /// to preemptively abandon an edit. |
102 * to preemptively abandon an edit. | 117 /// |
103 * | 118 /// Request parameters: |
104 * Request parameters: | 119 /// |
105 * | 120 /// [packageName] - Unique identifier for the Android app that is being |
106 * [packageName] - Unique identifier for the Android app that is being | 121 /// updated; for example, "com.spiffygame". |
107 * updated; for example, "com.spiffygame". | 122 /// |
108 * | 123 /// [editId] - Unique identifier for this edit. |
109 * [editId] - Unique identifier for this edit. | 124 /// |
110 * | 125 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
111 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 126 /// an error. |
112 * error. | 127 /// |
113 * | 128 /// If the used [http.Client] completes with an error when making a REST |
114 * If the used [http.Client] completes with an error when making a REST call, | 129 /// call, this method will complete with the same error. |
115 * this method will complete with the same error. | |
116 */ | |
117 async.Future delete(core.String packageName, core.String editId) { | 130 async.Future delete(core.String packageName, core.String editId) { |
118 var _url = null; | 131 var _url = null; |
119 var _queryParams = new core.Map(); | 132 var _queryParams = new core.Map(); |
120 var _uploadMedia = null; | 133 var _uploadMedia = null; |
121 var _uploadOptions = null; | 134 var _uploadOptions = null; |
122 var _downloadOptions = commons.DownloadOptions.Metadata; | 135 var _downloadOptions = commons.DownloadOptions.Metadata; |
123 var _body = null; | 136 var _body = null; |
124 | 137 |
125 if (packageName == null) { | 138 if (packageName == null) { |
126 throw new core.ArgumentError("Parameter packageName is required."); | 139 throw new core.ArgumentError("Parameter packageName is required."); |
127 } | 140 } |
128 if (editId == null) { | 141 if (editId == null) { |
129 throw new core.ArgumentError("Parameter editId is required."); | 142 throw new core.ArgumentError("Parameter editId is required."); |
130 } | 143 } |
131 | 144 |
132 _downloadOptions = null; | 145 _downloadOptions = null; |
133 | 146 |
134 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId'); | 147 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 148 '/edits/' + |
| 149 commons.Escaper.ecapeVariable('$editId'); |
135 | 150 |
136 var _response = _requester.request(_url, | 151 var _response = _requester.request(_url, "DELETE", |
137 "DELETE", | 152 body: _body, |
138 body: _body, | 153 queryParams: _queryParams, |
139 queryParams: _queryParams, | 154 uploadOptions: _uploadOptions, |
140 uploadOptions: _uploadOptions, | 155 uploadMedia: _uploadMedia, |
141 uploadMedia: _uploadMedia, | 156 downloadOptions: _downloadOptions); |
142 downloadOptions: _downloadOptions); | |
143 return _response.then((data) => null); | 157 return _response.then((data) => null); |
144 } | 158 } |
145 | 159 |
146 /** | 160 /// Returns information about the edit specified. Calls will fail if the edit |
147 * Returns information about the edit specified. Calls will fail if the edit | 161 /// is no long active (e.g. has been deleted, superseded or expired). |
148 * is no long active (e.g. has been deleted, superseded or expired). | 162 /// |
149 * | 163 /// Request parameters: |
150 * Request parameters: | 164 /// |
151 * | 165 /// [packageName] - Unique identifier for the Android app that is being |
152 * [packageName] - Unique identifier for the Android app that is being | 166 /// updated; for example, "com.spiffygame". |
153 * updated; for example, "com.spiffygame". | 167 /// |
154 * | 168 /// [editId] - Unique identifier for this edit. |
155 * [editId] - Unique identifier for this edit. | 169 /// |
156 * | 170 /// Completes with a [AppEdit]. |
157 * Completes with a [AppEdit]. | 171 /// |
158 * | 172 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
159 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 173 /// an error. |
160 * error. | 174 /// |
161 * | 175 /// If the used [http.Client] completes with an error when making a REST |
162 * If the used [http.Client] completes with an error when making a REST call, | 176 /// call, this method will complete with the same error. |
163 * this method will complete with the same error. | |
164 */ | |
165 async.Future<AppEdit> get(core.String packageName, core.String editId) { | 177 async.Future<AppEdit> get(core.String packageName, core.String editId) { |
166 var _url = null; | 178 var _url = null; |
167 var _queryParams = new core.Map(); | 179 var _queryParams = new core.Map(); |
168 var _uploadMedia = null; | 180 var _uploadMedia = null; |
169 var _uploadOptions = null; | 181 var _uploadOptions = null; |
170 var _downloadOptions = commons.DownloadOptions.Metadata; | 182 var _downloadOptions = commons.DownloadOptions.Metadata; |
171 var _body = null; | 183 var _body = null; |
172 | 184 |
173 if (packageName == null) { | 185 if (packageName == null) { |
174 throw new core.ArgumentError("Parameter packageName is required."); | 186 throw new core.ArgumentError("Parameter packageName is required."); |
175 } | 187 } |
176 if (editId == null) { | 188 if (editId == null) { |
177 throw new core.ArgumentError("Parameter editId is required."); | 189 throw new core.ArgumentError("Parameter editId is required."); |
178 } | 190 } |
179 | 191 |
180 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId'); | 192 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 193 '/edits/' + |
| 194 commons.Escaper.ecapeVariable('$editId'); |
181 | 195 |
182 var _response = _requester.request(_url, | 196 var _response = _requester.request(_url, "GET", |
183 "GET", | 197 body: _body, |
184 body: _body, | 198 queryParams: _queryParams, |
185 queryParams: _queryParams, | 199 uploadOptions: _uploadOptions, |
186 uploadOptions: _uploadOptions, | 200 uploadMedia: _uploadMedia, |
187 uploadMedia: _uploadMedia, | 201 downloadOptions: _downloadOptions); |
188 downloadOptions: _downloadOptions); | |
189 return _response.then((data) => new AppEdit.fromJson(data)); | 202 return _response.then((data) => new AppEdit.fromJson(data)); |
190 } | 203 } |
191 | 204 |
192 /** | 205 /// Creates a new edit for an app, populated with the app's current state. |
193 * Creates a new edit for an app, populated with the app's current state. | 206 /// |
194 * | 207 /// [request] - The metadata request object. |
195 * [request] - The metadata request object. | 208 /// |
196 * | 209 /// Request parameters: |
197 * Request parameters: | 210 /// |
198 * | 211 /// [packageName] - Unique identifier for the Android app that is being |
199 * [packageName] - Unique identifier for the Android app that is being | 212 /// updated; for example, "com.spiffygame". |
200 * updated; for example, "com.spiffygame". | 213 /// |
201 * | 214 /// Completes with a [AppEdit]. |
202 * Completes with a [AppEdit]. | 215 /// |
203 * | 216 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
204 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 217 /// an error. |
205 * error. | 218 /// |
206 * | 219 /// If the used [http.Client] completes with an error when making a REST |
207 * If the used [http.Client] completes with an error when making a REST call, | 220 /// call, this method will complete with the same error. |
208 * this method will complete with the same error. | |
209 */ | |
210 async.Future<AppEdit> insert(AppEdit request, core.String packageName) { | 221 async.Future<AppEdit> insert(AppEdit request, core.String packageName) { |
211 var _url = null; | 222 var _url = null; |
212 var _queryParams = new core.Map(); | 223 var _queryParams = new core.Map(); |
213 var _uploadMedia = null; | 224 var _uploadMedia = null; |
214 var _uploadOptions = null; | 225 var _uploadOptions = null; |
215 var _downloadOptions = commons.DownloadOptions.Metadata; | 226 var _downloadOptions = commons.DownloadOptions.Metadata; |
216 var _body = null; | 227 var _body = null; |
217 | 228 |
218 if (request != null) { | 229 if (request != null) { |
219 _body = convert.JSON.encode((request).toJson()); | 230 _body = convert.JSON.encode((request).toJson()); |
220 } | 231 } |
221 if (packageName == null) { | 232 if (packageName == null) { |
222 throw new core.ArgumentError("Parameter packageName is required."); | 233 throw new core.ArgumentError("Parameter packageName is required."); |
223 } | 234 } |
224 | 235 |
225 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits'; | 236 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits'; |
226 | 237 |
227 var _response = _requester.request(_url, | 238 var _response = _requester.request(_url, "POST", |
228 "POST", | 239 body: _body, |
229 body: _body, | 240 queryParams: _queryParams, |
230 queryParams: _queryParams, | 241 uploadOptions: _uploadOptions, |
231 uploadOptions: _uploadOptions, | 242 uploadMedia: _uploadMedia, |
232 uploadMedia: _uploadMedia, | 243 downloadOptions: _downloadOptions); |
233 downloadOptions: _downloadOptions); | |
234 return _response.then((data) => new AppEdit.fromJson(data)); | 244 return _response.then((data) => new AppEdit.fromJson(data)); |
235 } | 245 } |
236 | 246 |
237 /** | 247 /// Checks that the edit can be successfully committed. The edit's changes |
238 * Checks that the edit can be successfully committed. The edit's changes are | 248 /// are not applied to the live app. |
239 * not applied to the live app. | 249 /// |
240 * | 250 /// Request parameters: |
241 * Request parameters: | 251 /// |
242 * | 252 /// [packageName] - Unique identifier for the Android app that is being |
243 * [packageName] - Unique identifier for the Android app that is being | 253 /// updated; for example, "com.spiffygame". |
244 * updated; for example, "com.spiffygame". | 254 /// |
245 * | 255 /// [editId] - Unique identifier for this edit. |
246 * [editId] - Unique identifier for this edit. | 256 /// |
247 * | 257 /// Completes with a [AppEdit]. |
248 * Completes with a [AppEdit]. | 258 /// |
249 * | 259 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
250 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 260 /// an error. |
251 * error. | 261 /// |
252 * | 262 /// If the used [http.Client] completes with an error when making a REST |
253 * If the used [http.Client] completes with an error when making a REST call, | 263 /// call, this method will complete with the same error. |
254 * this method will complete with the same error. | |
255 */ | |
256 async.Future<AppEdit> validate(core.String packageName, core.String editId) { | 264 async.Future<AppEdit> validate(core.String packageName, core.String editId) { |
257 var _url = null; | 265 var _url = null; |
258 var _queryParams = new core.Map(); | 266 var _queryParams = new core.Map(); |
259 var _uploadMedia = null; | 267 var _uploadMedia = null; |
260 var _uploadOptions = null; | 268 var _uploadOptions = null; |
261 var _downloadOptions = commons.DownloadOptions.Metadata; | 269 var _downloadOptions = commons.DownloadOptions.Metadata; |
262 var _body = null; | 270 var _body = null; |
263 | 271 |
264 if (packageName == null) { | 272 if (packageName == null) { |
265 throw new core.ArgumentError("Parameter packageName is required."); | 273 throw new core.ArgumentError("Parameter packageName is required."); |
266 } | 274 } |
267 if (editId == null) { | 275 if (editId == null) { |
268 throw new core.ArgumentError("Parameter editId is required."); | 276 throw new core.ArgumentError("Parameter editId is required."); |
269 } | 277 } |
270 | 278 |
271 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + ':validate'; | 279 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 280 '/edits/' + |
| 281 commons.Escaper.ecapeVariable('$editId') + |
| 282 ':validate'; |
272 | 283 |
273 var _response = _requester.request(_url, | 284 var _response = _requester.request(_url, "POST", |
274 "POST", | 285 body: _body, |
275 body: _body, | 286 queryParams: _queryParams, |
276 queryParams: _queryParams, | 287 uploadOptions: _uploadOptions, |
277 uploadOptions: _uploadOptions, | 288 uploadMedia: _uploadMedia, |
278 uploadMedia: _uploadMedia, | 289 downloadOptions: _downloadOptions); |
279 downloadOptions: _downloadOptions); | |
280 return _response.then((data) => new AppEdit.fromJson(data)); | 290 return _response.then((data) => new AppEdit.fromJson(data)); |
281 } | 291 } |
282 | |
283 } | 292 } |
284 | 293 |
285 | |
286 class EditsApklistingsResourceApi { | 294 class EditsApklistingsResourceApi { |
287 final commons.ApiRequester _requester; | 295 final commons.ApiRequester _requester; |
288 | 296 |
289 EditsApklistingsResourceApi(commons.ApiRequester client) : | 297 EditsApklistingsResourceApi(commons.ApiRequester client) |
290 _requester = client; | 298 : _requester = client; |
291 | 299 |
292 /** | 300 /// Deletes the APK-specific localized listing for a specified APK and |
293 * Deletes the APK-specific localized listing for a specified APK and language | 301 /// language code. |
294 * code. | 302 /// |
295 * | 303 /// Request parameters: |
296 * Request parameters: | 304 /// |
297 * | 305 /// [packageName] - Unique identifier for the Android app that is being |
298 * [packageName] - Unique identifier for the Android app that is being | 306 /// updated; for example, "com.spiffygame". |
299 * updated; for example, "com.spiffygame". | 307 /// |
300 * | 308 /// [editId] - Unique identifier for this edit. |
301 * [editId] - Unique identifier for this edit. | 309 /// |
302 * | 310 /// [apkVersionCode] - The APK version code whose APK-specific listings |
303 * [apkVersionCode] - The APK version code whose APK-specific listings should | 311 /// should be read or modified. |
304 * be read or modified. | 312 /// |
305 * | 313 /// [language] - The language code (a BCP-47 language tag) of the |
306 * [language] - The language code (a BCP-47 language tag) of the APK-specific | 314 /// APK-specific localized listing to read or modify. For example, to select |
307 * localized listing to read or modify. For example, to select Austrian | 315 /// Austrian German, pass "de-AT". |
308 * German, pass "de-AT". | 316 /// |
309 * | 317 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
310 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 318 /// an error. |
311 * error. | 319 /// |
312 * | 320 /// If the used [http.Client] completes with an error when making a REST |
313 * If the used [http.Client] completes with an error when making a REST call, | 321 /// call, this method will complete with the same error. |
314 * this method will complete with the same error. | 322 async.Future delete(core.String packageName, core.String editId, |
315 */ | 323 core.int apkVersionCode, core.String language) { |
316 async.Future delete(core.String packageName, core.String editId, core.int apkV
ersionCode, core.String language) { | |
317 var _url = null; | 324 var _url = null; |
318 var _queryParams = new core.Map(); | 325 var _queryParams = new core.Map(); |
319 var _uploadMedia = null; | 326 var _uploadMedia = null; |
320 var _uploadOptions = null; | 327 var _uploadOptions = null; |
321 var _downloadOptions = commons.DownloadOptions.Metadata; | 328 var _downloadOptions = commons.DownloadOptions.Metadata; |
322 var _body = null; | 329 var _body = null; |
323 | 330 |
324 if (packageName == null) { | 331 if (packageName == null) { |
325 throw new core.ArgumentError("Parameter packageName is required."); | 332 throw new core.ArgumentError("Parameter packageName is required."); |
326 } | 333 } |
327 if (editId == null) { | 334 if (editId == null) { |
328 throw new core.ArgumentError("Parameter editId is required."); | 335 throw new core.ArgumentError("Parameter editId is required."); |
329 } | 336 } |
330 if (apkVersionCode == null) { | 337 if (apkVersionCode == null) { |
331 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 338 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
332 } | 339 } |
333 if (language == null) { | 340 if (language == null) { |
334 throw new core.ArgumentError("Parameter language is required."); | 341 throw new core.ArgumentError("Parameter language is required."); |
335 } | 342 } |
336 | 343 |
337 _downloadOptions = null; | 344 _downloadOptions = null; |
338 | 345 |
339 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/listings/' + commons.Escaper.ecapeVariable('$language'); | 346 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 347 '/edits/' + |
| 348 commons.Escaper.ecapeVariable('$editId') + |
| 349 '/apks/' + |
| 350 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 351 '/listings/' + |
| 352 commons.Escaper.ecapeVariable('$language'); |
340 | 353 |
341 var _response = _requester.request(_url, | 354 var _response = _requester.request(_url, "DELETE", |
342 "DELETE", | 355 body: _body, |
343 body: _body, | 356 queryParams: _queryParams, |
344 queryParams: _queryParams, | 357 uploadOptions: _uploadOptions, |
345 uploadOptions: _uploadOptions, | 358 uploadMedia: _uploadMedia, |
346 uploadMedia: _uploadMedia, | 359 downloadOptions: _downloadOptions); |
347 downloadOptions: _downloadOptions); | |
348 return _response.then((data) => null); | 360 return _response.then((data) => null); |
349 } | 361 } |
350 | 362 |
351 /** | 363 /// Deletes all the APK-specific localized listings for a specified APK. |
352 * Deletes all the APK-specific localized listings for a specified APK. | 364 /// |
353 * | 365 /// Request parameters: |
354 * Request parameters: | 366 /// |
355 * | 367 /// [packageName] - Unique identifier for the Android app that is being |
356 * [packageName] - Unique identifier for the Android app that is being | 368 /// updated; for example, "com.spiffygame". |
357 * updated; for example, "com.spiffygame". | 369 /// |
358 * | 370 /// [editId] - Unique identifier for this edit. |
359 * [editId] - Unique identifier for this edit. | 371 /// |
360 * | 372 /// [apkVersionCode] - The APK version code whose APK-specific listings |
361 * [apkVersionCode] - The APK version code whose APK-specific listings should | 373 /// should be read or modified. |
362 * be read or modified. | 374 /// |
363 * | 375 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
364 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 376 /// an error. |
365 * error. | 377 /// |
366 * | 378 /// If the used [http.Client] completes with an error when making a REST |
367 * If the used [http.Client] completes with an error when making a REST call, | 379 /// call, this method will complete with the same error. |
368 * this method will complete with the same error. | 380 async.Future deleteall( |
369 */ | 381 core.String packageName, core.String editId, core.int apkVersionCode) { |
370 async.Future deleteall(core.String packageName, core.String editId, core.int a
pkVersionCode) { | |
371 var _url = null; | 382 var _url = null; |
372 var _queryParams = new core.Map(); | 383 var _queryParams = new core.Map(); |
373 var _uploadMedia = null; | 384 var _uploadMedia = null; |
374 var _uploadOptions = null; | 385 var _uploadOptions = null; |
375 var _downloadOptions = commons.DownloadOptions.Metadata; | 386 var _downloadOptions = commons.DownloadOptions.Metadata; |
376 var _body = null; | 387 var _body = null; |
377 | 388 |
378 if (packageName == null) { | 389 if (packageName == null) { |
379 throw new core.ArgumentError("Parameter packageName is required."); | 390 throw new core.ArgumentError("Parameter packageName is required."); |
380 } | 391 } |
381 if (editId == null) { | 392 if (editId == null) { |
382 throw new core.ArgumentError("Parameter editId is required."); | 393 throw new core.ArgumentError("Parameter editId is required."); |
383 } | 394 } |
384 if (apkVersionCode == null) { | 395 if (apkVersionCode == null) { |
385 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 396 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
386 } | 397 } |
387 | 398 |
388 _downloadOptions = null; | 399 _downloadOptions = null; |
389 | 400 |
390 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/listings'; | 401 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 402 '/edits/' + |
| 403 commons.Escaper.ecapeVariable('$editId') + |
| 404 '/apks/' + |
| 405 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 406 '/listings'; |
391 | 407 |
392 var _response = _requester.request(_url, | 408 var _response = _requester.request(_url, "DELETE", |
393 "DELETE", | 409 body: _body, |
394 body: _body, | 410 queryParams: _queryParams, |
395 queryParams: _queryParams, | 411 uploadOptions: _uploadOptions, |
396 uploadOptions: _uploadOptions, | 412 uploadMedia: _uploadMedia, |
397 uploadMedia: _uploadMedia, | 413 downloadOptions: _downloadOptions); |
398 downloadOptions: _downloadOptions); | |
399 return _response.then((data) => null); | 414 return _response.then((data) => null); |
400 } | 415 } |
401 | 416 |
402 /** | 417 /// Fetches the APK-specific localized listing for a specified APK and |
403 * Fetches the APK-specific localized listing for a specified APK and language | 418 /// language code. |
404 * code. | 419 /// |
405 * | 420 /// Request parameters: |
406 * Request parameters: | 421 /// |
407 * | 422 /// [packageName] - Unique identifier for the Android app that is being |
408 * [packageName] - Unique identifier for the Android app that is being | 423 /// updated; for example, "com.spiffygame". |
409 * updated; for example, "com.spiffygame". | 424 /// |
410 * | 425 /// [editId] - Unique identifier for this edit. |
411 * [editId] - Unique identifier for this edit. | 426 /// |
412 * | 427 /// [apkVersionCode] - The APK version code whose APK-specific listings |
413 * [apkVersionCode] - The APK version code whose APK-specific listings should | 428 /// should be read or modified. |
414 * be read or modified. | 429 /// |
415 * | 430 /// [language] - The language code (a BCP-47 language tag) of the |
416 * [language] - The language code (a BCP-47 language tag) of the APK-specific | 431 /// APK-specific localized listing to read or modify. For example, to select |
417 * localized listing to read or modify. For example, to select Austrian | 432 /// Austrian German, pass "de-AT". |
418 * German, pass "de-AT". | 433 /// |
419 * | 434 /// Completes with a [ApkListing]. |
420 * Completes with a [ApkListing]. | 435 /// |
421 * | 436 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
422 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 437 /// an error. |
423 * error. | 438 /// |
424 * | 439 /// If the used [http.Client] completes with an error when making a REST |
425 * If the used [http.Client] completes with an error when making a REST call, | 440 /// call, this method will complete with the same error. |
426 * this method will complete with the same error. | 441 async.Future<ApkListing> get(core.String packageName, core.String editId, |
427 */ | 442 core.int apkVersionCode, core.String language) { |
428 async.Future<ApkListing> get(core.String packageName, core.String editId, core
.int apkVersionCode, core.String language) { | |
429 var _url = null; | 443 var _url = null; |
430 var _queryParams = new core.Map(); | 444 var _queryParams = new core.Map(); |
431 var _uploadMedia = null; | 445 var _uploadMedia = null; |
432 var _uploadOptions = null; | 446 var _uploadOptions = null; |
433 var _downloadOptions = commons.DownloadOptions.Metadata; | 447 var _downloadOptions = commons.DownloadOptions.Metadata; |
434 var _body = null; | 448 var _body = null; |
435 | 449 |
436 if (packageName == null) { | 450 if (packageName == null) { |
437 throw new core.ArgumentError("Parameter packageName is required."); | 451 throw new core.ArgumentError("Parameter packageName is required."); |
438 } | 452 } |
439 if (editId == null) { | 453 if (editId == null) { |
440 throw new core.ArgumentError("Parameter editId is required."); | 454 throw new core.ArgumentError("Parameter editId is required."); |
441 } | 455 } |
442 if (apkVersionCode == null) { | 456 if (apkVersionCode == null) { |
443 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 457 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
444 } | 458 } |
445 if (language == null) { | 459 if (language == null) { |
446 throw new core.ArgumentError("Parameter language is required."); | 460 throw new core.ArgumentError("Parameter language is required."); |
447 } | 461 } |
448 | 462 |
449 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/listings/' + commons.Escaper.ecapeVariable('$language'); | 463 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 464 '/edits/' + |
| 465 commons.Escaper.ecapeVariable('$editId') + |
| 466 '/apks/' + |
| 467 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 468 '/listings/' + |
| 469 commons.Escaper.ecapeVariable('$language'); |
450 | 470 |
451 var _response = _requester.request(_url, | 471 var _response = _requester.request(_url, "GET", |
452 "GET", | 472 body: _body, |
453 body: _body, | 473 queryParams: _queryParams, |
454 queryParams: _queryParams, | 474 uploadOptions: _uploadOptions, |
455 uploadOptions: _uploadOptions, | 475 uploadMedia: _uploadMedia, |
456 uploadMedia: _uploadMedia, | 476 downloadOptions: _downloadOptions); |
457 downloadOptions: _downloadOptions); | |
458 return _response.then((data) => new ApkListing.fromJson(data)); | 477 return _response.then((data) => new ApkListing.fromJson(data)); |
459 } | 478 } |
460 | 479 |
461 /** | 480 /// Lists all the APK-specific localized listings for a specified APK. |
462 * Lists all the APK-specific localized listings for a specified APK. | 481 /// |
463 * | 482 /// Request parameters: |
464 * Request parameters: | 483 /// |
465 * | 484 /// [packageName] - Unique identifier for the Android app that is being |
466 * [packageName] - Unique identifier for the Android app that is being | 485 /// updated; for example, "com.spiffygame". |
467 * updated; for example, "com.spiffygame". | 486 /// |
468 * | 487 /// [editId] - Unique identifier for this edit. |
469 * [editId] - Unique identifier for this edit. | 488 /// |
470 * | 489 /// [apkVersionCode] - The APK version code whose APK-specific listings |
471 * [apkVersionCode] - The APK version code whose APK-specific listings should | 490 /// should be read or modified. |
472 * be read or modified. | 491 /// |
473 * | 492 /// Completes with a [ApkListingsListResponse]. |
474 * Completes with a [ApkListingsListResponse]. | 493 /// |
475 * | 494 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
476 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 495 /// an error. |
477 * error. | 496 /// |
478 * | 497 /// If the used [http.Client] completes with an error when making a REST |
479 * If the used [http.Client] completes with an error when making a REST call, | 498 /// call, this method will complete with the same error. |
480 * this method will complete with the same error. | 499 async.Future<ApkListingsListResponse> list( |
481 */ | 500 core.String packageName, core.String editId, core.int apkVersionCode) { |
482 async.Future<ApkListingsListResponse> list(core.String packageName, core.Strin
g editId, core.int apkVersionCode) { | |
483 var _url = null; | 501 var _url = null; |
484 var _queryParams = new core.Map(); | 502 var _queryParams = new core.Map(); |
485 var _uploadMedia = null; | 503 var _uploadMedia = null; |
486 var _uploadOptions = null; | 504 var _uploadOptions = null; |
487 var _downloadOptions = commons.DownloadOptions.Metadata; | 505 var _downloadOptions = commons.DownloadOptions.Metadata; |
488 var _body = null; | 506 var _body = null; |
489 | 507 |
490 if (packageName == null) { | 508 if (packageName == null) { |
491 throw new core.ArgumentError("Parameter packageName is required."); | 509 throw new core.ArgumentError("Parameter packageName is required."); |
492 } | 510 } |
493 if (editId == null) { | 511 if (editId == null) { |
494 throw new core.ArgumentError("Parameter editId is required."); | 512 throw new core.ArgumentError("Parameter editId is required."); |
495 } | 513 } |
496 if (apkVersionCode == null) { | 514 if (apkVersionCode == null) { |
497 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 515 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
498 } | 516 } |
499 | 517 |
500 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/listings'; | 518 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 519 '/edits/' + |
| 520 commons.Escaper.ecapeVariable('$editId') + |
| 521 '/apks/' + |
| 522 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 523 '/listings'; |
501 | 524 |
502 var _response = _requester.request(_url, | 525 var _response = _requester.request(_url, "GET", |
503 "GET", | 526 body: _body, |
504 body: _body, | 527 queryParams: _queryParams, |
505 queryParams: _queryParams, | 528 uploadOptions: _uploadOptions, |
506 uploadOptions: _uploadOptions, | 529 uploadMedia: _uploadMedia, |
507 uploadMedia: _uploadMedia, | 530 downloadOptions: _downloadOptions); |
508 downloadOptions: _downloadOptions); | |
509 return _response.then((data) => new ApkListingsListResponse.fromJson(data)); | 531 return _response.then((data) => new ApkListingsListResponse.fromJson(data)); |
510 } | 532 } |
511 | 533 |
512 /** | 534 /// Updates or creates the APK-specific localized listing for a specified APK |
513 * Updates or creates the APK-specific localized listing for a specified APK | 535 /// and language code. This method supports patch semantics. |
514 * and language code. This method supports patch semantics. | 536 /// |
515 * | 537 /// [request] - The metadata request object. |
516 * [request] - The metadata request object. | 538 /// |
517 * | 539 /// Request parameters: |
518 * Request parameters: | 540 /// |
519 * | 541 /// [packageName] - Unique identifier for the Android app that is being |
520 * [packageName] - Unique identifier for the Android app that is being | 542 /// updated; for example, "com.spiffygame". |
521 * updated; for example, "com.spiffygame". | 543 /// |
522 * | 544 /// [editId] - Unique identifier for this edit. |
523 * [editId] - Unique identifier for this edit. | 545 /// |
524 * | 546 /// [apkVersionCode] - The APK version code whose APK-specific listings |
525 * [apkVersionCode] - The APK version code whose APK-specific listings should | 547 /// should be read or modified. |
526 * be read or modified. | 548 /// |
527 * | 549 /// [language] - The language code (a BCP-47 language tag) of the |
528 * [language] - The language code (a BCP-47 language tag) of the APK-specific | 550 /// APK-specific localized listing to read or modify. For example, to select |
529 * localized listing to read or modify. For example, to select Austrian | 551 /// Austrian German, pass "de-AT". |
530 * German, pass "de-AT". | 552 /// |
531 * | 553 /// Completes with a [ApkListing]. |
532 * Completes with a [ApkListing]. | 554 /// |
533 * | 555 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
534 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 556 /// an error. |
535 * error. | 557 /// |
536 * | 558 /// If the used [http.Client] completes with an error when making a REST |
537 * If the used [http.Client] completes with an error when making a REST call, | 559 /// call, this method will complete with the same error. |
538 * this method will complete with the same error. | 560 async.Future<ApkListing> patch(ApkListing request, core.String packageName, |
539 */ | 561 core.String editId, core.int apkVersionCode, core.String language) { |
540 async.Future<ApkListing> patch(ApkListing request, core.String packageName, co
re.String editId, core.int apkVersionCode, core.String language) { | |
541 var _url = null; | 562 var _url = null; |
542 var _queryParams = new core.Map(); | 563 var _queryParams = new core.Map(); |
543 var _uploadMedia = null; | 564 var _uploadMedia = null; |
544 var _uploadOptions = null; | 565 var _uploadOptions = null; |
545 var _downloadOptions = commons.DownloadOptions.Metadata; | 566 var _downloadOptions = commons.DownloadOptions.Metadata; |
546 var _body = null; | 567 var _body = null; |
547 | 568 |
548 if (request != null) { | 569 if (request != null) { |
549 _body = convert.JSON.encode((request).toJson()); | 570 _body = convert.JSON.encode((request).toJson()); |
550 } | 571 } |
551 if (packageName == null) { | 572 if (packageName == null) { |
552 throw new core.ArgumentError("Parameter packageName is required."); | 573 throw new core.ArgumentError("Parameter packageName is required."); |
553 } | 574 } |
554 if (editId == null) { | 575 if (editId == null) { |
555 throw new core.ArgumentError("Parameter editId is required."); | 576 throw new core.ArgumentError("Parameter editId is required."); |
556 } | 577 } |
557 if (apkVersionCode == null) { | 578 if (apkVersionCode == null) { |
558 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 579 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
559 } | 580 } |
560 if (language == null) { | 581 if (language == null) { |
561 throw new core.ArgumentError("Parameter language is required."); | 582 throw new core.ArgumentError("Parameter language is required."); |
562 } | 583 } |
563 | 584 |
564 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/listings/' + commons.Escaper.ecapeVariable('$language'); | 585 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 586 '/edits/' + |
| 587 commons.Escaper.ecapeVariable('$editId') + |
| 588 '/apks/' + |
| 589 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 590 '/listings/' + |
| 591 commons.Escaper.ecapeVariable('$language'); |
565 | 592 |
566 var _response = _requester.request(_url, | 593 var _response = _requester.request(_url, "PATCH", |
567 "PATCH", | 594 body: _body, |
568 body: _body, | 595 queryParams: _queryParams, |
569 queryParams: _queryParams, | 596 uploadOptions: _uploadOptions, |
570 uploadOptions: _uploadOptions, | 597 uploadMedia: _uploadMedia, |
571 uploadMedia: _uploadMedia, | 598 downloadOptions: _downloadOptions); |
572 downloadOptions: _downloadOptions); | |
573 return _response.then((data) => new ApkListing.fromJson(data)); | 599 return _response.then((data) => new ApkListing.fromJson(data)); |
574 } | 600 } |
575 | 601 |
576 /** | 602 /// Updates or creates the APK-specific localized listing for a specified APK |
577 * Updates or creates the APK-specific localized listing for a specified APK | 603 /// and language code. |
578 * and language code. | 604 /// |
579 * | 605 /// [request] - The metadata request object. |
580 * [request] - The metadata request object. | 606 /// |
581 * | 607 /// Request parameters: |
582 * Request parameters: | 608 /// |
583 * | 609 /// [packageName] - Unique identifier for the Android app that is being |
584 * [packageName] - Unique identifier for the Android app that is being | 610 /// updated; for example, "com.spiffygame". |
585 * updated; for example, "com.spiffygame". | 611 /// |
586 * | 612 /// [editId] - Unique identifier for this edit. |
587 * [editId] - Unique identifier for this edit. | 613 /// |
588 * | 614 /// [apkVersionCode] - The APK version code whose APK-specific listings |
589 * [apkVersionCode] - The APK version code whose APK-specific listings should | 615 /// should be read or modified. |
590 * be read or modified. | 616 /// |
591 * | 617 /// [language] - The language code (a BCP-47 language tag) of the |
592 * [language] - The language code (a BCP-47 language tag) of the APK-specific | 618 /// APK-specific localized listing to read or modify. For example, to select |
593 * localized listing to read or modify. For example, to select Austrian | 619 /// Austrian German, pass "de-AT". |
594 * German, pass "de-AT". | 620 /// |
595 * | 621 /// Completes with a [ApkListing]. |
596 * Completes with a [ApkListing]. | 622 /// |
597 * | 623 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
598 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 624 /// an error. |
599 * error. | 625 /// |
600 * | 626 /// If the used [http.Client] completes with an error when making a REST |
601 * If the used [http.Client] completes with an error when making a REST call, | 627 /// call, this method will complete with the same error. |
602 * this method will complete with the same error. | 628 async.Future<ApkListing> update(ApkListing request, core.String packageName, |
603 */ | 629 core.String editId, core.int apkVersionCode, core.String language) { |
604 async.Future<ApkListing> update(ApkListing request, core.String packageName, c
ore.String editId, core.int apkVersionCode, core.String language) { | |
605 var _url = null; | 630 var _url = null; |
606 var _queryParams = new core.Map(); | 631 var _queryParams = new core.Map(); |
607 var _uploadMedia = null; | 632 var _uploadMedia = null; |
608 var _uploadOptions = null; | 633 var _uploadOptions = null; |
609 var _downloadOptions = commons.DownloadOptions.Metadata; | 634 var _downloadOptions = commons.DownloadOptions.Metadata; |
610 var _body = null; | 635 var _body = null; |
611 | 636 |
612 if (request != null) { | 637 if (request != null) { |
613 _body = convert.JSON.encode((request).toJson()); | 638 _body = convert.JSON.encode((request).toJson()); |
614 } | 639 } |
615 if (packageName == null) { | 640 if (packageName == null) { |
616 throw new core.ArgumentError("Parameter packageName is required."); | 641 throw new core.ArgumentError("Parameter packageName is required."); |
617 } | 642 } |
618 if (editId == null) { | 643 if (editId == null) { |
619 throw new core.ArgumentError("Parameter editId is required."); | 644 throw new core.ArgumentError("Parameter editId is required."); |
620 } | 645 } |
621 if (apkVersionCode == null) { | 646 if (apkVersionCode == null) { |
622 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 647 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
623 } | 648 } |
624 if (language == null) { | 649 if (language == null) { |
625 throw new core.ArgumentError("Parameter language is required."); | 650 throw new core.ArgumentError("Parameter language is required."); |
626 } | 651 } |
627 | 652 |
628 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/listings/' + commons.Escaper.ecapeVariable('$language'); | 653 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 654 '/edits/' + |
| 655 commons.Escaper.ecapeVariable('$editId') + |
| 656 '/apks/' + |
| 657 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 658 '/listings/' + |
| 659 commons.Escaper.ecapeVariable('$language'); |
629 | 660 |
630 var _response = _requester.request(_url, | 661 var _response = _requester.request(_url, "PUT", |
631 "PUT", | 662 body: _body, |
632 body: _body, | 663 queryParams: _queryParams, |
633 queryParams: _queryParams, | 664 uploadOptions: _uploadOptions, |
634 uploadOptions: _uploadOptions, | 665 uploadMedia: _uploadMedia, |
635 uploadMedia: _uploadMedia, | 666 downloadOptions: _downloadOptions); |
636 downloadOptions: _downloadOptions); | |
637 return _response.then((data) => new ApkListing.fromJson(data)); | 667 return _response.then((data) => new ApkListing.fromJson(data)); |
638 } | 668 } |
639 | |
640 } | 669 } |
641 | 670 |
642 | |
643 class EditsApksResourceApi { | 671 class EditsApksResourceApi { |
644 final commons.ApiRequester _requester; | 672 final commons.ApiRequester _requester; |
645 | 673 |
646 EditsApksResourceApi(commons.ApiRequester client) : | 674 EditsApksResourceApi(commons.ApiRequester client) : _requester = client; |
647 _requester = client; | |
648 | 675 |
649 /** | 676 /// Creates a new APK without uploading the APK itself to Google Play, |
650 * Creates a new APK without uploading the APK itself to Google Play, instead | 677 /// instead hosting the APK at a specified URL. This function is only |
651 * hosting the APK at a specified URL. This function is only available to | 678 /// available to enterprises using Google Play for Work whose application is |
652 * enterprises using Google Play for Work whose application is configured to | 679 /// configured to restrict distribution to the enterprise domain. |
653 * restrict distribution to the enterprise domain. | 680 /// |
654 * | 681 /// [request] - The metadata request object. |
655 * [request] - The metadata request object. | 682 /// |
656 * | 683 /// Request parameters: |
657 * Request parameters: | 684 /// |
658 * | 685 /// [packageName] - Unique identifier for the Android app that is being |
659 * [packageName] - Unique identifier for the Android app that is being | 686 /// updated; for example, "com.spiffygame". |
660 * updated; for example, "com.spiffygame". | 687 /// |
661 * | 688 /// [editId] - Unique identifier for this edit. |
662 * [editId] - Unique identifier for this edit. | 689 /// |
663 * | 690 /// Completes with a [ApksAddExternallyHostedResponse]. |
664 * Completes with a [ApksAddExternallyHostedResponse]. | 691 /// |
665 * | 692 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
666 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 693 /// an error. |
667 * error. | 694 /// |
668 * | 695 /// If the used [http.Client] completes with an error when making a REST |
669 * If the used [http.Client] completes with an error when making a REST call, | 696 /// call, this method will complete with the same error. |
670 * this method will complete with the same error. | 697 async.Future<ApksAddExternallyHostedResponse> addexternallyhosted( |
671 */ | 698 ApksAddExternallyHostedRequest request, |
672 async.Future<ApksAddExternallyHostedResponse> addexternallyhosted(ApksAddExter
nallyHostedRequest request, core.String packageName, core.String editId) { | 699 core.String packageName, |
| 700 core.String editId) { |
673 var _url = null; | 701 var _url = null; |
674 var _queryParams = new core.Map(); | 702 var _queryParams = new core.Map(); |
675 var _uploadMedia = null; | 703 var _uploadMedia = null; |
676 var _uploadOptions = null; | 704 var _uploadOptions = null; |
677 var _downloadOptions = commons.DownloadOptions.Metadata; | 705 var _downloadOptions = commons.DownloadOptions.Metadata; |
678 var _body = null; | 706 var _body = null; |
679 | 707 |
680 if (request != null) { | 708 if (request != null) { |
681 _body = convert.JSON.encode((request).toJson()); | 709 _body = convert.JSON.encode((request).toJson()); |
682 } | 710 } |
683 if (packageName == null) { | 711 if (packageName == null) { |
684 throw new core.ArgumentError("Parameter packageName is required."); | 712 throw new core.ArgumentError("Parameter packageName is required."); |
685 } | 713 } |
686 if (editId == null) { | 714 if (editId == null) { |
687 throw new core.ArgumentError("Parameter editId is required."); | 715 throw new core.ArgumentError("Parameter editId is required."); |
688 } | 716 } |
689 | 717 |
690 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/externallyHosted'; | 718 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 719 '/edits/' + |
| 720 commons.Escaper.ecapeVariable('$editId') + |
| 721 '/apks/externallyHosted'; |
691 | 722 |
692 var _response = _requester.request(_url, | 723 var _response = _requester.request(_url, "POST", |
693 "POST", | 724 body: _body, |
694 body: _body, | 725 queryParams: _queryParams, |
695 queryParams: _queryParams, | 726 uploadOptions: _uploadOptions, |
696 uploadOptions: _uploadOptions, | 727 uploadMedia: _uploadMedia, |
697 uploadMedia: _uploadMedia, | 728 downloadOptions: _downloadOptions); |
698 downloadOptions: _downloadOptions); | 729 return _response |
699 return _response.then((data) => new ApksAddExternallyHostedResponse.fromJson
(data)); | 730 .then((data) => new ApksAddExternallyHostedResponse.fromJson(data)); |
700 } | 731 } |
701 | 732 |
702 /** | 733 /// Request parameters: |
703 * Request parameters: | 734 /// |
704 * | 735 /// [packageName] - Unique identifier for the Android app that is being |
705 * [packageName] - Unique identifier for the Android app that is being | 736 /// updated; for example, "com.spiffygame". |
706 * updated; for example, "com.spiffygame". | 737 /// |
707 * | 738 /// [editId] - Unique identifier for this edit. |
708 * [editId] - Unique identifier for this edit. | 739 /// |
709 * | 740 /// Completes with a [ApksListResponse]. |
710 * Completes with a [ApksListResponse]. | 741 /// |
711 * | 742 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
712 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 743 /// an error. |
713 * error. | 744 /// |
714 * | 745 /// If the used [http.Client] completes with an error when making a REST |
715 * If the used [http.Client] completes with an error when making a REST call, | 746 /// call, this method will complete with the same error. |
716 * this method will complete with the same error. | 747 async.Future<ApksListResponse> list( |
717 */ | 748 core.String packageName, core.String editId) { |
718 async.Future<ApksListResponse> list(core.String packageName, core.String editI
d) { | |
719 var _url = null; | 749 var _url = null; |
720 var _queryParams = new core.Map(); | 750 var _queryParams = new core.Map(); |
721 var _uploadMedia = null; | 751 var _uploadMedia = null; |
722 var _uploadOptions = null; | 752 var _uploadOptions = null; |
723 var _downloadOptions = commons.DownloadOptions.Metadata; | 753 var _downloadOptions = commons.DownloadOptions.Metadata; |
724 var _body = null; | 754 var _body = null; |
725 | 755 |
726 if (packageName == null) { | 756 if (packageName == null) { |
727 throw new core.ArgumentError("Parameter packageName is required."); | 757 throw new core.ArgumentError("Parameter packageName is required."); |
728 } | 758 } |
729 if (editId == null) { | 759 if (editId == null) { |
730 throw new core.ArgumentError("Parameter editId is required."); | 760 throw new core.ArgumentError("Parameter editId is required."); |
731 } | 761 } |
732 | 762 |
733 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks'; | 763 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 764 '/edits/' + |
| 765 commons.Escaper.ecapeVariable('$editId') + |
| 766 '/apks'; |
734 | 767 |
735 var _response = _requester.request(_url, | 768 var _response = _requester.request(_url, "GET", |
736 "GET", | 769 body: _body, |
737 body: _body, | 770 queryParams: _queryParams, |
738 queryParams: _queryParams, | 771 uploadOptions: _uploadOptions, |
739 uploadOptions: _uploadOptions, | 772 uploadMedia: _uploadMedia, |
740 uploadMedia: _uploadMedia, | 773 downloadOptions: _downloadOptions); |
741 downloadOptions: _downloadOptions); | |
742 return _response.then((data) => new ApksListResponse.fromJson(data)); | 774 return _response.then((data) => new ApksListResponse.fromJson(data)); |
743 } | 775 } |
744 | 776 |
745 /** | 777 /// Request parameters: |
746 * Request parameters: | 778 /// |
747 * | 779 /// [packageName] - Unique identifier for the Android app that is being |
748 * [packageName] - Unique identifier for the Android app that is being | 780 /// updated; for example, "com.spiffygame". |
749 * updated; for example, "com.spiffygame". | 781 /// |
750 * | 782 /// [editId] - Unique identifier for this edit. |
751 * [editId] - Unique identifier for this edit. | 783 /// |
752 * | 784 /// [uploadMedia] - The media to upload. |
753 * [uploadMedia] - The media to upload. | 785 /// |
754 * | 786 /// [uploadOptions] - Options for the media upload. Streaming Media without |
755 * [uploadOptions] - Options for the media upload. Streaming Media without the | 787 /// the length being known ahead of time is only supported via resumable |
756 * length being known ahead of time is only supported via resumable uploads. | 788 /// uploads. |
757 * | 789 /// |
758 * Completes with a [Apk]. | 790 /// Completes with a [Apk]. |
759 * | 791 /// |
760 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 792 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
761 * error. | 793 /// an error. |
762 * | 794 /// |
763 * If the used [http.Client] completes with an error when making a REST call, | 795 /// If the used [http.Client] completes with an error when making a REST |
764 * this method will complete with the same error. | 796 /// call, this method will complete with the same error. |
765 */ | 797 async.Future<Apk> upload(core.String packageName, core.String editId, |
766 async.Future<Apk> upload(core.String packageName, core.String editId, {commons
.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media uplo
adMedia}) { | 798 {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 799 commons.Media uploadMedia}) { |
767 var _url = null; | 800 var _url = null; |
768 var _queryParams = new core.Map(); | 801 var _queryParams = new core.Map(); |
769 var _uploadMedia = null; | 802 var _uploadMedia = null; |
770 var _uploadOptions = null; | 803 var _uploadOptions = null; |
771 var _downloadOptions = commons.DownloadOptions.Metadata; | 804 var _downloadOptions = commons.DownloadOptions.Metadata; |
772 var _body = null; | 805 var _body = null; |
773 | 806 |
774 if (packageName == null) { | 807 if (packageName == null) { |
775 throw new core.ArgumentError("Parameter packageName is required."); | 808 throw new core.ArgumentError("Parameter packageName is required."); |
776 } | 809 } |
777 if (editId == null) { | 810 if (editId == null) { |
778 throw new core.ArgumentError("Parameter editId is required."); | 811 throw new core.ArgumentError("Parameter editId is required."); |
779 } | 812 } |
780 | 813 |
781 _uploadMedia = uploadMedia; | 814 _uploadMedia = uploadMedia; |
782 _uploadOptions = uploadOptions; | 815 _uploadOptions = uploadOptions; |
783 | 816 |
784 if (_uploadMedia == null) { | 817 if (_uploadMedia == null) { |
785 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons
.Escaper.ecapeVariable('$editId') + '/apks'; | 818 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 819 '/edits/' + |
| 820 commons.Escaper.ecapeVariable('$editId') + |
| 821 '/apks'; |
786 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 822 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
787 _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Esc
aper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('
$editId') + '/apks'; | 823 _url = '/resumable/upload/androidpublisher/v2/applications/' + |
| 824 commons.Escaper.ecapeVariable('$packageName') + |
| 825 '/edits/' + |
| 826 commons.Escaper.ecapeVariable('$editId') + |
| 827 '/apks'; |
788 } else { | 828 } else { |
789 _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecape
Variable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId')
+ '/apks'; | 829 _url = '/upload/androidpublisher/v2/applications/' + |
| 830 commons.Escaper.ecapeVariable('$packageName') + |
| 831 '/edits/' + |
| 832 commons.Escaper.ecapeVariable('$editId') + |
| 833 '/apks'; |
790 } | 834 } |
791 | 835 |
792 | 836 var _response = _requester.request(_url, "POST", |
793 var _response = _requester.request(_url, | 837 body: _body, |
794 "POST", | 838 queryParams: _queryParams, |
795 body: _body, | 839 uploadOptions: _uploadOptions, |
796 queryParams: _queryParams, | 840 uploadMedia: _uploadMedia, |
797 uploadOptions: _uploadOptions, | 841 downloadOptions: _downloadOptions); |
798 uploadMedia: _uploadMedia, | |
799 downloadOptions: _downloadOptions); | |
800 return _response.then((data) => new Apk.fromJson(data)); | 842 return _response.then((data) => new Apk.fromJson(data)); |
801 } | 843 } |
802 | |
803 } | 844 } |
804 | 845 |
805 | |
806 class EditsDeobfuscationfilesResourceApi { | 846 class EditsDeobfuscationfilesResourceApi { |
807 final commons.ApiRequester _requester; | 847 final commons.ApiRequester _requester; |
808 | 848 |
809 EditsDeobfuscationfilesResourceApi(commons.ApiRequester client) : | 849 EditsDeobfuscationfilesResourceApi(commons.ApiRequester client) |
810 _requester = client; | 850 : _requester = client; |
811 | 851 |
812 /** | 852 /// Uploads the deobfuscation file of the specified APK. If a deobfuscation |
813 * Uploads the deobfuscation file of the specified APK. If a deobfuscation | 853 /// file already exists, it will be replaced. |
814 * file already exists, it will be replaced. | 854 /// |
815 * | 855 /// Request parameters: |
816 * Request parameters: | 856 /// |
817 * | 857 /// [packageName] - Unique identifier of the Android app for which the |
818 * [packageName] - Unique identifier of the Android app for which the | 858 /// deobfuscatiuon files are being uploaded; for example, "com.spiffygame". |
819 * deobfuscatiuon files are being uploaded; for example, "com.spiffygame". | 859 /// |
820 * | 860 /// [editId] - Unique identifier for this edit. |
821 * [editId] - Unique identifier for this edit. | 861 /// |
822 * | 862 /// [apkVersionCode] - The version code of the APK whose deobfuscation file |
823 * [apkVersionCode] - The version code of the APK whose deobfuscation file is | 863 /// is being uploaded. |
824 * being uploaded. | 864 /// |
825 * | 865 /// [deobfuscationFileType] - null |
826 * [deobfuscationFileType] - null | 866 /// Possible string values are: |
827 * Possible string values are: | 867 /// - "proguard" |
828 * - "proguard" | 868 /// |
829 * | 869 /// [uploadMedia] - The media to upload. |
830 * [uploadMedia] - The media to upload. | 870 /// |
831 * | 871 /// [uploadOptions] - Options for the media upload. Streaming Media without |
832 * [uploadOptions] - Options for the media upload. Streaming Media without the | 872 /// the length being known ahead of time is only supported via resumable |
833 * length being known ahead of time is only supported via resumable uploads. | 873 /// uploads. |
834 * | 874 /// |
835 * Completes with a [DeobfuscationFilesUploadResponse]. | 875 /// Completes with a [DeobfuscationFilesUploadResponse]. |
836 * | 876 /// |
837 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 877 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
838 * error. | 878 /// an error. |
839 * | 879 /// |
840 * If the used [http.Client] completes with an error when making a REST call, | 880 /// If the used [http.Client] completes with an error when making a REST |
841 * this method will complete with the same error. | 881 /// call, this method will complete with the same error. |
842 */ | 882 async.Future<DeobfuscationFilesUploadResponse> upload( |
843 async.Future<DeobfuscationFilesUploadResponse> upload(core.String packageName,
core.String editId, core.int apkVersionCode, core.String deobfuscationFileType,
{commons.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.M
edia uploadMedia}) { | 883 core.String packageName, |
| 884 core.String editId, |
| 885 core.int apkVersionCode, |
| 886 core.String deobfuscationFileType, |
| 887 {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 888 commons.Media uploadMedia}) { |
844 var _url = null; | 889 var _url = null; |
845 var _queryParams = new core.Map(); | 890 var _queryParams = new core.Map(); |
846 var _uploadMedia = null; | 891 var _uploadMedia = null; |
847 var _uploadOptions = null; | 892 var _uploadOptions = null; |
848 var _downloadOptions = commons.DownloadOptions.Metadata; | 893 var _downloadOptions = commons.DownloadOptions.Metadata; |
849 var _body = null; | 894 var _body = null; |
850 | 895 |
851 if (packageName == null) { | 896 if (packageName == null) { |
852 throw new core.ArgumentError("Parameter packageName is required."); | 897 throw new core.ArgumentError("Parameter packageName is required."); |
853 } | 898 } |
854 if (editId == null) { | 899 if (editId == null) { |
855 throw new core.ArgumentError("Parameter editId is required."); | 900 throw new core.ArgumentError("Parameter editId is required."); |
856 } | 901 } |
857 if (apkVersionCode == null) { | 902 if (apkVersionCode == null) { |
858 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 903 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
859 } | 904 } |
860 if (deobfuscationFileType == null) { | 905 if (deobfuscationFileType == null) { |
861 throw new core.ArgumentError("Parameter deobfuscationFileType is required.
"); | 906 throw new core.ArgumentError( |
| 907 "Parameter deobfuscationFileType is required."); |
862 } | 908 } |
863 | 909 |
864 _uploadMedia = uploadMedia; | 910 _uploadMedia = uploadMedia; |
865 _uploadOptions = uploadOptions; | 911 _uploadOptions = uploadOptions; |
866 | 912 |
867 if (_uploadMedia == null) { | 913 if (_uploadMedia == null) { |
868 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons
.Escaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$a
pkVersionCode') + '/deobfuscationFiles/' + commons.Escaper.ecapeVariable('$deobf
uscationFileType'); | 914 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 915 '/edits/' + |
| 916 commons.Escaper.ecapeVariable('$editId') + |
| 917 '/apks/' + |
| 918 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 919 '/deobfuscationFiles/' + |
| 920 commons.Escaper.ecapeVariable('$deobfuscationFileType'); |
869 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 921 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
870 _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Esc
aper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('
$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/deob
fuscationFiles/' + commons.Escaper.ecapeVariable('$deobfuscationFileType'); | 922 _url = '/resumable/upload/androidpublisher/v2/applications/' + |
| 923 commons.Escaper.ecapeVariable('$packageName') + |
| 924 '/edits/' + |
| 925 commons.Escaper.ecapeVariable('$editId') + |
| 926 '/apks/' + |
| 927 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 928 '/deobfuscationFiles/' + |
| 929 commons.Escaper.ecapeVariable('$deobfuscationFileType'); |
871 } else { | 930 } else { |
872 _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecape
Variable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId')
+ '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/deobfuscationF
iles/' + commons.Escaper.ecapeVariable('$deobfuscationFileType'); | 931 _url = '/upload/androidpublisher/v2/applications/' + |
| 932 commons.Escaper.ecapeVariable('$packageName') + |
| 933 '/edits/' + |
| 934 commons.Escaper.ecapeVariable('$editId') + |
| 935 '/apks/' + |
| 936 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 937 '/deobfuscationFiles/' + |
| 938 commons.Escaper.ecapeVariable('$deobfuscationFileType'); |
873 } | 939 } |
874 | 940 |
875 | 941 var _response = _requester.request(_url, "POST", |
876 var _response = _requester.request(_url, | 942 body: _body, |
877 "POST", | 943 queryParams: _queryParams, |
878 body: _body, | 944 uploadOptions: _uploadOptions, |
879 queryParams: _queryParams, | 945 uploadMedia: _uploadMedia, |
880 uploadOptions: _uploadOptions, | 946 downloadOptions: _downloadOptions); |
881 uploadMedia: _uploadMedia, | 947 return _response |
882 downloadOptions: _downloadOptions); | 948 .then((data) => new DeobfuscationFilesUploadResponse.fromJson(data)); |
883 return _response.then((data) => new DeobfuscationFilesUploadResponse.fromJso
n(data)); | |
884 } | 949 } |
885 | |
886 } | 950 } |
887 | 951 |
888 | |
889 class EditsDetailsResourceApi { | 952 class EditsDetailsResourceApi { |
890 final commons.ApiRequester _requester; | 953 final commons.ApiRequester _requester; |
891 | 954 |
892 EditsDetailsResourceApi(commons.ApiRequester client) : | 955 EditsDetailsResourceApi(commons.ApiRequester client) : _requester = client; |
893 _requester = client; | |
894 | 956 |
895 /** | 957 /// Fetches app details for this edit. This includes the default language and |
896 * Fetches app details for this edit. This includes the default language and | 958 /// developer support contact information. |
897 * developer support contact information. | 959 /// |
898 * | 960 /// Request parameters: |
899 * Request parameters: | 961 /// |
900 * | 962 /// [packageName] - Unique identifier for the Android app that is being |
901 * [packageName] - Unique identifier for the Android app that is being | 963 /// updated; for example, "com.spiffygame". |
902 * updated; for example, "com.spiffygame". | 964 /// |
903 * | 965 /// [editId] - Unique identifier for this edit. |
904 * [editId] - Unique identifier for this edit. | 966 /// |
905 * | 967 /// Completes with a [AppDetails]. |
906 * Completes with a [AppDetails]. | 968 /// |
907 * | 969 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
908 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 970 /// an error. |
909 * error. | 971 /// |
910 * | 972 /// If the used [http.Client] completes with an error when making a REST |
911 * If the used [http.Client] completes with an error when making a REST call, | 973 /// call, this method will complete with the same error. |
912 * this method will complete with the same error. | |
913 */ | |
914 async.Future<AppDetails> get(core.String packageName, core.String editId) { | 974 async.Future<AppDetails> get(core.String packageName, core.String editId) { |
915 var _url = null; | 975 var _url = null; |
916 var _queryParams = new core.Map(); | 976 var _queryParams = new core.Map(); |
917 var _uploadMedia = null; | 977 var _uploadMedia = null; |
918 var _uploadOptions = null; | 978 var _uploadOptions = null; |
919 var _downloadOptions = commons.DownloadOptions.Metadata; | 979 var _downloadOptions = commons.DownloadOptions.Metadata; |
920 var _body = null; | 980 var _body = null; |
921 | 981 |
922 if (packageName == null) { | 982 if (packageName == null) { |
923 throw new core.ArgumentError("Parameter packageName is required."); | 983 throw new core.ArgumentError("Parameter packageName is required."); |
924 } | 984 } |
925 if (editId == null) { | 985 if (editId == null) { |
926 throw new core.ArgumentError("Parameter editId is required."); | 986 throw new core.ArgumentError("Parameter editId is required."); |
927 } | 987 } |
928 | 988 |
929 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/details'; | 989 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 990 '/edits/' + |
| 991 commons.Escaper.ecapeVariable('$editId') + |
| 992 '/details'; |
930 | 993 |
931 var _response = _requester.request(_url, | 994 var _response = _requester.request(_url, "GET", |
932 "GET", | 995 body: _body, |
933 body: _body, | 996 queryParams: _queryParams, |
934 queryParams: _queryParams, | 997 uploadOptions: _uploadOptions, |
935 uploadOptions: _uploadOptions, | 998 uploadMedia: _uploadMedia, |
936 uploadMedia: _uploadMedia, | 999 downloadOptions: _downloadOptions); |
937 downloadOptions: _downloadOptions); | |
938 return _response.then((data) => new AppDetails.fromJson(data)); | 1000 return _response.then((data) => new AppDetails.fromJson(data)); |
939 } | 1001 } |
940 | 1002 |
941 /** | 1003 /// Updates app details for this edit. This method supports patch semantics. |
942 * Updates app details for this edit. This method supports patch semantics. | 1004 /// |
943 * | 1005 /// [request] - The metadata request object. |
944 * [request] - The metadata request object. | 1006 /// |
945 * | 1007 /// Request parameters: |
946 * Request parameters: | 1008 /// |
947 * | 1009 /// [packageName] - Unique identifier for the Android app that is being |
948 * [packageName] - Unique identifier for the Android app that is being | 1010 /// updated; for example, "com.spiffygame". |
949 * updated; for example, "com.spiffygame". | 1011 /// |
950 * | 1012 /// [editId] - Unique identifier for this edit. |
951 * [editId] - Unique identifier for this edit. | 1013 /// |
952 * | 1014 /// Completes with a [AppDetails]. |
953 * Completes with a [AppDetails]. | 1015 /// |
954 * | 1016 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
955 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1017 /// an error. |
956 * error. | 1018 /// |
957 * | 1019 /// If the used [http.Client] completes with an error when making a REST |
958 * If the used [http.Client] completes with an error when making a REST call, | 1020 /// call, this method will complete with the same error. |
959 * this method will complete with the same error. | 1021 async.Future<AppDetails> patch( |
960 */ | 1022 AppDetails request, core.String packageName, core.String editId) { |
961 async.Future<AppDetails> patch(AppDetails request, core.String packageName, co
re.String editId) { | |
962 var _url = null; | 1023 var _url = null; |
963 var _queryParams = new core.Map(); | 1024 var _queryParams = new core.Map(); |
964 var _uploadMedia = null; | 1025 var _uploadMedia = null; |
965 var _uploadOptions = null; | 1026 var _uploadOptions = null; |
966 var _downloadOptions = commons.DownloadOptions.Metadata; | 1027 var _downloadOptions = commons.DownloadOptions.Metadata; |
967 var _body = null; | 1028 var _body = null; |
968 | 1029 |
969 if (request != null) { | 1030 if (request != null) { |
970 _body = convert.JSON.encode((request).toJson()); | 1031 _body = convert.JSON.encode((request).toJson()); |
971 } | 1032 } |
972 if (packageName == null) { | 1033 if (packageName == null) { |
973 throw new core.ArgumentError("Parameter packageName is required."); | 1034 throw new core.ArgumentError("Parameter packageName is required."); |
974 } | 1035 } |
975 if (editId == null) { | 1036 if (editId == null) { |
976 throw new core.ArgumentError("Parameter editId is required."); | 1037 throw new core.ArgumentError("Parameter editId is required."); |
977 } | 1038 } |
978 | 1039 |
979 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/details'; | 1040 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1041 '/edits/' + |
| 1042 commons.Escaper.ecapeVariable('$editId') + |
| 1043 '/details'; |
980 | 1044 |
981 var _response = _requester.request(_url, | 1045 var _response = _requester.request(_url, "PATCH", |
982 "PATCH", | 1046 body: _body, |
983 body: _body, | 1047 queryParams: _queryParams, |
984 queryParams: _queryParams, | 1048 uploadOptions: _uploadOptions, |
985 uploadOptions: _uploadOptions, | 1049 uploadMedia: _uploadMedia, |
986 uploadMedia: _uploadMedia, | 1050 downloadOptions: _downloadOptions); |
987 downloadOptions: _downloadOptions); | |
988 return _response.then((data) => new AppDetails.fromJson(data)); | 1051 return _response.then((data) => new AppDetails.fromJson(data)); |
989 } | 1052 } |
990 | 1053 |
991 /** | 1054 /// Updates app details for this edit. |
992 * Updates app details for this edit. | 1055 /// |
993 * | 1056 /// [request] - The metadata request object. |
994 * [request] - The metadata request object. | 1057 /// |
995 * | 1058 /// Request parameters: |
996 * Request parameters: | 1059 /// |
997 * | 1060 /// [packageName] - Unique identifier for the Android app that is being |
998 * [packageName] - Unique identifier for the Android app that is being | 1061 /// updated; for example, "com.spiffygame". |
999 * updated; for example, "com.spiffygame". | 1062 /// |
1000 * | 1063 /// [editId] - Unique identifier for this edit. |
1001 * [editId] - Unique identifier for this edit. | 1064 /// |
1002 * | 1065 /// Completes with a [AppDetails]. |
1003 * Completes with a [AppDetails]. | 1066 /// |
1004 * | 1067 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1005 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1068 /// an error. |
1006 * error. | 1069 /// |
1007 * | 1070 /// If the used [http.Client] completes with an error when making a REST |
1008 * If the used [http.Client] completes with an error when making a REST call, | 1071 /// call, this method will complete with the same error. |
1009 * this method will complete with the same error. | 1072 async.Future<AppDetails> update( |
1010 */ | 1073 AppDetails request, core.String packageName, core.String editId) { |
1011 async.Future<AppDetails> update(AppDetails request, core.String packageName, c
ore.String editId) { | |
1012 var _url = null; | 1074 var _url = null; |
1013 var _queryParams = new core.Map(); | 1075 var _queryParams = new core.Map(); |
1014 var _uploadMedia = null; | 1076 var _uploadMedia = null; |
1015 var _uploadOptions = null; | 1077 var _uploadOptions = null; |
1016 var _downloadOptions = commons.DownloadOptions.Metadata; | 1078 var _downloadOptions = commons.DownloadOptions.Metadata; |
1017 var _body = null; | 1079 var _body = null; |
1018 | 1080 |
1019 if (request != null) { | 1081 if (request != null) { |
1020 _body = convert.JSON.encode((request).toJson()); | 1082 _body = convert.JSON.encode((request).toJson()); |
1021 } | 1083 } |
1022 if (packageName == null) { | 1084 if (packageName == null) { |
1023 throw new core.ArgumentError("Parameter packageName is required."); | 1085 throw new core.ArgumentError("Parameter packageName is required."); |
1024 } | 1086 } |
1025 if (editId == null) { | 1087 if (editId == null) { |
1026 throw new core.ArgumentError("Parameter editId is required."); | 1088 throw new core.ArgumentError("Parameter editId is required."); |
1027 } | 1089 } |
1028 | 1090 |
1029 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/details'; | 1091 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1092 '/edits/' + |
| 1093 commons.Escaper.ecapeVariable('$editId') + |
| 1094 '/details'; |
1030 | 1095 |
1031 var _response = _requester.request(_url, | 1096 var _response = _requester.request(_url, "PUT", |
1032 "PUT", | 1097 body: _body, |
1033 body: _body, | 1098 queryParams: _queryParams, |
1034 queryParams: _queryParams, | 1099 uploadOptions: _uploadOptions, |
1035 uploadOptions: _uploadOptions, | 1100 uploadMedia: _uploadMedia, |
1036 uploadMedia: _uploadMedia, | 1101 downloadOptions: _downloadOptions); |
1037 downloadOptions: _downloadOptions); | |
1038 return _response.then((data) => new AppDetails.fromJson(data)); | 1102 return _response.then((data) => new AppDetails.fromJson(data)); |
1039 } | 1103 } |
1040 | |
1041 } | 1104 } |
1042 | 1105 |
1043 | |
1044 class EditsExpansionfilesResourceApi { | 1106 class EditsExpansionfilesResourceApi { |
1045 final commons.ApiRequester _requester; | 1107 final commons.ApiRequester _requester; |
1046 | 1108 |
1047 EditsExpansionfilesResourceApi(commons.ApiRequester client) : | 1109 EditsExpansionfilesResourceApi(commons.ApiRequester client) |
1048 _requester = client; | 1110 : _requester = client; |
1049 | 1111 |
1050 /** | 1112 /// Fetches the Expansion File configuration for the APK specified. |
1051 * Fetches the Expansion File configuration for the APK specified. | 1113 /// |
1052 * | 1114 /// Request parameters: |
1053 * Request parameters: | 1115 /// |
1054 * | 1116 /// [packageName] - Unique identifier for the Android app that is being |
1055 * [packageName] - Unique identifier for the Android app that is being | 1117 /// updated; for example, "com.spiffygame". |
1056 * updated; for example, "com.spiffygame". | 1118 /// |
1057 * | 1119 /// [editId] - Unique identifier for this edit. |
1058 * [editId] - Unique identifier for this edit. | 1120 /// |
1059 * | 1121 /// [apkVersionCode] - The version code of the APK whose Expansion File |
1060 * [apkVersionCode] - The version code of the APK whose Expansion File | 1122 /// configuration is being read or modified. |
1061 * configuration is being read or modified. | 1123 /// |
1062 * | 1124 /// [expansionFileType] - null |
1063 * [expansionFileType] - null | 1125 /// Possible string values are: |
1064 * Possible string values are: | 1126 /// - "main" |
1065 * - "main" | 1127 /// - "patch" |
1066 * - "patch" | 1128 /// |
1067 * | 1129 /// Completes with a [ExpansionFile]. |
1068 * Completes with a [ExpansionFile]. | 1130 /// |
1069 * | 1131 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1070 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1132 /// an error. |
1071 * error. | 1133 /// |
1072 * | 1134 /// If the used [http.Client] completes with an error when making a REST |
1073 * If the used [http.Client] completes with an error when making a REST call, | 1135 /// call, this method will complete with the same error. |
1074 * this method will complete with the same error. | 1136 async.Future<ExpansionFile> get(core.String packageName, core.String editId, |
1075 */ | 1137 core.int apkVersionCode, core.String expansionFileType) { |
1076 async.Future<ExpansionFile> get(core.String packageName, core.String editId, c
ore.int apkVersionCode, core.String expansionFileType) { | |
1077 var _url = null; | 1138 var _url = null; |
1078 var _queryParams = new core.Map(); | 1139 var _queryParams = new core.Map(); |
1079 var _uploadMedia = null; | 1140 var _uploadMedia = null; |
1080 var _uploadOptions = null; | 1141 var _uploadOptions = null; |
1081 var _downloadOptions = commons.DownloadOptions.Metadata; | 1142 var _downloadOptions = commons.DownloadOptions.Metadata; |
1082 var _body = null; | 1143 var _body = null; |
1083 | 1144 |
1084 if (packageName == null) { | 1145 if (packageName == null) { |
1085 throw new core.ArgumentError("Parameter packageName is required."); | 1146 throw new core.ArgumentError("Parameter packageName is required."); |
1086 } | 1147 } |
1087 if (editId == null) { | 1148 if (editId == null) { |
1088 throw new core.ArgumentError("Parameter editId is required."); | 1149 throw new core.ArgumentError("Parameter editId is required."); |
1089 } | 1150 } |
1090 if (apkVersionCode == null) { | 1151 if (apkVersionCode == null) { |
1091 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 1152 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
1092 } | 1153 } |
1093 if (expansionFileType == null) { | 1154 if (expansionFileType == null) { |
1094 throw new core.ArgumentError("Parameter expansionFileType is required."); | 1155 throw new core.ArgumentError("Parameter expansionFileType is required."); |
1095 } | 1156 } |
1096 | 1157 |
1097 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/expansionFiles/' + commons.Escaper.ecapeVariable('$expansionFi
leType'); | 1158 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1159 '/edits/' + |
| 1160 commons.Escaper.ecapeVariable('$editId') + |
| 1161 '/apks/' + |
| 1162 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 1163 '/expansionFiles/' + |
| 1164 commons.Escaper.ecapeVariable('$expansionFileType'); |
1098 | 1165 |
1099 var _response = _requester.request(_url, | 1166 var _response = _requester.request(_url, "GET", |
1100 "GET", | 1167 body: _body, |
1101 body: _body, | 1168 queryParams: _queryParams, |
1102 queryParams: _queryParams, | 1169 uploadOptions: _uploadOptions, |
1103 uploadOptions: _uploadOptions, | 1170 uploadMedia: _uploadMedia, |
1104 uploadMedia: _uploadMedia, | 1171 downloadOptions: _downloadOptions); |
1105 downloadOptions: _downloadOptions); | |
1106 return _response.then((data) => new ExpansionFile.fromJson(data)); | 1172 return _response.then((data) => new ExpansionFile.fromJson(data)); |
1107 } | 1173 } |
1108 | 1174 |
1109 /** | 1175 /// Updates the APK's Expansion File configuration to reference another APK's |
1110 * Updates the APK's Expansion File configuration to reference another APK's | 1176 /// Expansion Files. To add a new Expansion File use the Upload method. This |
1111 * Expansion Files. To add a new Expansion File use the Upload method. This | 1177 /// method supports patch semantics. |
1112 * method supports patch semantics. | 1178 /// |
1113 * | 1179 /// [request] - The metadata request object. |
1114 * [request] - The metadata request object. | 1180 /// |
1115 * | 1181 /// Request parameters: |
1116 * Request parameters: | 1182 /// |
1117 * | 1183 /// [packageName] - Unique identifier for the Android app that is being |
1118 * [packageName] - Unique identifier for the Android app that is being | 1184 /// updated; for example, "com.spiffygame". |
1119 * updated; for example, "com.spiffygame". | 1185 /// |
1120 * | 1186 /// [editId] - Unique identifier for this edit. |
1121 * [editId] - Unique identifier for this edit. | 1187 /// |
1122 * | 1188 /// [apkVersionCode] - The version code of the APK whose Expansion File |
1123 * [apkVersionCode] - The version code of the APK whose Expansion File | 1189 /// configuration is being read or modified. |
1124 * configuration is being read or modified. | 1190 /// |
1125 * | 1191 /// [expansionFileType] - null |
1126 * [expansionFileType] - null | 1192 /// Possible string values are: |
1127 * Possible string values are: | 1193 /// - "main" |
1128 * - "main" | 1194 /// - "patch" |
1129 * - "patch" | 1195 /// |
1130 * | 1196 /// Completes with a [ExpansionFile]. |
1131 * Completes with a [ExpansionFile]. | 1197 /// |
1132 * | 1198 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1199 /// an error. |
1134 * error. | 1200 /// |
1135 * | 1201 /// If the used [http.Client] completes with an error when making a REST |
1136 * If the used [http.Client] completes with an error when making a REST call, | 1202 /// call, this method will complete with the same error. |
1137 * this method will complete with the same error. | 1203 async.Future<ExpansionFile> patch( |
1138 */ | 1204 ExpansionFile request, |
1139 async.Future<ExpansionFile> patch(ExpansionFile request, core.String packageNa
me, core.String editId, core.int apkVersionCode, core.String expansionFileType)
{ | 1205 core.String packageName, |
| 1206 core.String editId, |
| 1207 core.int apkVersionCode, |
| 1208 core.String expansionFileType) { |
1140 var _url = null; | 1209 var _url = null; |
1141 var _queryParams = new core.Map(); | 1210 var _queryParams = new core.Map(); |
1142 var _uploadMedia = null; | 1211 var _uploadMedia = null; |
1143 var _uploadOptions = null; | 1212 var _uploadOptions = null; |
1144 var _downloadOptions = commons.DownloadOptions.Metadata; | 1213 var _downloadOptions = commons.DownloadOptions.Metadata; |
1145 var _body = null; | 1214 var _body = null; |
1146 | 1215 |
1147 if (request != null) { | 1216 if (request != null) { |
1148 _body = convert.JSON.encode((request).toJson()); | 1217 _body = convert.JSON.encode((request).toJson()); |
1149 } | 1218 } |
1150 if (packageName == null) { | 1219 if (packageName == null) { |
1151 throw new core.ArgumentError("Parameter packageName is required."); | 1220 throw new core.ArgumentError("Parameter packageName is required."); |
1152 } | 1221 } |
1153 if (editId == null) { | 1222 if (editId == null) { |
1154 throw new core.ArgumentError("Parameter editId is required."); | 1223 throw new core.ArgumentError("Parameter editId is required."); |
1155 } | 1224 } |
1156 if (apkVersionCode == null) { | 1225 if (apkVersionCode == null) { |
1157 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 1226 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
1158 } | 1227 } |
1159 if (expansionFileType == null) { | 1228 if (expansionFileType == null) { |
1160 throw new core.ArgumentError("Parameter expansionFileType is required."); | 1229 throw new core.ArgumentError("Parameter expansionFileType is required."); |
1161 } | 1230 } |
1162 | 1231 |
1163 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/expansionFiles/' + commons.Escaper.ecapeVariable('$expansionFi
leType'); | 1232 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1233 '/edits/' + |
| 1234 commons.Escaper.ecapeVariable('$editId') + |
| 1235 '/apks/' + |
| 1236 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 1237 '/expansionFiles/' + |
| 1238 commons.Escaper.ecapeVariable('$expansionFileType'); |
1164 | 1239 |
1165 var _response = _requester.request(_url, | 1240 var _response = _requester.request(_url, "PATCH", |
1166 "PATCH", | 1241 body: _body, |
1167 body: _body, | 1242 queryParams: _queryParams, |
1168 queryParams: _queryParams, | 1243 uploadOptions: _uploadOptions, |
1169 uploadOptions: _uploadOptions, | 1244 uploadMedia: _uploadMedia, |
1170 uploadMedia: _uploadMedia, | 1245 downloadOptions: _downloadOptions); |
1171 downloadOptions: _downloadOptions); | |
1172 return _response.then((data) => new ExpansionFile.fromJson(data)); | 1246 return _response.then((data) => new ExpansionFile.fromJson(data)); |
1173 } | 1247 } |
1174 | 1248 |
1175 /** | 1249 /// Updates the APK's Expansion File configuration to reference another APK's |
1176 * Updates the APK's Expansion File configuration to reference another APK's | 1250 /// Expansion Files. To add a new Expansion File use the Upload method. |
1177 * Expansion Files. To add a new Expansion File use the Upload method. | 1251 /// |
1178 * | 1252 /// [request] - The metadata request object. |
1179 * [request] - The metadata request object. | 1253 /// |
1180 * | 1254 /// Request parameters: |
1181 * Request parameters: | 1255 /// |
1182 * | 1256 /// [packageName] - Unique identifier for the Android app that is being |
1183 * [packageName] - Unique identifier for the Android app that is being | 1257 /// updated; for example, "com.spiffygame". |
1184 * updated; for example, "com.spiffygame". | 1258 /// |
1185 * | 1259 /// [editId] - Unique identifier for this edit. |
1186 * [editId] - Unique identifier for this edit. | 1260 /// |
1187 * | 1261 /// [apkVersionCode] - The version code of the APK whose Expansion File |
1188 * [apkVersionCode] - The version code of the APK whose Expansion File | 1262 /// configuration is being read or modified. |
1189 * configuration is being read or modified. | 1263 /// |
1190 * | 1264 /// [expansionFileType] - null |
1191 * [expansionFileType] - null | 1265 /// Possible string values are: |
1192 * Possible string values are: | 1266 /// - "main" |
1193 * - "main" | 1267 /// - "patch" |
1194 * - "patch" | 1268 /// |
1195 * | 1269 /// Completes with a [ExpansionFile]. |
1196 * Completes with a [ExpansionFile]. | 1270 /// |
1197 * | 1271 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1198 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1272 /// an error. |
1199 * error. | 1273 /// |
1200 * | 1274 /// If the used [http.Client] completes with an error when making a REST |
1201 * If the used [http.Client] completes with an error when making a REST call, | 1275 /// call, this method will complete with the same error. |
1202 * this method will complete with the same error. | 1276 async.Future<ExpansionFile> update( |
1203 */ | 1277 ExpansionFile request, |
1204 async.Future<ExpansionFile> update(ExpansionFile request, core.String packageN
ame, core.String editId, core.int apkVersionCode, core.String expansionFileType)
{ | 1278 core.String packageName, |
| 1279 core.String editId, |
| 1280 core.int apkVersionCode, |
| 1281 core.String expansionFileType) { |
1205 var _url = null; | 1282 var _url = null; |
1206 var _queryParams = new core.Map(); | 1283 var _queryParams = new core.Map(); |
1207 var _uploadMedia = null; | 1284 var _uploadMedia = null; |
1208 var _uploadOptions = null; | 1285 var _uploadOptions = null; |
1209 var _downloadOptions = commons.DownloadOptions.Metadata; | 1286 var _downloadOptions = commons.DownloadOptions.Metadata; |
1210 var _body = null; | 1287 var _body = null; |
1211 | 1288 |
1212 if (request != null) { | 1289 if (request != null) { |
1213 _body = convert.JSON.encode((request).toJson()); | 1290 _body = convert.JSON.encode((request).toJson()); |
1214 } | 1291 } |
1215 if (packageName == null) { | 1292 if (packageName == null) { |
1216 throw new core.ArgumentError("Parameter packageName is required."); | 1293 throw new core.ArgumentError("Parameter packageName is required."); |
1217 } | 1294 } |
1218 if (editId == null) { | 1295 if (editId == null) { |
1219 throw new core.ArgumentError("Parameter editId is required."); | 1296 throw new core.ArgumentError("Parameter editId is required."); |
1220 } | 1297 } |
1221 if (apkVersionCode == null) { | 1298 if (apkVersionCode == null) { |
1222 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 1299 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
1223 } | 1300 } |
1224 if (expansionFileType == null) { | 1301 if (expansionFileType == null) { |
1225 throw new core.ArgumentError("Parameter expansionFileType is required."); | 1302 throw new core.ArgumentError("Parameter expansionFileType is required."); |
1226 } | 1303 } |
1227 | 1304 |
1228 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apk
VersionCode') + '/expansionFiles/' + commons.Escaper.ecapeVariable('$expansionFi
leType'); | 1305 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1306 '/edits/' + |
| 1307 commons.Escaper.ecapeVariable('$editId') + |
| 1308 '/apks/' + |
| 1309 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 1310 '/expansionFiles/' + |
| 1311 commons.Escaper.ecapeVariable('$expansionFileType'); |
1229 | 1312 |
1230 var _response = _requester.request(_url, | 1313 var _response = _requester.request(_url, "PUT", |
1231 "PUT", | 1314 body: _body, |
1232 body: _body, | 1315 queryParams: _queryParams, |
1233 queryParams: _queryParams, | 1316 uploadOptions: _uploadOptions, |
1234 uploadOptions: _uploadOptions, | 1317 uploadMedia: _uploadMedia, |
1235 uploadMedia: _uploadMedia, | 1318 downloadOptions: _downloadOptions); |
1236 downloadOptions: _downloadOptions); | |
1237 return _response.then((data) => new ExpansionFile.fromJson(data)); | 1319 return _response.then((data) => new ExpansionFile.fromJson(data)); |
1238 } | 1320 } |
1239 | 1321 |
1240 /** | 1322 /// Uploads and attaches a new Expansion File to the APK specified. |
1241 * Uploads and attaches a new Expansion File to the APK specified. | 1323 /// |
1242 * | 1324 /// Request parameters: |
1243 * Request parameters: | 1325 /// |
1244 * | 1326 /// [packageName] - Unique identifier for the Android app that is being |
1245 * [packageName] - Unique identifier for the Android app that is being | 1327 /// updated; for example, "com.spiffygame". |
1246 * updated; for example, "com.spiffygame". | 1328 /// |
1247 * | 1329 /// [editId] - Unique identifier for this edit. |
1248 * [editId] - Unique identifier for this edit. | 1330 /// |
1249 * | 1331 /// [apkVersionCode] - The version code of the APK whose Expansion File |
1250 * [apkVersionCode] - The version code of the APK whose Expansion File | 1332 /// configuration is being read or modified. |
1251 * configuration is being read or modified. | 1333 /// |
1252 * | 1334 /// [expansionFileType] - null |
1253 * [expansionFileType] - null | 1335 /// Possible string values are: |
1254 * Possible string values are: | 1336 /// - "main" |
1255 * - "main" | 1337 /// - "patch" |
1256 * - "patch" | 1338 /// |
1257 * | 1339 /// [uploadMedia] - The media to upload. |
1258 * [uploadMedia] - The media to upload. | 1340 /// |
1259 * | 1341 /// [uploadOptions] - Options for the media upload. Streaming Media without |
1260 * [uploadOptions] - Options for the media upload. Streaming Media without the | 1342 /// the length being known ahead of time is only supported via resumable |
1261 * length being known ahead of time is only supported via resumable uploads. | 1343 /// uploads. |
1262 * | 1344 /// |
1263 * Completes with a [ExpansionFilesUploadResponse]. | 1345 /// Completes with a [ExpansionFilesUploadResponse]. |
1264 * | 1346 /// |
1265 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1347 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1266 * error. | 1348 /// an error. |
1267 * | 1349 /// |
1268 * If the used [http.Client] completes with an error when making a REST call, | 1350 /// If the used [http.Client] completes with an error when making a REST |
1269 * this method will complete with the same error. | 1351 /// call, this method will complete with the same error. |
1270 */ | 1352 async.Future<ExpansionFilesUploadResponse> upload( |
1271 async.Future<ExpansionFilesUploadResponse> upload(core.String packageName, cor
e.String editId, core.int apkVersionCode, core.String expansionFileType, {common
s.UploadOptions uploadOptions : commons.UploadOptions.Default, commons.Media upl
oadMedia}) { | 1353 core.String packageName, |
| 1354 core.String editId, |
| 1355 core.int apkVersionCode, |
| 1356 core.String expansionFileType, |
| 1357 {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 1358 commons.Media uploadMedia}) { |
1272 var _url = null; | 1359 var _url = null; |
1273 var _queryParams = new core.Map(); | 1360 var _queryParams = new core.Map(); |
1274 var _uploadMedia = null; | 1361 var _uploadMedia = null; |
1275 var _uploadOptions = null; | 1362 var _uploadOptions = null; |
1276 var _downloadOptions = commons.DownloadOptions.Metadata; | 1363 var _downloadOptions = commons.DownloadOptions.Metadata; |
1277 var _body = null; | 1364 var _body = null; |
1278 | 1365 |
1279 if (packageName == null) { | 1366 if (packageName == null) { |
1280 throw new core.ArgumentError("Parameter packageName is required."); | 1367 throw new core.ArgumentError("Parameter packageName is required."); |
1281 } | 1368 } |
1282 if (editId == null) { | 1369 if (editId == null) { |
1283 throw new core.ArgumentError("Parameter editId is required."); | 1370 throw new core.ArgumentError("Parameter editId is required."); |
1284 } | 1371 } |
1285 if (apkVersionCode == null) { | 1372 if (apkVersionCode == null) { |
1286 throw new core.ArgumentError("Parameter apkVersionCode is required."); | 1373 throw new core.ArgumentError("Parameter apkVersionCode is required."); |
1287 } | 1374 } |
1288 if (expansionFileType == null) { | 1375 if (expansionFileType == null) { |
1289 throw new core.ArgumentError("Parameter expansionFileType is required."); | 1376 throw new core.ArgumentError("Parameter expansionFileType is required."); |
1290 } | 1377 } |
1291 | 1378 |
1292 _uploadMedia = uploadMedia; | 1379 _uploadMedia = uploadMedia; |
1293 _uploadOptions = uploadOptions; | 1380 _uploadOptions = uploadOptions; |
1294 | 1381 |
1295 if (_uploadMedia == null) { | 1382 if (_uploadMedia == null) { |
1296 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons
.Escaper.ecapeVariable('$editId') + '/apks/' + commons.Escaper.ecapeVariable('$a
pkVersionCode') + '/expansionFiles/' + commons.Escaper.ecapeVariable('$expansion
FileType'); | 1383 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1384 '/edits/' + |
| 1385 commons.Escaper.ecapeVariable('$editId') + |
| 1386 '/apks/' + |
| 1387 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 1388 '/expansionFiles/' + |
| 1389 commons.Escaper.ecapeVariable('$expansionFileType'); |
1297 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 1390 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
1298 _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Esc
aper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('
$editId') + '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/expa
nsionFiles/' + commons.Escaper.ecapeVariable('$expansionFileType'); | 1391 _url = '/resumable/upload/androidpublisher/v2/applications/' + |
| 1392 commons.Escaper.ecapeVariable('$packageName') + |
| 1393 '/edits/' + |
| 1394 commons.Escaper.ecapeVariable('$editId') + |
| 1395 '/apks/' + |
| 1396 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 1397 '/expansionFiles/' + |
| 1398 commons.Escaper.ecapeVariable('$expansionFileType'); |
1299 } else { | 1399 } else { |
1300 _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecape
Variable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId')
+ '/apks/' + commons.Escaper.ecapeVariable('$apkVersionCode') + '/expansionFiles
/' + commons.Escaper.ecapeVariable('$expansionFileType'); | 1400 _url = '/upload/androidpublisher/v2/applications/' + |
| 1401 commons.Escaper.ecapeVariable('$packageName') + |
| 1402 '/edits/' + |
| 1403 commons.Escaper.ecapeVariable('$editId') + |
| 1404 '/apks/' + |
| 1405 commons.Escaper.ecapeVariable('$apkVersionCode') + |
| 1406 '/expansionFiles/' + |
| 1407 commons.Escaper.ecapeVariable('$expansionFileType'); |
1301 } | 1408 } |
1302 | 1409 |
1303 | 1410 var _response = _requester.request(_url, "POST", |
1304 var _response = _requester.request(_url, | 1411 body: _body, |
1305 "POST", | 1412 queryParams: _queryParams, |
1306 body: _body, | 1413 uploadOptions: _uploadOptions, |
1307 queryParams: _queryParams, | 1414 uploadMedia: _uploadMedia, |
1308 uploadOptions: _uploadOptions, | 1415 downloadOptions: _downloadOptions); |
1309 uploadMedia: _uploadMedia, | 1416 return _response |
1310 downloadOptions: _downloadOptions); | 1417 .then((data) => new ExpansionFilesUploadResponse.fromJson(data)); |
1311 return _response.then((data) => new ExpansionFilesUploadResponse.fromJson(da
ta)); | |
1312 } | 1418 } |
1313 | |
1314 } | 1419 } |
1315 | 1420 |
1316 | |
1317 class EditsImagesResourceApi { | 1421 class EditsImagesResourceApi { |
1318 final commons.ApiRequester _requester; | 1422 final commons.ApiRequester _requester; |
1319 | 1423 |
1320 EditsImagesResourceApi(commons.ApiRequester client) : | 1424 EditsImagesResourceApi(commons.ApiRequester client) : _requester = client; |
1321 _requester = client; | |
1322 | 1425 |
1323 /** | 1426 /// Deletes the image (specified by id) from the edit. |
1324 * Deletes the image (specified by id) from the edit. | 1427 /// |
1325 * | 1428 /// Request parameters: |
1326 * Request parameters: | 1429 /// |
1327 * | 1430 /// [packageName] - Unique identifier for the Android app that is being |
1328 * [packageName] - Unique identifier for the Android app that is being | 1431 /// updated; for example, "com.spiffygame". |
1329 * updated; for example, "com.spiffygame". | 1432 /// |
1330 * | 1433 /// [editId] - Unique identifier for this edit. |
1331 * [editId] - Unique identifier for this edit. | 1434 /// |
1332 * | 1435 /// [language] - The language code (a BCP-47 language tag) of the localized |
1333 * [language] - The language code (a BCP-47 language tag) of the localized | 1436 /// listing whose images are to read or modified. For example, to select |
1334 * listing whose images are to read or modified. For example, to select | 1437 /// Austrian German, pass "de-AT". |
1335 * Austrian German, pass "de-AT". | 1438 /// |
1336 * | 1439 /// [imageType] - null |
1337 * [imageType] - null | 1440 /// Possible string values are: |
1338 * Possible string values are: | 1441 /// - "featureGraphic" |
1339 * - "featureGraphic" | 1442 /// - "icon" |
1340 * - "icon" | 1443 /// - "phoneScreenshots" |
1341 * - "phoneScreenshots" | 1444 /// - "promoGraphic" |
1342 * - "promoGraphic" | 1445 /// - "sevenInchScreenshots" |
1343 * - "sevenInchScreenshots" | 1446 /// - "tenInchScreenshots" |
1344 * - "tenInchScreenshots" | 1447 /// - "tvBanner" |
1345 * - "tvBanner" | 1448 /// - "tvScreenshots" |
1346 * - "tvScreenshots" | 1449 /// - "wearScreenshots" |
1347 * - "wearScreenshots" | 1450 /// |
1348 * | 1451 /// [imageId] - Unique identifier an image within the set of images attached |
1349 * [imageId] - Unique identifier an image within the set of images attached to | 1452 /// to this edit. |
1350 * this edit. | 1453 /// |
1351 * | 1454 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1352 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1455 /// an error. |
1353 * error. | 1456 /// |
1354 * | 1457 /// If the used [http.Client] completes with an error when making a REST |
1355 * If the used [http.Client] completes with an error when making a REST call, | 1458 /// call, this method will complete with the same error. |
1356 * this method will complete with the same error. | 1459 async.Future delete(core.String packageName, core.String editId, |
1357 */ | 1460 core.String language, core.String imageType, core.String imageId) { |
1358 async.Future delete(core.String packageName, core.String editId, core.String l
anguage, core.String imageType, core.String imageId) { | |
1359 var _url = null; | 1461 var _url = null; |
1360 var _queryParams = new core.Map(); | 1462 var _queryParams = new core.Map(); |
1361 var _uploadMedia = null; | 1463 var _uploadMedia = null; |
1362 var _uploadOptions = null; | 1464 var _uploadOptions = null; |
1363 var _downloadOptions = commons.DownloadOptions.Metadata; | 1465 var _downloadOptions = commons.DownloadOptions.Metadata; |
1364 var _body = null; | 1466 var _body = null; |
1365 | 1467 |
1366 if (packageName == null) { | 1468 if (packageName == null) { |
1367 throw new core.ArgumentError("Parameter packageName is required."); | 1469 throw new core.ArgumentError("Parameter packageName is required."); |
1368 } | 1470 } |
1369 if (editId == null) { | 1471 if (editId == null) { |
1370 throw new core.ArgumentError("Parameter editId is required."); | 1472 throw new core.ArgumentError("Parameter editId is required."); |
1371 } | 1473 } |
1372 if (language == null) { | 1474 if (language == null) { |
1373 throw new core.ArgumentError("Parameter language is required."); | 1475 throw new core.ArgumentError("Parameter language is required."); |
1374 } | 1476 } |
1375 if (imageType == null) { | 1477 if (imageType == null) { |
1376 throw new core.ArgumentError("Parameter imageType is required."); | 1478 throw new core.ArgumentError("Parameter imageType is required."); |
1377 } | 1479 } |
1378 if (imageId == null) { | 1480 if (imageId == null) { |
1379 throw new core.ArgumentError("Parameter imageId is required."); | 1481 throw new core.ArgumentError("Parameter imageId is required."); |
1380 } | 1482 } |
1381 | 1483 |
1382 _downloadOptions = null; | 1484 _downloadOptions = null; |
1383 | 1485 |
1384 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable('
$language') + '/' + commons.Escaper.ecapeVariable('$imageType') + '/' + commons.
Escaper.ecapeVariable('$imageId'); | 1486 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1487 '/edits/' + |
| 1488 commons.Escaper.ecapeVariable('$editId') + |
| 1489 '/listings/' + |
| 1490 commons.Escaper.ecapeVariable('$language') + |
| 1491 '/' + |
| 1492 commons.Escaper.ecapeVariable('$imageType') + |
| 1493 '/' + |
| 1494 commons.Escaper.ecapeVariable('$imageId'); |
1385 | 1495 |
1386 var _response = _requester.request(_url, | 1496 var _response = _requester.request(_url, "DELETE", |
1387 "DELETE", | 1497 body: _body, |
1388 body: _body, | 1498 queryParams: _queryParams, |
1389 queryParams: _queryParams, | 1499 uploadOptions: _uploadOptions, |
1390 uploadOptions: _uploadOptions, | 1500 uploadMedia: _uploadMedia, |
1391 uploadMedia: _uploadMedia, | 1501 downloadOptions: _downloadOptions); |
1392 downloadOptions: _downloadOptions); | |
1393 return _response.then((data) => null); | 1502 return _response.then((data) => null); |
1394 } | 1503 } |
1395 | 1504 |
1396 /** | 1505 /// Deletes all images for the specified language and image type. |
1397 * Deletes all images for the specified language and image type. | 1506 /// |
1398 * | 1507 /// Request parameters: |
1399 * Request parameters: | 1508 /// |
1400 * | 1509 /// [packageName] - Unique identifier for the Android app that is being |
1401 * [packageName] - Unique identifier for the Android app that is being | 1510 /// updated; for example, "com.spiffygame". |
1402 * updated; for example, "com.spiffygame". | 1511 /// |
1403 * | 1512 /// [editId] - Unique identifier for this edit. |
1404 * [editId] - Unique identifier for this edit. | 1513 /// |
1405 * | 1514 /// [language] - The language code (a BCP-47 language tag) of the localized |
1406 * [language] - The language code (a BCP-47 language tag) of the localized | 1515 /// listing whose images are to read or modified. For example, to select |
1407 * listing whose images are to read or modified. For example, to select | 1516 /// Austrian German, pass "de-AT". |
1408 * Austrian German, pass "de-AT". | 1517 /// |
1409 * | 1518 /// [imageType] - null |
1410 * [imageType] - null | 1519 /// Possible string values are: |
1411 * Possible string values are: | 1520 /// - "featureGraphic" |
1412 * - "featureGraphic" | 1521 /// - "icon" |
1413 * - "icon" | 1522 /// - "phoneScreenshots" |
1414 * - "phoneScreenshots" | 1523 /// - "promoGraphic" |
1415 * - "promoGraphic" | 1524 /// - "sevenInchScreenshots" |
1416 * - "sevenInchScreenshots" | 1525 /// - "tenInchScreenshots" |
1417 * - "tenInchScreenshots" | 1526 /// - "tvBanner" |
1418 * - "tvBanner" | 1527 /// - "tvScreenshots" |
1419 * - "tvScreenshots" | 1528 /// - "wearScreenshots" |
1420 * - "wearScreenshots" | 1529 /// |
1421 * | 1530 /// Completes with a [ImagesDeleteAllResponse]. |
1422 * Completes with a [ImagesDeleteAllResponse]. | 1531 /// |
1423 * | 1532 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1424 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1533 /// an error. |
1425 * error. | 1534 /// |
1426 * | 1535 /// If the used [http.Client] completes with an error when making a REST |
1427 * If the used [http.Client] completes with an error when making a REST call, | 1536 /// call, this method will complete with the same error. |
1428 * this method will complete with the same error. | 1537 async.Future<ImagesDeleteAllResponse> deleteall(core.String packageName, |
1429 */ | 1538 core.String editId, core.String language, core.String imageType) { |
1430 async.Future<ImagesDeleteAllResponse> deleteall(core.String packageName, core.
String editId, core.String language, core.String imageType) { | |
1431 var _url = null; | 1539 var _url = null; |
1432 var _queryParams = new core.Map(); | 1540 var _queryParams = new core.Map(); |
1433 var _uploadMedia = null; | 1541 var _uploadMedia = null; |
1434 var _uploadOptions = null; | 1542 var _uploadOptions = null; |
1435 var _downloadOptions = commons.DownloadOptions.Metadata; | 1543 var _downloadOptions = commons.DownloadOptions.Metadata; |
1436 var _body = null; | 1544 var _body = null; |
1437 | 1545 |
1438 if (packageName == null) { | 1546 if (packageName == null) { |
1439 throw new core.ArgumentError("Parameter packageName is required."); | 1547 throw new core.ArgumentError("Parameter packageName is required."); |
1440 } | 1548 } |
1441 if (editId == null) { | 1549 if (editId == null) { |
1442 throw new core.ArgumentError("Parameter editId is required."); | 1550 throw new core.ArgumentError("Parameter editId is required."); |
1443 } | 1551 } |
1444 if (language == null) { | 1552 if (language == null) { |
1445 throw new core.ArgumentError("Parameter language is required."); | 1553 throw new core.ArgumentError("Parameter language is required."); |
1446 } | 1554 } |
1447 if (imageType == null) { | 1555 if (imageType == null) { |
1448 throw new core.ArgumentError("Parameter imageType is required."); | 1556 throw new core.ArgumentError("Parameter imageType is required."); |
1449 } | 1557 } |
1450 | 1558 |
1451 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable('
$language') + '/' + commons.Escaper.ecapeVariable('$imageType'); | 1559 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1560 '/edits/' + |
| 1561 commons.Escaper.ecapeVariable('$editId') + |
| 1562 '/listings/' + |
| 1563 commons.Escaper.ecapeVariable('$language') + |
| 1564 '/' + |
| 1565 commons.Escaper.ecapeVariable('$imageType'); |
1452 | 1566 |
1453 var _response = _requester.request(_url, | 1567 var _response = _requester.request(_url, "DELETE", |
1454 "DELETE", | 1568 body: _body, |
1455 body: _body, | 1569 queryParams: _queryParams, |
1456 queryParams: _queryParams, | 1570 uploadOptions: _uploadOptions, |
1457 uploadOptions: _uploadOptions, | 1571 uploadMedia: _uploadMedia, |
1458 uploadMedia: _uploadMedia, | 1572 downloadOptions: _downloadOptions); |
1459 downloadOptions: _downloadOptions); | |
1460 return _response.then((data) => new ImagesDeleteAllResponse.fromJson(data)); | 1573 return _response.then((data) => new ImagesDeleteAllResponse.fromJson(data)); |
1461 } | 1574 } |
1462 | 1575 |
1463 /** | 1576 /// Lists all images for the specified language and image type. |
1464 * Lists all images for the specified language and image type. | 1577 /// |
1465 * | 1578 /// Request parameters: |
1466 * Request parameters: | 1579 /// |
1467 * | 1580 /// [packageName] - Unique identifier for the Android app that is being |
1468 * [packageName] - Unique identifier for the Android app that is being | 1581 /// updated; for example, "com.spiffygame". |
1469 * updated; for example, "com.spiffygame". | 1582 /// |
1470 * | 1583 /// [editId] - Unique identifier for this edit. |
1471 * [editId] - Unique identifier for this edit. | 1584 /// |
1472 * | 1585 /// [language] - The language code (a BCP-47 language tag) of the localized |
1473 * [language] - The language code (a BCP-47 language tag) of the localized | 1586 /// listing whose images are to read or modified. For example, to select |
1474 * listing whose images are to read or modified. For example, to select | 1587 /// Austrian German, pass "de-AT". |
1475 * Austrian German, pass "de-AT". | 1588 /// |
1476 * | 1589 /// [imageType] - null |
1477 * [imageType] - null | 1590 /// Possible string values are: |
1478 * Possible string values are: | 1591 /// - "featureGraphic" |
1479 * - "featureGraphic" | 1592 /// - "icon" |
1480 * - "icon" | 1593 /// - "phoneScreenshots" |
1481 * - "phoneScreenshots" | 1594 /// - "promoGraphic" |
1482 * - "promoGraphic" | 1595 /// - "sevenInchScreenshots" |
1483 * - "sevenInchScreenshots" | 1596 /// - "tenInchScreenshots" |
1484 * - "tenInchScreenshots" | 1597 /// - "tvBanner" |
1485 * - "tvBanner" | 1598 /// - "tvScreenshots" |
1486 * - "tvScreenshots" | 1599 /// - "wearScreenshots" |
1487 * - "wearScreenshots" | 1600 /// |
1488 * | 1601 /// Completes with a [ImagesListResponse]. |
1489 * Completes with a [ImagesListResponse]. | 1602 /// |
1490 * | 1603 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1491 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1604 /// an error. |
1492 * error. | 1605 /// |
1493 * | 1606 /// If the used [http.Client] completes with an error when making a REST |
1494 * If the used [http.Client] completes with an error when making a REST call, | 1607 /// call, this method will complete with the same error. |
1495 * this method will complete with the same error. | 1608 async.Future<ImagesListResponse> list(core.String packageName, |
1496 */ | 1609 core.String editId, core.String language, core.String imageType) { |
1497 async.Future<ImagesListResponse> list(core.String packageName, core.String edi
tId, core.String language, core.String imageType) { | |
1498 var _url = null; | 1610 var _url = null; |
1499 var _queryParams = new core.Map(); | 1611 var _queryParams = new core.Map(); |
1500 var _uploadMedia = null; | 1612 var _uploadMedia = null; |
1501 var _uploadOptions = null; | 1613 var _uploadOptions = null; |
1502 var _downloadOptions = commons.DownloadOptions.Metadata; | 1614 var _downloadOptions = commons.DownloadOptions.Metadata; |
1503 var _body = null; | 1615 var _body = null; |
1504 | 1616 |
1505 if (packageName == null) { | 1617 if (packageName == null) { |
1506 throw new core.ArgumentError("Parameter packageName is required."); | 1618 throw new core.ArgumentError("Parameter packageName is required."); |
1507 } | 1619 } |
1508 if (editId == null) { | 1620 if (editId == null) { |
1509 throw new core.ArgumentError("Parameter editId is required."); | 1621 throw new core.ArgumentError("Parameter editId is required."); |
1510 } | 1622 } |
1511 if (language == null) { | 1623 if (language == null) { |
1512 throw new core.ArgumentError("Parameter language is required."); | 1624 throw new core.ArgumentError("Parameter language is required."); |
1513 } | 1625 } |
1514 if (imageType == null) { | 1626 if (imageType == null) { |
1515 throw new core.ArgumentError("Parameter imageType is required."); | 1627 throw new core.ArgumentError("Parameter imageType is required."); |
1516 } | 1628 } |
1517 | 1629 |
1518 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable('
$language') + '/' + commons.Escaper.ecapeVariable('$imageType'); | 1630 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1631 '/edits/' + |
| 1632 commons.Escaper.ecapeVariable('$editId') + |
| 1633 '/listings/' + |
| 1634 commons.Escaper.ecapeVariable('$language') + |
| 1635 '/' + |
| 1636 commons.Escaper.ecapeVariable('$imageType'); |
1519 | 1637 |
1520 var _response = _requester.request(_url, | 1638 var _response = _requester.request(_url, "GET", |
1521 "GET", | 1639 body: _body, |
1522 body: _body, | 1640 queryParams: _queryParams, |
1523 queryParams: _queryParams, | 1641 uploadOptions: _uploadOptions, |
1524 uploadOptions: _uploadOptions, | 1642 uploadMedia: _uploadMedia, |
1525 uploadMedia: _uploadMedia, | 1643 downloadOptions: _downloadOptions); |
1526 downloadOptions: _downloadOptions); | |
1527 return _response.then((data) => new ImagesListResponse.fromJson(data)); | 1644 return _response.then((data) => new ImagesListResponse.fromJson(data)); |
1528 } | 1645 } |
1529 | 1646 |
1530 /** | 1647 /// Uploads a new image and adds it to the list of images for the specified |
1531 * Uploads a new image and adds it to the list of images for the specified | 1648 /// language and image type. |
1532 * language and image type. | 1649 /// |
1533 * | 1650 /// Request parameters: |
1534 * Request parameters: | 1651 /// |
1535 * | 1652 /// [packageName] - Unique identifier for the Android app that is being |
1536 * [packageName] - Unique identifier for the Android app that is being | 1653 /// updated; for example, "com.spiffygame". |
1537 * updated; for example, "com.spiffygame". | 1654 /// |
1538 * | 1655 /// [editId] - Unique identifier for this edit. |
1539 * [editId] - Unique identifier for this edit. | 1656 /// |
1540 * | 1657 /// [language] - The language code (a BCP-47 language tag) of the localized |
1541 * [language] - The language code (a BCP-47 language tag) of the localized | 1658 /// listing whose images are to read or modified. For example, to select |
1542 * listing whose images are to read or modified. For example, to select | 1659 /// Austrian German, pass "de-AT". |
1543 * Austrian German, pass "de-AT". | 1660 /// |
1544 * | 1661 /// [imageType] - null |
1545 * [imageType] - null | 1662 /// Possible string values are: |
1546 * Possible string values are: | 1663 /// - "featureGraphic" |
1547 * - "featureGraphic" | 1664 /// - "icon" |
1548 * - "icon" | 1665 /// - "phoneScreenshots" |
1549 * - "phoneScreenshots" | 1666 /// - "promoGraphic" |
1550 * - "promoGraphic" | 1667 /// - "sevenInchScreenshots" |
1551 * - "sevenInchScreenshots" | 1668 /// - "tenInchScreenshots" |
1552 * - "tenInchScreenshots" | 1669 /// - "tvBanner" |
1553 * - "tvBanner" | 1670 /// - "tvScreenshots" |
1554 * - "tvScreenshots" | 1671 /// - "wearScreenshots" |
1555 * - "wearScreenshots" | 1672 /// |
1556 * | 1673 /// [uploadMedia] - The media to upload. |
1557 * [uploadMedia] - The media to upload. | 1674 /// |
1558 * | 1675 /// [uploadOptions] - Options for the media upload. Streaming Media without |
1559 * [uploadOptions] - Options for the media upload. Streaming Media without the | 1676 /// the length being known ahead of time is only supported via resumable |
1560 * length being known ahead of time is only supported via resumable uploads. | 1677 /// uploads. |
1561 * | 1678 /// |
1562 * Completes with a [ImagesUploadResponse]. | 1679 /// Completes with a [ImagesUploadResponse]. |
1563 * | 1680 /// |
1564 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1681 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1565 * error. | 1682 /// an error. |
1566 * | 1683 /// |
1567 * If the used [http.Client] completes with an error when making a REST call, | 1684 /// If the used [http.Client] completes with an error when making a REST |
1568 * this method will complete with the same error. | 1685 /// call, this method will complete with the same error. |
1569 */ | 1686 async.Future<ImagesUploadResponse> upload(core.String packageName, |
1570 async.Future<ImagesUploadResponse> upload(core.String packageName, core.String
editId, core.String language, core.String imageType, {commons.UploadOptions upl
oadOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { | 1687 core.String editId, core.String language, core.String imageType, |
| 1688 {commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 1689 commons.Media uploadMedia}) { |
1571 var _url = null; | 1690 var _url = null; |
1572 var _queryParams = new core.Map(); | 1691 var _queryParams = new core.Map(); |
1573 var _uploadMedia = null; | 1692 var _uploadMedia = null; |
1574 var _uploadOptions = null; | 1693 var _uploadOptions = null; |
1575 var _downloadOptions = commons.DownloadOptions.Metadata; | 1694 var _downloadOptions = commons.DownloadOptions.Metadata; |
1576 var _body = null; | 1695 var _body = null; |
1577 | 1696 |
1578 if (packageName == null) { | 1697 if (packageName == null) { |
1579 throw new core.ArgumentError("Parameter packageName is required."); | 1698 throw new core.ArgumentError("Parameter packageName is required."); |
1580 } | 1699 } |
1581 if (editId == null) { | 1700 if (editId == null) { |
1582 throw new core.ArgumentError("Parameter editId is required."); | 1701 throw new core.ArgumentError("Parameter editId is required."); |
1583 } | 1702 } |
1584 if (language == null) { | 1703 if (language == null) { |
1585 throw new core.ArgumentError("Parameter language is required."); | 1704 throw new core.ArgumentError("Parameter language is required."); |
1586 } | 1705 } |
1587 if (imageType == null) { | 1706 if (imageType == null) { |
1588 throw new core.ArgumentError("Parameter imageType is required."); | 1707 throw new core.ArgumentError("Parameter imageType is required."); |
1589 } | 1708 } |
1590 | 1709 |
1591 _uploadMedia = uploadMedia; | 1710 _uploadMedia = uploadMedia; |
1592 _uploadOptions = uploadOptions; | 1711 _uploadOptions = uploadOptions; |
1593 | 1712 |
1594 if (_uploadMedia == null) { | 1713 if (_uploadMedia == null) { |
1595 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons
.Escaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable
('$language') + '/' + commons.Escaper.ecapeVariable('$imageType'); | 1714 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1715 '/edits/' + |
| 1716 commons.Escaper.ecapeVariable('$editId') + |
| 1717 '/listings/' + |
| 1718 commons.Escaper.ecapeVariable('$language') + |
| 1719 '/' + |
| 1720 commons.Escaper.ecapeVariable('$imageType'); |
1596 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 1721 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
1597 _url = '/resumable/upload/androidpublisher/v2/applications/' + commons.Esc
aper.ecapeVariable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('
$editId') + '/listings/' + commons.Escaper.ecapeVariable('$language') + '/' + co
mmons.Escaper.ecapeVariable('$imageType'); | 1722 _url = '/resumable/upload/androidpublisher/v2/applications/' + |
| 1723 commons.Escaper.ecapeVariable('$packageName') + |
| 1724 '/edits/' + |
| 1725 commons.Escaper.ecapeVariable('$editId') + |
| 1726 '/listings/' + |
| 1727 commons.Escaper.ecapeVariable('$language') + |
| 1728 '/' + |
| 1729 commons.Escaper.ecapeVariable('$imageType'); |
1598 } else { | 1730 } else { |
1599 _url = '/upload/androidpublisher/v2/applications/' + commons.Escaper.ecape
Variable('$packageName') + '/edits/' + commons.Escaper.ecapeVariable('$editId')
+ '/listings/' + commons.Escaper.ecapeVariable('$language') + '/' + commons.Esca
per.ecapeVariable('$imageType'); | 1731 _url = '/upload/androidpublisher/v2/applications/' + |
| 1732 commons.Escaper.ecapeVariable('$packageName') + |
| 1733 '/edits/' + |
| 1734 commons.Escaper.ecapeVariable('$editId') + |
| 1735 '/listings/' + |
| 1736 commons.Escaper.ecapeVariable('$language') + |
| 1737 '/' + |
| 1738 commons.Escaper.ecapeVariable('$imageType'); |
1600 } | 1739 } |
1601 | 1740 |
1602 | 1741 var _response = _requester.request(_url, "POST", |
1603 var _response = _requester.request(_url, | 1742 body: _body, |
1604 "POST", | 1743 queryParams: _queryParams, |
1605 body: _body, | 1744 uploadOptions: _uploadOptions, |
1606 queryParams: _queryParams, | 1745 uploadMedia: _uploadMedia, |
1607 uploadOptions: _uploadOptions, | 1746 downloadOptions: _downloadOptions); |
1608 uploadMedia: _uploadMedia, | |
1609 downloadOptions: _downloadOptions); | |
1610 return _response.then((data) => new ImagesUploadResponse.fromJson(data)); | 1747 return _response.then((data) => new ImagesUploadResponse.fromJson(data)); |
1611 } | 1748 } |
1612 | |
1613 } | 1749 } |
1614 | 1750 |
1615 | |
1616 class EditsListingsResourceApi { | 1751 class EditsListingsResourceApi { |
1617 final commons.ApiRequester _requester; | 1752 final commons.ApiRequester _requester; |
1618 | 1753 |
1619 EditsListingsResourceApi(commons.ApiRequester client) : | 1754 EditsListingsResourceApi(commons.ApiRequester client) : _requester = client; |
1620 _requester = client; | |
1621 | 1755 |
1622 /** | 1756 /// Deletes the specified localized store listing from an edit. |
1623 * Deletes the specified localized store listing from an edit. | 1757 /// |
1624 * | 1758 /// Request parameters: |
1625 * Request parameters: | 1759 /// |
1626 * | 1760 /// [packageName] - Unique identifier for the Android app that is being |
1627 * [packageName] - Unique identifier for the Android app that is being | 1761 /// updated; for example, "com.spiffygame". |
1628 * updated; for example, "com.spiffygame". | 1762 /// |
1629 * | 1763 /// [editId] - Unique identifier for this edit. |
1630 * [editId] - Unique identifier for this edit. | 1764 /// |
1631 * | 1765 /// [language] - The language code (a BCP-47 language tag) of the localized |
1632 * [language] - The language code (a BCP-47 language tag) of the localized | 1766 /// listing to read or modify. For example, to select Austrian German, pass |
1633 * listing to read or modify. For example, to select Austrian German, pass | 1767 /// "de-AT". |
1634 * "de-AT". | 1768 /// |
1635 * | 1769 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1636 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1770 /// an error. |
1637 * error. | 1771 /// |
1638 * | 1772 /// If the used [http.Client] completes with an error when making a REST |
1639 * If the used [http.Client] completes with an error when making a REST call, | 1773 /// call, this method will complete with the same error. |
1640 * this method will complete with the same error. | 1774 async.Future delete( |
1641 */ | 1775 core.String packageName, core.String editId, core.String language) { |
1642 async.Future delete(core.String packageName, core.String editId, core.String l
anguage) { | |
1643 var _url = null; | 1776 var _url = null; |
1644 var _queryParams = new core.Map(); | 1777 var _queryParams = new core.Map(); |
1645 var _uploadMedia = null; | 1778 var _uploadMedia = null; |
1646 var _uploadOptions = null; | 1779 var _uploadOptions = null; |
1647 var _downloadOptions = commons.DownloadOptions.Metadata; | 1780 var _downloadOptions = commons.DownloadOptions.Metadata; |
1648 var _body = null; | 1781 var _body = null; |
1649 | 1782 |
1650 if (packageName == null) { | 1783 if (packageName == null) { |
1651 throw new core.ArgumentError("Parameter packageName is required."); | 1784 throw new core.ArgumentError("Parameter packageName is required."); |
1652 } | 1785 } |
1653 if (editId == null) { | 1786 if (editId == null) { |
1654 throw new core.ArgumentError("Parameter editId is required."); | 1787 throw new core.ArgumentError("Parameter editId is required."); |
1655 } | 1788 } |
1656 if (language == null) { | 1789 if (language == null) { |
1657 throw new core.ArgumentError("Parameter language is required."); | 1790 throw new core.ArgumentError("Parameter language is required."); |
1658 } | 1791 } |
1659 | 1792 |
1660 _downloadOptions = null; | 1793 _downloadOptions = null; |
1661 | 1794 |
1662 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable('
$language'); | 1795 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1796 '/edits/' + |
| 1797 commons.Escaper.ecapeVariable('$editId') + |
| 1798 '/listings/' + |
| 1799 commons.Escaper.ecapeVariable('$language'); |
1663 | 1800 |
1664 var _response = _requester.request(_url, | 1801 var _response = _requester.request(_url, "DELETE", |
1665 "DELETE", | 1802 body: _body, |
1666 body: _body, | 1803 queryParams: _queryParams, |
1667 queryParams: _queryParams, | 1804 uploadOptions: _uploadOptions, |
1668 uploadOptions: _uploadOptions, | 1805 uploadMedia: _uploadMedia, |
1669 uploadMedia: _uploadMedia, | 1806 downloadOptions: _downloadOptions); |
1670 downloadOptions: _downloadOptions); | |
1671 return _response.then((data) => null); | 1807 return _response.then((data) => null); |
1672 } | 1808 } |
1673 | 1809 |
1674 /** | 1810 /// Deletes all localized listings from an edit. |
1675 * Deletes all localized listings from an edit. | 1811 /// |
1676 * | 1812 /// Request parameters: |
1677 * Request parameters: | 1813 /// |
1678 * | 1814 /// [packageName] - Unique identifier for the Android app that is being |
1679 * [packageName] - Unique identifier for the Android app that is being | 1815 /// updated; for example, "com.spiffygame". |
1680 * updated; for example, "com.spiffygame". | 1816 /// |
1681 * | 1817 /// [editId] - Unique identifier for this edit. |
1682 * [editId] - Unique identifier for this edit. | 1818 /// |
1683 * | 1819 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1684 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1820 /// an error. |
1685 * error. | 1821 /// |
1686 * | 1822 /// If the used [http.Client] completes with an error when making a REST |
1687 * If the used [http.Client] completes with an error when making a REST call, | 1823 /// call, this method will complete with the same error. |
1688 * this method will complete with the same error. | |
1689 */ | |
1690 async.Future deleteall(core.String packageName, core.String editId) { | 1824 async.Future deleteall(core.String packageName, core.String editId) { |
1691 var _url = null; | 1825 var _url = null; |
1692 var _queryParams = new core.Map(); | 1826 var _queryParams = new core.Map(); |
1693 var _uploadMedia = null; | 1827 var _uploadMedia = null; |
1694 var _uploadOptions = null; | 1828 var _uploadOptions = null; |
1695 var _downloadOptions = commons.DownloadOptions.Metadata; | 1829 var _downloadOptions = commons.DownloadOptions.Metadata; |
1696 var _body = null; | 1830 var _body = null; |
1697 | 1831 |
1698 if (packageName == null) { | 1832 if (packageName == null) { |
1699 throw new core.ArgumentError("Parameter packageName is required."); | 1833 throw new core.ArgumentError("Parameter packageName is required."); |
1700 } | 1834 } |
1701 if (editId == null) { | 1835 if (editId == null) { |
1702 throw new core.ArgumentError("Parameter editId is required."); | 1836 throw new core.ArgumentError("Parameter editId is required."); |
1703 } | 1837 } |
1704 | 1838 |
1705 _downloadOptions = null; | 1839 _downloadOptions = null; |
1706 | 1840 |
1707 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings'; | 1841 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1842 '/edits/' + |
| 1843 commons.Escaper.ecapeVariable('$editId') + |
| 1844 '/listings'; |
1708 | 1845 |
1709 var _response = _requester.request(_url, | 1846 var _response = _requester.request(_url, "DELETE", |
1710 "DELETE", | 1847 body: _body, |
1711 body: _body, | 1848 queryParams: _queryParams, |
1712 queryParams: _queryParams, | 1849 uploadOptions: _uploadOptions, |
1713 uploadOptions: _uploadOptions, | 1850 uploadMedia: _uploadMedia, |
1714 uploadMedia: _uploadMedia, | 1851 downloadOptions: _downloadOptions); |
1715 downloadOptions: _downloadOptions); | |
1716 return _response.then((data) => null); | 1852 return _response.then((data) => null); |
1717 } | 1853 } |
1718 | 1854 |
1719 /** | 1855 /// Fetches information about a localized store listing. |
1720 * Fetches information about a localized store listing. | 1856 /// |
1721 * | 1857 /// Request parameters: |
1722 * Request parameters: | 1858 /// |
1723 * | 1859 /// [packageName] - Unique identifier for the Android app that is being |
1724 * [packageName] - Unique identifier for the Android app that is being | 1860 /// updated; for example, "com.spiffygame". |
1725 * updated; for example, "com.spiffygame". | 1861 /// |
1726 * | 1862 /// [editId] - Unique identifier for this edit. |
1727 * [editId] - Unique identifier for this edit. | 1863 /// |
1728 * | 1864 /// [language] - The language code (a BCP-47 language tag) of the localized |
1729 * [language] - The language code (a BCP-47 language tag) of the localized | 1865 /// listing to read or modify. For example, to select Austrian German, pass |
1730 * listing to read or modify. For example, to select Austrian German, pass | 1866 /// "de-AT". |
1731 * "de-AT". | 1867 /// |
1732 * | 1868 /// Completes with a [Listing]. |
1733 * Completes with a [Listing]. | 1869 /// |
1734 * | 1870 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1735 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1871 /// an error. |
1736 * error. | 1872 /// |
1737 * | 1873 /// If the used [http.Client] completes with an error when making a REST |
1738 * If the used [http.Client] completes with an error when making a REST call, | 1874 /// call, this method will complete with the same error. |
1739 * this method will complete with the same error. | 1875 async.Future<Listing> get( |
1740 */ | 1876 core.String packageName, core.String editId, core.String language) { |
1741 async.Future<Listing> get(core.String packageName, core.String editId, core.St
ring language) { | |
1742 var _url = null; | 1877 var _url = null; |
1743 var _queryParams = new core.Map(); | 1878 var _queryParams = new core.Map(); |
1744 var _uploadMedia = null; | 1879 var _uploadMedia = null; |
1745 var _uploadOptions = null; | 1880 var _uploadOptions = null; |
1746 var _downloadOptions = commons.DownloadOptions.Metadata; | 1881 var _downloadOptions = commons.DownloadOptions.Metadata; |
1747 var _body = null; | 1882 var _body = null; |
1748 | 1883 |
1749 if (packageName == null) { | 1884 if (packageName == null) { |
1750 throw new core.ArgumentError("Parameter packageName is required."); | 1885 throw new core.ArgumentError("Parameter packageName is required."); |
1751 } | 1886 } |
1752 if (editId == null) { | 1887 if (editId == null) { |
1753 throw new core.ArgumentError("Parameter editId is required."); | 1888 throw new core.ArgumentError("Parameter editId is required."); |
1754 } | 1889 } |
1755 if (language == null) { | 1890 if (language == null) { |
1756 throw new core.ArgumentError("Parameter language is required."); | 1891 throw new core.ArgumentError("Parameter language is required."); |
1757 } | 1892 } |
1758 | 1893 |
1759 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable('
$language'); | 1894 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1895 '/edits/' + |
| 1896 commons.Escaper.ecapeVariable('$editId') + |
| 1897 '/listings/' + |
| 1898 commons.Escaper.ecapeVariable('$language'); |
1760 | 1899 |
1761 var _response = _requester.request(_url, | 1900 var _response = _requester.request(_url, "GET", |
1762 "GET", | 1901 body: _body, |
1763 body: _body, | 1902 queryParams: _queryParams, |
1764 queryParams: _queryParams, | 1903 uploadOptions: _uploadOptions, |
1765 uploadOptions: _uploadOptions, | 1904 uploadMedia: _uploadMedia, |
1766 uploadMedia: _uploadMedia, | 1905 downloadOptions: _downloadOptions); |
1767 downloadOptions: _downloadOptions); | |
1768 return _response.then((data) => new Listing.fromJson(data)); | 1906 return _response.then((data) => new Listing.fromJson(data)); |
1769 } | 1907 } |
1770 | 1908 |
1771 /** | 1909 /// Returns all of the localized store listings attached to this edit. |
1772 * Returns all of the localized store listings attached to this edit. | 1910 /// |
1773 * | 1911 /// Request parameters: |
1774 * Request parameters: | 1912 /// |
1775 * | 1913 /// [packageName] - Unique identifier for the Android app that is being |
1776 * [packageName] - Unique identifier for the Android app that is being | 1914 /// updated; for example, "com.spiffygame". |
1777 * updated; for example, "com.spiffygame". | 1915 /// |
1778 * | 1916 /// [editId] - Unique identifier for this edit. |
1779 * [editId] - Unique identifier for this edit. | 1917 /// |
1780 * | 1918 /// Completes with a [ListingsListResponse]. |
1781 * Completes with a [ListingsListResponse]. | 1919 /// |
1782 * | 1920 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1783 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1921 /// an error. |
1784 * error. | 1922 /// |
1785 * | 1923 /// If the used [http.Client] completes with an error when making a REST |
1786 * If the used [http.Client] completes with an error when making a REST call, | 1924 /// call, this method will complete with the same error. |
1787 * this method will complete with the same error. | 1925 async.Future<ListingsListResponse> list( |
1788 */ | 1926 core.String packageName, core.String editId) { |
1789 async.Future<ListingsListResponse> list(core.String packageName, core.String e
ditId) { | |
1790 var _url = null; | 1927 var _url = null; |
1791 var _queryParams = new core.Map(); | 1928 var _queryParams = new core.Map(); |
1792 var _uploadMedia = null; | 1929 var _uploadMedia = null; |
1793 var _uploadOptions = null; | 1930 var _uploadOptions = null; |
1794 var _downloadOptions = commons.DownloadOptions.Metadata; | 1931 var _downloadOptions = commons.DownloadOptions.Metadata; |
1795 var _body = null; | 1932 var _body = null; |
1796 | 1933 |
1797 if (packageName == null) { | 1934 if (packageName == null) { |
1798 throw new core.ArgumentError("Parameter packageName is required."); | 1935 throw new core.ArgumentError("Parameter packageName is required."); |
1799 } | 1936 } |
1800 if (editId == null) { | 1937 if (editId == null) { |
1801 throw new core.ArgumentError("Parameter editId is required."); | 1938 throw new core.ArgumentError("Parameter editId is required."); |
1802 } | 1939 } |
1803 | 1940 |
1804 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings'; | 1941 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 1942 '/edits/' + |
| 1943 commons.Escaper.ecapeVariable('$editId') + |
| 1944 '/listings'; |
1805 | 1945 |
1806 var _response = _requester.request(_url, | 1946 var _response = _requester.request(_url, "GET", |
1807 "GET", | 1947 body: _body, |
1808 body: _body, | 1948 queryParams: _queryParams, |
1809 queryParams: _queryParams, | 1949 uploadOptions: _uploadOptions, |
1810 uploadOptions: _uploadOptions, | 1950 uploadMedia: _uploadMedia, |
1811 uploadMedia: _uploadMedia, | 1951 downloadOptions: _downloadOptions); |
1812 downloadOptions: _downloadOptions); | |
1813 return _response.then((data) => new ListingsListResponse.fromJson(data)); | 1952 return _response.then((data) => new ListingsListResponse.fromJson(data)); |
1814 } | 1953 } |
1815 | 1954 |
1816 /** | 1955 /// Creates or updates a localized store listing. This method supports patch |
1817 * Creates or updates a localized store listing. This method supports patch | 1956 /// semantics. |
1818 * semantics. | 1957 /// |
1819 * | 1958 /// [request] - The metadata request object. |
1820 * [request] - The metadata request object. | 1959 /// |
1821 * | 1960 /// Request parameters: |
1822 * Request parameters: | 1961 /// |
1823 * | 1962 /// [packageName] - Unique identifier for the Android app that is being |
1824 * [packageName] - Unique identifier for the Android app that is being | 1963 /// updated; for example, "com.spiffygame". |
1825 * updated; for example, "com.spiffygame". | 1964 /// |
1826 * | 1965 /// [editId] - Unique identifier for this edit. |
1827 * [editId] - Unique identifier for this edit. | 1966 /// |
1828 * | 1967 /// [language] - The language code (a BCP-47 language tag) of the localized |
1829 * [language] - The language code (a BCP-47 language tag) of the localized | 1968 /// listing to read or modify. For example, to select Austrian German, pass |
1830 * listing to read or modify. For example, to select Austrian German, pass | 1969 /// "de-AT". |
1831 * "de-AT". | 1970 /// |
1832 * | 1971 /// Completes with a [Listing]. |
1833 * Completes with a [Listing]. | 1972 /// |
1834 * | 1973 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1835 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1974 /// an error. |
1836 * error. | 1975 /// |
1837 * | 1976 /// If the used [http.Client] completes with an error when making a REST |
1838 * If the used [http.Client] completes with an error when making a REST call, | 1977 /// call, this method will complete with the same error. |
1839 * this method will complete with the same error. | 1978 async.Future<Listing> patch(Listing request, core.String packageName, |
1840 */ | 1979 core.String editId, core.String language) { |
1841 async.Future<Listing> patch(Listing request, core.String packageName, core.Str
ing editId, core.String language) { | |
1842 var _url = null; | 1980 var _url = null; |
1843 var _queryParams = new core.Map(); | 1981 var _queryParams = new core.Map(); |
1844 var _uploadMedia = null; | 1982 var _uploadMedia = null; |
1845 var _uploadOptions = null; | 1983 var _uploadOptions = null; |
1846 var _downloadOptions = commons.DownloadOptions.Metadata; | 1984 var _downloadOptions = commons.DownloadOptions.Metadata; |
1847 var _body = null; | 1985 var _body = null; |
1848 | 1986 |
1849 if (request != null) { | 1987 if (request != null) { |
1850 _body = convert.JSON.encode((request).toJson()); | 1988 _body = convert.JSON.encode((request).toJson()); |
1851 } | 1989 } |
1852 if (packageName == null) { | 1990 if (packageName == null) { |
1853 throw new core.ArgumentError("Parameter packageName is required."); | 1991 throw new core.ArgumentError("Parameter packageName is required."); |
1854 } | 1992 } |
1855 if (editId == null) { | 1993 if (editId == null) { |
1856 throw new core.ArgumentError("Parameter editId is required."); | 1994 throw new core.ArgumentError("Parameter editId is required."); |
1857 } | 1995 } |
1858 if (language == null) { | 1996 if (language == null) { |
1859 throw new core.ArgumentError("Parameter language is required."); | 1997 throw new core.ArgumentError("Parameter language is required."); |
1860 } | 1998 } |
1861 | 1999 |
1862 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable('
$language'); | 2000 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2001 '/edits/' + |
| 2002 commons.Escaper.ecapeVariable('$editId') + |
| 2003 '/listings/' + |
| 2004 commons.Escaper.ecapeVariable('$language'); |
1863 | 2005 |
1864 var _response = _requester.request(_url, | 2006 var _response = _requester.request(_url, "PATCH", |
1865 "PATCH", | 2007 body: _body, |
1866 body: _body, | 2008 queryParams: _queryParams, |
1867 queryParams: _queryParams, | 2009 uploadOptions: _uploadOptions, |
1868 uploadOptions: _uploadOptions, | 2010 uploadMedia: _uploadMedia, |
1869 uploadMedia: _uploadMedia, | 2011 downloadOptions: _downloadOptions); |
1870 downloadOptions: _downloadOptions); | |
1871 return _response.then((data) => new Listing.fromJson(data)); | 2012 return _response.then((data) => new Listing.fromJson(data)); |
1872 } | 2013 } |
1873 | 2014 |
1874 /** | 2015 /// Creates or updates a localized store listing. |
1875 * Creates or updates a localized store listing. | 2016 /// |
1876 * | 2017 /// [request] - The metadata request object. |
1877 * [request] - The metadata request object. | 2018 /// |
1878 * | 2019 /// Request parameters: |
1879 * Request parameters: | 2020 /// |
1880 * | 2021 /// [packageName] - Unique identifier for the Android app that is being |
1881 * [packageName] - Unique identifier for the Android app that is being | 2022 /// updated; for example, "com.spiffygame". |
1882 * updated; for example, "com.spiffygame". | 2023 /// |
1883 * | 2024 /// [editId] - Unique identifier for this edit. |
1884 * [editId] - Unique identifier for this edit. | 2025 /// |
1885 * | 2026 /// [language] - The language code (a BCP-47 language tag) of the localized |
1886 * [language] - The language code (a BCP-47 language tag) of the localized | 2027 /// listing to read or modify. For example, to select Austrian German, pass |
1887 * listing to read or modify. For example, to select Austrian German, pass | 2028 /// "de-AT". |
1888 * "de-AT". | 2029 /// |
1889 * | 2030 /// Completes with a [Listing]. |
1890 * Completes with a [Listing]. | 2031 /// |
1891 * | 2032 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1892 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2033 /// an error. |
1893 * error. | 2034 /// |
1894 * | 2035 /// If the used [http.Client] completes with an error when making a REST |
1895 * If the used [http.Client] completes with an error when making a REST call, | 2036 /// call, this method will complete with the same error. |
1896 * this method will complete with the same error. | 2037 async.Future<Listing> update(Listing request, core.String packageName, |
1897 */ | 2038 core.String editId, core.String language) { |
1898 async.Future<Listing> update(Listing request, core.String packageName, core.St
ring editId, core.String language) { | |
1899 var _url = null; | 2039 var _url = null; |
1900 var _queryParams = new core.Map(); | 2040 var _queryParams = new core.Map(); |
1901 var _uploadMedia = null; | 2041 var _uploadMedia = null; |
1902 var _uploadOptions = null; | 2042 var _uploadOptions = null; |
1903 var _downloadOptions = commons.DownloadOptions.Metadata; | 2043 var _downloadOptions = commons.DownloadOptions.Metadata; |
1904 var _body = null; | 2044 var _body = null; |
1905 | 2045 |
1906 if (request != null) { | 2046 if (request != null) { |
1907 _body = convert.JSON.encode((request).toJson()); | 2047 _body = convert.JSON.encode((request).toJson()); |
1908 } | 2048 } |
1909 if (packageName == null) { | 2049 if (packageName == null) { |
1910 throw new core.ArgumentError("Parameter packageName is required."); | 2050 throw new core.ArgumentError("Parameter packageName is required."); |
1911 } | 2051 } |
1912 if (editId == null) { | 2052 if (editId == null) { |
1913 throw new core.ArgumentError("Parameter editId is required."); | 2053 throw new core.ArgumentError("Parameter editId is required."); |
1914 } | 2054 } |
1915 if (language == null) { | 2055 if (language == null) { |
1916 throw new core.ArgumentError("Parameter language is required."); | 2056 throw new core.ArgumentError("Parameter language is required."); |
1917 } | 2057 } |
1918 | 2058 |
1919 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/listings/' + commons.Escaper.ecapeVariable('
$language'); | 2059 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2060 '/edits/' + |
| 2061 commons.Escaper.ecapeVariable('$editId') + |
| 2062 '/listings/' + |
| 2063 commons.Escaper.ecapeVariable('$language'); |
1920 | 2064 |
1921 var _response = _requester.request(_url, | 2065 var _response = _requester.request(_url, "PUT", |
1922 "PUT", | 2066 body: _body, |
1923 body: _body, | 2067 queryParams: _queryParams, |
1924 queryParams: _queryParams, | 2068 uploadOptions: _uploadOptions, |
1925 uploadOptions: _uploadOptions, | 2069 uploadMedia: _uploadMedia, |
1926 uploadMedia: _uploadMedia, | 2070 downloadOptions: _downloadOptions); |
1927 downloadOptions: _downloadOptions); | |
1928 return _response.then((data) => new Listing.fromJson(data)); | 2071 return _response.then((data) => new Listing.fromJson(data)); |
1929 } | 2072 } |
1930 | |
1931 } | 2073 } |
1932 | 2074 |
1933 | |
1934 class EditsTestersResourceApi { | 2075 class EditsTestersResourceApi { |
1935 final commons.ApiRequester _requester; | 2076 final commons.ApiRequester _requester; |
1936 | 2077 |
1937 EditsTestersResourceApi(commons.ApiRequester client) : | 2078 EditsTestersResourceApi(commons.ApiRequester client) : _requester = client; |
1938 _requester = client; | |
1939 | 2079 |
1940 /** | 2080 /// Request parameters: |
1941 * Request parameters: | 2081 /// |
1942 * | 2082 /// [packageName] - Unique identifier for the Android app that is being |
1943 * [packageName] - Unique identifier for the Android app that is being | 2083 /// updated; for example, "com.spiffygame". |
1944 * updated; for example, "com.spiffygame". | 2084 /// |
1945 * | 2085 /// [editId] - Unique identifier for this edit. |
1946 * [editId] - Unique identifier for this edit. | 2086 /// |
1947 * | 2087 /// [track] - null |
1948 * [track] - null | 2088 /// Possible string values are: |
1949 * Possible string values are: | 2089 /// - "alpha" |
1950 * - "alpha" | 2090 /// - "beta" |
1951 * - "beta" | 2091 /// - "production" |
1952 * - "production" | 2092 /// - "rollout" |
1953 * - "rollout" | 2093 /// |
1954 * | 2094 /// Completes with a [Testers]. |
1955 * Completes with a [Testers]. | 2095 /// |
1956 * | 2096 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1957 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2097 /// an error. |
1958 * error. | 2098 /// |
1959 * | 2099 /// If the used [http.Client] completes with an error when making a REST |
1960 * If the used [http.Client] completes with an error when making a REST call, | 2100 /// call, this method will complete with the same error. |
1961 * this method will complete with the same error. | 2101 async.Future<Testers> get( |
1962 */ | 2102 core.String packageName, core.String editId, core.String track) { |
1963 async.Future<Testers> get(core.String packageName, core.String editId, core.St
ring track) { | |
1964 var _url = null; | 2103 var _url = null; |
1965 var _queryParams = new core.Map(); | 2104 var _queryParams = new core.Map(); |
1966 var _uploadMedia = null; | 2105 var _uploadMedia = null; |
1967 var _uploadOptions = null; | 2106 var _uploadOptions = null; |
1968 var _downloadOptions = commons.DownloadOptions.Metadata; | 2107 var _downloadOptions = commons.DownloadOptions.Metadata; |
1969 var _body = null; | 2108 var _body = null; |
1970 | 2109 |
1971 if (packageName == null) { | 2110 if (packageName == null) { |
1972 throw new core.ArgumentError("Parameter packageName is required."); | 2111 throw new core.ArgumentError("Parameter packageName is required."); |
1973 } | 2112 } |
1974 if (editId == null) { | 2113 if (editId == null) { |
1975 throw new core.ArgumentError("Parameter editId is required."); | 2114 throw new core.ArgumentError("Parameter editId is required."); |
1976 } | 2115 } |
1977 if (track == null) { | 2116 if (track == null) { |
1978 throw new core.ArgumentError("Parameter track is required."); | 2117 throw new core.ArgumentError("Parameter track is required."); |
1979 } | 2118 } |
1980 | 2119 |
1981 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/testers/' + commons.Escaper.ecapeVariable('$
track'); | 2120 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2121 '/edits/' + |
| 2122 commons.Escaper.ecapeVariable('$editId') + |
| 2123 '/testers/' + |
| 2124 commons.Escaper.ecapeVariable('$track'); |
1982 | 2125 |
1983 var _response = _requester.request(_url, | 2126 var _response = _requester.request(_url, "GET", |
1984 "GET", | 2127 body: _body, |
1985 body: _body, | 2128 queryParams: _queryParams, |
1986 queryParams: _queryParams, | 2129 uploadOptions: _uploadOptions, |
1987 uploadOptions: _uploadOptions, | 2130 uploadMedia: _uploadMedia, |
1988 uploadMedia: _uploadMedia, | 2131 downloadOptions: _downloadOptions); |
1989 downloadOptions: _downloadOptions); | |
1990 return _response.then((data) => new Testers.fromJson(data)); | 2132 return _response.then((data) => new Testers.fromJson(data)); |
1991 } | 2133 } |
1992 | 2134 |
1993 /** | 2135 /// [request] - The metadata request object. |
1994 * [request] - The metadata request object. | 2136 /// |
1995 * | 2137 /// Request parameters: |
1996 * Request parameters: | 2138 /// |
1997 * | 2139 /// [packageName] - Unique identifier for the Android app that is being |
1998 * [packageName] - Unique identifier for the Android app that is being | 2140 /// updated; for example, "com.spiffygame". |
1999 * updated; for example, "com.spiffygame". | 2141 /// |
2000 * | 2142 /// [editId] - Unique identifier for this edit. |
2001 * [editId] - Unique identifier for this edit. | 2143 /// |
2002 * | 2144 /// [track] - null |
2003 * [track] - null | 2145 /// Possible string values are: |
2004 * Possible string values are: | 2146 /// - "alpha" |
2005 * - "alpha" | 2147 /// - "beta" |
2006 * - "beta" | 2148 /// - "production" |
2007 * - "production" | 2149 /// - "rollout" |
2008 * - "rollout" | 2150 /// |
2009 * | 2151 /// Completes with a [Testers]. |
2010 * Completes with a [Testers]. | 2152 /// |
2011 * | 2153 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2012 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2154 /// an error. |
2013 * error. | 2155 /// |
2014 * | 2156 /// If the used [http.Client] completes with an error when making a REST |
2015 * If the used [http.Client] completes with an error when making a REST call, | 2157 /// call, this method will complete with the same error. |
2016 * this method will complete with the same error. | 2158 async.Future<Testers> patch(Testers request, core.String packageName, |
2017 */ | 2159 core.String editId, core.String track) { |
2018 async.Future<Testers> patch(Testers request, core.String packageName, core.Str
ing editId, core.String track) { | |
2019 var _url = null; | 2160 var _url = null; |
2020 var _queryParams = new core.Map(); | 2161 var _queryParams = new core.Map(); |
2021 var _uploadMedia = null; | 2162 var _uploadMedia = null; |
2022 var _uploadOptions = null; | 2163 var _uploadOptions = null; |
2023 var _downloadOptions = commons.DownloadOptions.Metadata; | 2164 var _downloadOptions = commons.DownloadOptions.Metadata; |
2024 var _body = null; | 2165 var _body = null; |
2025 | 2166 |
2026 if (request != null) { | 2167 if (request != null) { |
2027 _body = convert.JSON.encode((request).toJson()); | 2168 _body = convert.JSON.encode((request).toJson()); |
2028 } | 2169 } |
2029 if (packageName == null) { | 2170 if (packageName == null) { |
2030 throw new core.ArgumentError("Parameter packageName is required."); | 2171 throw new core.ArgumentError("Parameter packageName is required."); |
2031 } | 2172 } |
2032 if (editId == null) { | 2173 if (editId == null) { |
2033 throw new core.ArgumentError("Parameter editId is required."); | 2174 throw new core.ArgumentError("Parameter editId is required."); |
2034 } | 2175 } |
2035 if (track == null) { | 2176 if (track == null) { |
2036 throw new core.ArgumentError("Parameter track is required."); | 2177 throw new core.ArgumentError("Parameter track is required."); |
2037 } | 2178 } |
2038 | 2179 |
2039 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/testers/' + commons.Escaper.ecapeVariable('$
track'); | 2180 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2181 '/edits/' + |
| 2182 commons.Escaper.ecapeVariable('$editId') + |
| 2183 '/testers/' + |
| 2184 commons.Escaper.ecapeVariable('$track'); |
2040 | 2185 |
2041 var _response = _requester.request(_url, | 2186 var _response = _requester.request(_url, "PATCH", |
2042 "PATCH", | 2187 body: _body, |
2043 body: _body, | 2188 queryParams: _queryParams, |
2044 queryParams: _queryParams, | 2189 uploadOptions: _uploadOptions, |
2045 uploadOptions: _uploadOptions, | 2190 uploadMedia: _uploadMedia, |
2046 uploadMedia: _uploadMedia, | 2191 downloadOptions: _downloadOptions); |
2047 downloadOptions: _downloadOptions); | |
2048 return _response.then((data) => new Testers.fromJson(data)); | 2192 return _response.then((data) => new Testers.fromJson(data)); |
2049 } | 2193 } |
2050 | 2194 |
2051 /** | 2195 /// [request] - The metadata request object. |
2052 * [request] - The metadata request object. | 2196 /// |
2053 * | 2197 /// Request parameters: |
2054 * Request parameters: | 2198 /// |
2055 * | 2199 /// [packageName] - Unique identifier for the Android app that is being |
2056 * [packageName] - Unique identifier for the Android app that is being | 2200 /// updated; for example, "com.spiffygame". |
2057 * updated; for example, "com.spiffygame". | 2201 /// |
2058 * | 2202 /// [editId] - Unique identifier for this edit. |
2059 * [editId] - Unique identifier for this edit. | 2203 /// |
2060 * | 2204 /// [track] - null |
2061 * [track] - null | 2205 /// Possible string values are: |
2062 * Possible string values are: | 2206 /// - "alpha" |
2063 * - "alpha" | 2207 /// - "beta" |
2064 * - "beta" | 2208 /// - "production" |
2065 * - "production" | 2209 /// - "rollout" |
2066 * - "rollout" | 2210 /// |
2067 * | 2211 /// Completes with a [Testers]. |
2068 * Completes with a [Testers]. | 2212 /// |
2069 * | 2213 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2070 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2214 /// an error. |
2071 * error. | 2215 /// |
2072 * | 2216 /// If the used [http.Client] completes with an error when making a REST |
2073 * If the used [http.Client] completes with an error when making a REST call, | 2217 /// call, this method will complete with the same error. |
2074 * this method will complete with the same error. | 2218 async.Future<Testers> update(Testers request, core.String packageName, |
2075 */ | 2219 core.String editId, core.String track) { |
2076 async.Future<Testers> update(Testers request, core.String packageName, core.St
ring editId, core.String track) { | |
2077 var _url = null; | 2220 var _url = null; |
2078 var _queryParams = new core.Map(); | 2221 var _queryParams = new core.Map(); |
2079 var _uploadMedia = null; | 2222 var _uploadMedia = null; |
2080 var _uploadOptions = null; | 2223 var _uploadOptions = null; |
2081 var _downloadOptions = commons.DownloadOptions.Metadata; | 2224 var _downloadOptions = commons.DownloadOptions.Metadata; |
2082 var _body = null; | 2225 var _body = null; |
2083 | 2226 |
2084 if (request != null) { | 2227 if (request != null) { |
2085 _body = convert.JSON.encode((request).toJson()); | 2228 _body = convert.JSON.encode((request).toJson()); |
2086 } | 2229 } |
2087 if (packageName == null) { | 2230 if (packageName == null) { |
2088 throw new core.ArgumentError("Parameter packageName is required."); | 2231 throw new core.ArgumentError("Parameter packageName is required."); |
2089 } | 2232 } |
2090 if (editId == null) { | 2233 if (editId == null) { |
2091 throw new core.ArgumentError("Parameter editId is required."); | 2234 throw new core.ArgumentError("Parameter editId is required."); |
2092 } | 2235 } |
2093 if (track == null) { | 2236 if (track == null) { |
2094 throw new core.ArgumentError("Parameter track is required."); | 2237 throw new core.ArgumentError("Parameter track is required."); |
2095 } | 2238 } |
2096 | 2239 |
2097 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/testers/' + commons.Escaper.ecapeVariable('$
track'); | 2240 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2241 '/edits/' + |
| 2242 commons.Escaper.ecapeVariable('$editId') + |
| 2243 '/testers/' + |
| 2244 commons.Escaper.ecapeVariable('$track'); |
2098 | 2245 |
2099 var _response = _requester.request(_url, | 2246 var _response = _requester.request(_url, "PUT", |
2100 "PUT", | 2247 body: _body, |
2101 body: _body, | 2248 queryParams: _queryParams, |
2102 queryParams: _queryParams, | 2249 uploadOptions: _uploadOptions, |
2103 uploadOptions: _uploadOptions, | 2250 uploadMedia: _uploadMedia, |
2104 uploadMedia: _uploadMedia, | 2251 downloadOptions: _downloadOptions); |
2105 downloadOptions: _downloadOptions); | |
2106 return _response.then((data) => new Testers.fromJson(data)); | 2252 return _response.then((data) => new Testers.fromJson(data)); |
2107 } | 2253 } |
2108 | |
2109 } | 2254 } |
2110 | 2255 |
2111 | |
2112 class EditsTracksResourceApi { | 2256 class EditsTracksResourceApi { |
2113 final commons.ApiRequester _requester; | 2257 final commons.ApiRequester _requester; |
2114 | 2258 |
2115 EditsTracksResourceApi(commons.ApiRequester client) : | 2259 EditsTracksResourceApi(commons.ApiRequester client) : _requester = client; |
2116 _requester = client; | |
2117 | 2260 |
2118 /** | 2261 /// Fetches the track configuration for the specified track type. Includes |
2119 * Fetches the track configuration for the specified track type. Includes the | 2262 /// the APK version codes that are in this track. |
2120 * APK version codes that are in this track. | 2263 /// |
2121 * | 2264 /// Request parameters: |
2122 * Request parameters: | 2265 /// |
2123 * | 2266 /// [packageName] - Unique identifier for the Android app that is being |
2124 * [packageName] - Unique identifier for the Android app that is being | 2267 /// updated; for example, "com.spiffygame". |
2125 * updated; for example, "com.spiffygame". | 2268 /// |
2126 * | 2269 /// [editId] - Unique identifier for this edit. |
2127 * [editId] - Unique identifier for this edit. | 2270 /// |
2128 * | 2271 /// [track] - The track type to read or modify. |
2129 * [track] - The track type to read or modify. | 2272 /// Possible string values are: |
2130 * Possible string values are: | 2273 /// - "alpha" |
2131 * - "alpha" | 2274 /// - "beta" |
2132 * - "beta" | 2275 /// - "production" |
2133 * - "production" | 2276 /// - "rollout" |
2134 * - "rollout" | 2277 /// |
2135 * | 2278 /// Completes with a [Track]. |
2136 * Completes with a [Track]. | 2279 /// |
2137 * | 2280 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2138 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2281 /// an error. |
2139 * error. | 2282 /// |
2140 * | 2283 /// If the used [http.Client] completes with an error when making a REST |
2141 * If the used [http.Client] completes with an error when making a REST call, | 2284 /// call, this method will complete with the same error. |
2142 * this method will complete with the same error. | 2285 async.Future<Track> get( |
2143 */ | 2286 core.String packageName, core.String editId, core.String track) { |
2144 async.Future<Track> get(core.String packageName, core.String editId, core.Stri
ng track) { | |
2145 var _url = null; | 2287 var _url = null; |
2146 var _queryParams = new core.Map(); | 2288 var _queryParams = new core.Map(); |
2147 var _uploadMedia = null; | 2289 var _uploadMedia = null; |
2148 var _uploadOptions = null; | 2290 var _uploadOptions = null; |
2149 var _downloadOptions = commons.DownloadOptions.Metadata; | 2291 var _downloadOptions = commons.DownloadOptions.Metadata; |
2150 var _body = null; | 2292 var _body = null; |
2151 | 2293 |
2152 if (packageName == null) { | 2294 if (packageName == null) { |
2153 throw new core.ArgumentError("Parameter packageName is required."); | 2295 throw new core.ArgumentError("Parameter packageName is required."); |
2154 } | 2296 } |
2155 if (editId == null) { | 2297 if (editId == null) { |
2156 throw new core.ArgumentError("Parameter editId is required."); | 2298 throw new core.ArgumentError("Parameter editId is required."); |
2157 } | 2299 } |
2158 if (track == null) { | 2300 if (track == null) { |
2159 throw new core.ArgumentError("Parameter track is required."); | 2301 throw new core.ArgumentError("Parameter track is required."); |
2160 } | 2302 } |
2161 | 2303 |
2162 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/tracks/' + commons.Escaper.ecapeVariable('$t
rack'); | 2304 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2305 '/edits/' + |
| 2306 commons.Escaper.ecapeVariable('$editId') + |
| 2307 '/tracks/' + |
| 2308 commons.Escaper.ecapeVariable('$track'); |
2163 | 2309 |
2164 var _response = _requester.request(_url, | 2310 var _response = _requester.request(_url, "GET", |
2165 "GET", | 2311 body: _body, |
2166 body: _body, | 2312 queryParams: _queryParams, |
2167 queryParams: _queryParams, | 2313 uploadOptions: _uploadOptions, |
2168 uploadOptions: _uploadOptions, | 2314 uploadMedia: _uploadMedia, |
2169 uploadMedia: _uploadMedia, | 2315 downloadOptions: _downloadOptions); |
2170 downloadOptions: _downloadOptions); | |
2171 return _response.then((data) => new Track.fromJson(data)); | 2316 return _response.then((data) => new Track.fromJson(data)); |
2172 } | 2317 } |
2173 | 2318 |
2174 /** | 2319 /// Lists all the track configurations for this edit. |
2175 * Lists all the track configurations for this edit. | 2320 /// |
2176 * | 2321 /// Request parameters: |
2177 * Request parameters: | 2322 /// |
2178 * | 2323 /// [packageName] - Unique identifier for the Android app that is being |
2179 * [packageName] - Unique identifier for the Android app that is being | 2324 /// updated; for example, "com.spiffygame". |
2180 * updated; for example, "com.spiffygame". | 2325 /// |
2181 * | 2326 /// [editId] - Unique identifier for this edit. |
2182 * [editId] - Unique identifier for this edit. | 2327 /// |
2183 * | 2328 /// Completes with a [TracksListResponse]. |
2184 * Completes with a [TracksListResponse]. | 2329 /// |
2185 * | 2330 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2186 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2331 /// an error. |
2187 * error. | 2332 /// |
2188 * | 2333 /// If the used [http.Client] completes with an error when making a REST |
2189 * If the used [http.Client] completes with an error when making a REST call, | 2334 /// call, this method will complete with the same error. |
2190 * this method will complete with the same error. | 2335 async.Future<TracksListResponse> list( |
2191 */ | 2336 core.String packageName, core.String editId) { |
2192 async.Future<TracksListResponse> list(core.String packageName, core.String edi
tId) { | |
2193 var _url = null; | 2337 var _url = null; |
2194 var _queryParams = new core.Map(); | 2338 var _queryParams = new core.Map(); |
2195 var _uploadMedia = null; | 2339 var _uploadMedia = null; |
2196 var _uploadOptions = null; | 2340 var _uploadOptions = null; |
2197 var _downloadOptions = commons.DownloadOptions.Metadata; | 2341 var _downloadOptions = commons.DownloadOptions.Metadata; |
2198 var _body = null; | 2342 var _body = null; |
2199 | 2343 |
2200 if (packageName == null) { | 2344 if (packageName == null) { |
2201 throw new core.ArgumentError("Parameter packageName is required."); | 2345 throw new core.ArgumentError("Parameter packageName is required."); |
2202 } | 2346 } |
2203 if (editId == null) { | 2347 if (editId == null) { |
2204 throw new core.ArgumentError("Parameter editId is required."); | 2348 throw new core.ArgumentError("Parameter editId is required."); |
2205 } | 2349 } |
2206 | 2350 |
2207 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/tracks'; | 2351 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2352 '/edits/' + |
| 2353 commons.Escaper.ecapeVariable('$editId') + |
| 2354 '/tracks'; |
2208 | 2355 |
2209 var _response = _requester.request(_url, | 2356 var _response = _requester.request(_url, "GET", |
2210 "GET", | 2357 body: _body, |
2211 body: _body, | 2358 queryParams: _queryParams, |
2212 queryParams: _queryParams, | 2359 uploadOptions: _uploadOptions, |
2213 uploadOptions: _uploadOptions, | 2360 uploadMedia: _uploadMedia, |
2214 uploadMedia: _uploadMedia, | 2361 downloadOptions: _downloadOptions); |
2215 downloadOptions: _downloadOptions); | |
2216 return _response.then((data) => new TracksListResponse.fromJson(data)); | 2362 return _response.then((data) => new TracksListResponse.fromJson(data)); |
2217 } | 2363 } |
2218 | 2364 |
2219 /** | 2365 /// Updates the track configuration for the specified track type. When |
2220 * Updates the track configuration for the specified track type. When halted, | 2366 /// halted, the rollout track cannot be updated without adding new APKs, and |
2221 * the rollout track cannot be updated without adding new APKs, and adding new | 2367 /// adding new APKs will cause it to resume. This method supports patch |
2222 * APKs will cause it to resume. This method supports patch semantics. | 2368 /// semantics. |
2223 * | 2369 /// |
2224 * [request] - The metadata request object. | 2370 /// [request] - The metadata request object. |
2225 * | 2371 /// |
2226 * Request parameters: | 2372 /// Request parameters: |
2227 * | 2373 /// |
2228 * [packageName] - Unique identifier for the Android app that is being | 2374 /// [packageName] - Unique identifier for the Android app that is being |
2229 * updated; for example, "com.spiffygame". | 2375 /// updated; for example, "com.spiffygame". |
2230 * | 2376 /// |
2231 * [editId] - Unique identifier for this edit. | 2377 /// [editId] - Unique identifier for this edit. |
2232 * | 2378 /// |
2233 * [track] - The track type to read or modify. | 2379 /// [track] - The track type to read or modify. |
2234 * Possible string values are: | 2380 /// Possible string values are: |
2235 * - "alpha" | 2381 /// - "alpha" |
2236 * - "beta" | 2382 /// - "beta" |
2237 * - "production" | 2383 /// - "production" |
2238 * - "rollout" | 2384 /// - "rollout" |
2239 * | 2385 /// |
2240 * Completes with a [Track]. | 2386 /// Completes with a [Track]. |
2241 * | 2387 /// |
2242 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2388 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2243 * error. | 2389 /// an error. |
2244 * | 2390 /// |
2245 * If the used [http.Client] completes with an error when making a REST call, | 2391 /// If the used [http.Client] completes with an error when making a REST |
2246 * this method will complete with the same error. | 2392 /// call, this method will complete with the same error. |
2247 */ | 2393 async.Future<Track> patch(Track request, core.String packageName, |
2248 async.Future<Track> patch(Track request, core.String packageName, core.String
editId, core.String track) { | 2394 core.String editId, core.String track) { |
2249 var _url = null; | 2395 var _url = null; |
2250 var _queryParams = new core.Map(); | 2396 var _queryParams = new core.Map(); |
2251 var _uploadMedia = null; | 2397 var _uploadMedia = null; |
2252 var _uploadOptions = null; | 2398 var _uploadOptions = null; |
2253 var _downloadOptions = commons.DownloadOptions.Metadata; | 2399 var _downloadOptions = commons.DownloadOptions.Metadata; |
2254 var _body = null; | 2400 var _body = null; |
2255 | 2401 |
2256 if (request != null) { | 2402 if (request != null) { |
2257 _body = convert.JSON.encode((request).toJson()); | 2403 _body = convert.JSON.encode((request).toJson()); |
2258 } | 2404 } |
2259 if (packageName == null) { | 2405 if (packageName == null) { |
2260 throw new core.ArgumentError("Parameter packageName is required."); | 2406 throw new core.ArgumentError("Parameter packageName is required."); |
2261 } | 2407 } |
2262 if (editId == null) { | 2408 if (editId == null) { |
2263 throw new core.ArgumentError("Parameter editId is required."); | 2409 throw new core.ArgumentError("Parameter editId is required."); |
2264 } | 2410 } |
2265 if (track == null) { | 2411 if (track == null) { |
2266 throw new core.ArgumentError("Parameter track is required."); | 2412 throw new core.ArgumentError("Parameter track is required."); |
2267 } | 2413 } |
2268 | 2414 |
2269 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/tracks/' + commons.Escaper.ecapeVariable('$t
rack'); | 2415 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2416 '/edits/' + |
| 2417 commons.Escaper.ecapeVariable('$editId') + |
| 2418 '/tracks/' + |
| 2419 commons.Escaper.ecapeVariable('$track'); |
2270 | 2420 |
2271 var _response = _requester.request(_url, | 2421 var _response = _requester.request(_url, "PATCH", |
2272 "PATCH", | 2422 body: _body, |
2273 body: _body, | 2423 queryParams: _queryParams, |
2274 queryParams: _queryParams, | 2424 uploadOptions: _uploadOptions, |
2275 uploadOptions: _uploadOptions, | 2425 uploadMedia: _uploadMedia, |
2276 uploadMedia: _uploadMedia, | 2426 downloadOptions: _downloadOptions); |
2277 downloadOptions: _downloadOptions); | |
2278 return _response.then((data) => new Track.fromJson(data)); | 2427 return _response.then((data) => new Track.fromJson(data)); |
2279 } | 2428 } |
2280 | 2429 |
2281 /** | 2430 /// Updates the track configuration for the specified track type. When |
2282 * Updates the track configuration for the specified track type. When halted, | 2431 /// halted, the rollout track cannot be updated without adding new APKs, and |
2283 * the rollout track cannot be updated without adding new APKs, and adding new | 2432 /// adding new APKs will cause it to resume. |
2284 * APKs will cause it to resume. | 2433 /// |
2285 * | 2434 /// [request] - The metadata request object. |
2286 * [request] - The metadata request object. | 2435 /// |
2287 * | 2436 /// Request parameters: |
2288 * Request parameters: | 2437 /// |
2289 * | 2438 /// [packageName] - Unique identifier for the Android app that is being |
2290 * [packageName] - Unique identifier for the Android app that is being | 2439 /// updated; for example, "com.spiffygame". |
2291 * updated; for example, "com.spiffygame". | 2440 /// |
2292 * | 2441 /// [editId] - Unique identifier for this edit. |
2293 * [editId] - Unique identifier for this edit. | 2442 /// |
2294 * | 2443 /// [track] - The track type to read or modify. |
2295 * [track] - The track type to read or modify. | 2444 /// Possible string values are: |
2296 * Possible string values are: | 2445 /// - "alpha" |
2297 * - "alpha" | 2446 /// - "beta" |
2298 * - "beta" | 2447 /// - "production" |
2299 * - "production" | 2448 /// - "rollout" |
2300 * - "rollout" | 2449 /// |
2301 * | 2450 /// Completes with a [Track]. |
2302 * Completes with a [Track]. | 2451 /// |
2303 * | 2452 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2304 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2453 /// an error. |
2305 * error. | 2454 /// |
2306 * | 2455 /// If the used [http.Client] completes with an error when making a REST |
2307 * If the used [http.Client] completes with an error when making a REST call, | 2456 /// call, this method will complete with the same error. |
2308 * this method will complete with the same error. | 2457 async.Future<Track> update(Track request, core.String packageName, |
2309 */ | 2458 core.String editId, core.String track) { |
2310 async.Future<Track> update(Track request, core.String packageName, core.String
editId, core.String track) { | |
2311 var _url = null; | 2459 var _url = null; |
2312 var _queryParams = new core.Map(); | 2460 var _queryParams = new core.Map(); |
2313 var _uploadMedia = null; | 2461 var _uploadMedia = null; |
2314 var _uploadOptions = null; | 2462 var _uploadOptions = null; |
2315 var _downloadOptions = commons.DownloadOptions.Metadata; | 2463 var _downloadOptions = commons.DownloadOptions.Metadata; |
2316 var _body = null; | 2464 var _body = null; |
2317 | 2465 |
2318 if (request != null) { | 2466 if (request != null) { |
2319 _body = convert.JSON.encode((request).toJson()); | 2467 _body = convert.JSON.encode((request).toJson()); |
2320 } | 2468 } |
2321 if (packageName == null) { | 2469 if (packageName == null) { |
2322 throw new core.ArgumentError("Parameter packageName is required."); | 2470 throw new core.ArgumentError("Parameter packageName is required."); |
2323 } | 2471 } |
2324 if (editId == null) { | 2472 if (editId == null) { |
2325 throw new core.ArgumentError("Parameter editId is required."); | 2473 throw new core.ArgumentError("Parameter editId is required."); |
2326 } | 2474 } |
2327 if (track == null) { | 2475 if (track == null) { |
2328 throw new core.ArgumentError("Parameter track is required."); | 2476 throw new core.ArgumentError("Parameter track is required."); |
2329 } | 2477 } |
2330 | 2478 |
2331 _url = commons.Escaper.ecapeVariable('$packageName') + '/edits/' + commons.E
scaper.ecapeVariable('$editId') + '/tracks/' + commons.Escaper.ecapeVariable('$t
rack'); | 2479 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2480 '/edits/' + |
| 2481 commons.Escaper.ecapeVariable('$editId') + |
| 2482 '/tracks/' + |
| 2483 commons.Escaper.ecapeVariable('$track'); |
2332 | 2484 |
2333 var _response = _requester.request(_url, | 2485 var _response = _requester.request(_url, "PUT", |
2334 "PUT", | 2486 body: _body, |
2335 body: _body, | 2487 queryParams: _queryParams, |
2336 queryParams: _queryParams, | 2488 uploadOptions: _uploadOptions, |
2337 uploadOptions: _uploadOptions, | 2489 uploadMedia: _uploadMedia, |
2338 uploadMedia: _uploadMedia, | 2490 downloadOptions: _downloadOptions); |
2339 downloadOptions: _downloadOptions); | |
2340 return _response.then((data) => new Track.fromJson(data)); | 2491 return _response.then((data) => new Track.fromJson(data)); |
2341 } | 2492 } |
2342 | |
2343 } | 2493 } |
2344 | 2494 |
2345 | |
2346 class EntitlementsResourceApi { | 2495 class EntitlementsResourceApi { |
2347 final commons.ApiRequester _requester; | 2496 final commons.ApiRequester _requester; |
2348 | 2497 |
2349 EntitlementsResourceApi(commons.ApiRequester client) : | 2498 EntitlementsResourceApi(commons.ApiRequester client) : _requester = client; |
2350 _requester = client; | |
2351 | 2499 |
2352 /** | 2500 /// Lists the user's current inapp item or subscription entitlements |
2353 * Lists the user's current inapp item or subscription entitlements | 2501 /// |
2354 * | 2502 /// Request parameters: |
2355 * Request parameters: | 2503 /// |
2356 * | 2504 /// [packageName] - The package name of the application the inapp product was |
2357 * [packageName] - The package name of the application the inapp product was | 2505 /// sold in (for example, 'com.some.thing'). |
2358 * sold in (for example, 'com.some.thing'). | 2506 /// |
2359 * | 2507 /// [maxResults] - null |
2360 * [maxResults] - null | 2508 /// |
2361 * | 2509 /// [productId] - The product id of the inapp product (for example, 'sku1'). |
2362 * [productId] - The product id of the inapp product (for example, 'sku1'). | 2510 /// This can be used to restrict the result set. |
2363 * This can be used to restrict the result set. | 2511 /// |
2364 * | 2512 /// [startIndex] - null |
2365 * [startIndex] - null | 2513 /// |
2366 * | 2514 /// [token] - null |
2367 * [token] - null | 2515 /// |
2368 * | 2516 /// Completes with a [EntitlementsListResponse]. |
2369 * Completes with a [EntitlementsListResponse]. | 2517 /// |
2370 * | 2518 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2371 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2519 /// an error. |
2372 * error. | 2520 /// |
2373 * | 2521 /// If the used [http.Client] completes with an error when making a REST |
2374 * If the used [http.Client] completes with an error when making a REST call, | 2522 /// call, this method will complete with the same error. |
2375 * this method will complete with the same error. | 2523 async.Future<EntitlementsListResponse> list(core.String packageName, |
2376 */ | 2524 {core.int maxResults, |
2377 async.Future<EntitlementsListResponse> list(core.String packageName, {core.int
maxResults, core.String productId, core.int startIndex, core.String token}) { | 2525 core.String productId, |
| 2526 core.int startIndex, |
| 2527 core.String token}) { |
2378 var _url = null; | 2528 var _url = null; |
2379 var _queryParams = new core.Map(); | 2529 var _queryParams = new core.Map(); |
2380 var _uploadMedia = null; | 2530 var _uploadMedia = null; |
2381 var _uploadOptions = null; | 2531 var _uploadOptions = null; |
2382 var _downloadOptions = commons.DownloadOptions.Metadata; | 2532 var _downloadOptions = commons.DownloadOptions.Metadata; |
2383 var _body = null; | 2533 var _body = null; |
2384 | 2534 |
2385 if (packageName == null) { | 2535 if (packageName == null) { |
2386 throw new core.ArgumentError("Parameter packageName is required."); | 2536 throw new core.ArgumentError("Parameter packageName is required."); |
2387 } | 2537 } |
2388 if (maxResults != null) { | 2538 if (maxResults != null) { |
2389 _queryParams["maxResults"] = ["${maxResults}"]; | 2539 _queryParams["maxResults"] = ["${maxResults}"]; |
2390 } | 2540 } |
2391 if (productId != null) { | 2541 if (productId != null) { |
2392 _queryParams["productId"] = [productId]; | 2542 _queryParams["productId"] = [productId]; |
2393 } | 2543 } |
2394 if (startIndex != null) { | 2544 if (startIndex != null) { |
2395 _queryParams["startIndex"] = ["${startIndex}"]; | 2545 _queryParams["startIndex"] = ["${startIndex}"]; |
2396 } | 2546 } |
2397 if (token != null) { | 2547 if (token != null) { |
2398 _queryParams["token"] = [token]; | 2548 _queryParams["token"] = [token]; |
2399 } | 2549 } |
2400 | 2550 |
2401 _url = commons.Escaper.ecapeVariable('$packageName') + '/entitlements'; | 2551 _url = commons.Escaper.ecapeVariable('$packageName') + '/entitlements'; |
2402 | 2552 |
2403 var _response = _requester.request(_url, | 2553 var _response = _requester.request(_url, "GET", |
2404 "GET", | 2554 body: _body, |
2405 body: _body, | 2555 queryParams: _queryParams, |
2406 queryParams: _queryParams, | 2556 uploadOptions: _uploadOptions, |
2407 uploadOptions: _uploadOptions, | 2557 uploadMedia: _uploadMedia, |
2408 uploadMedia: _uploadMedia, | 2558 downloadOptions: _downloadOptions); |
2409 downloadOptions: _downloadOptions); | 2559 return _response |
2410 return _response.then((data) => new EntitlementsListResponse.fromJson(data))
; | 2560 .then((data) => new EntitlementsListResponse.fromJson(data)); |
2411 } | 2561 } |
2412 | |
2413 } | 2562 } |
2414 | 2563 |
2415 | |
2416 class InappproductsResourceApi { | 2564 class InappproductsResourceApi { |
2417 final commons.ApiRequester _requester; | 2565 final commons.ApiRequester _requester; |
2418 | 2566 |
2419 InappproductsResourceApi(commons.ApiRequester client) : | 2567 InappproductsResourceApi(commons.ApiRequester client) : _requester = client; |
2420 _requester = client; | |
2421 | 2568 |
2422 /** | 2569 /// [request] - The metadata request object. |
2423 * [request] - The metadata request object. | 2570 /// |
2424 * | 2571 /// Request parameters: |
2425 * Request parameters: | 2572 /// |
2426 * | 2573 /// Completes with a [InappproductsBatchResponse]. |
2427 * Completes with a [InappproductsBatchResponse]. | 2574 /// |
2428 * | 2575 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2429 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2576 /// an error. |
2430 * error. | 2577 /// |
2431 * | 2578 /// If the used [http.Client] completes with an error when making a REST |
2432 * If the used [http.Client] completes with an error when making a REST call, | 2579 /// call, this method will complete with the same error. |
2433 * this method will complete with the same error. | 2580 async.Future<InappproductsBatchResponse> batch( |
2434 */ | 2581 InappproductsBatchRequest request) { |
2435 async.Future<InappproductsBatchResponse> batch(InappproductsBatchRequest reque
st) { | |
2436 var _url = null; | 2582 var _url = null; |
2437 var _queryParams = new core.Map(); | 2583 var _queryParams = new core.Map(); |
2438 var _uploadMedia = null; | 2584 var _uploadMedia = null; |
2439 var _uploadOptions = null; | 2585 var _uploadOptions = null; |
2440 var _downloadOptions = commons.DownloadOptions.Metadata; | 2586 var _downloadOptions = commons.DownloadOptions.Metadata; |
2441 var _body = null; | 2587 var _body = null; |
2442 | 2588 |
2443 if (request != null) { | 2589 if (request != null) { |
2444 _body = convert.JSON.encode((request).toJson()); | 2590 _body = convert.JSON.encode((request).toJson()); |
2445 } | 2591 } |
2446 | 2592 |
2447 _url = 'inappproducts/batch'; | 2593 _url = 'inappproducts/batch'; |
2448 | 2594 |
2449 var _response = _requester.request(_url, | 2595 var _response = _requester.request(_url, "POST", |
2450 "POST", | 2596 body: _body, |
2451 body: _body, | 2597 queryParams: _queryParams, |
2452 queryParams: _queryParams, | 2598 uploadOptions: _uploadOptions, |
2453 uploadOptions: _uploadOptions, | 2599 uploadMedia: _uploadMedia, |
2454 uploadMedia: _uploadMedia, | 2600 downloadOptions: _downloadOptions); |
2455 downloadOptions: _downloadOptions); | 2601 return _response |
2456 return _response.then((data) => new InappproductsBatchResponse.fromJson(data
)); | 2602 .then((data) => new InappproductsBatchResponse.fromJson(data)); |
2457 } | 2603 } |
2458 | 2604 |
2459 /** | 2605 /// Delete an in-app product for an app. |
2460 * Delete an in-app product for an app. | 2606 /// |
2461 * | 2607 /// Request parameters: |
2462 * Request parameters: | 2608 /// |
2463 * | 2609 /// [packageName] - Unique identifier for the Android app with the in-app |
2464 * [packageName] - Unique identifier for the Android app with the in-app | 2610 /// product; for example, "com.spiffygame". |
2465 * product; for example, "com.spiffygame". | 2611 /// |
2466 * | 2612 /// [sku] - Unique identifier for the in-app product. |
2467 * [sku] - Unique identifier for the in-app product. | 2613 /// |
2468 * | 2614 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2469 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2615 /// an error. |
2470 * error. | 2616 /// |
2471 * | 2617 /// If the used [http.Client] completes with an error when making a REST |
2472 * If the used [http.Client] completes with an error when making a REST call, | 2618 /// call, this method will complete with the same error. |
2473 * this method will complete with the same error. | |
2474 */ | |
2475 async.Future delete(core.String packageName, core.String sku) { | 2619 async.Future delete(core.String packageName, core.String sku) { |
2476 var _url = null; | 2620 var _url = null; |
2477 var _queryParams = new core.Map(); | 2621 var _queryParams = new core.Map(); |
2478 var _uploadMedia = null; | 2622 var _uploadMedia = null; |
2479 var _uploadOptions = null; | 2623 var _uploadOptions = null; |
2480 var _downloadOptions = commons.DownloadOptions.Metadata; | 2624 var _downloadOptions = commons.DownloadOptions.Metadata; |
2481 var _body = null; | 2625 var _body = null; |
2482 | 2626 |
2483 if (packageName == null) { | 2627 if (packageName == null) { |
2484 throw new core.ArgumentError("Parameter packageName is required."); | 2628 throw new core.ArgumentError("Parameter packageName is required."); |
2485 } | 2629 } |
2486 if (sku == null) { | 2630 if (sku == null) { |
2487 throw new core.ArgumentError("Parameter sku is required."); | 2631 throw new core.ArgumentError("Parameter sku is required."); |
2488 } | 2632 } |
2489 | 2633 |
2490 _downloadOptions = null; | 2634 _downloadOptions = null; |
2491 | 2635 |
2492 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts/' + c
ommons.Escaper.ecapeVariable('$sku'); | 2636 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2637 '/inappproducts/' + |
| 2638 commons.Escaper.ecapeVariable('$sku'); |
2493 | 2639 |
2494 var _response = _requester.request(_url, | 2640 var _response = _requester.request(_url, "DELETE", |
2495 "DELETE", | 2641 body: _body, |
2496 body: _body, | 2642 queryParams: _queryParams, |
2497 queryParams: _queryParams, | 2643 uploadOptions: _uploadOptions, |
2498 uploadOptions: _uploadOptions, | 2644 uploadMedia: _uploadMedia, |
2499 uploadMedia: _uploadMedia, | 2645 downloadOptions: _downloadOptions); |
2500 downloadOptions: _downloadOptions); | |
2501 return _response.then((data) => null); | 2646 return _response.then((data) => null); |
2502 } | 2647 } |
2503 | 2648 |
2504 /** | 2649 /// Returns information about the in-app product specified. |
2505 * Returns information about the in-app product specified. | 2650 /// |
2506 * | 2651 /// Request parameters: |
2507 * Request parameters: | 2652 /// |
2508 * | 2653 /// [packageName] - null |
2509 * [packageName] - null | 2654 /// |
2510 * | 2655 /// [sku] - Unique identifier for the in-app product. |
2511 * [sku] - Unique identifier for the in-app product. | 2656 /// |
2512 * | 2657 /// Completes with a [InAppProduct]. |
2513 * Completes with a [InAppProduct]. | 2658 /// |
2514 * | 2659 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2515 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2660 /// an error. |
2516 * error. | 2661 /// |
2517 * | 2662 /// If the used [http.Client] completes with an error when making a REST |
2518 * If the used [http.Client] completes with an error when making a REST call, | 2663 /// call, this method will complete with the same error. |
2519 * this method will complete with the same error. | |
2520 */ | |
2521 async.Future<InAppProduct> get(core.String packageName, core.String sku) { | 2664 async.Future<InAppProduct> get(core.String packageName, core.String sku) { |
2522 var _url = null; | 2665 var _url = null; |
2523 var _queryParams = new core.Map(); | 2666 var _queryParams = new core.Map(); |
2524 var _uploadMedia = null; | 2667 var _uploadMedia = null; |
2525 var _uploadOptions = null; | 2668 var _uploadOptions = null; |
2526 var _downloadOptions = commons.DownloadOptions.Metadata; | 2669 var _downloadOptions = commons.DownloadOptions.Metadata; |
2527 var _body = null; | 2670 var _body = null; |
2528 | 2671 |
2529 if (packageName == null) { | 2672 if (packageName == null) { |
2530 throw new core.ArgumentError("Parameter packageName is required."); | 2673 throw new core.ArgumentError("Parameter packageName is required."); |
2531 } | 2674 } |
2532 if (sku == null) { | 2675 if (sku == null) { |
2533 throw new core.ArgumentError("Parameter sku is required."); | 2676 throw new core.ArgumentError("Parameter sku is required."); |
2534 } | 2677 } |
2535 | 2678 |
2536 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts/' + c
ommons.Escaper.ecapeVariable('$sku'); | 2679 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2680 '/inappproducts/' + |
| 2681 commons.Escaper.ecapeVariable('$sku'); |
2537 | 2682 |
2538 var _response = _requester.request(_url, | 2683 var _response = _requester.request(_url, "GET", |
2539 "GET", | 2684 body: _body, |
2540 body: _body, | 2685 queryParams: _queryParams, |
2541 queryParams: _queryParams, | 2686 uploadOptions: _uploadOptions, |
2542 uploadOptions: _uploadOptions, | 2687 uploadMedia: _uploadMedia, |
2543 uploadMedia: _uploadMedia, | 2688 downloadOptions: _downloadOptions); |
2544 downloadOptions: _downloadOptions); | |
2545 return _response.then((data) => new InAppProduct.fromJson(data)); | 2689 return _response.then((data) => new InAppProduct.fromJson(data)); |
2546 } | 2690 } |
2547 | 2691 |
2548 /** | 2692 /// Creates a new in-app product for an app. |
2549 * Creates a new in-app product for an app. | 2693 /// |
2550 * | 2694 /// [request] - The metadata request object. |
2551 * [request] - The metadata request object. | 2695 /// |
2552 * | 2696 /// Request parameters: |
2553 * Request parameters: | 2697 /// |
2554 * | 2698 /// [packageName] - Unique identifier for the Android app; for example, |
2555 * [packageName] - Unique identifier for the Android app; for example, | 2699 /// "com.spiffygame". |
2556 * "com.spiffygame". | 2700 /// |
2557 * | 2701 /// [autoConvertMissingPrices] - If true the prices for all regions targeted |
2558 * [autoConvertMissingPrices] - If true the prices for all regions targeted by | 2702 /// by the parent app that don't have a price specified for this in-app |
2559 * the parent app that don't have a price specified for this in-app product | 2703 /// product will be auto converted to the target currency based on the |
2560 * will be auto converted to the target currency based on the default price. | 2704 /// default price. Defaults to false. |
2561 * Defaults to false. | 2705 /// |
2562 * | 2706 /// Completes with a [InAppProduct]. |
2563 * Completes with a [InAppProduct]. | 2707 /// |
2564 * | 2708 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2565 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2709 /// an error. |
2566 * error. | 2710 /// |
2567 * | 2711 /// If the used [http.Client] completes with an error when making a REST |
2568 * If the used [http.Client] completes with an error when making a REST call, | 2712 /// call, this method will complete with the same error. |
2569 * this method will complete with the same error. | 2713 async.Future<InAppProduct> insert( |
2570 */ | 2714 InAppProduct request, core.String packageName, |
2571 async.Future<InAppProduct> insert(InAppProduct request, core.String packageNam
e, {core.bool autoConvertMissingPrices}) { | 2715 {core.bool autoConvertMissingPrices}) { |
2572 var _url = null; | 2716 var _url = null; |
2573 var _queryParams = new core.Map(); | 2717 var _queryParams = new core.Map(); |
2574 var _uploadMedia = null; | 2718 var _uploadMedia = null; |
2575 var _uploadOptions = null; | 2719 var _uploadOptions = null; |
2576 var _downloadOptions = commons.DownloadOptions.Metadata; | 2720 var _downloadOptions = commons.DownloadOptions.Metadata; |
2577 var _body = null; | 2721 var _body = null; |
2578 | 2722 |
2579 if (request != null) { | 2723 if (request != null) { |
2580 _body = convert.JSON.encode((request).toJson()); | 2724 _body = convert.JSON.encode((request).toJson()); |
2581 } | 2725 } |
2582 if (packageName == null) { | 2726 if (packageName == null) { |
2583 throw new core.ArgumentError("Parameter packageName is required."); | 2727 throw new core.ArgumentError("Parameter packageName is required."); |
2584 } | 2728 } |
2585 if (autoConvertMissingPrices != null) { | 2729 if (autoConvertMissingPrices != null) { |
2586 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"]
; | 2730 _queryParams["autoConvertMissingPrices"] = [ |
| 2731 "${autoConvertMissingPrices}" |
| 2732 ]; |
2587 } | 2733 } |
2588 | 2734 |
2589 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts'; | 2735 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts'; |
2590 | 2736 |
2591 var _response = _requester.request(_url, | 2737 var _response = _requester.request(_url, "POST", |
2592 "POST", | 2738 body: _body, |
2593 body: _body, | 2739 queryParams: _queryParams, |
2594 queryParams: _queryParams, | 2740 uploadOptions: _uploadOptions, |
2595 uploadOptions: _uploadOptions, | 2741 uploadMedia: _uploadMedia, |
2596 uploadMedia: _uploadMedia, | 2742 downloadOptions: _downloadOptions); |
2597 downloadOptions: _downloadOptions); | |
2598 return _response.then((data) => new InAppProduct.fromJson(data)); | 2743 return _response.then((data) => new InAppProduct.fromJson(data)); |
2599 } | 2744 } |
2600 | 2745 |
2601 /** | 2746 /// List all the in-app products for an Android app, both subscriptions and |
2602 * List all the in-app products for an Android app, both subscriptions and | 2747 /// managed in-app products.. |
2603 * managed in-app products.. | 2748 /// |
2604 * | 2749 /// Request parameters: |
2605 * Request parameters: | 2750 /// |
2606 * | 2751 /// [packageName] - Unique identifier for the Android app with in-app |
2607 * [packageName] - Unique identifier for the Android app with in-app products; | 2752 /// products; for example, "com.spiffygame". |
2608 * for example, "com.spiffygame". | 2753 /// |
2609 * | 2754 /// [maxResults] - null |
2610 * [maxResults] - null | 2755 /// |
2611 * | 2756 /// [startIndex] - null |
2612 * [startIndex] - null | 2757 /// |
2613 * | 2758 /// [token] - null |
2614 * [token] - null | 2759 /// |
2615 * | 2760 /// Completes with a [InappproductsListResponse]. |
2616 * Completes with a [InappproductsListResponse]. | 2761 /// |
2617 * | 2762 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2618 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2763 /// an error. |
2619 * error. | 2764 /// |
2620 * | 2765 /// If the used [http.Client] completes with an error when making a REST |
2621 * If the used [http.Client] completes with an error when making a REST call, | 2766 /// call, this method will complete with the same error. |
2622 * this method will complete with the same error. | 2767 async.Future<InappproductsListResponse> list(core.String packageName, |
2623 */ | 2768 {core.int maxResults, core.int startIndex, core.String token}) { |
2624 async.Future<InappproductsListResponse> list(core.String packageName, {core.in
t maxResults, core.int startIndex, core.String token}) { | |
2625 var _url = null; | 2769 var _url = null; |
2626 var _queryParams = new core.Map(); | 2770 var _queryParams = new core.Map(); |
2627 var _uploadMedia = null; | 2771 var _uploadMedia = null; |
2628 var _uploadOptions = null; | 2772 var _uploadOptions = null; |
2629 var _downloadOptions = commons.DownloadOptions.Metadata; | 2773 var _downloadOptions = commons.DownloadOptions.Metadata; |
2630 var _body = null; | 2774 var _body = null; |
2631 | 2775 |
2632 if (packageName == null) { | 2776 if (packageName == null) { |
2633 throw new core.ArgumentError("Parameter packageName is required."); | 2777 throw new core.ArgumentError("Parameter packageName is required."); |
2634 } | 2778 } |
2635 if (maxResults != null) { | 2779 if (maxResults != null) { |
2636 _queryParams["maxResults"] = ["${maxResults}"]; | 2780 _queryParams["maxResults"] = ["${maxResults}"]; |
2637 } | 2781 } |
2638 if (startIndex != null) { | 2782 if (startIndex != null) { |
2639 _queryParams["startIndex"] = ["${startIndex}"]; | 2783 _queryParams["startIndex"] = ["${startIndex}"]; |
2640 } | 2784 } |
2641 if (token != null) { | 2785 if (token != null) { |
2642 _queryParams["token"] = [token]; | 2786 _queryParams["token"] = [token]; |
2643 } | 2787 } |
2644 | 2788 |
2645 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts'; | 2789 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts'; |
2646 | 2790 |
2647 var _response = _requester.request(_url, | 2791 var _response = _requester.request(_url, "GET", |
2648 "GET", | 2792 body: _body, |
2649 body: _body, | 2793 queryParams: _queryParams, |
2650 queryParams: _queryParams, | 2794 uploadOptions: _uploadOptions, |
2651 uploadOptions: _uploadOptions, | 2795 uploadMedia: _uploadMedia, |
2652 uploadMedia: _uploadMedia, | 2796 downloadOptions: _downloadOptions); |
2653 downloadOptions: _downloadOptions); | 2797 return _response |
2654 return _response.then((data) => new InappproductsListResponse.fromJson(data)
); | 2798 .then((data) => new InappproductsListResponse.fromJson(data)); |
2655 } | 2799 } |
2656 | 2800 |
2657 /** | 2801 /// Updates the details of an in-app product. This method supports patch |
2658 * Updates the details of an in-app product. This method supports patch | 2802 /// semantics. |
2659 * semantics. | 2803 /// |
2660 * | 2804 /// [request] - The metadata request object. |
2661 * [request] - The metadata request object. | 2805 /// |
2662 * | 2806 /// Request parameters: |
2663 * Request parameters: | 2807 /// |
2664 * | 2808 /// [packageName] - Unique identifier for the Android app with the in-app |
2665 * [packageName] - Unique identifier for the Android app with the in-app | 2809 /// product; for example, "com.spiffygame". |
2666 * product; for example, "com.spiffygame". | 2810 /// |
2667 * | 2811 /// [sku] - Unique identifier for the in-app product. |
2668 * [sku] - Unique identifier for the in-app product. | 2812 /// |
2669 * | 2813 /// [autoConvertMissingPrices] - If true the prices for all regions targeted |
2670 * [autoConvertMissingPrices] - If true the prices for all regions targeted by | 2814 /// by the parent app that don't have a price specified for this in-app |
2671 * the parent app that don't have a price specified for this in-app product | 2815 /// product will be auto converted to the target currency based on the |
2672 * will be auto converted to the target currency based on the default price. | 2816 /// default price. Defaults to false. |
2673 * Defaults to false. | 2817 /// |
2674 * | 2818 /// Completes with a [InAppProduct]. |
2675 * Completes with a [InAppProduct]. | 2819 /// |
2676 * | 2820 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2677 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2821 /// an error. |
2678 * error. | 2822 /// |
2679 * | 2823 /// If the used [http.Client] completes with an error when making a REST |
2680 * If the used [http.Client] completes with an error when making a REST call, | 2824 /// call, this method will complete with the same error. |
2681 * this method will complete with the same error. | 2825 async.Future<InAppProduct> patch( |
2682 */ | 2826 InAppProduct request, core.String packageName, core.String sku, |
2683 async.Future<InAppProduct> patch(InAppProduct request, core.String packageName
, core.String sku, {core.bool autoConvertMissingPrices}) { | 2827 {core.bool autoConvertMissingPrices}) { |
2684 var _url = null; | 2828 var _url = null; |
2685 var _queryParams = new core.Map(); | 2829 var _queryParams = new core.Map(); |
2686 var _uploadMedia = null; | 2830 var _uploadMedia = null; |
2687 var _uploadOptions = null; | 2831 var _uploadOptions = null; |
2688 var _downloadOptions = commons.DownloadOptions.Metadata; | 2832 var _downloadOptions = commons.DownloadOptions.Metadata; |
2689 var _body = null; | 2833 var _body = null; |
2690 | 2834 |
2691 if (request != null) { | 2835 if (request != null) { |
2692 _body = convert.JSON.encode((request).toJson()); | 2836 _body = convert.JSON.encode((request).toJson()); |
2693 } | 2837 } |
2694 if (packageName == null) { | 2838 if (packageName == null) { |
2695 throw new core.ArgumentError("Parameter packageName is required."); | 2839 throw new core.ArgumentError("Parameter packageName is required."); |
2696 } | 2840 } |
2697 if (sku == null) { | 2841 if (sku == null) { |
2698 throw new core.ArgumentError("Parameter sku is required."); | 2842 throw new core.ArgumentError("Parameter sku is required."); |
2699 } | 2843 } |
2700 if (autoConvertMissingPrices != null) { | 2844 if (autoConvertMissingPrices != null) { |
2701 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"]
; | 2845 _queryParams["autoConvertMissingPrices"] = [ |
| 2846 "${autoConvertMissingPrices}" |
| 2847 ]; |
2702 } | 2848 } |
2703 | 2849 |
2704 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts/' + c
ommons.Escaper.ecapeVariable('$sku'); | 2850 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2851 '/inappproducts/' + |
| 2852 commons.Escaper.ecapeVariable('$sku'); |
2705 | 2853 |
2706 var _response = _requester.request(_url, | 2854 var _response = _requester.request(_url, "PATCH", |
2707 "PATCH", | 2855 body: _body, |
2708 body: _body, | 2856 queryParams: _queryParams, |
2709 queryParams: _queryParams, | 2857 uploadOptions: _uploadOptions, |
2710 uploadOptions: _uploadOptions, | 2858 uploadMedia: _uploadMedia, |
2711 uploadMedia: _uploadMedia, | 2859 downloadOptions: _downloadOptions); |
2712 downloadOptions: _downloadOptions); | |
2713 return _response.then((data) => new InAppProduct.fromJson(data)); | 2860 return _response.then((data) => new InAppProduct.fromJson(data)); |
2714 } | 2861 } |
2715 | 2862 |
2716 /** | 2863 /// Updates the details of an in-app product. |
2717 * Updates the details of an in-app product. | 2864 /// |
2718 * | 2865 /// [request] - The metadata request object. |
2719 * [request] - The metadata request object. | 2866 /// |
2720 * | 2867 /// Request parameters: |
2721 * Request parameters: | 2868 /// |
2722 * | 2869 /// [packageName] - Unique identifier for the Android app with the in-app |
2723 * [packageName] - Unique identifier for the Android app with the in-app | 2870 /// product; for example, "com.spiffygame". |
2724 * product; for example, "com.spiffygame". | 2871 /// |
2725 * | 2872 /// [sku] - Unique identifier for the in-app product. |
2726 * [sku] - Unique identifier for the in-app product. | 2873 /// |
2727 * | 2874 /// [autoConvertMissingPrices] - If true the prices for all regions targeted |
2728 * [autoConvertMissingPrices] - If true the prices for all regions targeted by | 2875 /// by the parent app that don't have a price specified for this in-app |
2729 * the parent app that don't have a price specified for this in-app product | 2876 /// product will be auto converted to the target currency based on the |
2730 * will be auto converted to the target currency based on the default price. | 2877 /// default price. Defaults to false. |
2731 * Defaults to false. | 2878 /// |
2732 * | 2879 /// Completes with a [InAppProduct]. |
2733 * Completes with a [InAppProduct]. | 2880 /// |
2734 * | 2881 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2735 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2882 /// an error. |
2736 * error. | 2883 /// |
2737 * | 2884 /// If the used [http.Client] completes with an error when making a REST |
2738 * If the used [http.Client] completes with an error when making a REST call, | 2885 /// call, this method will complete with the same error. |
2739 * this method will complete with the same error. | 2886 async.Future<InAppProduct> update( |
2740 */ | 2887 InAppProduct request, core.String packageName, core.String sku, |
2741 async.Future<InAppProduct> update(InAppProduct request, core.String packageNam
e, core.String sku, {core.bool autoConvertMissingPrices}) { | 2888 {core.bool autoConvertMissingPrices}) { |
2742 var _url = null; | 2889 var _url = null; |
2743 var _queryParams = new core.Map(); | 2890 var _queryParams = new core.Map(); |
2744 var _uploadMedia = null; | 2891 var _uploadMedia = null; |
2745 var _uploadOptions = null; | 2892 var _uploadOptions = null; |
2746 var _downloadOptions = commons.DownloadOptions.Metadata; | 2893 var _downloadOptions = commons.DownloadOptions.Metadata; |
2747 var _body = null; | 2894 var _body = null; |
2748 | 2895 |
2749 if (request != null) { | 2896 if (request != null) { |
2750 _body = convert.JSON.encode((request).toJson()); | 2897 _body = convert.JSON.encode((request).toJson()); |
2751 } | 2898 } |
2752 if (packageName == null) { | 2899 if (packageName == null) { |
2753 throw new core.ArgumentError("Parameter packageName is required."); | 2900 throw new core.ArgumentError("Parameter packageName is required."); |
2754 } | 2901 } |
2755 if (sku == null) { | 2902 if (sku == null) { |
2756 throw new core.ArgumentError("Parameter sku is required."); | 2903 throw new core.ArgumentError("Parameter sku is required."); |
2757 } | 2904 } |
2758 if (autoConvertMissingPrices != null) { | 2905 if (autoConvertMissingPrices != null) { |
2759 _queryParams["autoConvertMissingPrices"] = ["${autoConvertMissingPrices}"]
; | 2906 _queryParams["autoConvertMissingPrices"] = [ |
| 2907 "${autoConvertMissingPrices}" |
| 2908 ]; |
2760 } | 2909 } |
2761 | 2910 |
2762 _url = commons.Escaper.ecapeVariable('$packageName') + '/inappproducts/' + c
ommons.Escaper.ecapeVariable('$sku'); | 2911 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2912 '/inappproducts/' + |
| 2913 commons.Escaper.ecapeVariable('$sku'); |
2763 | 2914 |
2764 var _response = _requester.request(_url, | 2915 var _response = _requester.request(_url, "PUT", |
2765 "PUT", | 2916 body: _body, |
2766 body: _body, | 2917 queryParams: _queryParams, |
2767 queryParams: _queryParams, | 2918 uploadOptions: _uploadOptions, |
2768 uploadOptions: _uploadOptions, | 2919 uploadMedia: _uploadMedia, |
2769 uploadMedia: _uploadMedia, | 2920 downloadOptions: _downloadOptions); |
2770 downloadOptions: _downloadOptions); | |
2771 return _response.then((data) => new InAppProduct.fromJson(data)); | 2921 return _response.then((data) => new InAppProduct.fromJson(data)); |
2772 } | 2922 } |
2773 | |
2774 } | 2923 } |
2775 | 2924 |
2776 | |
2777 class PurchasesResourceApi { | 2925 class PurchasesResourceApi { |
2778 final commons.ApiRequester _requester; | 2926 final commons.ApiRequester _requester; |
2779 | 2927 |
2780 PurchasesProductsResourceApi get products => new PurchasesProductsResourceApi(
_requester); | 2928 PurchasesProductsResourceApi get products => |
2781 PurchasesSubscriptionsResourceApi get subscriptions => new PurchasesSubscripti
onsResourceApi(_requester); | 2929 new PurchasesProductsResourceApi(_requester); |
2782 PurchasesVoidedpurchasesResourceApi get voidedpurchases => new PurchasesVoided
purchasesResourceApi(_requester); | 2930 PurchasesSubscriptionsResourceApi get subscriptions => |
| 2931 new PurchasesSubscriptionsResourceApi(_requester); |
| 2932 PurchasesVoidedpurchasesResourceApi get voidedpurchases => |
| 2933 new PurchasesVoidedpurchasesResourceApi(_requester); |
2783 | 2934 |
2784 PurchasesResourceApi(commons.ApiRequester client) : | 2935 PurchasesResourceApi(commons.ApiRequester client) : _requester = client; |
2785 _requester = client; | |
2786 } | 2936 } |
2787 | 2937 |
2788 | |
2789 class PurchasesProductsResourceApi { | 2938 class PurchasesProductsResourceApi { |
2790 final commons.ApiRequester _requester; | 2939 final commons.ApiRequester _requester; |
2791 | 2940 |
2792 PurchasesProductsResourceApi(commons.ApiRequester client) : | 2941 PurchasesProductsResourceApi(commons.ApiRequester client) |
2793 _requester = client; | 2942 : _requester = client; |
2794 | 2943 |
2795 /** | 2944 /// Checks the purchase and consumption status of an inapp item. |
2796 * Checks the purchase and consumption status of an inapp item. | 2945 /// |
2797 * | 2946 /// Request parameters: |
2798 * Request parameters: | 2947 /// |
2799 * | 2948 /// [packageName] - The package name of the application the inapp product was |
2800 * [packageName] - The package name of the application the inapp product was | 2949 /// sold in (for example, 'com.some.thing'). |
2801 * sold in (for example, 'com.some.thing'). | 2950 /// |
2802 * | 2951 /// [productId] - The inapp product SKU (for example, |
2803 * [productId] - The inapp product SKU (for example, 'com.some.thing.inapp1'). | 2952 /// 'com.some.thing.inapp1'). |
2804 * | 2953 /// |
2805 * [token] - The token provided to the user's device when the inapp product | 2954 /// [token] - The token provided to the user's device when the inapp product |
2806 * was purchased. | 2955 /// was purchased. |
2807 * | 2956 /// |
2808 * Completes with a [ProductPurchase]. | 2957 /// Completes with a [ProductPurchase]. |
2809 * | 2958 /// |
2810 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2959 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2811 * error. | 2960 /// an error. |
2812 * | 2961 /// |
2813 * If the used [http.Client] completes with an error when making a REST call, | 2962 /// If the used [http.Client] completes with an error when making a REST |
2814 * this method will complete with the same error. | 2963 /// call, this method will complete with the same error. |
2815 */ | 2964 async.Future<ProductPurchase> get( |
2816 async.Future<ProductPurchase> get(core.String packageName, core.String product
Id, core.String token) { | 2965 core.String packageName, core.String productId, core.String token) { |
2817 var _url = null; | 2966 var _url = null; |
2818 var _queryParams = new core.Map(); | 2967 var _queryParams = new core.Map(); |
2819 var _uploadMedia = null; | 2968 var _uploadMedia = null; |
2820 var _uploadOptions = null; | 2969 var _uploadOptions = null; |
2821 var _downloadOptions = commons.DownloadOptions.Metadata; | 2970 var _downloadOptions = commons.DownloadOptions.Metadata; |
2822 var _body = null; | 2971 var _body = null; |
2823 | 2972 |
2824 if (packageName == null) { | 2973 if (packageName == null) { |
2825 throw new core.ArgumentError("Parameter packageName is required."); | 2974 throw new core.ArgumentError("Parameter packageName is required."); |
2826 } | 2975 } |
2827 if (productId == null) { | 2976 if (productId == null) { |
2828 throw new core.ArgumentError("Parameter productId is required."); | 2977 throw new core.ArgumentError("Parameter productId is required."); |
2829 } | 2978 } |
2830 if (token == null) { | 2979 if (token == null) { |
2831 throw new core.ArgumentError("Parameter token is required."); | 2980 throw new core.ArgumentError("Parameter token is required."); |
2832 } | 2981 } |
2833 | 2982 |
2834 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/products/
' + commons.Escaper.ecapeVariable('$productId') + '/tokens/' + commons.Escaper.e
capeVariable('$token'); | 2983 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 2984 '/purchases/products/' + |
| 2985 commons.Escaper.ecapeVariable('$productId') + |
| 2986 '/tokens/' + |
| 2987 commons.Escaper.ecapeVariable('$token'); |
2835 | 2988 |
2836 var _response = _requester.request(_url, | 2989 var _response = _requester.request(_url, "GET", |
2837 "GET", | 2990 body: _body, |
2838 body: _body, | 2991 queryParams: _queryParams, |
2839 queryParams: _queryParams, | 2992 uploadOptions: _uploadOptions, |
2840 uploadOptions: _uploadOptions, | 2993 uploadMedia: _uploadMedia, |
2841 uploadMedia: _uploadMedia, | 2994 downloadOptions: _downloadOptions); |
2842 downloadOptions: _downloadOptions); | |
2843 return _response.then((data) => new ProductPurchase.fromJson(data)); | 2995 return _response.then((data) => new ProductPurchase.fromJson(data)); |
2844 } | 2996 } |
2845 | |
2846 } | 2997 } |
2847 | 2998 |
2848 | |
2849 class PurchasesSubscriptionsResourceApi { | 2999 class PurchasesSubscriptionsResourceApi { |
2850 final commons.ApiRequester _requester; | 3000 final commons.ApiRequester _requester; |
2851 | 3001 |
2852 PurchasesSubscriptionsResourceApi(commons.ApiRequester client) : | 3002 PurchasesSubscriptionsResourceApi(commons.ApiRequester client) |
2853 _requester = client; | 3003 : _requester = client; |
2854 | 3004 |
2855 /** | 3005 /// Cancels a user's subscription purchase. The subscription remains valid |
2856 * Cancels a user's subscription purchase. The subscription remains valid | 3006 /// until its expiration time. |
2857 * until its expiration time. | 3007 /// |
2858 * | 3008 /// Request parameters: |
2859 * Request parameters: | 3009 /// |
2860 * | 3010 /// [packageName] - The package name of the application for which this |
2861 * [packageName] - The package name of the application for which this | 3011 /// subscription was purchased (for example, 'com.some.thing'). |
2862 * subscription was purchased (for example, 'com.some.thing'). | 3012 /// |
2863 * | 3013 /// [subscriptionId] - The purchased subscription ID (for example, |
2864 * [subscriptionId] - The purchased subscription ID (for example, | 3014 /// 'monthly001'). |
2865 * 'monthly001'). | 3015 /// |
2866 * | 3016 /// [token] - The token provided to the user's device when the subscription |
2867 * [token] - The token provided to the user's device when the subscription was | 3017 /// was purchased. |
2868 * purchased. | 3018 /// |
2869 * | 3019 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2870 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3020 /// an error. |
2871 * error. | 3021 /// |
2872 * | 3022 /// If the used [http.Client] completes with an error when making a REST |
2873 * If the used [http.Client] completes with an error when making a REST call, | 3023 /// call, this method will complete with the same error. |
2874 * this method will complete with the same error. | 3024 async.Future cancel( |
2875 */ | 3025 core.String packageName, core.String subscriptionId, core.String token) { |
2876 async.Future cancel(core.String packageName, core.String subscriptionId, core.
String token) { | |
2877 var _url = null; | 3026 var _url = null; |
2878 var _queryParams = new core.Map(); | 3027 var _queryParams = new core.Map(); |
2879 var _uploadMedia = null; | 3028 var _uploadMedia = null; |
2880 var _uploadOptions = null; | 3029 var _uploadOptions = null; |
2881 var _downloadOptions = commons.DownloadOptions.Metadata; | 3030 var _downloadOptions = commons.DownloadOptions.Metadata; |
2882 var _body = null; | 3031 var _body = null; |
2883 | 3032 |
2884 if (packageName == null) { | 3033 if (packageName == null) { |
2885 throw new core.ArgumentError("Parameter packageName is required."); | 3034 throw new core.ArgumentError("Parameter packageName is required."); |
2886 } | 3035 } |
2887 if (subscriptionId == null) { | 3036 if (subscriptionId == null) { |
2888 throw new core.ArgumentError("Parameter subscriptionId is required."); | 3037 throw new core.ArgumentError("Parameter subscriptionId is required."); |
2889 } | 3038 } |
2890 if (token == null) { | 3039 if (token == null) { |
2891 throw new core.ArgumentError("Parameter token is required."); | 3040 throw new core.ArgumentError("Parameter token is required."); |
2892 } | 3041 } |
2893 | 3042 |
2894 _downloadOptions = null; | 3043 _downloadOptions = null; |
2895 | 3044 |
2896 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript
ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons
.Escaper.ecapeVariable('$token') + ':cancel'; | 3045 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 3046 '/purchases/subscriptions/' + |
| 3047 commons.Escaper.ecapeVariable('$subscriptionId') + |
| 3048 '/tokens/' + |
| 3049 commons.Escaper.ecapeVariable('$token') + |
| 3050 ':cancel'; |
2897 | 3051 |
2898 var _response = _requester.request(_url, | 3052 var _response = _requester.request(_url, "POST", |
2899 "POST", | 3053 body: _body, |
2900 body: _body, | 3054 queryParams: _queryParams, |
2901 queryParams: _queryParams, | 3055 uploadOptions: _uploadOptions, |
2902 uploadOptions: _uploadOptions, | 3056 uploadMedia: _uploadMedia, |
2903 uploadMedia: _uploadMedia, | 3057 downloadOptions: _downloadOptions); |
2904 downloadOptions: _downloadOptions); | |
2905 return _response.then((data) => null); | 3058 return _response.then((data) => null); |
2906 } | 3059 } |
2907 | 3060 |
2908 /** | 3061 /// Defers a user's subscription purchase until a specified future expiration |
2909 * Defers a user's subscription purchase until a specified future expiration | 3062 /// time. |
2910 * time. | 3063 /// |
2911 * | 3064 /// [request] - The metadata request object. |
2912 * [request] - The metadata request object. | 3065 /// |
2913 * | 3066 /// Request parameters: |
2914 * Request parameters: | 3067 /// |
2915 * | 3068 /// [packageName] - The package name of the application for which this |
2916 * [packageName] - The package name of the application for which this | 3069 /// subscription was purchased (for example, 'com.some.thing'). |
2917 * subscription was purchased (for example, 'com.some.thing'). | 3070 /// |
2918 * | 3071 /// [subscriptionId] - The purchased subscription ID (for example, |
2919 * [subscriptionId] - The purchased subscription ID (for example, | 3072 /// 'monthly001'). |
2920 * 'monthly001'). | 3073 /// |
2921 * | 3074 /// [token] - The token provided to the user's device when the subscription |
2922 * [token] - The token provided to the user's device when the subscription was | 3075 /// was purchased. |
2923 * purchased. | 3076 /// |
2924 * | 3077 /// Completes with a [SubscriptionPurchasesDeferResponse]. |
2925 * Completes with a [SubscriptionPurchasesDeferResponse]. | 3078 /// |
2926 * | 3079 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2927 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3080 /// an error. |
2928 * error. | 3081 /// |
2929 * | 3082 /// If the used [http.Client] completes with an error when making a REST |
2930 * If the used [http.Client] completes with an error when making a REST call, | 3083 /// call, this method will complete with the same error. |
2931 * this method will complete with the same error. | 3084 async.Future<SubscriptionPurchasesDeferResponse> defer( |
2932 */ | 3085 SubscriptionPurchasesDeferRequest request, |
2933 async.Future<SubscriptionPurchasesDeferResponse> defer(SubscriptionPurchasesDe
ferRequest request, core.String packageName, core.String subscriptionId, core.St
ring token) { | 3086 core.String packageName, |
| 3087 core.String subscriptionId, |
| 3088 core.String token) { |
2934 var _url = null; | 3089 var _url = null; |
2935 var _queryParams = new core.Map(); | 3090 var _queryParams = new core.Map(); |
2936 var _uploadMedia = null; | 3091 var _uploadMedia = null; |
2937 var _uploadOptions = null; | 3092 var _uploadOptions = null; |
2938 var _downloadOptions = commons.DownloadOptions.Metadata; | 3093 var _downloadOptions = commons.DownloadOptions.Metadata; |
2939 var _body = null; | 3094 var _body = null; |
2940 | 3095 |
2941 if (request != null) { | 3096 if (request != null) { |
2942 _body = convert.JSON.encode((request).toJson()); | 3097 _body = convert.JSON.encode((request).toJson()); |
2943 } | 3098 } |
2944 if (packageName == null) { | 3099 if (packageName == null) { |
2945 throw new core.ArgumentError("Parameter packageName is required."); | 3100 throw new core.ArgumentError("Parameter packageName is required."); |
2946 } | 3101 } |
2947 if (subscriptionId == null) { | 3102 if (subscriptionId == null) { |
2948 throw new core.ArgumentError("Parameter subscriptionId is required."); | 3103 throw new core.ArgumentError("Parameter subscriptionId is required."); |
2949 } | 3104 } |
2950 if (token == null) { | 3105 if (token == null) { |
2951 throw new core.ArgumentError("Parameter token is required."); | 3106 throw new core.ArgumentError("Parameter token is required."); |
2952 } | 3107 } |
2953 | 3108 |
2954 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript
ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons
.Escaper.ecapeVariable('$token') + ':defer'; | 3109 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 3110 '/purchases/subscriptions/' + |
| 3111 commons.Escaper.ecapeVariable('$subscriptionId') + |
| 3112 '/tokens/' + |
| 3113 commons.Escaper.ecapeVariable('$token') + |
| 3114 ':defer'; |
2955 | 3115 |
2956 var _response = _requester.request(_url, | 3116 var _response = _requester.request(_url, "POST", |
2957 "POST", | 3117 body: _body, |
2958 body: _body, | 3118 queryParams: _queryParams, |
2959 queryParams: _queryParams, | 3119 uploadOptions: _uploadOptions, |
2960 uploadOptions: _uploadOptions, | 3120 uploadMedia: _uploadMedia, |
2961 uploadMedia: _uploadMedia, | 3121 downloadOptions: _downloadOptions); |
2962 downloadOptions: _downloadOptions); | 3122 return _response |
2963 return _response.then((data) => new SubscriptionPurchasesDeferResponse.fromJ
son(data)); | 3123 .then((data) => new SubscriptionPurchasesDeferResponse.fromJson(data)); |
2964 } | 3124 } |
2965 | 3125 |
2966 /** | 3126 /// Checks whether a user's subscription purchase is valid and returns its |
2967 * Checks whether a user's subscription purchase is valid and returns its | 3127 /// expiry time. |
2968 * expiry time. | 3128 /// |
2969 * | 3129 /// Request parameters: |
2970 * Request parameters: | 3130 /// |
2971 * | 3131 /// [packageName] - The package name of the application for which this |
2972 * [packageName] - The package name of the application for which this | 3132 /// subscription was purchased (for example, 'com.some.thing'). |
2973 * subscription was purchased (for example, 'com.some.thing'). | 3133 /// |
2974 * | 3134 /// [subscriptionId] - The purchased subscription ID (for example, |
2975 * [subscriptionId] - The purchased subscription ID (for example, | 3135 /// 'monthly001'). |
2976 * 'monthly001'). | 3136 /// |
2977 * | 3137 /// [token] - The token provided to the user's device when the subscription |
2978 * [token] - The token provided to the user's device when the subscription was | 3138 /// was purchased. |
2979 * purchased. | 3139 /// |
2980 * | 3140 /// Completes with a [SubscriptionPurchase]. |
2981 * Completes with a [SubscriptionPurchase]. | 3141 /// |
2982 * | 3142 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3143 /// an error. |
2984 * error. | 3144 /// |
2985 * | 3145 /// If the used [http.Client] completes with an error when making a REST |
2986 * If the used [http.Client] completes with an error when making a REST call, | 3146 /// call, this method will complete with the same error. |
2987 * this method will complete with the same error. | 3147 async.Future<SubscriptionPurchase> get( |
2988 */ | 3148 core.String packageName, core.String subscriptionId, core.String token) { |
2989 async.Future<SubscriptionPurchase> get(core.String packageName, core.String su
bscriptionId, core.String token) { | |
2990 var _url = null; | 3149 var _url = null; |
2991 var _queryParams = new core.Map(); | 3150 var _queryParams = new core.Map(); |
2992 var _uploadMedia = null; | 3151 var _uploadMedia = null; |
2993 var _uploadOptions = null; | 3152 var _uploadOptions = null; |
2994 var _downloadOptions = commons.DownloadOptions.Metadata; | 3153 var _downloadOptions = commons.DownloadOptions.Metadata; |
2995 var _body = null; | 3154 var _body = null; |
2996 | 3155 |
2997 if (packageName == null) { | 3156 if (packageName == null) { |
2998 throw new core.ArgumentError("Parameter packageName is required."); | 3157 throw new core.ArgumentError("Parameter packageName is required."); |
2999 } | 3158 } |
3000 if (subscriptionId == null) { | 3159 if (subscriptionId == null) { |
3001 throw new core.ArgumentError("Parameter subscriptionId is required."); | 3160 throw new core.ArgumentError("Parameter subscriptionId is required."); |
3002 } | 3161 } |
3003 if (token == null) { | 3162 if (token == null) { |
3004 throw new core.ArgumentError("Parameter token is required."); | 3163 throw new core.ArgumentError("Parameter token is required."); |
3005 } | 3164 } |
3006 | 3165 |
3007 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript
ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons
.Escaper.ecapeVariable('$token'); | 3166 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 3167 '/purchases/subscriptions/' + |
| 3168 commons.Escaper.ecapeVariable('$subscriptionId') + |
| 3169 '/tokens/' + |
| 3170 commons.Escaper.ecapeVariable('$token'); |
3008 | 3171 |
3009 var _response = _requester.request(_url, | 3172 var _response = _requester.request(_url, "GET", |
3010 "GET", | 3173 body: _body, |
3011 body: _body, | 3174 queryParams: _queryParams, |
3012 queryParams: _queryParams, | 3175 uploadOptions: _uploadOptions, |
3013 uploadOptions: _uploadOptions, | 3176 uploadMedia: _uploadMedia, |
3014 uploadMedia: _uploadMedia, | 3177 downloadOptions: _downloadOptions); |
3015 downloadOptions: _downloadOptions); | |
3016 return _response.then((data) => new SubscriptionPurchase.fromJson(data)); | 3178 return _response.then((data) => new SubscriptionPurchase.fromJson(data)); |
3017 } | 3179 } |
3018 | 3180 |
3019 /** | 3181 /// Refunds a user's subscription purchase, but the subscription remains |
3020 * Refunds a user's subscription purchase, but the subscription remains valid | 3182 /// valid until its expiration time and it will continue to recur. |
3021 * until its expiration time and it will continue to recur. | 3183 /// |
3022 * | 3184 /// Request parameters: |
3023 * Request parameters: | 3185 /// |
3024 * | 3186 /// [packageName] - The package name of the application for which this |
3025 * [packageName] - The package name of the application for which this | 3187 /// subscription was purchased (for example, 'com.some.thing'). |
3026 * subscription was purchased (for example, 'com.some.thing'). | 3188 /// |
3027 * | 3189 /// [subscriptionId] - The purchased subscription ID (for example, |
3028 * [subscriptionId] - The purchased subscription ID (for example, | 3190 /// 'monthly001'). |
3029 * 'monthly001'). | 3191 /// |
3030 * | 3192 /// [token] - The token provided to the user's device when the subscription |
3031 * [token] - The token provided to the user's device when the subscription was | 3193 /// was purchased. |
3032 * purchased. | 3194 /// |
3033 * | 3195 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3034 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3196 /// an error. |
3035 * error. | 3197 /// |
3036 * | 3198 /// If the used [http.Client] completes with an error when making a REST |
3037 * If the used [http.Client] completes with an error when making a REST call, | 3199 /// call, this method will complete with the same error. |
3038 * this method will complete with the same error. | 3200 async.Future refund( |
3039 */ | 3201 core.String packageName, core.String subscriptionId, core.String token) { |
3040 async.Future refund(core.String packageName, core.String subscriptionId, core.
String token) { | |
3041 var _url = null; | 3202 var _url = null; |
3042 var _queryParams = new core.Map(); | 3203 var _queryParams = new core.Map(); |
3043 var _uploadMedia = null; | 3204 var _uploadMedia = null; |
3044 var _uploadOptions = null; | 3205 var _uploadOptions = null; |
3045 var _downloadOptions = commons.DownloadOptions.Metadata; | 3206 var _downloadOptions = commons.DownloadOptions.Metadata; |
3046 var _body = null; | 3207 var _body = null; |
3047 | 3208 |
3048 if (packageName == null) { | 3209 if (packageName == null) { |
3049 throw new core.ArgumentError("Parameter packageName is required."); | 3210 throw new core.ArgumentError("Parameter packageName is required."); |
3050 } | 3211 } |
3051 if (subscriptionId == null) { | 3212 if (subscriptionId == null) { |
3052 throw new core.ArgumentError("Parameter subscriptionId is required."); | 3213 throw new core.ArgumentError("Parameter subscriptionId is required."); |
3053 } | 3214 } |
3054 if (token == null) { | 3215 if (token == null) { |
3055 throw new core.ArgumentError("Parameter token is required."); | 3216 throw new core.ArgumentError("Parameter token is required."); |
3056 } | 3217 } |
3057 | 3218 |
3058 _downloadOptions = null; | 3219 _downloadOptions = null; |
3059 | 3220 |
3060 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript
ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons
.Escaper.ecapeVariable('$token') + ':refund'; | 3221 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 3222 '/purchases/subscriptions/' + |
| 3223 commons.Escaper.ecapeVariable('$subscriptionId') + |
| 3224 '/tokens/' + |
| 3225 commons.Escaper.ecapeVariable('$token') + |
| 3226 ':refund'; |
3061 | 3227 |
3062 var _response = _requester.request(_url, | 3228 var _response = _requester.request(_url, "POST", |
3063 "POST", | 3229 body: _body, |
3064 body: _body, | 3230 queryParams: _queryParams, |
3065 queryParams: _queryParams, | 3231 uploadOptions: _uploadOptions, |
3066 uploadOptions: _uploadOptions, | 3232 uploadMedia: _uploadMedia, |
3067 uploadMedia: _uploadMedia, | 3233 downloadOptions: _downloadOptions); |
3068 downloadOptions: _downloadOptions); | |
3069 return _response.then((data) => null); | 3234 return _response.then((data) => null); |
3070 } | 3235 } |
3071 | 3236 |
3072 /** | 3237 /// Refunds and immediately revokes a user's subscription purchase. Access to |
3073 * Refunds and immediately revokes a user's subscription purchase. Access to | 3238 /// the subscription will be terminated immediately and it will stop |
3074 * the subscription will be terminated immediately and it will stop recurring. | 3239 /// recurring. |
3075 * | 3240 /// |
3076 * Request parameters: | 3241 /// Request parameters: |
3077 * | 3242 /// |
3078 * [packageName] - The package name of the application for which this | 3243 /// [packageName] - The package name of the application for which this |
3079 * subscription was purchased (for example, 'com.some.thing'). | 3244 /// subscription was purchased (for example, 'com.some.thing'). |
3080 * | 3245 /// |
3081 * [subscriptionId] - The purchased subscription ID (for example, | 3246 /// [subscriptionId] - The purchased subscription ID (for example, |
3082 * 'monthly001'). | 3247 /// 'monthly001'). |
3083 * | 3248 /// |
3084 * [token] - The token provided to the user's device when the subscription was | 3249 /// [token] - The token provided to the user's device when the subscription |
3085 * purchased. | 3250 /// was purchased. |
3086 * | 3251 /// |
3087 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3252 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3088 * error. | 3253 /// an error. |
3089 * | 3254 /// |
3090 * If the used [http.Client] completes with an error when making a REST call, | 3255 /// If the used [http.Client] completes with an error when making a REST |
3091 * this method will complete with the same error. | 3256 /// call, this method will complete with the same error. |
3092 */ | 3257 async.Future revoke( |
3093 async.Future revoke(core.String packageName, core.String subscriptionId, core.
String token) { | 3258 core.String packageName, core.String subscriptionId, core.String token) { |
3094 var _url = null; | 3259 var _url = null; |
3095 var _queryParams = new core.Map(); | 3260 var _queryParams = new core.Map(); |
3096 var _uploadMedia = null; | 3261 var _uploadMedia = null; |
3097 var _uploadOptions = null; | 3262 var _uploadOptions = null; |
3098 var _downloadOptions = commons.DownloadOptions.Metadata; | 3263 var _downloadOptions = commons.DownloadOptions.Metadata; |
3099 var _body = null; | 3264 var _body = null; |
3100 | 3265 |
3101 if (packageName == null) { | 3266 if (packageName == null) { |
3102 throw new core.ArgumentError("Parameter packageName is required."); | 3267 throw new core.ArgumentError("Parameter packageName is required."); |
3103 } | 3268 } |
3104 if (subscriptionId == null) { | 3269 if (subscriptionId == null) { |
3105 throw new core.ArgumentError("Parameter subscriptionId is required."); | 3270 throw new core.ArgumentError("Parameter subscriptionId is required."); |
3106 } | 3271 } |
3107 if (token == null) { | 3272 if (token == null) { |
3108 throw new core.ArgumentError("Parameter token is required."); | 3273 throw new core.ArgumentError("Parameter token is required."); |
3109 } | 3274 } |
3110 | 3275 |
3111 _downloadOptions = null; | 3276 _downloadOptions = null; |
3112 | 3277 |
3113 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/subscript
ions/' + commons.Escaper.ecapeVariable('$subscriptionId') + '/tokens/' + commons
.Escaper.ecapeVariable('$token') + ':revoke'; | 3278 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 3279 '/purchases/subscriptions/' + |
| 3280 commons.Escaper.ecapeVariable('$subscriptionId') + |
| 3281 '/tokens/' + |
| 3282 commons.Escaper.ecapeVariable('$token') + |
| 3283 ':revoke'; |
3114 | 3284 |
3115 var _response = _requester.request(_url, | 3285 var _response = _requester.request(_url, "POST", |
3116 "POST", | 3286 body: _body, |
3117 body: _body, | 3287 queryParams: _queryParams, |
3118 queryParams: _queryParams, | 3288 uploadOptions: _uploadOptions, |
3119 uploadOptions: _uploadOptions, | 3289 uploadMedia: _uploadMedia, |
3120 uploadMedia: _uploadMedia, | 3290 downloadOptions: _downloadOptions); |
3121 downloadOptions: _downloadOptions); | |
3122 return _response.then((data) => null); | 3291 return _response.then((data) => null); |
3123 } | 3292 } |
3124 | |
3125 } | 3293 } |
3126 | 3294 |
3127 | |
3128 class PurchasesVoidedpurchasesResourceApi { | 3295 class PurchasesVoidedpurchasesResourceApi { |
3129 final commons.ApiRequester _requester; | 3296 final commons.ApiRequester _requester; |
3130 | 3297 |
3131 PurchasesVoidedpurchasesResourceApi(commons.ApiRequester client) : | 3298 PurchasesVoidedpurchasesResourceApi(commons.ApiRequester client) |
3132 _requester = client; | 3299 : _requester = client; |
3133 | 3300 |
3134 /** | 3301 /// Lists the purchases that were cancelled, refunded or charged-back. |
3135 * Lists the purchases that were cancelled, refunded or charged-back. | 3302 /// |
3136 * | 3303 /// Request parameters: |
3137 * Request parameters: | 3304 /// |
3138 * | 3305 /// [packageName] - The package name of the application for which voided |
3139 * [packageName] - The package name of the application for which voided | 3306 /// purchases need to be returned (for example, 'com.some.thing'). |
3140 * purchases need to be returned (for example, 'com.some.thing'). | 3307 /// |
3141 * | 3308 /// [endTime] - The time, in milliseconds since the Epoch, of the newest |
3142 * [endTime] - The time, in milliseconds since the Epoch, of the newest voided | 3309 /// voided in-app product purchase that you want to see in the response. The |
3143 * in-app product purchase that you want to see in the response. The value of | 3310 /// value of this parameter cannot be greater than the current time and is |
3144 * this parameter cannot be greater than the current time and is ignored if a | 3311 /// ignored if a pagination token is set. Default value is current time. |
3145 * pagination token is set. Default value is current time. Note: This filter | 3312 /// Note: This filter is applied on the time at which the record is seen as |
3146 * is applied on the time at which the record is seen as voided by our systems | 3313 /// voided by our systems and not the actual voided time returned in the |
3147 * and not the actual voided time returned in the response. | 3314 /// response. |
3148 * | 3315 /// |
3149 * [maxResults] - null | 3316 /// [maxResults] - null |
3150 * | 3317 /// |
3151 * [startIndex] - null | 3318 /// [startIndex] - null |
3152 * | 3319 /// |
3153 * [startTime] - The time, in milliseconds since the Epoch, of the oldest | 3320 /// [startTime] - The time, in milliseconds since the Epoch, of the oldest |
3154 * voided in-app product purchase that you want to see in the response. The | 3321 /// voided in-app product purchase that you want to see in the response. The |
3155 * value of this parameter cannot be older than 30 days and is ignored if a | 3322 /// value of this parameter cannot be older than 30 days and is ignored if a |
3156 * pagination token is set. Default value is current time minus 30 days. Note: | 3323 /// pagination token is set. Default value is current time minus 30 days. |
3157 * This filter is applied on the time at which the record is seen as voided by | 3324 /// Note: This filter is applied on the time at which the record is seen as |
3158 * our systems and not the actual voided time returned in the response. | 3325 /// voided by our systems and not the actual voided time returned in the |
3159 * | 3326 /// response. |
3160 * [token] - null | 3327 /// |
3161 * | 3328 /// [token] - null |
3162 * Completes with a [VoidedPurchasesListResponse]. | 3329 /// |
3163 * | 3330 /// Completes with a [VoidedPurchasesListResponse]. |
3164 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3331 /// |
3165 * error. | 3332 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3166 * | 3333 /// an error. |
3167 * If the used [http.Client] completes with an error when making a REST call, | 3334 /// |
3168 * this method will complete with the same error. | 3335 /// If the used [http.Client] completes with an error when making a REST |
3169 */ | 3336 /// call, this method will complete with the same error. |
3170 async.Future<VoidedPurchasesListResponse> list(core.String packageName, {core.
String endTime, core.int maxResults, core.int startIndex, core.String startTime,
core.String token}) { | 3337 async.Future<VoidedPurchasesListResponse> list(core.String packageName, |
| 3338 {core.String endTime, |
| 3339 core.int maxResults, |
| 3340 core.int startIndex, |
| 3341 core.String startTime, |
| 3342 core.String token}) { |
3171 var _url = null; | 3343 var _url = null; |
3172 var _queryParams = new core.Map(); | 3344 var _queryParams = new core.Map(); |
3173 var _uploadMedia = null; | 3345 var _uploadMedia = null; |
3174 var _uploadOptions = null; | 3346 var _uploadOptions = null; |
3175 var _downloadOptions = commons.DownloadOptions.Metadata; | 3347 var _downloadOptions = commons.DownloadOptions.Metadata; |
3176 var _body = null; | 3348 var _body = null; |
3177 | 3349 |
3178 if (packageName == null) { | 3350 if (packageName == null) { |
3179 throw new core.ArgumentError("Parameter packageName is required."); | 3351 throw new core.ArgumentError("Parameter packageName is required."); |
3180 } | 3352 } |
3181 if (endTime != null) { | 3353 if (endTime != null) { |
3182 _queryParams["endTime"] = [endTime]; | 3354 _queryParams["endTime"] = [endTime]; |
3183 } | 3355 } |
3184 if (maxResults != null) { | 3356 if (maxResults != null) { |
3185 _queryParams["maxResults"] = ["${maxResults}"]; | 3357 _queryParams["maxResults"] = ["${maxResults}"]; |
3186 } | 3358 } |
3187 if (startIndex != null) { | 3359 if (startIndex != null) { |
3188 _queryParams["startIndex"] = ["${startIndex}"]; | 3360 _queryParams["startIndex"] = ["${startIndex}"]; |
3189 } | 3361 } |
3190 if (startTime != null) { | 3362 if (startTime != null) { |
3191 _queryParams["startTime"] = [startTime]; | 3363 _queryParams["startTime"] = [startTime]; |
3192 } | 3364 } |
3193 if (token != null) { | 3365 if (token != null) { |
3194 _queryParams["token"] = [token]; | 3366 _queryParams["token"] = [token]; |
3195 } | 3367 } |
3196 | 3368 |
3197 _url = commons.Escaper.ecapeVariable('$packageName') + '/purchases/voidedpur
chases'; | 3369 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 3370 '/purchases/voidedpurchases'; |
3198 | 3371 |
3199 var _response = _requester.request(_url, | 3372 var _response = _requester.request(_url, "GET", |
3200 "GET", | 3373 body: _body, |
3201 body: _body, | 3374 queryParams: _queryParams, |
3202 queryParams: _queryParams, | 3375 uploadOptions: _uploadOptions, |
3203 uploadOptions: _uploadOptions, | 3376 uploadMedia: _uploadMedia, |
3204 uploadMedia: _uploadMedia, | 3377 downloadOptions: _downloadOptions); |
3205 downloadOptions: _downloadOptions); | 3378 return _response |
3206 return _response.then((data) => new VoidedPurchasesListResponse.fromJson(dat
a)); | 3379 .then((data) => new VoidedPurchasesListResponse.fromJson(data)); |
3207 } | 3380 } |
3208 | |
3209 } | 3381 } |
3210 | 3382 |
3211 | |
3212 class ReviewsResourceApi { | 3383 class ReviewsResourceApi { |
3213 final commons.ApiRequester _requester; | 3384 final commons.ApiRequester _requester; |
3214 | 3385 |
3215 ReviewsResourceApi(commons.ApiRequester client) : | 3386 ReviewsResourceApi(commons.ApiRequester client) : _requester = client; |
3216 _requester = client; | |
3217 | 3387 |
3218 /** | 3388 /// Returns a single review. |
3219 * Returns a single review. | 3389 /// |
3220 * | 3390 /// Request parameters: |
3221 * Request parameters: | 3391 /// |
3222 * | 3392 /// [packageName] - Unique identifier for the Android app for which we want |
3223 * [packageName] - Unique identifier for the Android app for which we want | 3393 /// reviews; for example, "com.spiffygame". |
3224 * reviews; for example, "com.spiffygame". | 3394 /// |
3225 * | 3395 /// [reviewId] - null |
3226 * [reviewId] - null | 3396 /// |
3227 * | 3397 /// [translationLanguage] - null |
3228 * [translationLanguage] - null | 3398 /// |
3229 * | 3399 /// Completes with a [Review]. |
3230 * Completes with a [Review]. | 3400 /// |
3231 * | 3401 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3232 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3402 /// an error. |
3233 * error. | 3403 /// |
3234 * | 3404 /// If the used [http.Client] completes with an error when making a REST |
3235 * If the used [http.Client] completes with an error when making a REST call, | 3405 /// call, this method will complete with the same error. |
3236 * this method will complete with the same error. | 3406 async.Future<Review> get(core.String packageName, core.String reviewId, |
3237 */ | 3407 {core.String translationLanguage}) { |
3238 async.Future<Review> get(core.String packageName, core.String reviewId, {core.
String translationLanguage}) { | |
3239 var _url = null; | 3408 var _url = null; |
3240 var _queryParams = new core.Map(); | 3409 var _queryParams = new core.Map(); |
3241 var _uploadMedia = null; | 3410 var _uploadMedia = null; |
3242 var _uploadOptions = null; | 3411 var _uploadOptions = null; |
3243 var _downloadOptions = commons.DownloadOptions.Metadata; | 3412 var _downloadOptions = commons.DownloadOptions.Metadata; |
3244 var _body = null; | 3413 var _body = null; |
3245 | 3414 |
3246 if (packageName == null) { | 3415 if (packageName == null) { |
3247 throw new core.ArgumentError("Parameter packageName is required."); | 3416 throw new core.ArgumentError("Parameter packageName is required."); |
3248 } | 3417 } |
3249 if (reviewId == null) { | 3418 if (reviewId == null) { |
3250 throw new core.ArgumentError("Parameter reviewId is required."); | 3419 throw new core.ArgumentError("Parameter reviewId is required."); |
3251 } | 3420 } |
3252 if (translationLanguage != null) { | 3421 if (translationLanguage != null) { |
3253 _queryParams["translationLanguage"] = [translationLanguage]; | 3422 _queryParams["translationLanguage"] = [translationLanguage]; |
3254 } | 3423 } |
3255 | 3424 |
3256 _url = commons.Escaper.ecapeVariable('$packageName') + '/reviews/' + commons
.Escaper.ecapeVariable('$reviewId'); | 3425 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 3426 '/reviews/' + |
| 3427 commons.Escaper.ecapeVariable('$reviewId'); |
3257 | 3428 |
3258 var _response = _requester.request(_url, | 3429 var _response = _requester.request(_url, "GET", |
3259 "GET", | 3430 body: _body, |
3260 body: _body, | 3431 queryParams: _queryParams, |
3261 queryParams: _queryParams, | 3432 uploadOptions: _uploadOptions, |
3262 uploadOptions: _uploadOptions, | 3433 uploadMedia: _uploadMedia, |
3263 uploadMedia: _uploadMedia, | 3434 downloadOptions: _downloadOptions); |
3264 downloadOptions: _downloadOptions); | |
3265 return _response.then((data) => new Review.fromJson(data)); | 3435 return _response.then((data) => new Review.fromJson(data)); |
3266 } | 3436 } |
3267 | 3437 |
3268 /** | 3438 /// Returns a list of reviews. Only reviews from last week will be returned. |
3269 * Returns a list of reviews. Only reviews from last week will be returned. | 3439 /// |
3270 * | 3440 /// Request parameters: |
3271 * Request parameters: | 3441 /// |
3272 * | 3442 /// [packageName] - Unique identifier for the Android app for which we want |
3273 * [packageName] - Unique identifier for the Android app for which we want | 3443 /// reviews; for example, "com.spiffygame". |
3274 * reviews; for example, "com.spiffygame". | 3444 /// |
3275 * | 3445 /// [maxResults] - null |
3276 * [maxResults] - null | 3446 /// |
3277 * | 3447 /// [startIndex] - null |
3278 * [startIndex] - null | 3448 /// |
3279 * | 3449 /// [token] - null |
3280 * [token] - null | 3450 /// |
3281 * | 3451 /// [translationLanguage] - null |
3282 * [translationLanguage] - null | 3452 /// |
3283 * | 3453 /// Completes with a [ReviewsListResponse]. |
3284 * Completes with a [ReviewsListResponse]. | 3454 /// |
3285 * | 3455 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3286 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3456 /// an error. |
3287 * error. | 3457 /// |
3288 * | 3458 /// If the used [http.Client] completes with an error when making a REST |
3289 * If the used [http.Client] completes with an error when making a REST call, | 3459 /// call, this method will complete with the same error. |
3290 * this method will complete with the same error. | 3460 async.Future<ReviewsListResponse> list(core.String packageName, |
3291 */ | 3461 {core.int maxResults, |
3292 async.Future<ReviewsListResponse> list(core.String packageName, {core.int maxR
esults, core.int startIndex, core.String token, core.String translationLanguage}
) { | 3462 core.int startIndex, |
| 3463 core.String token, |
| 3464 core.String translationLanguage}) { |
3293 var _url = null; | 3465 var _url = null; |
3294 var _queryParams = new core.Map(); | 3466 var _queryParams = new core.Map(); |
3295 var _uploadMedia = null; | 3467 var _uploadMedia = null; |
3296 var _uploadOptions = null; | 3468 var _uploadOptions = null; |
3297 var _downloadOptions = commons.DownloadOptions.Metadata; | 3469 var _downloadOptions = commons.DownloadOptions.Metadata; |
3298 var _body = null; | 3470 var _body = null; |
3299 | 3471 |
3300 if (packageName == null) { | 3472 if (packageName == null) { |
3301 throw new core.ArgumentError("Parameter packageName is required."); | 3473 throw new core.ArgumentError("Parameter packageName is required."); |
3302 } | 3474 } |
3303 if (maxResults != null) { | 3475 if (maxResults != null) { |
3304 _queryParams["maxResults"] = ["${maxResults}"]; | 3476 _queryParams["maxResults"] = ["${maxResults}"]; |
3305 } | 3477 } |
3306 if (startIndex != null) { | 3478 if (startIndex != null) { |
3307 _queryParams["startIndex"] = ["${startIndex}"]; | 3479 _queryParams["startIndex"] = ["${startIndex}"]; |
3308 } | 3480 } |
3309 if (token != null) { | 3481 if (token != null) { |
3310 _queryParams["token"] = [token]; | 3482 _queryParams["token"] = [token]; |
3311 } | 3483 } |
3312 if (translationLanguage != null) { | 3484 if (translationLanguage != null) { |
3313 _queryParams["translationLanguage"] = [translationLanguage]; | 3485 _queryParams["translationLanguage"] = [translationLanguage]; |
3314 } | 3486 } |
3315 | 3487 |
3316 _url = commons.Escaper.ecapeVariable('$packageName') + '/reviews'; | 3488 _url = commons.Escaper.ecapeVariable('$packageName') + '/reviews'; |
3317 | 3489 |
3318 var _response = _requester.request(_url, | 3490 var _response = _requester.request(_url, "GET", |
3319 "GET", | 3491 body: _body, |
3320 body: _body, | 3492 queryParams: _queryParams, |
3321 queryParams: _queryParams, | 3493 uploadOptions: _uploadOptions, |
3322 uploadOptions: _uploadOptions, | 3494 uploadMedia: _uploadMedia, |
3323 uploadMedia: _uploadMedia, | 3495 downloadOptions: _downloadOptions); |
3324 downloadOptions: _downloadOptions); | |
3325 return _response.then((data) => new ReviewsListResponse.fromJson(data)); | 3496 return _response.then((data) => new ReviewsListResponse.fromJson(data)); |
3326 } | 3497 } |
3327 | 3498 |
3328 /** | 3499 /// Reply to a single review, or update an existing reply. |
3329 * Reply to a single review, or update an existing reply. | 3500 /// |
3330 * | 3501 /// [request] - The metadata request object. |
3331 * [request] - The metadata request object. | 3502 /// |
3332 * | 3503 /// Request parameters: |
3333 * Request parameters: | 3504 /// |
3334 * | 3505 /// [packageName] - Unique identifier for the Android app for which we want |
3335 * [packageName] - Unique identifier for the Android app for which we want | 3506 /// reviews; for example, "com.spiffygame". |
3336 * reviews; for example, "com.spiffygame". | 3507 /// |
3337 * | 3508 /// [reviewId] - null |
3338 * [reviewId] - null | 3509 /// |
3339 * | 3510 /// Completes with a [ReviewsReplyResponse]. |
3340 * Completes with a [ReviewsReplyResponse]. | 3511 /// |
3341 * | 3512 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3342 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3513 /// an error. |
3343 * error. | 3514 /// |
3344 * | 3515 /// If the used [http.Client] completes with an error when making a REST |
3345 * If the used [http.Client] completes with an error when making a REST call, | 3516 /// call, this method will complete with the same error. |
3346 * this method will complete with the same error. | 3517 async.Future<ReviewsReplyResponse> reply(ReviewsReplyRequest request, |
3347 */ | 3518 core.String packageName, core.String reviewId) { |
3348 async.Future<ReviewsReplyResponse> reply(ReviewsReplyRequest request, core.Str
ing packageName, core.String reviewId) { | |
3349 var _url = null; | 3519 var _url = null; |
3350 var _queryParams = new core.Map(); | 3520 var _queryParams = new core.Map(); |
3351 var _uploadMedia = null; | 3521 var _uploadMedia = null; |
3352 var _uploadOptions = null; | 3522 var _uploadOptions = null; |
3353 var _downloadOptions = commons.DownloadOptions.Metadata; | 3523 var _downloadOptions = commons.DownloadOptions.Metadata; |
3354 var _body = null; | 3524 var _body = null; |
3355 | 3525 |
3356 if (request != null) { | 3526 if (request != null) { |
3357 _body = convert.JSON.encode((request).toJson()); | 3527 _body = convert.JSON.encode((request).toJson()); |
3358 } | 3528 } |
3359 if (packageName == null) { | 3529 if (packageName == null) { |
3360 throw new core.ArgumentError("Parameter packageName is required."); | 3530 throw new core.ArgumentError("Parameter packageName is required."); |
3361 } | 3531 } |
3362 if (reviewId == null) { | 3532 if (reviewId == null) { |
3363 throw new core.ArgumentError("Parameter reviewId is required."); | 3533 throw new core.ArgumentError("Parameter reviewId is required."); |
3364 } | 3534 } |
3365 | 3535 |
3366 _url = commons.Escaper.ecapeVariable('$packageName') + '/reviews/' + commons
.Escaper.ecapeVariable('$reviewId') + ':reply'; | 3536 _url = commons.Escaper.ecapeVariable('$packageName') + |
| 3537 '/reviews/' + |
| 3538 commons.Escaper.ecapeVariable('$reviewId') + |
| 3539 ':reply'; |
3367 | 3540 |
3368 var _response = _requester.request(_url, | 3541 var _response = _requester.request(_url, "POST", |
3369 "POST", | 3542 body: _body, |
3370 body: _body, | 3543 queryParams: _queryParams, |
3371 queryParams: _queryParams, | 3544 uploadOptions: _uploadOptions, |
3372 uploadOptions: _uploadOptions, | 3545 uploadMedia: _uploadMedia, |
3373 uploadMedia: _uploadMedia, | 3546 downloadOptions: _downloadOptions); |
3374 downloadOptions: _downloadOptions); | |
3375 return _response.then((data) => new ReviewsReplyResponse.fromJson(data)); | 3547 return _response.then((data) => new ReviewsReplyResponse.fromJson(data)); |
3376 } | 3548 } |
3377 | |
3378 } | 3549 } |
3379 | 3550 |
| 3551 class Apk { |
| 3552 /// Information about the binary payload of this APK. |
| 3553 ApkBinary binary; |
3380 | 3554 |
3381 | 3555 /// The version code of the APK, as specified in the APK's manifest file. |
3382 class Apk { | |
3383 /** Information about the binary payload of this APK. */ | |
3384 ApkBinary binary; | |
3385 /** The version code of the APK, as specified in the APK's manifest file. */ | |
3386 core.int versionCode; | 3556 core.int versionCode; |
3387 | 3557 |
3388 Apk(); | 3558 Apk(); |
3389 | 3559 |
3390 Apk.fromJson(core.Map _json) { | 3560 Apk.fromJson(core.Map _json) { |
3391 if (_json.containsKey("binary")) { | 3561 if (_json.containsKey("binary")) { |
3392 binary = new ApkBinary.fromJson(_json["binary"]); | 3562 binary = new ApkBinary.fromJson(_json["binary"]); |
3393 } | 3563 } |
3394 if (_json.containsKey("versionCode")) { | 3564 if (_json.containsKey("versionCode")) { |
3395 versionCode = _json["versionCode"]; | 3565 versionCode = _json["versionCode"]; |
3396 } | 3566 } |
3397 } | 3567 } |
3398 | 3568 |
3399 core.Map<core.String, core.Object> toJson() { | 3569 core.Map<core.String, core.Object> toJson() { |
3400 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3570 final core.Map<core.String, core.Object> _json = |
| 3571 new core.Map<core.String, core.Object>(); |
3401 if (binary != null) { | 3572 if (binary != null) { |
3402 _json["binary"] = (binary).toJson(); | 3573 _json["binary"] = (binary).toJson(); |
3403 } | 3574 } |
3404 if (versionCode != null) { | 3575 if (versionCode != null) { |
3405 _json["versionCode"] = versionCode; | 3576 _json["versionCode"] = versionCode; |
3406 } | 3577 } |
3407 return _json; | 3578 return _json; |
3408 } | 3579 } |
3409 } | 3580 } |
3410 | 3581 |
3411 /** Represents the binary payload of an APK. */ | 3582 /// Represents the binary payload of an APK. |
3412 class ApkBinary { | 3583 class ApkBinary { |
3413 /** | 3584 /// A sha1 hash of the APK payload, encoded as a hex string and matching the |
3414 * A sha1 hash of the APK payload, encoded as a hex string and matching the | 3585 /// output of the sha1sum command. |
3415 * output of the sha1sum command. | |
3416 */ | |
3417 core.String sha1; | 3586 core.String sha1; |
3418 /** | 3587 |
3419 * A sha256 hash of the APK payload, encoded as a hex string and matching the | 3588 /// A sha256 hash of the APK payload, encoded as a hex string and matching |
3420 * output of the sha256sum command. | 3589 /// the output of the sha256sum command. |
3421 */ | |
3422 core.String sha256; | 3590 core.String sha256; |
3423 | 3591 |
3424 ApkBinary(); | 3592 ApkBinary(); |
3425 | 3593 |
3426 ApkBinary.fromJson(core.Map _json) { | 3594 ApkBinary.fromJson(core.Map _json) { |
3427 if (_json.containsKey("sha1")) { | 3595 if (_json.containsKey("sha1")) { |
3428 sha1 = _json["sha1"]; | 3596 sha1 = _json["sha1"]; |
3429 } | 3597 } |
3430 if (_json.containsKey("sha256")) { | 3598 if (_json.containsKey("sha256")) { |
3431 sha256 = _json["sha256"]; | 3599 sha256 = _json["sha256"]; |
3432 } | 3600 } |
3433 } | 3601 } |
3434 | 3602 |
3435 core.Map<core.String, core.Object> toJson() { | 3603 core.Map<core.String, core.Object> toJson() { |
3436 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3604 final core.Map<core.String, core.Object> _json = |
| 3605 new core.Map<core.String, core.Object>(); |
3437 if (sha1 != null) { | 3606 if (sha1 != null) { |
3438 _json["sha1"] = sha1; | 3607 _json["sha1"] = sha1; |
3439 } | 3608 } |
3440 if (sha256 != null) { | 3609 if (sha256 != null) { |
3441 _json["sha256"] = sha256; | 3610 _json["sha256"] = sha256; |
3442 } | 3611 } |
3443 return _json; | 3612 return _json; |
3444 } | 3613 } |
3445 } | 3614 } |
3446 | 3615 |
3447 class ApkListing { | 3616 class ApkListing { |
3448 /** The language code, in BCP 47 format (eg "en-US"). */ | 3617 /// The language code, in BCP 47 format (eg "en-US"). |
3449 core.String language; | 3618 core.String language; |
3450 /** Describe what's new in your APK. */ | 3619 |
| 3620 /// Describe what's new in your APK. |
3451 core.String recentChanges; | 3621 core.String recentChanges; |
3452 | 3622 |
3453 ApkListing(); | 3623 ApkListing(); |
3454 | 3624 |
3455 ApkListing.fromJson(core.Map _json) { | 3625 ApkListing.fromJson(core.Map _json) { |
3456 if (_json.containsKey("language")) { | 3626 if (_json.containsKey("language")) { |
3457 language = _json["language"]; | 3627 language = _json["language"]; |
3458 } | 3628 } |
3459 if (_json.containsKey("recentChanges")) { | 3629 if (_json.containsKey("recentChanges")) { |
3460 recentChanges = _json["recentChanges"]; | 3630 recentChanges = _json["recentChanges"]; |
3461 } | 3631 } |
3462 } | 3632 } |
3463 | 3633 |
3464 core.Map<core.String, core.Object> toJson() { | 3634 core.Map<core.String, core.Object> toJson() { |
3465 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3635 final core.Map<core.String, core.Object> _json = |
| 3636 new core.Map<core.String, core.Object>(); |
3466 if (language != null) { | 3637 if (language != null) { |
3467 _json["language"] = language; | 3638 _json["language"] = language; |
3468 } | 3639 } |
3469 if (recentChanges != null) { | 3640 if (recentChanges != null) { |
3470 _json["recentChanges"] = recentChanges; | 3641 _json["recentChanges"] = recentChanges; |
3471 } | 3642 } |
3472 return _json; | 3643 return _json; |
3473 } | 3644 } |
3474 } | 3645 } |
3475 | 3646 |
3476 class ApkListingsListResponse { | 3647 class ApkListingsListResponse { |
3477 /** | 3648 /// Identifies what kind of resource this is. Value: the fixed string |
3478 * Identifies what kind of resource this is. Value: the fixed string | 3649 /// "androidpublisher#apkListingsListResponse". |
3479 * "androidpublisher#apkListingsListResponse". | |
3480 */ | |
3481 core.String kind; | 3650 core.String kind; |
3482 core.List<ApkListing> listings; | 3651 core.List<ApkListing> listings; |
3483 | 3652 |
3484 ApkListingsListResponse(); | 3653 ApkListingsListResponse(); |
3485 | 3654 |
3486 ApkListingsListResponse.fromJson(core.Map _json) { | 3655 ApkListingsListResponse.fromJson(core.Map _json) { |
3487 if (_json.containsKey("kind")) { | 3656 if (_json.containsKey("kind")) { |
3488 kind = _json["kind"]; | 3657 kind = _json["kind"]; |
3489 } | 3658 } |
3490 if (_json.containsKey("listings")) { | 3659 if (_json.containsKey("listings")) { |
3491 listings = _json["listings"].map((value) => new ApkListing.fromJson(value)
).toList(); | 3660 listings = _json["listings"] |
| 3661 .map((value) => new ApkListing.fromJson(value)) |
| 3662 .toList(); |
3492 } | 3663 } |
3493 } | 3664 } |
3494 | 3665 |
3495 core.Map<core.String, core.Object> toJson() { | 3666 core.Map<core.String, core.Object> toJson() { |
3496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3667 final core.Map<core.String, core.Object> _json = |
| 3668 new core.Map<core.String, core.Object>(); |
3497 if (kind != null) { | 3669 if (kind != null) { |
3498 _json["kind"] = kind; | 3670 _json["kind"] = kind; |
3499 } | 3671 } |
3500 if (listings != null) { | 3672 if (listings != null) { |
3501 _json["listings"] = listings.map((value) => (value).toJson()).toList(); | 3673 _json["listings"] = listings.map((value) => (value).toJson()).toList(); |
3502 } | 3674 } |
3503 return _json; | 3675 return _json; |
3504 } | 3676 } |
3505 } | 3677 } |
3506 | 3678 |
3507 class ApksAddExternallyHostedRequest { | 3679 class ApksAddExternallyHostedRequest { |
3508 /** The definition of the externally-hosted APK and where it is located. */ | 3680 /// The definition of the externally-hosted APK and where it is located. |
3509 ExternallyHostedApk externallyHostedApk; | 3681 ExternallyHostedApk externallyHostedApk; |
3510 | 3682 |
3511 ApksAddExternallyHostedRequest(); | 3683 ApksAddExternallyHostedRequest(); |
3512 | 3684 |
3513 ApksAddExternallyHostedRequest.fromJson(core.Map _json) { | 3685 ApksAddExternallyHostedRequest.fromJson(core.Map _json) { |
3514 if (_json.containsKey("externallyHostedApk")) { | 3686 if (_json.containsKey("externallyHostedApk")) { |
3515 externallyHostedApk = new ExternallyHostedApk.fromJson(_json["externallyHo
stedApk"]); | 3687 externallyHostedApk = |
| 3688 new ExternallyHostedApk.fromJson(_json["externallyHostedApk"]); |
3516 } | 3689 } |
3517 } | 3690 } |
3518 | 3691 |
3519 core.Map<core.String, core.Object> toJson() { | 3692 core.Map<core.String, core.Object> toJson() { |
3520 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3693 final core.Map<core.String, core.Object> _json = |
| 3694 new core.Map<core.String, core.Object>(); |
3521 if (externallyHostedApk != null) { | 3695 if (externallyHostedApk != null) { |
3522 _json["externallyHostedApk"] = (externallyHostedApk).toJson(); | 3696 _json["externallyHostedApk"] = (externallyHostedApk).toJson(); |
3523 } | 3697 } |
3524 return _json; | 3698 return _json; |
3525 } | 3699 } |
3526 } | 3700 } |
3527 | 3701 |
3528 class ApksAddExternallyHostedResponse { | 3702 class ApksAddExternallyHostedResponse { |
3529 /** The definition of the externally-hosted APK and where it is located. */ | 3703 /// The definition of the externally-hosted APK and where it is located. |
3530 ExternallyHostedApk externallyHostedApk; | 3704 ExternallyHostedApk externallyHostedApk; |
3531 | 3705 |
3532 ApksAddExternallyHostedResponse(); | 3706 ApksAddExternallyHostedResponse(); |
3533 | 3707 |
3534 ApksAddExternallyHostedResponse.fromJson(core.Map _json) { | 3708 ApksAddExternallyHostedResponse.fromJson(core.Map _json) { |
3535 if (_json.containsKey("externallyHostedApk")) { | 3709 if (_json.containsKey("externallyHostedApk")) { |
3536 externallyHostedApk = new ExternallyHostedApk.fromJson(_json["externallyHo
stedApk"]); | 3710 externallyHostedApk = |
| 3711 new ExternallyHostedApk.fromJson(_json["externallyHostedApk"]); |
3537 } | 3712 } |
3538 } | 3713 } |
3539 | 3714 |
3540 core.Map<core.String, core.Object> toJson() { | 3715 core.Map<core.String, core.Object> toJson() { |
3541 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3716 final core.Map<core.String, core.Object> _json = |
| 3717 new core.Map<core.String, core.Object>(); |
3542 if (externallyHostedApk != null) { | 3718 if (externallyHostedApk != null) { |
3543 _json["externallyHostedApk"] = (externallyHostedApk).toJson(); | 3719 _json["externallyHostedApk"] = (externallyHostedApk).toJson(); |
3544 } | 3720 } |
3545 return _json; | 3721 return _json; |
3546 } | 3722 } |
3547 } | 3723 } |
3548 | 3724 |
3549 class ApksListResponse { | 3725 class ApksListResponse { |
3550 core.List<Apk> apks; | 3726 core.List<Apk> apks; |
3551 /** | 3727 |
3552 * Identifies what kind of resource this is. Value: the fixed string | 3728 /// Identifies what kind of resource this is. Value: the fixed string |
3553 * "androidpublisher#apksListResponse". | 3729 /// "androidpublisher#apksListResponse". |
3554 */ | |
3555 core.String kind; | 3730 core.String kind; |
3556 | 3731 |
3557 ApksListResponse(); | 3732 ApksListResponse(); |
3558 | 3733 |
3559 ApksListResponse.fromJson(core.Map _json) { | 3734 ApksListResponse.fromJson(core.Map _json) { |
3560 if (_json.containsKey("apks")) { | 3735 if (_json.containsKey("apks")) { |
3561 apks = _json["apks"].map((value) => new Apk.fromJson(value)).toList(); | 3736 apks = _json["apks"].map((value) => new Apk.fromJson(value)).toList(); |
3562 } | 3737 } |
3563 if (_json.containsKey("kind")) { | 3738 if (_json.containsKey("kind")) { |
3564 kind = _json["kind"]; | 3739 kind = _json["kind"]; |
3565 } | 3740 } |
3566 } | 3741 } |
3567 | 3742 |
3568 core.Map<core.String, core.Object> toJson() { | 3743 core.Map<core.String, core.Object> toJson() { |
3569 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3744 final core.Map<core.String, core.Object> _json = |
| 3745 new core.Map<core.String, core.Object>(); |
3570 if (apks != null) { | 3746 if (apks != null) { |
3571 _json["apks"] = apks.map((value) => (value).toJson()).toList(); | 3747 _json["apks"] = apks.map((value) => (value).toJson()).toList(); |
3572 } | 3748 } |
3573 if (kind != null) { | 3749 if (kind != null) { |
3574 _json["kind"] = kind; | 3750 _json["kind"] = kind; |
3575 } | 3751 } |
3576 return _json; | 3752 return _json; |
3577 } | 3753 } |
3578 } | 3754 } |
3579 | 3755 |
3580 class AppDetails { | 3756 class AppDetails { |
3581 /** The user-visible support email for this app. */ | 3757 /// The user-visible support email for this app. |
3582 core.String contactEmail; | 3758 core.String contactEmail; |
3583 /** The user-visible support telephone number for this app. */ | 3759 |
| 3760 /// The user-visible support telephone number for this app. |
3584 core.String contactPhone; | 3761 core.String contactPhone; |
3585 /** The user-visible website for this app. */ | 3762 |
| 3763 /// The user-visible website for this app. |
3586 core.String contactWebsite; | 3764 core.String contactWebsite; |
3587 /** Default language code, in BCP 47 format (eg "en-US"). */ | 3765 |
| 3766 /// Default language code, in BCP 47 format (eg "en-US"). |
3588 core.String defaultLanguage; | 3767 core.String defaultLanguage; |
3589 | 3768 |
3590 AppDetails(); | 3769 AppDetails(); |
3591 | 3770 |
3592 AppDetails.fromJson(core.Map _json) { | 3771 AppDetails.fromJson(core.Map _json) { |
3593 if (_json.containsKey("contactEmail")) { | 3772 if (_json.containsKey("contactEmail")) { |
3594 contactEmail = _json["contactEmail"]; | 3773 contactEmail = _json["contactEmail"]; |
3595 } | 3774 } |
3596 if (_json.containsKey("contactPhone")) { | 3775 if (_json.containsKey("contactPhone")) { |
3597 contactPhone = _json["contactPhone"]; | 3776 contactPhone = _json["contactPhone"]; |
3598 } | 3777 } |
3599 if (_json.containsKey("contactWebsite")) { | 3778 if (_json.containsKey("contactWebsite")) { |
3600 contactWebsite = _json["contactWebsite"]; | 3779 contactWebsite = _json["contactWebsite"]; |
3601 } | 3780 } |
3602 if (_json.containsKey("defaultLanguage")) { | 3781 if (_json.containsKey("defaultLanguage")) { |
3603 defaultLanguage = _json["defaultLanguage"]; | 3782 defaultLanguage = _json["defaultLanguage"]; |
3604 } | 3783 } |
3605 } | 3784 } |
3606 | 3785 |
3607 core.Map<core.String, core.Object> toJson() { | 3786 core.Map<core.String, core.Object> toJson() { |
3608 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3787 final core.Map<core.String, core.Object> _json = |
| 3788 new core.Map<core.String, core.Object>(); |
3609 if (contactEmail != null) { | 3789 if (contactEmail != null) { |
3610 _json["contactEmail"] = contactEmail; | 3790 _json["contactEmail"] = contactEmail; |
3611 } | 3791 } |
3612 if (contactPhone != null) { | 3792 if (contactPhone != null) { |
3613 _json["contactPhone"] = contactPhone; | 3793 _json["contactPhone"] = contactPhone; |
3614 } | 3794 } |
3615 if (contactWebsite != null) { | 3795 if (contactWebsite != null) { |
3616 _json["contactWebsite"] = contactWebsite; | 3796 _json["contactWebsite"] = contactWebsite; |
3617 } | 3797 } |
3618 if (defaultLanguage != null) { | 3798 if (defaultLanguage != null) { |
3619 _json["defaultLanguage"] = defaultLanguage; | 3799 _json["defaultLanguage"] = defaultLanguage; |
3620 } | 3800 } |
3621 return _json; | 3801 return _json; |
3622 } | 3802 } |
3623 } | 3803 } |
3624 | 3804 |
3625 /** | 3805 /// Represents an edit of an app. An edit allows clients to make multiple |
3626 * Represents an edit of an app. An edit allows clients to make multiple changes | 3806 /// changes before committing them in one operation. |
3627 * before committing them in one operation. | |
3628 */ | |
3629 class AppEdit { | 3807 class AppEdit { |
3630 /** | 3808 /// The time at which the edit will expire and will be no longer valid for |
3631 * The time at which the edit will expire and will be no longer valid for use | 3809 /// use in any subsequent API calls (encoded as seconds since the Epoch). |
3632 * in any subsequent API calls (encoded as seconds since the Epoch). | |
3633 */ | |
3634 core.String expiryTimeSeconds; | 3810 core.String expiryTimeSeconds; |
3635 /** The ID of the edit that can be used in subsequent API calls. */ | 3811 |
| 3812 /// The ID of the edit that can be used in subsequent API calls. |
3636 core.String id; | 3813 core.String id; |
3637 | 3814 |
3638 AppEdit(); | 3815 AppEdit(); |
3639 | 3816 |
3640 AppEdit.fromJson(core.Map _json) { | 3817 AppEdit.fromJson(core.Map _json) { |
3641 if (_json.containsKey("expiryTimeSeconds")) { | 3818 if (_json.containsKey("expiryTimeSeconds")) { |
3642 expiryTimeSeconds = _json["expiryTimeSeconds"]; | 3819 expiryTimeSeconds = _json["expiryTimeSeconds"]; |
3643 } | 3820 } |
3644 if (_json.containsKey("id")) { | 3821 if (_json.containsKey("id")) { |
3645 id = _json["id"]; | 3822 id = _json["id"]; |
3646 } | 3823 } |
3647 } | 3824 } |
3648 | 3825 |
3649 core.Map<core.String, core.Object> toJson() { | 3826 core.Map<core.String, core.Object> toJson() { |
3650 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3827 final core.Map<core.String, core.Object> _json = |
| 3828 new core.Map<core.String, core.Object>(); |
3651 if (expiryTimeSeconds != null) { | 3829 if (expiryTimeSeconds != null) { |
3652 _json["expiryTimeSeconds"] = expiryTimeSeconds; | 3830 _json["expiryTimeSeconds"] = expiryTimeSeconds; |
3653 } | 3831 } |
3654 if (id != null) { | 3832 if (id != null) { |
3655 _json["id"] = id; | 3833 _json["id"] = id; |
3656 } | 3834 } |
3657 return _json; | 3835 return _json; |
3658 } | 3836 } |
3659 } | 3837 } |
3660 | 3838 |
3661 class Comment { | 3839 class Comment { |
3662 /** A comment from a developer. */ | 3840 /// A comment from a developer. |
3663 DeveloperComment developerComment; | 3841 DeveloperComment developerComment; |
3664 /** A comment from a user. */ | 3842 |
| 3843 /// A comment from a user. |
3665 UserComment userComment; | 3844 UserComment userComment; |
3666 | 3845 |
3667 Comment(); | 3846 Comment(); |
3668 | 3847 |
3669 Comment.fromJson(core.Map _json) { | 3848 Comment.fromJson(core.Map _json) { |
3670 if (_json.containsKey("developerComment")) { | 3849 if (_json.containsKey("developerComment")) { |
3671 developerComment = new DeveloperComment.fromJson(_json["developerComment"]
); | 3850 developerComment = |
| 3851 new DeveloperComment.fromJson(_json["developerComment"]); |
3672 } | 3852 } |
3673 if (_json.containsKey("userComment")) { | 3853 if (_json.containsKey("userComment")) { |
3674 userComment = new UserComment.fromJson(_json["userComment"]); | 3854 userComment = new UserComment.fromJson(_json["userComment"]); |
3675 } | 3855 } |
3676 } | 3856 } |
3677 | 3857 |
3678 core.Map<core.String, core.Object> toJson() { | 3858 core.Map<core.String, core.Object> toJson() { |
3679 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3859 final core.Map<core.String, core.Object> _json = |
| 3860 new core.Map<core.String, core.Object>(); |
3680 if (developerComment != null) { | 3861 if (developerComment != null) { |
3681 _json["developerComment"] = (developerComment).toJson(); | 3862 _json["developerComment"] = (developerComment).toJson(); |
3682 } | 3863 } |
3683 if (userComment != null) { | 3864 if (userComment != null) { |
3684 _json["userComment"] = (userComment).toJson(); | 3865 _json["userComment"] = (userComment).toJson(); |
3685 } | 3866 } |
3686 return _json; | 3867 return _json; |
3687 } | 3868 } |
3688 } | 3869 } |
3689 | 3870 |
3690 /** Represents a deobfuscation file. */ | 3871 /// Represents a deobfuscation file. |
3691 class DeobfuscationFile { | 3872 class DeobfuscationFile { |
3692 /** The type of the deobfuscation file. */ | 3873 /// The type of the deobfuscation file. |
3693 core.String symbolType; | 3874 core.String symbolType; |
3694 | 3875 |
3695 DeobfuscationFile(); | 3876 DeobfuscationFile(); |
3696 | 3877 |
3697 DeobfuscationFile.fromJson(core.Map _json) { | 3878 DeobfuscationFile.fromJson(core.Map _json) { |
3698 if (_json.containsKey("symbolType")) { | 3879 if (_json.containsKey("symbolType")) { |
3699 symbolType = _json["symbolType"]; | 3880 symbolType = _json["symbolType"]; |
3700 } | 3881 } |
3701 } | 3882 } |
3702 | 3883 |
3703 core.Map<core.String, core.Object> toJson() { | 3884 core.Map<core.String, core.Object> toJson() { |
3704 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3885 final core.Map<core.String, core.Object> _json = |
| 3886 new core.Map<core.String, core.Object>(); |
3705 if (symbolType != null) { | 3887 if (symbolType != null) { |
3706 _json["symbolType"] = symbolType; | 3888 _json["symbolType"] = symbolType; |
3707 } | 3889 } |
3708 return _json; | 3890 return _json; |
3709 } | 3891 } |
3710 } | 3892 } |
3711 | 3893 |
3712 class DeobfuscationFilesUploadResponse { | 3894 class DeobfuscationFilesUploadResponse { |
3713 DeobfuscationFile deobfuscationFile; | 3895 DeobfuscationFile deobfuscationFile; |
3714 | 3896 |
3715 DeobfuscationFilesUploadResponse(); | 3897 DeobfuscationFilesUploadResponse(); |
3716 | 3898 |
3717 DeobfuscationFilesUploadResponse.fromJson(core.Map _json) { | 3899 DeobfuscationFilesUploadResponse.fromJson(core.Map _json) { |
3718 if (_json.containsKey("deobfuscationFile")) { | 3900 if (_json.containsKey("deobfuscationFile")) { |
3719 deobfuscationFile = new DeobfuscationFile.fromJson(_json["deobfuscationFil
e"]); | 3901 deobfuscationFile = |
| 3902 new DeobfuscationFile.fromJson(_json["deobfuscationFile"]); |
3720 } | 3903 } |
3721 } | 3904 } |
3722 | 3905 |
3723 core.Map<core.String, core.Object> toJson() { | 3906 core.Map<core.String, core.Object> toJson() { |
3724 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3907 final core.Map<core.String, core.Object> _json = |
| 3908 new core.Map<core.String, core.Object>(); |
3725 if (deobfuscationFile != null) { | 3909 if (deobfuscationFile != null) { |
3726 _json["deobfuscationFile"] = (deobfuscationFile).toJson(); | 3910 _json["deobfuscationFile"] = (deobfuscationFile).toJson(); |
3727 } | 3911 } |
3728 return _json; | 3912 return _json; |
3729 } | 3913 } |
3730 } | 3914 } |
3731 | 3915 |
3732 class DeveloperComment { | 3916 class DeveloperComment { |
3733 /** The last time at which this comment was updated. */ | 3917 /// The last time at which this comment was updated. |
3734 Timestamp lastModified; | 3918 Timestamp lastModified; |
3735 /** The content of the comment, i.e. reply body. */ | 3919 |
| 3920 /// The content of the comment, i.e. reply body. |
3736 core.String text; | 3921 core.String text; |
3737 | 3922 |
3738 DeveloperComment(); | 3923 DeveloperComment(); |
3739 | 3924 |
3740 DeveloperComment.fromJson(core.Map _json) { | 3925 DeveloperComment.fromJson(core.Map _json) { |
3741 if (_json.containsKey("lastModified")) { | 3926 if (_json.containsKey("lastModified")) { |
3742 lastModified = new Timestamp.fromJson(_json["lastModified"]); | 3927 lastModified = new Timestamp.fromJson(_json["lastModified"]); |
3743 } | 3928 } |
3744 if (_json.containsKey("text")) { | 3929 if (_json.containsKey("text")) { |
3745 text = _json["text"]; | 3930 text = _json["text"]; |
3746 } | 3931 } |
3747 } | 3932 } |
3748 | 3933 |
3749 core.Map<core.String, core.Object> toJson() { | 3934 core.Map<core.String, core.Object> toJson() { |
3750 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3935 final core.Map<core.String, core.Object> _json = |
| 3936 new core.Map<core.String, core.Object>(); |
3751 if (lastModified != null) { | 3937 if (lastModified != null) { |
3752 _json["lastModified"] = (lastModified).toJson(); | 3938 _json["lastModified"] = (lastModified).toJson(); |
3753 } | 3939 } |
3754 if (text != null) { | 3940 if (text != null) { |
3755 _json["text"] = text; | 3941 _json["text"] = text; |
3756 } | 3942 } |
3757 return _json; | 3943 return _json; |
3758 } | 3944 } |
3759 } | 3945 } |
3760 | 3946 |
3761 class DeviceMetadata { | 3947 class DeviceMetadata { |
3762 /** Device CPU make e.g. "Qualcomm" */ | 3948 /// Device CPU make e.g. "Qualcomm" |
3763 core.String cpuMake; | 3949 core.String cpuMake; |
3764 /** Device CPU model e.g. "MSM8974" */ | 3950 |
| 3951 /// Device CPU model e.g. "MSM8974" |
3765 core.String cpuModel; | 3952 core.String cpuModel; |
3766 /** Device class (e.g. tablet) */ | 3953 |
| 3954 /// Device class (e.g. tablet) |
3767 core.String deviceClass; | 3955 core.String deviceClass; |
3768 /** OpenGL version */ | 3956 |
| 3957 /// OpenGL version |
3769 core.int glEsVersion; | 3958 core.int glEsVersion; |
3770 /** Device manufacturer (e.g. Motorola) */ | 3959 |
| 3960 /// Device manufacturer (e.g. Motorola) |
3771 core.String manufacturer; | 3961 core.String manufacturer; |
3772 /** Comma separated list of native platforms (e.g. "arm", "arm7") */ | 3962 |
| 3963 /// Comma separated list of native platforms (e.g. "arm", "arm7") |
3773 core.String nativePlatform; | 3964 core.String nativePlatform; |
3774 /** Device model name (e.g. Droid) */ | 3965 |
| 3966 /// Device model name (e.g. Droid) |
3775 core.String productName; | 3967 core.String productName; |
3776 /** Device RAM in Megabytes e.g. "2048" */ | 3968 |
| 3969 /// Device RAM in Megabytes e.g. "2048" |
3777 core.int ramMb; | 3970 core.int ramMb; |
3778 /** Screen density in DPI */ | 3971 |
| 3972 /// Screen density in DPI |
3779 core.int screenDensityDpi; | 3973 core.int screenDensityDpi; |
3780 /** Screen height in pixels */ | 3974 |
| 3975 /// Screen height in pixels |
3781 core.int screenHeightPx; | 3976 core.int screenHeightPx; |
3782 /** Screen width in pixels */ | 3977 |
| 3978 /// Screen width in pixels |
3783 core.int screenWidthPx; | 3979 core.int screenWidthPx; |
3784 | 3980 |
3785 DeviceMetadata(); | 3981 DeviceMetadata(); |
3786 | 3982 |
3787 DeviceMetadata.fromJson(core.Map _json) { | 3983 DeviceMetadata.fromJson(core.Map _json) { |
3788 if (_json.containsKey("cpuMake")) { | 3984 if (_json.containsKey("cpuMake")) { |
3789 cpuMake = _json["cpuMake"]; | 3985 cpuMake = _json["cpuMake"]; |
3790 } | 3986 } |
3791 if (_json.containsKey("cpuModel")) { | 3987 if (_json.containsKey("cpuModel")) { |
3792 cpuModel = _json["cpuModel"]; | 3988 cpuModel = _json["cpuModel"]; |
(...skipping 21 matching lines...) Expand all Loading... |
3814 } | 4010 } |
3815 if (_json.containsKey("screenHeightPx")) { | 4011 if (_json.containsKey("screenHeightPx")) { |
3816 screenHeightPx = _json["screenHeightPx"]; | 4012 screenHeightPx = _json["screenHeightPx"]; |
3817 } | 4013 } |
3818 if (_json.containsKey("screenWidthPx")) { | 4014 if (_json.containsKey("screenWidthPx")) { |
3819 screenWidthPx = _json["screenWidthPx"]; | 4015 screenWidthPx = _json["screenWidthPx"]; |
3820 } | 4016 } |
3821 } | 4017 } |
3822 | 4018 |
3823 core.Map<core.String, core.Object> toJson() { | 4019 core.Map<core.String, core.Object> toJson() { |
3824 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4020 final core.Map<core.String, core.Object> _json = |
| 4021 new core.Map<core.String, core.Object>(); |
3825 if (cpuMake != null) { | 4022 if (cpuMake != null) { |
3826 _json["cpuMake"] = cpuMake; | 4023 _json["cpuMake"] = cpuMake; |
3827 } | 4024 } |
3828 if (cpuModel != null) { | 4025 if (cpuModel != null) { |
3829 _json["cpuModel"] = cpuModel; | 4026 _json["cpuModel"] = cpuModel; |
3830 } | 4027 } |
3831 if (deviceClass != null) { | 4028 if (deviceClass != null) { |
3832 _json["deviceClass"] = deviceClass; | 4029 _json["deviceClass"] = deviceClass; |
3833 } | 4030 } |
3834 if (glEsVersion != null) { | 4031 if (glEsVersion != null) { |
(...skipping 17 matching lines...) Expand all Loading... |
3852 if (screenHeightPx != null) { | 4049 if (screenHeightPx != null) { |
3853 _json["screenHeightPx"] = screenHeightPx; | 4050 _json["screenHeightPx"] = screenHeightPx; |
3854 } | 4051 } |
3855 if (screenWidthPx != null) { | 4052 if (screenWidthPx != null) { |
3856 _json["screenWidthPx"] = screenWidthPx; | 4053 _json["screenWidthPx"] = screenWidthPx; |
3857 } | 4054 } |
3858 return _json; | 4055 return _json; |
3859 } | 4056 } |
3860 } | 4057 } |
3861 | 4058 |
3862 /** | 4059 /// An Entitlement resource indicates a user's current entitlement to an inapp |
3863 * An Entitlement resource indicates a user's current entitlement to an inapp | 4060 /// item or subscription. |
3864 * item or subscription. | |
3865 */ | |
3866 class Entitlement { | 4061 class Entitlement { |
3867 /** | 4062 /// This kind represents an entitlement object in the androidpublisher |
3868 * This kind represents an entitlement object in the androidpublisher service. | 4063 /// service. |
3869 */ | |
3870 core.String kind; | 4064 core.String kind; |
3871 /** The SKU of the product. */ | 4065 |
| 4066 /// The SKU of the product. |
3872 core.String productId; | 4067 core.String productId; |
3873 /** | 4068 |
3874 * The type of the inapp product. Possible values are: | 4069 /// The type of the inapp product. Possible values are: |
3875 * - In-app item: "inapp" | 4070 /// - In-app item: "inapp" |
3876 * - Subscription: "subs" | 4071 /// - Subscription: "subs" |
3877 */ | |
3878 core.String productType; | 4072 core.String productType; |
3879 /** | 4073 |
3880 * The token which can be verified using the subscriptions or products API. | 4074 /// The token which can be verified using the subscriptions or products API. |
3881 */ | |
3882 core.String token; | 4075 core.String token; |
3883 | 4076 |
3884 Entitlement(); | 4077 Entitlement(); |
3885 | 4078 |
3886 Entitlement.fromJson(core.Map _json) { | 4079 Entitlement.fromJson(core.Map _json) { |
3887 if (_json.containsKey("kind")) { | 4080 if (_json.containsKey("kind")) { |
3888 kind = _json["kind"]; | 4081 kind = _json["kind"]; |
3889 } | 4082 } |
3890 if (_json.containsKey("productId")) { | 4083 if (_json.containsKey("productId")) { |
3891 productId = _json["productId"]; | 4084 productId = _json["productId"]; |
3892 } | 4085 } |
3893 if (_json.containsKey("productType")) { | 4086 if (_json.containsKey("productType")) { |
3894 productType = _json["productType"]; | 4087 productType = _json["productType"]; |
3895 } | 4088 } |
3896 if (_json.containsKey("token")) { | 4089 if (_json.containsKey("token")) { |
3897 token = _json["token"]; | 4090 token = _json["token"]; |
3898 } | 4091 } |
3899 } | 4092 } |
3900 | 4093 |
3901 core.Map<core.String, core.Object> toJson() { | 4094 core.Map<core.String, core.Object> toJson() { |
3902 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4095 final core.Map<core.String, core.Object> _json = |
| 4096 new core.Map<core.String, core.Object>(); |
3903 if (kind != null) { | 4097 if (kind != null) { |
3904 _json["kind"] = kind; | 4098 _json["kind"] = kind; |
3905 } | 4099 } |
3906 if (productId != null) { | 4100 if (productId != null) { |
3907 _json["productId"] = productId; | 4101 _json["productId"] = productId; |
3908 } | 4102 } |
3909 if (productType != null) { | 4103 if (productType != null) { |
3910 _json["productType"] = productType; | 4104 _json["productType"] = productType; |
3911 } | 4105 } |
3912 if (token != null) { | 4106 if (token != null) { |
3913 _json["token"] = token; | 4107 _json["token"] = token; |
3914 } | 4108 } |
3915 return _json; | 4109 return _json; |
3916 } | 4110 } |
3917 } | 4111 } |
3918 | 4112 |
3919 class EntitlementsListResponse { | 4113 class EntitlementsListResponse { |
3920 PageInfo pageInfo; | 4114 PageInfo pageInfo; |
3921 core.List<Entitlement> resources; | 4115 core.List<Entitlement> resources; |
3922 TokenPagination tokenPagination; | 4116 TokenPagination tokenPagination; |
3923 | 4117 |
3924 EntitlementsListResponse(); | 4118 EntitlementsListResponse(); |
3925 | 4119 |
3926 EntitlementsListResponse.fromJson(core.Map _json) { | 4120 EntitlementsListResponse.fromJson(core.Map _json) { |
3927 if (_json.containsKey("pageInfo")) { | 4121 if (_json.containsKey("pageInfo")) { |
3928 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 4122 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
3929 } | 4123 } |
3930 if (_json.containsKey("resources")) { | 4124 if (_json.containsKey("resources")) { |
3931 resources = _json["resources"].map((value) => new Entitlement.fromJson(val
ue)).toList(); | 4125 resources = _json["resources"] |
| 4126 .map((value) => new Entitlement.fromJson(value)) |
| 4127 .toList(); |
3932 } | 4128 } |
3933 if (_json.containsKey("tokenPagination")) { | 4129 if (_json.containsKey("tokenPagination")) { |
3934 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 4130 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
3935 } | 4131 } |
3936 } | 4132 } |
3937 | 4133 |
3938 core.Map<core.String, core.Object> toJson() { | 4134 core.Map<core.String, core.Object> toJson() { |
3939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4135 final core.Map<core.String, core.Object> _json = |
| 4136 new core.Map<core.String, core.Object>(); |
3940 if (pageInfo != null) { | 4137 if (pageInfo != null) { |
3941 _json["pageInfo"] = (pageInfo).toJson(); | 4138 _json["pageInfo"] = (pageInfo).toJson(); |
3942 } | 4139 } |
3943 if (resources != null) { | 4140 if (resources != null) { |
3944 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 4141 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
3945 } | 4142 } |
3946 if (tokenPagination != null) { | 4143 if (tokenPagination != null) { |
3947 _json["tokenPagination"] = (tokenPagination).toJson(); | 4144 _json["tokenPagination"] = (tokenPagination).toJson(); |
3948 } | 4145 } |
3949 return _json; | 4146 return _json; |
3950 } | 4147 } |
3951 } | 4148 } |
3952 | 4149 |
3953 class ExpansionFile { | 4150 class ExpansionFile { |
3954 /** | 4151 /// If set this field indicates that this APK has an Expansion File uploaded |
3955 * If set this field indicates that this APK has an Expansion File uploaded to | 4152 /// to it: this APK does not reference another APK's Expansion File. The |
3956 * it: this APK does not reference another APK's Expansion File. The field's | 4153 /// field's value is the size of the uploaded Expansion File in bytes. |
3957 * value is the size of the uploaded Expansion File in bytes. | |
3958 */ | |
3959 core.String fileSize; | 4154 core.String fileSize; |
3960 /** | 4155 |
3961 * If set this APK's Expansion File references another APK's Expansion File. | 4156 /// If set this APK's Expansion File references another APK's Expansion File. |
3962 * The file_size field will not be set. | 4157 /// The file_size field will not be set. |
3963 */ | |
3964 core.int referencesVersion; | 4158 core.int referencesVersion; |
3965 | 4159 |
3966 ExpansionFile(); | 4160 ExpansionFile(); |
3967 | 4161 |
3968 ExpansionFile.fromJson(core.Map _json) { | 4162 ExpansionFile.fromJson(core.Map _json) { |
3969 if (_json.containsKey("fileSize")) { | 4163 if (_json.containsKey("fileSize")) { |
3970 fileSize = _json["fileSize"]; | 4164 fileSize = _json["fileSize"]; |
3971 } | 4165 } |
3972 if (_json.containsKey("referencesVersion")) { | 4166 if (_json.containsKey("referencesVersion")) { |
3973 referencesVersion = _json["referencesVersion"]; | 4167 referencesVersion = _json["referencesVersion"]; |
3974 } | 4168 } |
3975 } | 4169 } |
3976 | 4170 |
3977 core.Map<core.String, core.Object> toJson() { | 4171 core.Map<core.String, core.Object> toJson() { |
3978 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4172 final core.Map<core.String, core.Object> _json = |
| 4173 new core.Map<core.String, core.Object>(); |
3979 if (fileSize != null) { | 4174 if (fileSize != null) { |
3980 _json["fileSize"] = fileSize; | 4175 _json["fileSize"] = fileSize; |
3981 } | 4176 } |
3982 if (referencesVersion != null) { | 4177 if (referencesVersion != null) { |
3983 _json["referencesVersion"] = referencesVersion; | 4178 _json["referencesVersion"] = referencesVersion; |
3984 } | 4179 } |
3985 return _json; | 4180 return _json; |
3986 } | 4181 } |
3987 } | 4182 } |
3988 | 4183 |
3989 class ExpansionFilesUploadResponse { | 4184 class ExpansionFilesUploadResponse { |
3990 ExpansionFile expansionFile; | 4185 ExpansionFile expansionFile; |
3991 | 4186 |
3992 ExpansionFilesUploadResponse(); | 4187 ExpansionFilesUploadResponse(); |
3993 | 4188 |
3994 ExpansionFilesUploadResponse.fromJson(core.Map _json) { | 4189 ExpansionFilesUploadResponse.fromJson(core.Map _json) { |
3995 if (_json.containsKey("expansionFile")) { | 4190 if (_json.containsKey("expansionFile")) { |
3996 expansionFile = new ExpansionFile.fromJson(_json["expansionFile"]); | 4191 expansionFile = new ExpansionFile.fromJson(_json["expansionFile"]); |
3997 } | 4192 } |
3998 } | 4193 } |
3999 | 4194 |
4000 core.Map<core.String, core.Object> toJson() { | 4195 core.Map<core.String, core.Object> toJson() { |
4001 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4196 final core.Map<core.String, core.Object> _json = |
| 4197 new core.Map<core.String, core.Object>(); |
4002 if (expansionFile != null) { | 4198 if (expansionFile != null) { |
4003 _json["expansionFile"] = (expansionFile).toJson(); | 4199 _json["expansionFile"] = (expansionFile).toJson(); |
4004 } | 4200 } |
4005 return _json; | 4201 return _json; |
4006 } | 4202 } |
4007 } | 4203 } |
4008 | 4204 |
4009 /** | 4205 /// Defines an APK available for this application that is hosted externally and |
4010 * Defines an APK available for this application that is hosted externally and | 4206 /// not uploaded to Google Play. This function is only available to enterprises |
4011 * not uploaded to Google Play. This function is only available to enterprises | 4207 /// who are using Google Play for Work, and whos application is restricted to |
4012 * who are using Google Play for Work, and whos application is restricted to the | 4208 /// the enterprise private channel |
4013 * enterprise private channel | |
4014 */ | |
4015 class ExternallyHostedApk { | 4209 class ExternallyHostedApk { |
4016 /** The application label. */ | 4210 /// The application label. |
4017 core.String applicationLabel; | 4211 core.String applicationLabel; |
4018 /** | 4212 |
4019 * A certificate (or array of certificates if a certificate-chain is used) | 4213 /// A certificate (or array of certificates if a certificate-chain is used) |
4020 * used to signed this APK, represented as a base64 encoded byte array. | 4214 /// used to signed this APK, represented as a base64 encoded byte array. |
4021 */ | |
4022 core.List<core.String> certificateBase64s; | 4215 core.List<core.String> certificateBase64s; |
4023 /** The URL at which the APK is hosted. This must be an https URL. */ | 4216 |
| 4217 /// The URL at which the APK is hosted. This must be an https URL. |
4024 core.String externallyHostedUrl; | 4218 core.String externallyHostedUrl; |
4025 /** | 4219 |
4026 * The SHA1 checksum of this APK, represented as a base64 encoded byte array. | 4220 /// The SHA1 checksum of this APK, represented as a base64 encoded byte |
4027 */ | 4221 /// array. |
4028 core.String fileSha1Base64; | 4222 core.String fileSha1Base64; |
4029 /** | 4223 |
4030 * The SHA256 checksum of this APK, represented as a base64 encoded byte | 4224 /// The SHA256 checksum of this APK, represented as a base64 encoded byte |
4031 * array. | 4225 /// array. |
4032 */ | |
4033 core.String fileSha256Base64; | 4226 core.String fileSha256Base64; |
4034 /** The file size in bytes of this APK. */ | 4227 |
| 4228 /// The file size in bytes of this APK. |
4035 core.String fileSize; | 4229 core.String fileSize; |
4036 /** The icon image from the APK, as a base64 encoded byte array. */ | 4230 |
| 4231 /// The icon image from the APK, as a base64 encoded byte array. |
4037 core.String iconBase64; | 4232 core.String iconBase64; |
4038 /** The maximum SDK supported by this APK (optional). */ | 4233 |
| 4234 /// The maximum SDK supported by this APK (optional). |
4039 core.int maximumSdk; | 4235 core.int maximumSdk; |
4040 /** The minimum SDK targeted by this APK. */ | 4236 |
| 4237 /// The minimum SDK targeted by this APK. |
4041 core.int minimumSdk; | 4238 core.int minimumSdk; |
4042 /** The native code environments supported by this APK (optional). */ | 4239 |
| 4240 /// The native code environments supported by this APK (optional). |
4043 core.List<core.String> nativeCodes; | 4241 core.List<core.String> nativeCodes; |
4044 /** The package name. */ | 4242 |
| 4243 /// The package name. |
4045 core.String packageName; | 4244 core.String packageName; |
4046 /** The features required by this APK (optional). */ | 4245 |
| 4246 /// The features required by this APK (optional). |
4047 core.List<core.String> usesFeatures; | 4247 core.List<core.String> usesFeatures; |
4048 /** The permissions requested by this APK. */ | 4248 |
| 4249 /// The permissions requested by this APK. |
4049 core.List<ExternallyHostedApkUsesPermission> usesPermissions; | 4250 core.List<ExternallyHostedApkUsesPermission> usesPermissions; |
4050 /** The version code of this APK. */ | 4251 |
| 4252 /// The version code of this APK. |
4051 core.int versionCode; | 4253 core.int versionCode; |
4052 /** The version name of this APK. */ | 4254 |
| 4255 /// The version name of this APK. |
4053 core.String versionName; | 4256 core.String versionName; |
4054 | 4257 |
4055 ExternallyHostedApk(); | 4258 ExternallyHostedApk(); |
4056 | 4259 |
4057 ExternallyHostedApk.fromJson(core.Map _json) { | 4260 ExternallyHostedApk.fromJson(core.Map _json) { |
4058 if (_json.containsKey("applicationLabel")) { | 4261 if (_json.containsKey("applicationLabel")) { |
4059 applicationLabel = _json["applicationLabel"]; | 4262 applicationLabel = _json["applicationLabel"]; |
4060 } | 4263 } |
4061 if (_json.containsKey("certificateBase64s")) { | 4264 if (_json.containsKey("certificateBase64s")) { |
4062 certificateBase64s = _json["certificateBase64s"]; | 4265 certificateBase64s = _json["certificateBase64s"]; |
(...skipping 22 matching lines...) Expand all Loading... |
4085 if (_json.containsKey("nativeCodes")) { | 4288 if (_json.containsKey("nativeCodes")) { |
4086 nativeCodes = _json["nativeCodes"]; | 4289 nativeCodes = _json["nativeCodes"]; |
4087 } | 4290 } |
4088 if (_json.containsKey("packageName")) { | 4291 if (_json.containsKey("packageName")) { |
4089 packageName = _json["packageName"]; | 4292 packageName = _json["packageName"]; |
4090 } | 4293 } |
4091 if (_json.containsKey("usesFeatures")) { | 4294 if (_json.containsKey("usesFeatures")) { |
4092 usesFeatures = _json["usesFeatures"]; | 4295 usesFeatures = _json["usesFeatures"]; |
4093 } | 4296 } |
4094 if (_json.containsKey("usesPermissions")) { | 4297 if (_json.containsKey("usesPermissions")) { |
4095 usesPermissions = _json["usesPermissions"].map((value) => new ExternallyHo
stedApkUsesPermission.fromJson(value)).toList(); | 4298 usesPermissions = _json["usesPermissions"] |
| 4299 .map((value) => new ExternallyHostedApkUsesPermission.fromJson(value)) |
| 4300 .toList(); |
4096 } | 4301 } |
4097 if (_json.containsKey("versionCode")) { | 4302 if (_json.containsKey("versionCode")) { |
4098 versionCode = _json["versionCode"]; | 4303 versionCode = _json["versionCode"]; |
4099 } | 4304 } |
4100 if (_json.containsKey("versionName")) { | 4305 if (_json.containsKey("versionName")) { |
4101 versionName = _json["versionName"]; | 4306 versionName = _json["versionName"]; |
4102 } | 4307 } |
4103 } | 4308 } |
4104 | 4309 |
4105 core.Map<core.String, core.Object> toJson() { | 4310 core.Map<core.String, core.Object> toJson() { |
4106 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4311 final core.Map<core.String, core.Object> _json = |
| 4312 new core.Map<core.String, core.Object>(); |
4107 if (applicationLabel != null) { | 4313 if (applicationLabel != null) { |
4108 _json["applicationLabel"] = applicationLabel; | 4314 _json["applicationLabel"] = applicationLabel; |
4109 } | 4315 } |
4110 if (certificateBase64s != null) { | 4316 if (certificateBase64s != null) { |
4111 _json["certificateBase64s"] = certificateBase64s; | 4317 _json["certificateBase64s"] = certificateBase64s; |
4112 } | 4318 } |
4113 if (externallyHostedUrl != null) { | 4319 if (externallyHostedUrl != null) { |
4114 _json["externallyHostedUrl"] = externallyHostedUrl; | 4320 _json["externallyHostedUrl"] = externallyHostedUrl; |
4115 } | 4321 } |
4116 if (fileSha1Base64 != null) { | 4322 if (fileSha1Base64 != null) { |
(...skipping 17 matching lines...) Expand all Loading... |
4134 if (nativeCodes != null) { | 4340 if (nativeCodes != null) { |
4135 _json["nativeCodes"] = nativeCodes; | 4341 _json["nativeCodes"] = nativeCodes; |
4136 } | 4342 } |
4137 if (packageName != null) { | 4343 if (packageName != null) { |
4138 _json["packageName"] = packageName; | 4344 _json["packageName"] = packageName; |
4139 } | 4345 } |
4140 if (usesFeatures != null) { | 4346 if (usesFeatures != null) { |
4141 _json["usesFeatures"] = usesFeatures; | 4347 _json["usesFeatures"] = usesFeatures; |
4142 } | 4348 } |
4143 if (usesPermissions != null) { | 4349 if (usesPermissions != null) { |
4144 _json["usesPermissions"] = usesPermissions.map((value) => (value).toJson()
).toList(); | 4350 _json["usesPermissions"] = |
| 4351 usesPermissions.map((value) => (value).toJson()).toList(); |
4145 } | 4352 } |
4146 if (versionCode != null) { | 4353 if (versionCode != null) { |
4147 _json["versionCode"] = versionCode; | 4354 _json["versionCode"] = versionCode; |
4148 } | 4355 } |
4149 if (versionName != null) { | 4356 if (versionName != null) { |
4150 _json["versionName"] = versionName; | 4357 _json["versionName"] = versionName; |
4151 } | 4358 } |
4152 return _json; | 4359 return _json; |
4153 } | 4360 } |
4154 } | 4361 } |
4155 | 4362 |
4156 /** A permission used by this APK. */ | 4363 /// A permission used by this APK. |
4157 class ExternallyHostedApkUsesPermission { | 4364 class ExternallyHostedApkUsesPermission { |
4158 /** | 4365 /// Optionally, the maximum SDK version for which the permission is required. |
4159 * Optionally, the maximum SDK version for which the permission is required. | |
4160 */ | |
4161 core.int maxSdkVersion; | 4366 core.int maxSdkVersion; |
4162 /** The name of the permission requested. */ | 4367 |
| 4368 /// The name of the permission requested. |
4163 core.String name; | 4369 core.String name; |
4164 | 4370 |
4165 ExternallyHostedApkUsesPermission(); | 4371 ExternallyHostedApkUsesPermission(); |
4166 | 4372 |
4167 ExternallyHostedApkUsesPermission.fromJson(core.Map _json) { | 4373 ExternallyHostedApkUsesPermission.fromJson(core.Map _json) { |
4168 if (_json.containsKey("maxSdkVersion")) { | 4374 if (_json.containsKey("maxSdkVersion")) { |
4169 maxSdkVersion = _json["maxSdkVersion"]; | 4375 maxSdkVersion = _json["maxSdkVersion"]; |
4170 } | 4376 } |
4171 if (_json.containsKey("name")) { | 4377 if (_json.containsKey("name")) { |
4172 name = _json["name"]; | 4378 name = _json["name"]; |
4173 } | 4379 } |
4174 } | 4380 } |
4175 | 4381 |
4176 core.Map<core.String, core.Object> toJson() { | 4382 core.Map<core.String, core.Object> toJson() { |
4177 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4383 final core.Map<core.String, core.Object> _json = |
| 4384 new core.Map<core.String, core.Object>(); |
4178 if (maxSdkVersion != null) { | 4385 if (maxSdkVersion != null) { |
4179 _json["maxSdkVersion"] = maxSdkVersion; | 4386 _json["maxSdkVersion"] = maxSdkVersion; |
4180 } | 4387 } |
4181 if (name != null) { | 4388 if (name != null) { |
4182 _json["name"] = name; | 4389 _json["name"] = name; |
4183 } | 4390 } |
4184 return _json; | 4391 return _json; |
4185 } | 4392 } |
4186 } | 4393 } |
4187 | 4394 |
4188 class Image { | 4395 class Image { |
4189 /** A unique id representing this image. */ | 4396 /// A unique id representing this image. |
4190 core.String id; | 4397 core.String id; |
4191 /** A sha1 hash of the image that was uploaded. */ | 4398 |
| 4399 /// A sha1 hash of the image that was uploaded. |
4192 core.String sha1; | 4400 core.String sha1; |
4193 /** A URL that will serve a preview of the image. */ | 4401 |
| 4402 /// A URL that will serve a preview of the image. |
4194 core.String url; | 4403 core.String url; |
4195 | 4404 |
4196 Image(); | 4405 Image(); |
4197 | 4406 |
4198 Image.fromJson(core.Map _json) { | 4407 Image.fromJson(core.Map _json) { |
4199 if (_json.containsKey("id")) { | 4408 if (_json.containsKey("id")) { |
4200 id = _json["id"]; | 4409 id = _json["id"]; |
4201 } | 4410 } |
4202 if (_json.containsKey("sha1")) { | 4411 if (_json.containsKey("sha1")) { |
4203 sha1 = _json["sha1"]; | 4412 sha1 = _json["sha1"]; |
4204 } | 4413 } |
4205 if (_json.containsKey("url")) { | 4414 if (_json.containsKey("url")) { |
4206 url = _json["url"]; | 4415 url = _json["url"]; |
4207 } | 4416 } |
4208 } | 4417 } |
4209 | 4418 |
4210 core.Map<core.String, core.Object> toJson() { | 4419 core.Map<core.String, core.Object> toJson() { |
4211 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4420 final core.Map<core.String, core.Object> _json = |
| 4421 new core.Map<core.String, core.Object>(); |
4212 if (id != null) { | 4422 if (id != null) { |
4213 _json["id"] = id; | 4423 _json["id"] = id; |
4214 } | 4424 } |
4215 if (sha1 != null) { | 4425 if (sha1 != null) { |
4216 _json["sha1"] = sha1; | 4426 _json["sha1"] = sha1; |
4217 } | 4427 } |
4218 if (url != null) { | 4428 if (url != null) { |
4219 _json["url"] = url; | 4429 _json["url"] = url; |
4220 } | 4430 } |
4221 return _json; | 4431 return _json; |
4222 } | 4432 } |
4223 } | 4433 } |
4224 | 4434 |
4225 class ImagesDeleteAllResponse { | 4435 class ImagesDeleteAllResponse { |
4226 core.List<Image> deleted; | 4436 core.List<Image> deleted; |
4227 | 4437 |
4228 ImagesDeleteAllResponse(); | 4438 ImagesDeleteAllResponse(); |
4229 | 4439 |
4230 ImagesDeleteAllResponse.fromJson(core.Map _json) { | 4440 ImagesDeleteAllResponse.fromJson(core.Map _json) { |
4231 if (_json.containsKey("deleted")) { | 4441 if (_json.containsKey("deleted")) { |
4232 deleted = _json["deleted"].map((value) => new Image.fromJson(value)).toLis
t(); | 4442 deleted = |
| 4443 _json["deleted"].map((value) => new Image.fromJson(value)).toList(); |
4233 } | 4444 } |
4234 } | 4445 } |
4235 | 4446 |
4236 core.Map<core.String, core.Object> toJson() { | 4447 core.Map<core.String, core.Object> toJson() { |
4237 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4448 final core.Map<core.String, core.Object> _json = |
| 4449 new core.Map<core.String, core.Object>(); |
4238 if (deleted != null) { | 4450 if (deleted != null) { |
4239 _json["deleted"] = deleted.map((value) => (value).toJson()).toList(); | 4451 _json["deleted"] = deleted.map((value) => (value).toJson()).toList(); |
4240 } | 4452 } |
4241 return _json; | 4453 return _json; |
4242 } | 4454 } |
4243 } | 4455 } |
4244 | 4456 |
4245 class ImagesListResponse { | 4457 class ImagesListResponse { |
4246 core.List<Image> images; | 4458 core.List<Image> images; |
4247 | 4459 |
4248 ImagesListResponse(); | 4460 ImagesListResponse(); |
4249 | 4461 |
4250 ImagesListResponse.fromJson(core.Map _json) { | 4462 ImagesListResponse.fromJson(core.Map _json) { |
4251 if (_json.containsKey("images")) { | 4463 if (_json.containsKey("images")) { |
4252 images = _json["images"].map((value) => new Image.fromJson(value)).toList(
); | 4464 images = |
| 4465 _json["images"].map((value) => new Image.fromJson(value)).toList(); |
4253 } | 4466 } |
4254 } | 4467 } |
4255 | 4468 |
4256 core.Map<core.String, core.Object> toJson() { | 4469 core.Map<core.String, core.Object> toJson() { |
4257 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4470 final core.Map<core.String, core.Object> _json = |
| 4471 new core.Map<core.String, core.Object>(); |
4258 if (images != null) { | 4472 if (images != null) { |
4259 _json["images"] = images.map((value) => (value).toJson()).toList(); | 4473 _json["images"] = images.map((value) => (value).toJson()).toList(); |
4260 } | 4474 } |
4261 return _json; | 4475 return _json; |
4262 } | 4476 } |
4263 } | 4477 } |
4264 | 4478 |
4265 class ImagesUploadResponse { | 4479 class ImagesUploadResponse { |
4266 Image image; | 4480 Image image; |
4267 | 4481 |
4268 ImagesUploadResponse(); | 4482 ImagesUploadResponse(); |
4269 | 4483 |
4270 ImagesUploadResponse.fromJson(core.Map _json) { | 4484 ImagesUploadResponse.fromJson(core.Map _json) { |
4271 if (_json.containsKey("image")) { | 4485 if (_json.containsKey("image")) { |
4272 image = new Image.fromJson(_json["image"]); | 4486 image = new Image.fromJson(_json["image"]); |
4273 } | 4487 } |
4274 } | 4488 } |
4275 | 4489 |
4276 core.Map<core.String, core.Object> toJson() { | 4490 core.Map<core.String, core.Object> toJson() { |
4277 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4491 final core.Map<core.String, core.Object> _json = |
| 4492 new core.Map<core.String, core.Object>(); |
4278 if (image != null) { | 4493 if (image != null) { |
4279 _json["image"] = (image).toJson(); | 4494 _json["image"] = (image).toJson(); |
4280 } | 4495 } |
4281 return _json; | 4496 return _json; |
4282 } | 4497 } |
4283 } | 4498 } |
4284 | 4499 |
4285 class InAppProduct { | 4500 class InAppProduct { |
4286 /** | 4501 /// The default language of the localized data, as defined by BCP 47. e.g. |
4287 * The default language of the localized data, as defined by BCP 47. e.g. | 4502 /// "en-US", "en-GB". |
4288 * "en-US", "en-GB". | |
4289 */ | |
4290 core.String defaultLanguage; | 4503 core.String defaultLanguage; |
4291 /** | 4504 |
4292 * Default price cannot be zero. In-app products can never be free. Default | 4505 /// Default price cannot be zero. In-app products can never be free. Default |
4293 * price is always in the developer's Checkout merchant currency. | 4506 /// price is always in the developer's Checkout merchant currency. |
4294 */ | |
4295 Price defaultPrice; | 4507 Price defaultPrice; |
4296 /** List of localized title and description data. */ | 4508 |
| 4509 /// List of localized title and description data. |
4297 core.Map<core.String, InAppProductListing> listings; | 4510 core.Map<core.String, InAppProductListing> listings; |
4298 /** The package name of the parent app. */ | 4511 |
| 4512 /// The package name of the parent app. |
4299 core.String packageName; | 4513 core.String packageName; |
4300 /** | 4514 |
4301 * Prices per buyer region. None of these prices should be zero. In-app | 4515 /// Prices per buyer region. None of these prices should be zero. In-app |
4302 * products can never be free. | 4516 /// products can never be free. |
4303 */ | |
4304 core.Map<core.String, Price> prices; | 4517 core.Map<core.String, Price> prices; |
4305 /** Purchase type enum value. Unmodifiable after creation. */ | 4518 |
| 4519 /// Purchase type enum value. Unmodifiable after creation. |
4306 core.String purchaseType; | 4520 core.String purchaseType; |
4307 /** | 4521 |
4308 * Definition of a season for a seasonal subscription. Can be defined only for | 4522 /// Definition of a season for a seasonal subscription. Can be defined only |
4309 * yearly subscriptions. | 4523 /// for yearly subscriptions. |
4310 */ | |
4311 Season season; | 4524 Season season; |
4312 /** The stock-keeping-unit (SKU) of the product, unique within an app. */ | 4525 |
| 4526 /// The stock-keeping-unit (SKU) of the product, unique within an app. |
4313 core.String sku; | 4527 core.String sku; |
4314 core.String status; | 4528 core.String status; |
4315 /** | 4529 |
4316 * Subscription period, specified in ISO 8601 format. Acceptable values are | 4530 /// Subscription period, specified in ISO 8601 format. Acceptable values are |
4317 * "P1W" (one week), "P1M" (one month), "P3M" (three months), "P6M" (six | 4531 /// "P1W" (one week), "P1M" (one month), "P3M" (three months), "P6M" (six |
4318 * months), and "P1Y" (one year). | 4532 /// months), and "P1Y" (one year). |
4319 */ | |
4320 core.String subscriptionPeriod; | 4533 core.String subscriptionPeriod; |
4321 /** | 4534 |
4322 * Trial period, specified in ISO 8601 format. Acceptable values are anything | 4535 /// Trial period, specified in ISO 8601 format. Acceptable values are |
4323 * between "P7D" (seven days) and "P999D" (999 days). Seasonal subscriptions | 4536 /// anything between "P7D" (seven days) and "P999D" (999 days). Seasonal |
4324 * cannot have a trial period. | 4537 /// subscriptions cannot have a trial period. |
4325 */ | |
4326 core.String trialPeriod; | 4538 core.String trialPeriod; |
4327 | 4539 |
4328 InAppProduct(); | 4540 InAppProduct(); |
4329 | 4541 |
4330 InAppProduct.fromJson(core.Map _json) { | 4542 InAppProduct.fromJson(core.Map _json) { |
4331 if (_json.containsKey("defaultLanguage")) { | 4543 if (_json.containsKey("defaultLanguage")) { |
4332 defaultLanguage = _json["defaultLanguage"]; | 4544 defaultLanguage = _json["defaultLanguage"]; |
4333 } | 4545 } |
4334 if (_json.containsKey("defaultPrice")) { | 4546 if (_json.containsKey("defaultPrice")) { |
4335 defaultPrice = new Price.fromJson(_json["defaultPrice"]); | 4547 defaultPrice = new Price.fromJson(_json["defaultPrice"]); |
4336 } | 4548 } |
4337 if (_json.containsKey("listings")) { | 4549 if (_json.containsKey("listings")) { |
4338 listings = commons.mapMap<core.Map<core.String, core.Object>, InAppProduct
Listing>(_json["listings"], (core.Map<core.String, core.Object> item) => new InA
ppProductListing.fromJson(item)); | 4550 listings = commons |
| 4551 .mapMap<core.Map<core.String, core.Object>, InAppProductListing>( |
| 4552 _json["listings"], |
| 4553 (core.Map<core.String, core.Object> item) => |
| 4554 new InAppProductListing.fromJson(item)); |
4339 } | 4555 } |
4340 if (_json.containsKey("packageName")) { | 4556 if (_json.containsKey("packageName")) { |
4341 packageName = _json["packageName"]; | 4557 packageName = _json["packageName"]; |
4342 } | 4558 } |
4343 if (_json.containsKey("prices")) { | 4559 if (_json.containsKey("prices")) { |
4344 prices = commons.mapMap<core.Map<core.String, core.Object>, Price>(_json["
prices"], (core.Map<core.String, core.Object> item) => new Price.fromJson(item))
; | 4560 prices = commons.mapMap<core.Map<core.String, core.Object>, Price>( |
| 4561 _json["prices"], |
| 4562 (core.Map<core.String, core.Object> item) => |
| 4563 new Price.fromJson(item)); |
4345 } | 4564 } |
4346 if (_json.containsKey("purchaseType")) { | 4565 if (_json.containsKey("purchaseType")) { |
4347 purchaseType = _json["purchaseType"]; | 4566 purchaseType = _json["purchaseType"]; |
4348 } | 4567 } |
4349 if (_json.containsKey("season")) { | 4568 if (_json.containsKey("season")) { |
4350 season = new Season.fromJson(_json["season"]); | 4569 season = new Season.fromJson(_json["season"]); |
4351 } | 4570 } |
4352 if (_json.containsKey("sku")) { | 4571 if (_json.containsKey("sku")) { |
4353 sku = _json["sku"]; | 4572 sku = _json["sku"]; |
4354 } | 4573 } |
4355 if (_json.containsKey("status")) { | 4574 if (_json.containsKey("status")) { |
4356 status = _json["status"]; | 4575 status = _json["status"]; |
4357 } | 4576 } |
4358 if (_json.containsKey("subscriptionPeriod")) { | 4577 if (_json.containsKey("subscriptionPeriod")) { |
4359 subscriptionPeriod = _json["subscriptionPeriod"]; | 4578 subscriptionPeriod = _json["subscriptionPeriod"]; |
4360 } | 4579 } |
4361 if (_json.containsKey("trialPeriod")) { | 4580 if (_json.containsKey("trialPeriod")) { |
4362 trialPeriod = _json["trialPeriod"]; | 4581 trialPeriod = _json["trialPeriod"]; |
4363 } | 4582 } |
4364 } | 4583 } |
4365 | 4584 |
4366 core.Map<core.String, core.Object> toJson() { | 4585 core.Map<core.String, core.Object> toJson() { |
4367 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4586 final core.Map<core.String, core.Object> _json = |
| 4587 new core.Map<core.String, core.Object>(); |
4368 if (defaultLanguage != null) { | 4588 if (defaultLanguage != null) { |
4369 _json["defaultLanguage"] = defaultLanguage; | 4589 _json["defaultLanguage"] = defaultLanguage; |
4370 } | 4590 } |
4371 if (defaultPrice != null) { | 4591 if (defaultPrice != null) { |
4372 _json["defaultPrice"] = (defaultPrice).toJson(); | 4592 _json["defaultPrice"] = (defaultPrice).toJson(); |
4373 } | 4593 } |
4374 if (listings != null) { | 4594 if (listings != null) { |
4375 _json["listings"] = commons.mapMap<InAppProductListing, core.Map<core.Stri
ng, core.Object>>(listings, (InAppProductListing item) => (item).toJson()); | 4595 _json["listings"] = commons |
| 4596 .mapMap<InAppProductListing, core.Map<core.String, core.Object>>( |
| 4597 listings, (InAppProductListing item) => (item).toJson()); |
4376 } | 4598 } |
4377 if (packageName != null) { | 4599 if (packageName != null) { |
4378 _json["packageName"] = packageName; | 4600 _json["packageName"] = packageName; |
4379 } | 4601 } |
4380 if (prices != null) { | 4602 if (prices != null) { |
4381 _json["prices"] = commons.mapMap<Price, core.Map<core.String, core.Object>
>(prices, (Price item) => (item).toJson()); | 4603 _json["prices"] = |
| 4604 commons.mapMap<Price, core.Map<core.String, core.Object>>( |
| 4605 prices, (Price item) => (item).toJson()); |
4382 } | 4606 } |
4383 if (purchaseType != null) { | 4607 if (purchaseType != null) { |
4384 _json["purchaseType"] = purchaseType; | 4608 _json["purchaseType"] = purchaseType; |
4385 } | 4609 } |
4386 if (season != null) { | 4610 if (season != null) { |
4387 _json["season"] = (season).toJson(); | 4611 _json["season"] = (season).toJson(); |
4388 } | 4612 } |
4389 if (sku != null) { | 4613 if (sku != null) { |
4390 _json["sku"] = sku; | 4614 _json["sku"] = sku; |
4391 } | 4615 } |
(...skipping 19 matching lines...) Expand all Loading... |
4411 InAppProductListing.fromJson(core.Map _json) { | 4635 InAppProductListing.fromJson(core.Map _json) { |
4412 if (_json.containsKey("description")) { | 4636 if (_json.containsKey("description")) { |
4413 description = _json["description"]; | 4637 description = _json["description"]; |
4414 } | 4638 } |
4415 if (_json.containsKey("title")) { | 4639 if (_json.containsKey("title")) { |
4416 title = _json["title"]; | 4640 title = _json["title"]; |
4417 } | 4641 } |
4418 } | 4642 } |
4419 | 4643 |
4420 core.Map<core.String, core.Object> toJson() { | 4644 core.Map<core.String, core.Object> toJson() { |
4421 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4645 final core.Map<core.String, core.Object> _json = |
| 4646 new core.Map<core.String, core.Object>(); |
4422 if (description != null) { | 4647 if (description != null) { |
4423 _json["description"] = description; | 4648 _json["description"] = description; |
4424 } | 4649 } |
4425 if (title != null) { | 4650 if (title != null) { |
4426 _json["title"] = title; | 4651 _json["title"] = title; |
4427 } | 4652 } |
4428 return _json; | 4653 return _json; |
4429 } | 4654 } |
4430 } | 4655 } |
4431 | 4656 |
4432 class InappproductsBatchRequest { | 4657 class InappproductsBatchRequest { |
4433 core.List<InappproductsBatchRequestEntry> entrys; | 4658 core.List<InappproductsBatchRequestEntry> entrys; |
4434 | 4659 |
4435 InappproductsBatchRequest(); | 4660 InappproductsBatchRequest(); |
4436 | 4661 |
4437 InappproductsBatchRequest.fromJson(core.Map _json) { | 4662 InappproductsBatchRequest.fromJson(core.Map _json) { |
4438 if (_json.containsKey("entrys")) { | 4663 if (_json.containsKey("entrys")) { |
4439 entrys = _json["entrys"].map((value) => new InappproductsBatchRequestEntry
.fromJson(value)).toList(); | 4664 entrys = _json["entrys"] |
| 4665 .map((value) => new InappproductsBatchRequestEntry.fromJson(value)) |
| 4666 .toList(); |
4440 } | 4667 } |
4441 } | 4668 } |
4442 | 4669 |
4443 core.Map<core.String, core.Object> toJson() { | 4670 core.Map<core.String, core.Object> toJson() { |
4444 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4671 final core.Map<core.String, core.Object> _json = |
| 4672 new core.Map<core.String, core.Object>(); |
4445 if (entrys != null) { | 4673 if (entrys != null) { |
4446 _json["entrys"] = entrys.map((value) => (value).toJson()).toList(); | 4674 _json["entrys"] = entrys.map((value) => (value).toJson()).toList(); |
4447 } | 4675 } |
4448 return _json; | 4676 return _json; |
4449 } | 4677 } |
4450 } | 4678 } |
4451 | 4679 |
4452 class InappproductsBatchRequestEntry { | 4680 class InappproductsBatchRequestEntry { |
4453 core.int batchId; | 4681 core.int batchId; |
4454 InappproductsInsertRequest inappproductsinsertrequest; | 4682 InappproductsInsertRequest inappproductsinsertrequest; |
4455 InappproductsUpdateRequest inappproductsupdaterequest; | 4683 InappproductsUpdateRequest inappproductsupdaterequest; |
4456 core.String methodName; | 4684 core.String methodName; |
4457 | 4685 |
4458 InappproductsBatchRequestEntry(); | 4686 InappproductsBatchRequestEntry(); |
4459 | 4687 |
4460 InappproductsBatchRequestEntry.fromJson(core.Map _json) { | 4688 InappproductsBatchRequestEntry.fromJson(core.Map _json) { |
4461 if (_json.containsKey("batchId")) { | 4689 if (_json.containsKey("batchId")) { |
4462 batchId = _json["batchId"]; | 4690 batchId = _json["batchId"]; |
4463 } | 4691 } |
4464 if (_json.containsKey("inappproductsinsertrequest")) { | 4692 if (_json.containsKey("inappproductsinsertrequest")) { |
4465 inappproductsinsertrequest = new InappproductsInsertRequest.fromJson(_json
["inappproductsinsertrequest"]); | 4693 inappproductsinsertrequest = new InappproductsInsertRequest.fromJson( |
| 4694 _json["inappproductsinsertrequest"]); |
4466 } | 4695 } |
4467 if (_json.containsKey("inappproductsupdaterequest")) { | 4696 if (_json.containsKey("inappproductsupdaterequest")) { |
4468 inappproductsupdaterequest = new InappproductsUpdateRequest.fromJson(_json
["inappproductsupdaterequest"]); | 4697 inappproductsupdaterequest = new InappproductsUpdateRequest.fromJson( |
| 4698 _json["inappproductsupdaterequest"]); |
4469 } | 4699 } |
4470 if (_json.containsKey("methodName")) { | 4700 if (_json.containsKey("methodName")) { |
4471 methodName = _json["methodName"]; | 4701 methodName = _json["methodName"]; |
4472 } | 4702 } |
4473 } | 4703 } |
4474 | 4704 |
4475 core.Map<core.String, core.Object> toJson() { | 4705 core.Map<core.String, core.Object> toJson() { |
4476 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4706 final core.Map<core.String, core.Object> _json = |
| 4707 new core.Map<core.String, core.Object>(); |
4477 if (batchId != null) { | 4708 if (batchId != null) { |
4478 _json["batchId"] = batchId; | 4709 _json["batchId"] = batchId; |
4479 } | 4710 } |
4480 if (inappproductsinsertrequest != null) { | 4711 if (inappproductsinsertrequest != null) { |
4481 _json["inappproductsinsertrequest"] = (inappproductsinsertrequest).toJson(
); | 4712 _json["inappproductsinsertrequest"] = |
| 4713 (inappproductsinsertrequest).toJson(); |
4482 } | 4714 } |
4483 if (inappproductsupdaterequest != null) { | 4715 if (inappproductsupdaterequest != null) { |
4484 _json["inappproductsupdaterequest"] = (inappproductsupdaterequest).toJson(
); | 4716 _json["inappproductsupdaterequest"] = |
| 4717 (inappproductsupdaterequest).toJson(); |
4485 } | 4718 } |
4486 if (methodName != null) { | 4719 if (methodName != null) { |
4487 _json["methodName"] = methodName; | 4720 _json["methodName"] = methodName; |
4488 } | 4721 } |
4489 return _json; | 4722 return _json; |
4490 } | 4723 } |
4491 } | 4724 } |
4492 | 4725 |
4493 class InappproductsBatchResponse { | 4726 class InappproductsBatchResponse { |
4494 core.List<InappproductsBatchResponseEntry> entrys; | 4727 core.List<InappproductsBatchResponseEntry> entrys; |
4495 /** | 4728 |
4496 * Identifies what kind of resource this is. Value: the fixed string | 4729 /// Identifies what kind of resource this is. Value: the fixed string |
4497 * "androidpublisher#inappproductsBatchResponse". | 4730 /// "androidpublisher#inappproductsBatchResponse". |
4498 */ | |
4499 core.String kind; | 4731 core.String kind; |
4500 | 4732 |
4501 InappproductsBatchResponse(); | 4733 InappproductsBatchResponse(); |
4502 | 4734 |
4503 InappproductsBatchResponse.fromJson(core.Map _json) { | 4735 InappproductsBatchResponse.fromJson(core.Map _json) { |
4504 if (_json.containsKey("entrys")) { | 4736 if (_json.containsKey("entrys")) { |
4505 entrys = _json["entrys"].map((value) => new InappproductsBatchResponseEntr
y.fromJson(value)).toList(); | 4737 entrys = _json["entrys"] |
| 4738 .map((value) => new InappproductsBatchResponseEntry.fromJson(value)) |
| 4739 .toList(); |
4506 } | 4740 } |
4507 if (_json.containsKey("kind")) { | 4741 if (_json.containsKey("kind")) { |
4508 kind = _json["kind"]; | 4742 kind = _json["kind"]; |
4509 } | 4743 } |
4510 } | 4744 } |
4511 | 4745 |
4512 core.Map<core.String, core.Object> toJson() { | 4746 core.Map<core.String, core.Object> toJson() { |
4513 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4747 final core.Map<core.String, core.Object> _json = |
| 4748 new core.Map<core.String, core.Object>(); |
4514 if (entrys != null) { | 4749 if (entrys != null) { |
4515 _json["entrys"] = entrys.map((value) => (value).toJson()).toList(); | 4750 _json["entrys"] = entrys.map((value) => (value).toJson()).toList(); |
4516 } | 4751 } |
4517 if (kind != null) { | 4752 if (kind != null) { |
4518 _json["kind"] = kind; | 4753 _json["kind"] = kind; |
4519 } | 4754 } |
4520 return _json; | 4755 return _json; |
4521 } | 4756 } |
4522 } | 4757 } |
4523 | 4758 |
4524 class InappproductsBatchResponseEntry { | 4759 class InappproductsBatchResponseEntry { |
4525 core.int batchId; | 4760 core.int batchId; |
4526 InappproductsInsertResponse inappproductsinsertresponse; | 4761 InappproductsInsertResponse inappproductsinsertresponse; |
4527 InappproductsUpdateResponse inappproductsupdateresponse; | 4762 InappproductsUpdateResponse inappproductsupdateresponse; |
4528 | 4763 |
4529 InappproductsBatchResponseEntry(); | 4764 InappproductsBatchResponseEntry(); |
4530 | 4765 |
4531 InappproductsBatchResponseEntry.fromJson(core.Map _json) { | 4766 InappproductsBatchResponseEntry.fromJson(core.Map _json) { |
4532 if (_json.containsKey("batchId")) { | 4767 if (_json.containsKey("batchId")) { |
4533 batchId = _json["batchId"]; | 4768 batchId = _json["batchId"]; |
4534 } | 4769 } |
4535 if (_json.containsKey("inappproductsinsertresponse")) { | 4770 if (_json.containsKey("inappproductsinsertresponse")) { |
4536 inappproductsinsertresponse = new InappproductsInsertResponse.fromJson(_js
on["inappproductsinsertresponse"]); | 4771 inappproductsinsertresponse = new InappproductsInsertResponse.fromJson( |
| 4772 _json["inappproductsinsertresponse"]); |
4537 } | 4773 } |
4538 if (_json.containsKey("inappproductsupdateresponse")) { | 4774 if (_json.containsKey("inappproductsupdateresponse")) { |
4539 inappproductsupdateresponse = new InappproductsUpdateResponse.fromJson(_js
on["inappproductsupdateresponse"]); | 4775 inappproductsupdateresponse = new InappproductsUpdateResponse.fromJson( |
| 4776 _json["inappproductsupdateresponse"]); |
4540 } | 4777 } |
4541 } | 4778 } |
4542 | 4779 |
4543 core.Map<core.String, core.Object> toJson() { | 4780 core.Map<core.String, core.Object> toJson() { |
4544 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4781 final core.Map<core.String, core.Object> _json = |
| 4782 new core.Map<core.String, core.Object>(); |
4545 if (batchId != null) { | 4783 if (batchId != null) { |
4546 _json["batchId"] = batchId; | 4784 _json["batchId"] = batchId; |
4547 } | 4785 } |
4548 if (inappproductsinsertresponse != null) { | 4786 if (inappproductsinsertresponse != null) { |
4549 _json["inappproductsinsertresponse"] = (inappproductsinsertresponse).toJso
n(); | 4787 _json["inappproductsinsertresponse"] = |
| 4788 (inappproductsinsertresponse).toJson(); |
4550 } | 4789 } |
4551 if (inappproductsupdateresponse != null) { | 4790 if (inappproductsupdateresponse != null) { |
4552 _json["inappproductsupdateresponse"] = (inappproductsupdateresponse).toJso
n(); | 4791 _json["inappproductsupdateresponse"] = |
| 4792 (inappproductsupdateresponse).toJson(); |
4553 } | 4793 } |
4554 return _json; | 4794 return _json; |
4555 } | 4795 } |
4556 } | 4796 } |
4557 | 4797 |
4558 class InappproductsInsertRequest { | 4798 class InappproductsInsertRequest { |
4559 InAppProduct inappproduct; | 4799 InAppProduct inappproduct; |
4560 | 4800 |
4561 InappproductsInsertRequest(); | 4801 InappproductsInsertRequest(); |
4562 | 4802 |
4563 InappproductsInsertRequest.fromJson(core.Map _json) { | 4803 InappproductsInsertRequest.fromJson(core.Map _json) { |
4564 if (_json.containsKey("inappproduct")) { | 4804 if (_json.containsKey("inappproduct")) { |
4565 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); | 4805 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); |
4566 } | 4806 } |
4567 } | 4807 } |
4568 | 4808 |
4569 core.Map<core.String, core.Object> toJson() { | 4809 core.Map<core.String, core.Object> toJson() { |
4570 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4810 final core.Map<core.String, core.Object> _json = |
| 4811 new core.Map<core.String, core.Object>(); |
4571 if (inappproduct != null) { | 4812 if (inappproduct != null) { |
4572 _json["inappproduct"] = (inappproduct).toJson(); | 4813 _json["inappproduct"] = (inappproduct).toJson(); |
4573 } | 4814 } |
4574 return _json; | 4815 return _json; |
4575 } | 4816 } |
4576 } | 4817 } |
4577 | 4818 |
4578 class InappproductsInsertResponse { | 4819 class InappproductsInsertResponse { |
4579 InAppProduct inappproduct; | 4820 InAppProduct inappproduct; |
4580 | 4821 |
4581 InappproductsInsertResponse(); | 4822 InappproductsInsertResponse(); |
4582 | 4823 |
4583 InappproductsInsertResponse.fromJson(core.Map _json) { | 4824 InappproductsInsertResponse.fromJson(core.Map _json) { |
4584 if (_json.containsKey("inappproduct")) { | 4825 if (_json.containsKey("inappproduct")) { |
4585 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); | 4826 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); |
4586 } | 4827 } |
4587 } | 4828 } |
4588 | 4829 |
4589 core.Map<core.String, core.Object> toJson() { | 4830 core.Map<core.String, core.Object> toJson() { |
4590 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4831 final core.Map<core.String, core.Object> _json = |
| 4832 new core.Map<core.String, core.Object>(); |
4591 if (inappproduct != null) { | 4833 if (inappproduct != null) { |
4592 _json["inappproduct"] = (inappproduct).toJson(); | 4834 _json["inappproduct"] = (inappproduct).toJson(); |
4593 } | 4835 } |
4594 return _json; | 4836 return _json; |
4595 } | 4837 } |
4596 } | 4838 } |
4597 | 4839 |
4598 class InappproductsListResponse { | 4840 class InappproductsListResponse { |
4599 core.List<InAppProduct> inappproduct; | 4841 core.List<InAppProduct> inappproduct; |
4600 /** | 4842 |
4601 * Identifies what kind of resource this is. Value: the fixed string | 4843 /// Identifies what kind of resource this is. Value: the fixed string |
4602 * "androidpublisher#inappproductsListResponse". | 4844 /// "androidpublisher#inappproductsListResponse". |
4603 */ | |
4604 core.String kind; | 4845 core.String kind; |
4605 PageInfo pageInfo; | 4846 PageInfo pageInfo; |
4606 TokenPagination tokenPagination; | 4847 TokenPagination tokenPagination; |
4607 | 4848 |
4608 InappproductsListResponse(); | 4849 InappproductsListResponse(); |
4609 | 4850 |
4610 InappproductsListResponse.fromJson(core.Map _json) { | 4851 InappproductsListResponse.fromJson(core.Map _json) { |
4611 if (_json.containsKey("inappproduct")) { | 4852 if (_json.containsKey("inappproduct")) { |
4612 inappproduct = _json["inappproduct"].map((value) => new InAppProduct.fromJ
son(value)).toList(); | 4853 inappproduct = _json["inappproduct"] |
| 4854 .map((value) => new InAppProduct.fromJson(value)) |
| 4855 .toList(); |
4613 } | 4856 } |
4614 if (_json.containsKey("kind")) { | 4857 if (_json.containsKey("kind")) { |
4615 kind = _json["kind"]; | 4858 kind = _json["kind"]; |
4616 } | 4859 } |
4617 if (_json.containsKey("pageInfo")) { | 4860 if (_json.containsKey("pageInfo")) { |
4618 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 4861 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
4619 } | 4862 } |
4620 if (_json.containsKey("tokenPagination")) { | 4863 if (_json.containsKey("tokenPagination")) { |
4621 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 4864 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
4622 } | 4865 } |
4623 } | 4866 } |
4624 | 4867 |
4625 core.Map<core.String, core.Object> toJson() { | 4868 core.Map<core.String, core.Object> toJson() { |
4626 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4869 final core.Map<core.String, core.Object> _json = |
| 4870 new core.Map<core.String, core.Object>(); |
4627 if (inappproduct != null) { | 4871 if (inappproduct != null) { |
4628 _json["inappproduct"] = inappproduct.map((value) => (value).toJson()).toLi
st(); | 4872 _json["inappproduct"] = |
| 4873 inappproduct.map((value) => (value).toJson()).toList(); |
4629 } | 4874 } |
4630 if (kind != null) { | 4875 if (kind != null) { |
4631 _json["kind"] = kind; | 4876 _json["kind"] = kind; |
4632 } | 4877 } |
4633 if (pageInfo != null) { | 4878 if (pageInfo != null) { |
4634 _json["pageInfo"] = (pageInfo).toJson(); | 4879 _json["pageInfo"] = (pageInfo).toJson(); |
4635 } | 4880 } |
4636 if (tokenPagination != null) { | 4881 if (tokenPagination != null) { |
4637 _json["tokenPagination"] = (tokenPagination).toJson(); | 4882 _json["tokenPagination"] = (tokenPagination).toJson(); |
4638 } | 4883 } |
4639 return _json; | 4884 return _json; |
4640 } | 4885 } |
4641 } | 4886 } |
4642 | 4887 |
4643 class InappproductsUpdateRequest { | 4888 class InappproductsUpdateRequest { |
4644 InAppProduct inappproduct; | 4889 InAppProduct inappproduct; |
4645 | 4890 |
4646 InappproductsUpdateRequest(); | 4891 InappproductsUpdateRequest(); |
4647 | 4892 |
4648 InappproductsUpdateRequest.fromJson(core.Map _json) { | 4893 InappproductsUpdateRequest.fromJson(core.Map _json) { |
4649 if (_json.containsKey("inappproduct")) { | 4894 if (_json.containsKey("inappproduct")) { |
4650 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); | 4895 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); |
4651 } | 4896 } |
4652 } | 4897 } |
4653 | 4898 |
4654 core.Map<core.String, core.Object> toJson() { | 4899 core.Map<core.String, core.Object> toJson() { |
4655 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4900 final core.Map<core.String, core.Object> _json = |
| 4901 new core.Map<core.String, core.Object>(); |
4656 if (inappproduct != null) { | 4902 if (inappproduct != null) { |
4657 _json["inappproduct"] = (inappproduct).toJson(); | 4903 _json["inappproduct"] = (inappproduct).toJson(); |
4658 } | 4904 } |
4659 return _json; | 4905 return _json; |
4660 } | 4906 } |
4661 } | 4907 } |
4662 | 4908 |
4663 class InappproductsUpdateResponse { | 4909 class InappproductsUpdateResponse { |
4664 InAppProduct inappproduct; | 4910 InAppProduct inappproduct; |
4665 | 4911 |
4666 InappproductsUpdateResponse(); | 4912 InappproductsUpdateResponse(); |
4667 | 4913 |
4668 InappproductsUpdateResponse.fromJson(core.Map _json) { | 4914 InappproductsUpdateResponse.fromJson(core.Map _json) { |
4669 if (_json.containsKey("inappproduct")) { | 4915 if (_json.containsKey("inappproduct")) { |
4670 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); | 4916 inappproduct = new InAppProduct.fromJson(_json["inappproduct"]); |
4671 } | 4917 } |
4672 } | 4918 } |
4673 | 4919 |
4674 core.Map<core.String, core.Object> toJson() { | 4920 core.Map<core.String, core.Object> toJson() { |
4675 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4921 final core.Map<core.String, core.Object> _json = |
| 4922 new core.Map<core.String, core.Object>(); |
4676 if (inappproduct != null) { | 4923 if (inappproduct != null) { |
4677 _json["inappproduct"] = (inappproduct).toJson(); | 4924 _json["inappproduct"] = (inappproduct).toJson(); |
4678 } | 4925 } |
4679 return _json; | 4926 return _json; |
4680 } | 4927 } |
4681 } | 4928 } |
4682 | 4929 |
4683 class Listing { | 4930 class Listing { |
4684 /** | 4931 /// Full description of the app; this may be up to 4000 characters in length. |
4685 * Full description of the app; this may be up to 4000 characters in length. | |
4686 */ | |
4687 core.String fullDescription; | 4932 core.String fullDescription; |
4688 /** Language localization code (for example, "de-AT" for Austrian German). */ | 4933 |
| 4934 /// Language localization code (for example, "de-AT" for Austrian German). |
4689 core.String language; | 4935 core.String language; |
4690 /** | 4936 |
4691 * Short description of the app (previously known as promo text); this may be | 4937 /// Short description of the app (previously known as promo text); this may |
4692 * up to 80 characters in length. | 4938 /// be up to 80 characters in length. |
4693 */ | |
4694 core.String shortDescription; | 4939 core.String shortDescription; |
4695 /** App's localized title. */ | 4940 |
| 4941 /// App's localized title. |
4696 core.String title; | 4942 core.String title; |
4697 /** URL of a promotional YouTube video for the app. */ | 4943 |
| 4944 /// URL of a promotional YouTube video for the app. |
4698 core.String video; | 4945 core.String video; |
4699 | 4946 |
4700 Listing(); | 4947 Listing(); |
4701 | 4948 |
4702 Listing.fromJson(core.Map _json) { | 4949 Listing.fromJson(core.Map _json) { |
4703 if (_json.containsKey("fullDescription")) { | 4950 if (_json.containsKey("fullDescription")) { |
4704 fullDescription = _json["fullDescription"]; | 4951 fullDescription = _json["fullDescription"]; |
4705 } | 4952 } |
4706 if (_json.containsKey("language")) { | 4953 if (_json.containsKey("language")) { |
4707 language = _json["language"]; | 4954 language = _json["language"]; |
4708 } | 4955 } |
4709 if (_json.containsKey("shortDescription")) { | 4956 if (_json.containsKey("shortDescription")) { |
4710 shortDescription = _json["shortDescription"]; | 4957 shortDescription = _json["shortDescription"]; |
4711 } | 4958 } |
4712 if (_json.containsKey("title")) { | 4959 if (_json.containsKey("title")) { |
4713 title = _json["title"]; | 4960 title = _json["title"]; |
4714 } | 4961 } |
4715 if (_json.containsKey("video")) { | 4962 if (_json.containsKey("video")) { |
4716 video = _json["video"]; | 4963 video = _json["video"]; |
4717 } | 4964 } |
4718 } | 4965 } |
4719 | 4966 |
4720 core.Map<core.String, core.Object> toJson() { | 4967 core.Map<core.String, core.Object> toJson() { |
4721 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4968 final core.Map<core.String, core.Object> _json = |
| 4969 new core.Map<core.String, core.Object>(); |
4722 if (fullDescription != null) { | 4970 if (fullDescription != null) { |
4723 _json["fullDescription"] = fullDescription; | 4971 _json["fullDescription"] = fullDescription; |
4724 } | 4972 } |
4725 if (language != null) { | 4973 if (language != null) { |
4726 _json["language"] = language; | 4974 _json["language"] = language; |
4727 } | 4975 } |
4728 if (shortDescription != null) { | 4976 if (shortDescription != null) { |
4729 _json["shortDescription"] = shortDescription; | 4977 _json["shortDescription"] = shortDescription; |
4730 } | 4978 } |
4731 if (title != null) { | 4979 if (title != null) { |
4732 _json["title"] = title; | 4980 _json["title"] = title; |
4733 } | 4981 } |
4734 if (video != null) { | 4982 if (video != null) { |
4735 _json["video"] = video; | 4983 _json["video"] = video; |
4736 } | 4984 } |
4737 return _json; | 4985 return _json; |
4738 } | 4986 } |
4739 } | 4987 } |
4740 | 4988 |
4741 class ListingsListResponse { | 4989 class ListingsListResponse { |
4742 /** | 4990 /// Identifies what kind of resource this is. Value: the fixed string |
4743 * Identifies what kind of resource this is. Value: the fixed string | 4991 /// "androidpublisher#listingsListResponse". |
4744 * "androidpublisher#listingsListResponse". | |
4745 */ | |
4746 core.String kind; | 4992 core.String kind; |
4747 core.List<Listing> listings; | 4993 core.List<Listing> listings; |
4748 | 4994 |
4749 ListingsListResponse(); | 4995 ListingsListResponse(); |
4750 | 4996 |
4751 ListingsListResponse.fromJson(core.Map _json) { | 4997 ListingsListResponse.fromJson(core.Map _json) { |
4752 if (_json.containsKey("kind")) { | 4998 if (_json.containsKey("kind")) { |
4753 kind = _json["kind"]; | 4999 kind = _json["kind"]; |
4754 } | 5000 } |
4755 if (_json.containsKey("listings")) { | 5001 if (_json.containsKey("listings")) { |
4756 listings = _json["listings"].map((value) => new Listing.fromJson(value)).t
oList(); | 5002 listings = _json["listings"] |
| 5003 .map((value) => new Listing.fromJson(value)) |
| 5004 .toList(); |
4757 } | 5005 } |
4758 } | 5006 } |
4759 | 5007 |
4760 core.Map<core.String, core.Object> toJson() { | 5008 core.Map<core.String, core.Object> toJson() { |
4761 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5009 final core.Map<core.String, core.Object> _json = |
| 5010 new core.Map<core.String, core.Object>(); |
4762 if (kind != null) { | 5011 if (kind != null) { |
4763 _json["kind"] = kind; | 5012 _json["kind"] = kind; |
4764 } | 5013 } |
4765 if (listings != null) { | 5014 if (listings != null) { |
4766 _json["listings"] = listings.map((value) => (value).toJson()).toList(); | 5015 _json["listings"] = listings.map((value) => (value).toJson()).toList(); |
4767 } | 5016 } |
4768 return _json; | 5017 return _json; |
4769 } | 5018 } |
4770 } | 5019 } |
4771 | 5020 |
4772 class MonthDay { | 5021 class MonthDay { |
4773 /** | 5022 /// Day of a month, value in [1, 31] range. Valid range depends on the |
4774 * Day of a month, value in [1, 31] range. Valid range depends on the | 5023 /// specified month. |
4775 * specified month. | |
4776 */ | |
4777 core.int day; | 5024 core.int day; |
4778 /** Month of a year. e.g. 1 = JAN, 2 = FEB etc. */ | 5025 |
| 5026 /// Month of a year. e.g. 1 = JAN, 2 = FEB etc. |
4779 core.int month; | 5027 core.int month; |
4780 | 5028 |
4781 MonthDay(); | 5029 MonthDay(); |
4782 | 5030 |
4783 MonthDay.fromJson(core.Map _json) { | 5031 MonthDay.fromJson(core.Map _json) { |
4784 if (_json.containsKey("day")) { | 5032 if (_json.containsKey("day")) { |
4785 day = _json["day"]; | 5033 day = _json["day"]; |
4786 } | 5034 } |
4787 if (_json.containsKey("month")) { | 5035 if (_json.containsKey("month")) { |
4788 month = _json["month"]; | 5036 month = _json["month"]; |
4789 } | 5037 } |
4790 } | 5038 } |
4791 | 5039 |
4792 core.Map<core.String, core.Object> toJson() { | 5040 core.Map<core.String, core.Object> toJson() { |
4793 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5041 final core.Map<core.String, core.Object> _json = |
| 5042 new core.Map<core.String, core.Object>(); |
4794 if (day != null) { | 5043 if (day != null) { |
4795 _json["day"] = day; | 5044 _json["day"] = day; |
4796 } | 5045 } |
4797 if (month != null) { | 5046 if (month != null) { |
4798 _json["month"] = month; | 5047 _json["month"] = month; |
4799 } | 5048 } |
4800 return _json; | 5049 return _json; |
4801 } | 5050 } |
4802 } | 5051 } |
4803 | 5052 |
(...skipping 10 matching lines...) Expand all Loading... |
4814 } | 5063 } |
4815 if (_json.containsKey("startIndex")) { | 5064 if (_json.containsKey("startIndex")) { |
4816 startIndex = _json["startIndex"]; | 5065 startIndex = _json["startIndex"]; |
4817 } | 5066 } |
4818 if (_json.containsKey("totalResults")) { | 5067 if (_json.containsKey("totalResults")) { |
4819 totalResults = _json["totalResults"]; | 5068 totalResults = _json["totalResults"]; |
4820 } | 5069 } |
4821 } | 5070 } |
4822 | 5071 |
4823 core.Map<core.String, core.Object> toJson() { | 5072 core.Map<core.String, core.Object> toJson() { |
4824 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5073 final core.Map<core.String, core.Object> _json = |
| 5074 new core.Map<core.String, core.Object>(); |
4825 if (resultPerPage != null) { | 5075 if (resultPerPage != null) { |
4826 _json["resultPerPage"] = resultPerPage; | 5076 _json["resultPerPage"] = resultPerPage; |
4827 } | 5077 } |
4828 if (startIndex != null) { | 5078 if (startIndex != null) { |
4829 _json["startIndex"] = startIndex; | 5079 _json["startIndex"] = startIndex; |
4830 } | 5080 } |
4831 if (totalResults != null) { | 5081 if (totalResults != null) { |
4832 _json["totalResults"] = totalResults; | 5082 _json["totalResults"] = totalResults; |
4833 } | 5083 } |
4834 return _json; | 5084 return _json; |
4835 } | 5085 } |
4836 } | 5086 } |
4837 | 5087 |
4838 class Price { | 5088 class Price { |
4839 /** 3 letter Currency code, as defined by ISO 4217. */ | 5089 /// 3 letter Currency code, as defined by ISO 4217. |
4840 core.String currency; | 5090 core.String currency; |
4841 /** | 5091 |
4842 * The price in millionths of the currency base unit represented as a string. | 5092 /// The price in millionths of the currency base unit represented as a |
4843 */ | 5093 /// string. |
4844 core.String priceMicros; | 5094 core.String priceMicros; |
4845 | 5095 |
4846 Price(); | 5096 Price(); |
4847 | 5097 |
4848 Price.fromJson(core.Map _json) { | 5098 Price.fromJson(core.Map _json) { |
4849 if (_json.containsKey("currency")) { | 5099 if (_json.containsKey("currency")) { |
4850 currency = _json["currency"]; | 5100 currency = _json["currency"]; |
4851 } | 5101 } |
4852 if (_json.containsKey("priceMicros")) { | 5102 if (_json.containsKey("priceMicros")) { |
4853 priceMicros = _json["priceMicros"]; | 5103 priceMicros = _json["priceMicros"]; |
4854 } | 5104 } |
4855 } | 5105 } |
4856 | 5106 |
4857 core.Map<core.String, core.Object> toJson() { | 5107 core.Map<core.String, core.Object> toJson() { |
4858 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5108 final core.Map<core.String, core.Object> _json = |
| 5109 new core.Map<core.String, core.Object>(); |
4859 if (currency != null) { | 5110 if (currency != null) { |
4860 _json["currency"] = currency; | 5111 _json["currency"] = currency; |
4861 } | 5112 } |
4862 if (priceMicros != null) { | 5113 if (priceMicros != null) { |
4863 _json["priceMicros"] = priceMicros; | 5114 _json["priceMicros"] = priceMicros; |
4864 } | 5115 } |
4865 return _json; | 5116 return _json; |
4866 } | 5117 } |
4867 } | 5118 } |
4868 | 5119 |
4869 /** | 5120 /// A ProductPurchase resource indicates the status of a user's inapp product |
4870 * A ProductPurchase resource indicates the status of a user's inapp product | 5121 /// purchase. |
4871 * purchase. | |
4872 */ | |
4873 class ProductPurchase { | 5122 class ProductPurchase { |
4874 /** | 5123 /// The consumption state of the inapp product. Possible values are: |
4875 * The consumption state of the inapp product. Possible values are: | 5124 /// - Yet to be consumed |
4876 * - Yet to be consumed | 5125 /// - Consumed |
4877 * - Consumed | |
4878 */ | |
4879 core.int consumptionState; | 5126 core.int consumptionState; |
4880 /** | 5127 |
4881 * A developer-specified string that contains supplemental information about | 5128 /// A developer-specified string that contains supplemental information about |
4882 * an order. | 5129 /// an order. |
4883 */ | |
4884 core.String developerPayload; | 5130 core.String developerPayload; |
4885 /** | 5131 |
4886 * This kind represents an inappPurchase object in the androidpublisher | 5132 /// This kind represents an inappPurchase object in the androidpublisher |
4887 * service. | 5133 /// service. |
4888 */ | |
4889 core.String kind; | 5134 core.String kind; |
4890 /** The order id associated with the purchase of the inapp product. */ | 5135 |
| 5136 /// The order id associated with the purchase of the inapp product. |
4891 core.String orderId; | 5137 core.String orderId; |
4892 /** | 5138 |
4893 * The purchase state of the order. Possible values are: | 5139 /// The purchase state of the order. Possible values are: |
4894 * - Purchased | 5140 /// - Purchased |
4895 * - Cancelled | 5141 /// - Cancelled |
4896 */ | |
4897 core.int purchaseState; | 5142 core.int purchaseState; |
4898 /** | 5143 |
4899 * The time the product was purchased, in milliseconds since the epoch (Jan 1, | 5144 /// The time the product was purchased, in milliseconds since the epoch (Jan |
4900 * 1970). | 5145 /// 1, 1970). |
4901 */ | |
4902 core.String purchaseTimeMillis; | 5146 core.String purchaseTimeMillis; |
4903 | 5147 |
4904 ProductPurchase(); | 5148 ProductPurchase(); |
4905 | 5149 |
4906 ProductPurchase.fromJson(core.Map _json) { | 5150 ProductPurchase.fromJson(core.Map _json) { |
4907 if (_json.containsKey("consumptionState")) { | 5151 if (_json.containsKey("consumptionState")) { |
4908 consumptionState = _json["consumptionState"]; | 5152 consumptionState = _json["consumptionState"]; |
4909 } | 5153 } |
4910 if (_json.containsKey("developerPayload")) { | 5154 if (_json.containsKey("developerPayload")) { |
4911 developerPayload = _json["developerPayload"]; | 5155 developerPayload = _json["developerPayload"]; |
4912 } | 5156 } |
4913 if (_json.containsKey("kind")) { | 5157 if (_json.containsKey("kind")) { |
4914 kind = _json["kind"]; | 5158 kind = _json["kind"]; |
4915 } | 5159 } |
4916 if (_json.containsKey("orderId")) { | 5160 if (_json.containsKey("orderId")) { |
4917 orderId = _json["orderId"]; | 5161 orderId = _json["orderId"]; |
4918 } | 5162 } |
4919 if (_json.containsKey("purchaseState")) { | 5163 if (_json.containsKey("purchaseState")) { |
4920 purchaseState = _json["purchaseState"]; | 5164 purchaseState = _json["purchaseState"]; |
4921 } | 5165 } |
4922 if (_json.containsKey("purchaseTimeMillis")) { | 5166 if (_json.containsKey("purchaseTimeMillis")) { |
4923 purchaseTimeMillis = _json["purchaseTimeMillis"]; | 5167 purchaseTimeMillis = _json["purchaseTimeMillis"]; |
4924 } | 5168 } |
4925 } | 5169 } |
4926 | 5170 |
4927 core.Map<core.String, core.Object> toJson() { | 5171 core.Map<core.String, core.Object> toJson() { |
4928 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5172 final core.Map<core.String, core.Object> _json = |
| 5173 new core.Map<core.String, core.Object>(); |
4929 if (consumptionState != null) { | 5174 if (consumptionState != null) { |
4930 _json["consumptionState"] = consumptionState; | 5175 _json["consumptionState"] = consumptionState; |
4931 } | 5176 } |
4932 if (developerPayload != null) { | 5177 if (developerPayload != null) { |
4933 _json["developerPayload"] = developerPayload; | 5178 _json["developerPayload"] = developerPayload; |
4934 } | 5179 } |
4935 if (kind != null) { | 5180 if (kind != null) { |
4936 _json["kind"] = kind; | 5181 _json["kind"] = kind; |
4937 } | 5182 } |
4938 if (orderId != null) { | 5183 if (orderId != null) { |
4939 _json["orderId"] = orderId; | 5184 _json["orderId"] = orderId; |
4940 } | 5185 } |
4941 if (purchaseState != null) { | 5186 if (purchaseState != null) { |
4942 _json["purchaseState"] = purchaseState; | 5187 _json["purchaseState"] = purchaseState; |
4943 } | 5188 } |
4944 if (purchaseTimeMillis != null) { | 5189 if (purchaseTimeMillis != null) { |
4945 _json["purchaseTimeMillis"] = purchaseTimeMillis; | 5190 _json["purchaseTimeMillis"] = purchaseTimeMillis; |
4946 } | 5191 } |
4947 return _json; | 5192 return _json; |
4948 } | 5193 } |
4949 } | 5194 } |
4950 | 5195 |
4951 class Prorate { | 5196 class Prorate { |
4952 /** | 5197 /// Default price cannot be zero and must be less than the full subscription |
4953 * Default price cannot be zero and must be less than the full subscription | 5198 /// price. Default price is always in the developer's Checkout merchant |
4954 * price. Default price is always in the developer's Checkout merchant | 5199 /// currency. Targeted countries have their prices set automatically based on |
4955 * currency. Targeted countries have their prices set automatically based on | 5200 /// the default_price. |
4956 * the default_price. | |
4957 */ | |
4958 Price defaultPrice; | 5201 Price defaultPrice; |
4959 /** Defines the first day on which the price takes effect. */ | 5202 |
| 5203 /// Defines the first day on which the price takes effect. |
4960 MonthDay start; | 5204 MonthDay start; |
4961 | 5205 |
4962 Prorate(); | 5206 Prorate(); |
4963 | 5207 |
4964 Prorate.fromJson(core.Map _json) { | 5208 Prorate.fromJson(core.Map _json) { |
4965 if (_json.containsKey("defaultPrice")) { | 5209 if (_json.containsKey("defaultPrice")) { |
4966 defaultPrice = new Price.fromJson(_json["defaultPrice"]); | 5210 defaultPrice = new Price.fromJson(_json["defaultPrice"]); |
4967 } | 5211 } |
4968 if (_json.containsKey("start")) { | 5212 if (_json.containsKey("start")) { |
4969 start = new MonthDay.fromJson(_json["start"]); | 5213 start = new MonthDay.fromJson(_json["start"]); |
4970 } | 5214 } |
4971 } | 5215 } |
4972 | 5216 |
4973 core.Map<core.String, core.Object> toJson() { | 5217 core.Map<core.String, core.Object> toJson() { |
4974 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5218 final core.Map<core.String, core.Object> _json = |
| 5219 new core.Map<core.String, core.Object>(); |
4975 if (defaultPrice != null) { | 5220 if (defaultPrice != null) { |
4976 _json["defaultPrice"] = (defaultPrice).toJson(); | 5221 _json["defaultPrice"] = (defaultPrice).toJson(); |
4977 } | 5222 } |
4978 if (start != null) { | 5223 if (start != null) { |
4979 _json["start"] = (start).toJson(); | 5224 _json["start"] = (start).toJson(); |
4980 } | 5225 } |
4981 return _json; | 5226 return _json; |
4982 } | 5227 } |
4983 } | 5228 } |
4984 | 5229 |
4985 class Review { | 5230 class Review { |
4986 /** The name of the user who wrote the review. */ | 5231 /// The name of the user who wrote the review. |
4987 core.String authorName; | 5232 core.String authorName; |
4988 /** A repeated field containing comments for the review. */ | 5233 |
| 5234 /// A repeated field containing comments for the review. |
4989 core.List<Comment> comments; | 5235 core.List<Comment> comments; |
4990 /** Unique identifier for this review. */ | 5236 |
| 5237 /// Unique identifier for this review. |
4991 core.String reviewId; | 5238 core.String reviewId; |
4992 | 5239 |
4993 Review(); | 5240 Review(); |
4994 | 5241 |
4995 Review.fromJson(core.Map _json) { | 5242 Review.fromJson(core.Map _json) { |
4996 if (_json.containsKey("authorName")) { | 5243 if (_json.containsKey("authorName")) { |
4997 authorName = _json["authorName"]; | 5244 authorName = _json["authorName"]; |
4998 } | 5245 } |
4999 if (_json.containsKey("comments")) { | 5246 if (_json.containsKey("comments")) { |
5000 comments = _json["comments"].map((value) => new Comment.fromJson(value)).t
oList(); | 5247 comments = _json["comments"] |
| 5248 .map((value) => new Comment.fromJson(value)) |
| 5249 .toList(); |
5001 } | 5250 } |
5002 if (_json.containsKey("reviewId")) { | 5251 if (_json.containsKey("reviewId")) { |
5003 reviewId = _json["reviewId"]; | 5252 reviewId = _json["reviewId"]; |
5004 } | 5253 } |
5005 } | 5254 } |
5006 | 5255 |
5007 core.Map<core.String, core.Object> toJson() { | 5256 core.Map<core.String, core.Object> toJson() { |
5008 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5257 final core.Map<core.String, core.Object> _json = |
| 5258 new core.Map<core.String, core.Object>(); |
5009 if (authorName != null) { | 5259 if (authorName != null) { |
5010 _json["authorName"] = authorName; | 5260 _json["authorName"] = authorName; |
5011 } | 5261 } |
5012 if (comments != null) { | 5262 if (comments != null) { |
5013 _json["comments"] = comments.map((value) => (value).toJson()).toList(); | 5263 _json["comments"] = comments.map((value) => (value).toJson()).toList(); |
5014 } | 5264 } |
5015 if (reviewId != null) { | 5265 if (reviewId != null) { |
5016 _json["reviewId"] = reviewId; | 5266 _json["reviewId"] = reviewId; |
5017 } | 5267 } |
5018 return _json; | 5268 return _json; |
5019 } | 5269 } |
5020 } | 5270 } |
5021 | 5271 |
5022 class ReviewReplyResult { | 5272 class ReviewReplyResult { |
5023 /** The time at which the reply took effect. */ | 5273 /// The time at which the reply took effect. |
5024 Timestamp lastEdited; | 5274 Timestamp lastEdited; |
5025 /** The reply text that was applied. */ | 5275 |
| 5276 /// The reply text that was applied. |
5026 core.String replyText; | 5277 core.String replyText; |
5027 | 5278 |
5028 ReviewReplyResult(); | 5279 ReviewReplyResult(); |
5029 | 5280 |
5030 ReviewReplyResult.fromJson(core.Map _json) { | 5281 ReviewReplyResult.fromJson(core.Map _json) { |
5031 if (_json.containsKey("lastEdited")) { | 5282 if (_json.containsKey("lastEdited")) { |
5032 lastEdited = new Timestamp.fromJson(_json["lastEdited"]); | 5283 lastEdited = new Timestamp.fromJson(_json["lastEdited"]); |
5033 } | 5284 } |
5034 if (_json.containsKey("replyText")) { | 5285 if (_json.containsKey("replyText")) { |
5035 replyText = _json["replyText"]; | 5286 replyText = _json["replyText"]; |
5036 } | 5287 } |
5037 } | 5288 } |
5038 | 5289 |
5039 core.Map<core.String, core.Object> toJson() { | 5290 core.Map<core.String, core.Object> toJson() { |
5040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5291 final core.Map<core.String, core.Object> _json = |
| 5292 new core.Map<core.String, core.Object>(); |
5041 if (lastEdited != null) { | 5293 if (lastEdited != null) { |
5042 _json["lastEdited"] = (lastEdited).toJson(); | 5294 _json["lastEdited"] = (lastEdited).toJson(); |
5043 } | 5295 } |
5044 if (replyText != null) { | 5296 if (replyText != null) { |
5045 _json["replyText"] = replyText; | 5297 _json["replyText"] = replyText; |
5046 } | 5298 } |
5047 return _json; | 5299 return _json; |
5048 } | 5300 } |
5049 } | 5301 } |
5050 | 5302 |
5051 class ReviewsListResponse { | 5303 class ReviewsListResponse { |
5052 PageInfo pageInfo; | 5304 PageInfo pageInfo; |
5053 core.List<Review> reviews; | 5305 core.List<Review> reviews; |
5054 TokenPagination tokenPagination; | 5306 TokenPagination tokenPagination; |
5055 | 5307 |
5056 ReviewsListResponse(); | 5308 ReviewsListResponse(); |
5057 | 5309 |
5058 ReviewsListResponse.fromJson(core.Map _json) { | 5310 ReviewsListResponse.fromJson(core.Map _json) { |
5059 if (_json.containsKey("pageInfo")) { | 5311 if (_json.containsKey("pageInfo")) { |
5060 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 5312 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
5061 } | 5313 } |
5062 if (_json.containsKey("reviews")) { | 5314 if (_json.containsKey("reviews")) { |
5063 reviews = _json["reviews"].map((value) => new Review.fromJson(value)).toLi
st(); | 5315 reviews = |
| 5316 _json["reviews"].map((value) => new Review.fromJson(value)).toList(); |
5064 } | 5317 } |
5065 if (_json.containsKey("tokenPagination")) { | 5318 if (_json.containsKey("tokenPagination")) { |
5066 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 5319 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
5067 } | 5320 } |
5068 } | 5321 } |
5069 | 5322 |
5070 core.Map<core.String, core.Object> toJson() { | 5323 core.Map<core.String, core.Object> toJson() { |
5071 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5324 final core.Map<core.String, core.Object> _json = |
| 5325 new core.Map<core.String, core.Object>(); |
5072 if (pageInfo != null) { | 5326 if (pageInfo != null) { |
5073 _json["pageInfo"] = (pageInfo).toJson(); | 5327 _json["pageInfo"] = (pageInfo).toJson(); |
5074 } | 5328 } |
5075 if (reviews != null) { | 5329 if (reviews != null) { |
5076 _json["reviews"] = reviews.map((value) => (value).toJson()).toList(); | 5330 _json["reviews"] = reviews.map((value) => (value).toJson()).toList(); |
5077 } | 5331 } |
5078 if (tokenPagination != null) { | 5332 if (tokenPagination != null) { |
5079 _json["tokenPagination"] = (tokenPagination).toJson(); | 5333 _json["tokenPagination"] = (tokenPagination).toJson(); |
5080 } | 5334 } |
5081 return _json; | 5335 return _json; |
5082 } | 5336 } |
5083 } | 5337 } |
5084 | 5338 |
5085 class ReviewsReplyRequest { | 5339 class ReviewsReplyRequest { |
5086 /** | 5340 /// The text to set as the reply. Replies of more than approximately 350 |
5087 * The text to set as the reply. Replies of more than approximately 350 | 5341 /// characters will be rejected. HTML tags will be stripped. |
5088 * characters will be rejected. HTML tags will be stripped. | |
5089 */ | |
5090 core.String replyText; | 5342 core.String replyText; |
5091 | 5343 |
5092 ReviewsReplyRequest(); | 5344 ReviewsReplyRequest(); |
5093 | 5345 |
5094 ReviewsReplyRequest.fromJson(core.Map _json) { | 5346 ReviewsReplyRequest.fromJson(core.Map _json) { |
5095 if (_json.containsKey("replyText")) { | 5347 if (_json.containsKey("replyText")) { |
5096 replyText = _json["replyText"]; | 5348 replyText = _json["replyText"]; |
5097 } | 5349 } |
5098 } | 5350 } |
5099 | 5351 |
5100 core.Map<core.String, core.Object> toJson() { | 5352 core.Map<core.String, core.Object> toJson() { |
5101 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5353 final core.Map<core.String, core.Object> _json = |
| 5354 new core.Map<core.String, core.Object>(); |
5102 if (replyText != null) { | 5355 if (replyText != null) { |
5103 _json["replyText"] = replyText; | 5356 _json["replyText"] = replyText; |
5104 } | 5357 } |
5105 return _json; | 5358 return _json; |
5106 } | 5359 } |
5107 } | 5360 } |
5108 | 5361 |
5109 class ReviewsReplyResponse { | 5362 class ReviewsReplyResponse { |
5110 ReviewReplyResult result; | 5363 ReviewReplyResult result; |
5111 | 5364 |
5112 ReviewsReplyResponse(); | 5365 ReviewsReplyResponse(); |
5113 | 5366 |
5114 ReviewsReplyResponse.fromJson(core.Map _json) { | 5367 ReviewsReplyResponse.fromJson(core.Map _json) { |
5115 if (_json.containsKey("result")) { | 5368 if (_json.containsKey("result")) { |
5116 result = new ReviewReplyResult.fromJson(_json["result"]); | 5369 result = new ReviewReplyResult.fromJson(_json["result"]); |
5117 } | 5370 } |
5118 } | 5371 } |
5119 | 5372 |
5120 core.Map<core.String, core.Object> toJson() { | 5373 core.Map<core.String, core.Object> toJson() { |
5121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5374 final core.Map<core.String, core.Object> _json = |
| 5375 new core.Map<core.String, core.Object>(); |
5122 if (result != null) { | 5376 if (result != null) { |
5123 _json["result"] = (result).toJson(); | 5377 _json["result"] = (result).toJson(); |
5124 } | 5378 } |
5125 return _json; | 5379 return _json; |
5126 } | 5380 } |
5127 } | 5381 } |
5128 | 5382 |
5129 class Season { | 5383 class Season { |
5130 /** Inclusive end date of the recurrence period. */ | 5384 /// Inclusive end date of the recurrence period. |
5131 MonthDay end; | 5385 MonthDay end; |
5132 /** | 5386 |
5133 * Optionally present list of prorations for the season. Each proration is a | 5387 /// Optionally present list of prorations for the season. Each proration is a |
5134 * one-off discounted entry into a subscription. Each proration contains the | 5388 /// one-off discounted entry into a subscription. Each proration contains the |
5135 * first date on which the discount is available and the new pricing | 5389 /// first date on which the discount is available and the new pricing |
5136 * information. | 5390 /// information. |
5137 */ | |
5138 core.List<Prorate> prorations; | 5391 core.List<Prorate> prorations; |
5139 /** Inclusive start date of the recurrence period. */ | 5392 |
| 5393 /// Inclusive start date of the recurrence period. |
5140 MonthDay start; | 5394 MonthDay start; |
5141 | 5395 |
5142 Season(); | 5396 Season(); |
5143 | 5397 |
5144 Season.fromJson(core.Map _json) { | 5398 Season.fromJson(core.Map _json) { |
5145 if (_json.containsKey("end")) { | 5399 if (_json.containsKey("end")) { |
5146 end = new MonthDay.fromJson(_json["end"]); | 5400 end = new MonthDay.fromJson(_json["end"]); |
5147 } | 5401 } |
5148 if (_json.containsKey("prorations")) { | 5402 if (_json.containsKey("prorations")) { |
5149 prorations = _json["prorations"].map((value) => new Prorate.fromJson(value
)).toList(); | 5403 prorations = _json["prorations"] |
| 5404 .map((value) => new Prorate.fromJson(value)) |
| 5405 .toList(); |
5150 } | 5406 } |
5151 if (_json.containsKey("start")) { | 5407 if (_json.containsKey("start")) { |
5152 start = new MonthDay.fromJson(_json["start"]); | 5408 start = new MonthDay.fromJson(_json["start"]); |
5153 } | 5409 } |
5154 } | 5410 } |
5155 | 5411 |
5156 core.Map<core.String, core.Object> toJson() { | 5412 core.Map<core.String, core.Object> toJson() { |
5157 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5413 final core.Map<core.String, core.Object> _json = |
| 5414 new core.Map<core.String, core.Object>(); |
5158 if (end != null) { | 5415 if (end != null) { |
5159 _json["end"] = (end).toJson(); | 5416 _json["end"] = (end).toJson(); |
5160 } | 5417 } |
5161 if (prorations != null) { | 5418 if (prorations != null) { |
5162 _json["prorations"] = prorations.map((value) => (value).toJson()).toList()
; | 5419 _json["prorations"] = |
| 5420 prorations.map((value) => (value).toJson()).toList(); |
5163 } | 5421 } |
5164 if (start != null) { | 5422 if (start != null) { |
5165 _json["start"] = (start).toJson(); | 5423 _json["start"] = (start).toJson(); |
5166 } | 5424 } |
5167 return _json; | 5425 return _json; |
5168 } | 5426 } |
5169 } | 5427 } |
5170 | 5428 |
5171 /** | 5429 /// A SubscriptionDeferralInfo contains the data needed to defer a subscription |
5172 * A SubscriptionDeferralInfo contains the data needed to defer a subscription | 5430 /// purchase to a future expiry time. |
5173 * purchase to a future expiry time. | |
5174 */ | |
5175 class SubscriptionDeferralInfo { | 5431 class SubscriptionDeferralInfo { |
5176 /** | 5432 /// The desired next expiry time to assign to the subscription, in |
5177 * The desired next expiry time to assign to the subscription, in milliseconds | 5433 /// milliseconds since the Epoch. The given time must be later/greater than |
5178 * since the Epoch. The given time must be later/greater than the current | 5434 /// the current expiry time for the subscription. |
5179 * expiry time for the subscription. | |
5180 */ | |
5181 core.String desiredExpiryTimeMillis; | 5435 core.String desiredExpiryTimeMillis; |
5182 /** | 5436 |
5183 * The expected expiry time for the subscription. If the current expiry time | 5437 /// The expected expiry time for the subscription. If the current expiry time |
5184 * for the subscription is not the value specified here, the deferral will not | 5438 /// for the subscription is not the value specified here, the deferral will |
5185 * occur. | 5439 /// not occur. |
5186 */ | |
5187 core.String expectedExpiryTimeMillis; | 5440 core.String expectedExpiryTimeMillis; |
5188 | 5441 |
5189 SubscriptionDeferralInfo(); | 5442 SubscriptionDeferralInfo(); |
5190 | 5443 |
5191 SubscriptionDeferralInfo.fromJson(core.Map _json) { | 5444 SubscriptionDeferralInfo.fromJson(core.Map _json) { |
5192 if (_json.containsKey("desiredExpiryTimeMillis")) { | 5445 if (_json.containsKey("desiredExpiryTimeMillis")) { |
5193 desiredExpiryTimeMillis = _json["desiredExpiryTimeMillis"]; | 5446 desiredExpiryTimeMillis = _json["desiredExpiryTimeMillis"]; |
5194 } | 5447 } |
5195 if (_json.containsKey("expectedExpiryTimeMillis")) { | 5448 if (_json.containsKey("expectedExpiryTimeMillis")) { |
5196 expectedExpiryTimeMillis = _json["expectedExpiryTimeMillis"]; | 5449 expectedExpiryTimeMillis = _json["expectedExpiryTimeMillis"]; |
5197 } | 5450 } |
5198 } | 5451 } |
5199 | 5452 |
5200 core.Map<core.String, core.Object> toJson() { | 5453 core.Map<core.String, core.Object> toJson() { |
5201 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5454 final core.Map<core.String, core.Object> _json = |
| 5455 new core.Map<core.String, core.Object>(); |
5202 if (desiredExpiryTimeMillis != null) { | 5456 if (desiredExpiryTimeMillis != null) { |
5203 _json["desiredExpiryTimeMillis"] = desiredExpiryTimeMillis; | 5457 _json["desiredExpiryTimeMillis"] = desiredExpiryTimeMillis; |
5204 } | 5458 } |
5205 if (expectedExpiryTimeMillis != null) { | 5459 if (expectedExpiryTimeMillis != null) { |
5206 _json["expectedExpiryTimeMillis"] = expectedExpiryTimeMillis; | 5460 _json["expectedExpiryTimeMillis"] = expectedExpiryTimeMillis; |
5207 } | 5461 } |
5208 return _json; | 5462 return _json; |
5209 } | 5463 } |
5210 } | 5464 } |
5211 | 5465 |
5212 /** | 5466 /// A SubscriptionPurchase resource indicates the status of a user's |
5213 * A SubscriptionPurchase resource indicates the status of a user's subscription | 5467 /// subscription purchase. |
5214 * purchase. | |
5215 */ | |
5216 class SubscriptionPurchase { | 5468 class SubscriptionPurchase { |
5217 /** | 5469 /// Whether the subscription will automatically be renewed when it reaches |
5218 * Whether the subscription will automatically be renewed when it reaches its | 5470 /// its current expiry time. |
5219 * current expiry time. | |
5220 */ | |
5221 core.bool autoRenewing; | 5471 core.bool autoRenewing; |
5222 /** | 5472 |
5223 * The reason why a subscription was cancelled or is not auto-renewing. | 5473 /// The reason why a subscription was cancelled or is not auto-renewing. |
5224 * Possible values are: | 5474 /// Possible values are: |
5225 * - User cancelled the subscription | 5475 /// - User cancelled the subscription |
5226 * - Subscription was cancelled by the system, for example because of a | 5476 /// - Subscription was cancelled by the system, for example because of a |
5227 * billing problem | 5477 /// billing problem |
5228 */ | |
5229 core.int cancelReason; | 5478 core.int cancelReason; |
5230 /** | 5479 |
5231 * ISO 3166-1 alpha-2 billing country/region code of the user at the time the | 5480 /// ISO 3166-1 alpha-2 billing country/region code of the user at the time |
5232 * subscription was granted. | 5481 /// the subscription was granted. |
5233 */ | |
5234 core.String countryCode; | 5482 core.String countryCode; |
5235 /** | 5483 |
5236 * A developer-specified string that contains supplemental information about | 5484 /// A developer-specified string that contains supplemental information about |
5237 * an order. | 5485 /// an order. |
5238 */ | |
5239 core.String developerPayload; | 5486 core.String developerPayload; |
5240 /** | 5487 |
5241 * Time at which the subscription will expire, in milliseconds since the | 5488 /// Time at which the subscription will expire, in milliseconds since the |
5242 * Epoch. | 5489 /// Epoch. |
5243 */ | |
5244 core.String expiryTimeMillis; | 5490 core.String expiryTimeMillis; |
5245 /** | 5491 |
5246 * This kind represents a subscriptionPurchase object in the androidpublisher | 5492 /// This kind represents a subscriptionPurchase object in the |
5247 * service. | 5493 /// androidpublisher service. |
5248 */ | |
5249 core.String kind; | 5494 core.String kind; |
5250 /** | 5495 |
5251 * The order id of the latest recurring order associated with the purchase of | 5496 /// The order id of the latest recurring order associated with the purchase |
5252 * the subscription. | 5497 /// of the subscription. |
5253 */ | |
5254 core.String orderId; | 5498 core.String orderId; |
5255 /** | 5499 |
5256 * The payment state of the subscription. Possible values are: | 5500 /// The payment state of the subscription. Possible values are: |
5257 * - Payment pending | 5501 /// - Payment pending |
5258 * - Payment received | 5502 /// - Payment received |
5259 * - Free trial | 5503 /// - Free trial |
5260 */ | |
5261 core.int paymentState; | 5504 core.int paymentState; |
5262 /** | 5505 |
5263 * Price of the subscription, not including tax. Price is expressed in | 5506 /// Price of the subscription, not including tax. Price is expressed in |
5264 * micro-units, where 1,000,000 micro-units represents one unit of the | 5507 /// micro-units, where 1,000,000 micro-units represents one unit of the |
5265 * currency. For example, if the subscription price is €1.99, | 5508 /// currency. For example, if the subscription price is €1.99, |
5266 * price_amount_micros is 1990000. | 5509 /// price_amount_micros is 1990000. |
5267 */ | |
5268 core.String priceAmountMicros; | 5510 core.String priceAmountMicros; |
5269 /** | 5511 |
5270 * ISO 4217 currency code for the subscription price. For example, if the | 5512 /// ISO 4217 currency code for the subscription price. For example, if the |
5271 * price is specified in British pounds sterling, price_currency_code is | 5513 /// price is specified in British pounds sterling, price_currency_code is |
5272 * "GBP". | 5514 /// "GBP". |
5273 */ | |
5274 core.String priceCurrencyCode; | 5515 core.String priceCurrencyCode; |
5275 /** | 5516 |
5276 * Time at which the subscription was granted, in milliseconds since the | 5517 /// Time at which the subscription was granted, in milliseconds since the |
5277 * Epoch. | 5518 /// Epoch. |
5278 */ | |
5279 core.String startTimeMillis; | 5519 core.String startTimeMillis; |
5280 /** | 5520 |
5281 * The time at which the subscription was canceled by the user, in | 5521 /// The time at which the subscription was canceled by the user, in |
5282 * milliseconds since the epoch. Only present if cancelReason is 0. | 5522 /// milliseconds since the epoch. Only present if cancelReason is 0. |
5283 */ | |
5284 core.String userCancellationTimeMillis; | 5523 core.String userCancellationTimeMillis; |
5285 | 5524 |
5286 SubscriptionPurchase(); | 5525 SubscriptionPurchase(); |
5287 | 5526 |
5288 SubscriptionPurchase.fromJson(core.Map _json) { | 5527 SubscriptionPurchase.fromJson(core.Map _json) { |
5289 if (_json.containsKey("autoRenewing")) { | 5528 if (_json.containsKey("autoRenewing")) { |
5290 autoRenewing = _json["autoRenewing"]; | 5529 autoRenewing = _json["autoRenewing"]; |
5291 } | 5530 } |
5292 if (_json.containsKey("cancelReason")) { | 5531 if (_json.containsKey("cancelReason")) { |
5293 cancelReason = _json["cancelReason"]; | 5532 cancelReason = _json["cancelReason"]; |
(...skipping 24 matching lines...) Expand all Loading... |
5318 } | 5557 } |
5319 if (_json.containsKey("startTimeMillis")) { | 5558 if (_json.containsKey("startTimeMillis")) { |
5320 startTimeMillis = _json["startTimeMillis"]; | 5559 startTimeMillis = _json["startTimeMillis"]; |
5321 } | 5560 } |
5322 if (_json.containsKey("userCancellationTimeMillis")) { | 5561 if (_json.containsKey("userCancellationTimeMillis")) { |
5323 userCancellationTimeMillis = _json["userCancellationTimeMillis"]; | 5562 userCancellationTimeMillis = _json["userCancellationTimeMillis"]; |
5324 } | 5563 } |
5325 } | 5564 } |
5326 | 5565 |
5327 core.Map<core.String, core.Object> toJson() { | 5566 core.Map<core.String, core.Object> toJson() { |
5328 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5567 final core.Map<core.String, core.Object> _json = |
| 5568 new core.Map<core.String, core.Object>(); |
5329 if (autoRenewing != null) { | 5569 if (autoRenewing != null) { |
5330 _json["autoRenewing"] = autoRenewing; | 5570 _json["autoRenewing"] = autoRenewing; |
5331 } | 5571 } |
5332 if (cancelReason != null) { | 5572 if (cancelReason != null) { |
5333 _json["cancelReason"] = cancelReason; | 5573 _json["cancelReason"] = cancelReason; |
5334 } | 5574 } |
5335 if (countryCode != null) { | 5575 if (countryCode != null) { |
5336 _json["countryCode"] = countryCode; | 5576 _json["countryCode"] = countryCode; |
5337 } | 5577 } |
5338 if (developerPayload != null) { | 5578 if (developerPayload != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
5360 _json["startTimeMillis"] = startTimeMillis; | 5600 _json["startTimeMillis"] = startTimeMillis; |
5361 } | 5601 } |
5362 if (userCancellationTimeMillis != null) { | 5602 if (userCancellationTimeMillis != null) { |
5363 _json["userCancellationTimeMillis"] = userCancellationTimeMillis; | 5603 _json["userCancellationTimeMillis"] = userCancellationTimeMillis; |
5364 } | 5604 } |
5365 return _json; | 5605 return _json; |
5366 } | 5606 } |
5367 } | 5607 } |
5368 | 5608 |
5369 class SubscriptionPurchasesDeferRequest { | 5609 class SubscriptionPurchasesDeferRequest { |
5370 /** | 5610 /// The information about the new desired expiry time for the subscription. |
5371 * The information about the new desired expiry time for the subscription. | |
5372 */ | |
5373 SubscriptionDeferralInfo deferralInfo; | 5611 SubscriptionDeferralInfo deferralInfo; |
5374 | 5612 |
5375 SubscriptionPurchasesDeferRequest(); | 5613 SubscriptionPurchasesDeferRequest(); |
5376 | 5614 |
5377 SubscriptionPurchasesDeferRequest.fromJson(core.Map _json) { | 5615 SubscriptionPurchasesDeferRequest.fromJson(core.Map _json) { |
5378 if (_json.containsKey("deferralInfo")) { | 5616 if (_json.containsKey("deferralInfo")) { |
5379 deferralInfo = new SubscriptionDeferralInfo.fromJson(_json["deferralInfo"]
); | 5617 deferralInfo = |
| 5618 new SubscriptionDeferralInfo.fromJson(_json["deferralInfo"]); |
5380 } | 5619 } |
5381 } | 5620 } |
5382 | 5621 |
5383 core.Map<core.String, core.Object> toJson() { | 5622 core.Map<core.String, core.Object> toJson() { |
5384 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5623 final core.Map<core.String, core.Object> _json = |
| 5624 new core.Map<core.String, core.Object>(); |
5385 if (deferralInfo != null) { | 5625 if (deferralInfo != null) { |
5386 _json["deferralInfo"] = (deferralInfo).toJson(); | 5626 _json["deferralInfo"] = (deferralInfo).toJson(); |
5387 } | 5627 } |
5388 return _json; | 5628 return _json; |
5389 } | 5629 } |
5390 } | 5630 } |
5391 | 5631 |
5392 class SubscriptionPurchasesDeferResponse { | 5632 class SubscriptionPurchasesDeferResponse { |
5393 /** | 5633 /// The new expiry time for the subscription in milliseconds since the Epoch. |
5394 * The new expiry time for the subscription in milliseconds since the Epoch. | |
5395 */ | |
5396 core.String newExpiryTimeMillis; | 5634 core.String newExpiryTimeMillis; |
5397 | 5635 |
5398 SubscriptionPurchasesDeferResponse(); | 5636 SubscriptionPurchasesDeferResponse(); |
5399 | 5637 |
5400 SubscriptionPurchasesDeferResponse.fromJson(core.Map _json) { | 5638 SubscriptionPurchasesDeferResponse.fromJson(core.Map _json) { |
5401 if (_json.containsKey("newExpiryTimeMillis")) { | 5639 if (_json.containsKey("newExpiryTimeMillis")) { |
5402 newExpiryTimeMillis = _json["newExpiryTimeMillis"]; | 5640 newExpiryTimeMillis = _json["newExpiryTimeMillis"]; |
5403 } | 5641 } |
5404 } | 5642 } |
5405 | 5643 |
5406 core.Map<core.String, core.Object> toJson() { | 5644 core.Map<core.String, core.Object> toJson() { |
5407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5645 final core.Map<core.String, core.Object> _json = |
| 5646 new core.Map<core.String, core.Object>(); |
5408 if (newExpiryTimeMillis != null) { | 5647 if (newExpiryTimeMillis != null) { |
5409 _json["newExpiryTimeMillis"] = newExpiryTimeMillis; | 5648 _json["newExpiryTimeMillis"] = newExpiryTimeMillis; |
5410 } | 5649 } |
5411 return _json; | 5650 return _json; |
5412 } | 5651 } |
5413 } | 5652 } |
5414 | 5653 |
5415 class Testers { | 5654 class Testers { |
5416 core.List<core.String> googleGroups; | 5655 core.List<core.String> googleGroups; |
5417 core.List<core.String> googlePlusCommunities; | 5656 core.List<core.String> googlePlusCommunities; |
5418 | 5657 |
5419 Testers(); | 5658 Testers(); |
5420 | 5659 |
5421 Testers.fromJson(core.Map _json) { | 5660 Testers.fromJson(core.Map _json) { |
5422 if (_json.containsKey("googleGroups")) { | 5661 if (_json.containsKey("googleGroups")) { |
5423 googleGroups = _json["googleGroups"]; | 5662 googleGroups = _json["googleGroups"]; |
5424 } | 5663 } |
5425 if (_json.containsKey("googlePlusCommunities")) { | 5664 if (_json.containsKey("googlePlusCommunities")) { |
5426 googlePlusCommunities = _json["googlePlusCommunities"]; | 5665 googlePlusCommunities = _json["googlePlusCommunities"]; |
5427 } | 5666 } |
5428 } | 5667 } |
5429 | 5668 |
5430 core.Map<core.String, core.Object> toJson() { | 5669 core.Map<core.String, core.Object> toJson() { |
5431 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5670 final core.Map<core.String, core.Object> _json = |
| 5671 new core.Map<core.String, core.Object>(); |
5432 if (googleGroups != null) { | 5672 if (googleGroups != null) { |
5433 _json["googleGroups"] = googleGroups; | 5673 _json["googleGroups"] = googleGroups; |
5434 } | 5674 } |
5435 if (googlePlusCommunities != null) { | 5675 if (googlePlusCommunities != null) { |
5436 _json["googlePlusCommunities"] = googlePlusCommunities; | 5676 _json["googlePlusCommunities"] = googlePlusCommunities; |
5437 } | 5677 } |
5438 return _json; | 5678 return _json; |
5439 } | 5679 } |
5440 } | 5680 } |
5441 | 5681 |
5442 class Timestamp { | 5682 class Timestamp { |
5443 core.int nanos; | 5683 core.int nanos; |
5444 core.String seconds; | 5684 core.String seconds; |
5445 | 5685 |
5446 Timestamp(); | 5686 Timestamp(); |
5447 | 5687 |
5448 Timestamp.fromJson(core.Map _json) { | 5688 Timestamp.fromJson(core.Map _json) { |
5449 if (_json.containsKey("nanos")) { | 5689 if (_json.containsKey("nanos")) { |
5450 nanos = _json["nanos"]; | 5690 nanos = _json["nanos"]; |
5451 } | 5691 } |
5452 if (_json.containsKey("seconds")) { | 5692 if (_json.containsKey("seconds")) { |
5453 seconds = _json["seconds"]; | 5693 seconds = _json["seconds"]; |
5454 } | 5694 } |
5455 } | 5695 } |
5456 | 5696 |
5457 core.Map<core.String, core.Object> toJson() { | 5697 core.Map<core.String, core.Object> toJson() { |
5458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5698 final core.Map<core.String, core.Object> _json = |
| 5699 new core.Map<core.String, core.Object>(); |
5459 if (nanos != null) { | 5700 if (nanos != null) { |
5460 _json["nanos"] = nanos; | 5701 _json["nanos"] = nanos; |
5461 } | 5702 } |
5462 if (seconds != null) { | 5703 if (seconds != null) { |
5463 _json["seconds"] = seconds; | 5704 _json["seconds"] = seconds; |
5464 } | 5705 } |
5465 return _json; | 5706 return _json; |
5466 } | 5707 } |
5467 } | 5708 } |
5468 | 5709 |
5469 class TokenPagination { | 5710 class TokenPagination { |
5470 core.String nextPageToken; | 5711 core.String nextPageToken; |
5471 core.String previousPageToken; | 5712 core.String previousPageToken; |
5472 | 5713 |
5473 TokenPagination(); | 5714 TokenPagination(); |
5474 | 5715 |
5475 TokenPagination.fromJson(core.Map _json) { | 5716 TokenPagination.fromJson(core.Map _json) { |
5476 if (_json.containsKey("nextPageToken")) { | 5717 if (_json.containsKey("nextPageToken")) { |
5477 nextPageToken = _json["nextPageToken"]; | 5718 nextPageToken = _json["nextPageToken"]; |
5478 } | 5719 } |
5479 if (_json.containsKey("previousPageToken")) { | 5720 if (_json.containsKey("previousPageToken")) { |
5480 previousPageToken = _json["previousPageToken"]; | 5721 previousPageToken = _json["previousPageToken"]; |
5481 } | 5722 } |
5482 } | 5723 } |
5483 | 5724 |
5484 core.Map<core.String, core.Object> toJson() { | 5725 core.Map<core.String, core.Object> toJson() { |
5485 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5726 final core.Map<core.String, core.Object> _json = |
| 5727 new core.Map<core.String, core.Object>(); |
5486 if (nextPageToken != null) { | 5728 if (nextPageToken != null) { |
5487 _json["nextPageToken"] = nextPageToken; | 5729 _json["nextPageToken"] = nextPageToken; |
5488 } | 5730 } |
5489 if (previousPageToken != null) { | 5731 if (previousPageToken != null) { |
5490 _json["previousPageToken"] = previousPageToken; | 5732 _json["previousPageToken"] = previousPageToken; |
5491 } | 5733 } |
5492 return _json; | 5734 return _json; |
5493 } | 5735 } |
5494 } | 5736 } |
5495 | 5737 |
(...skipping 10 matching lines...) Expand all Loading... |
5506 } | 5748 } |
5507 if (_json.containsKey("userFraction")) { | 5749 if (_json.containsKey("userFraction")) { |
5508 userFraction = _json["userFraction"]; | 5750 userFraction = _json["userFraction"]; |
5509 } | 5751 } |
5510 if (_json.containsKey("versionCodes")) { | 5752 if (_json.containsKey("versionCodes")) { |
5511 versionCodes = _json["versionCodes"]; | 5753 versionCodes = _json["versionCodes"]; |
5512 } | 5754 } |
5513 } | 5755 } |
5514 | 5756 |
5515 core.Map<core.String, core.Object> toJson() { | 5757 core.Map<core.String, core.Object> toJson() { |
5516 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5758 final core.Map<core.String, core.Object> _json = |
| 5759 new core.Map<core.String, core.Object>(); |
5517 if (track != null) { | 5760 if (track != null) { |
5518 _json["track"] = track; | 5761 _json["track"] = track; |
5519 } | 5762 } |
5520 if (userFraction != null) { | 5763 if (userFraction != null) { |
5521 _json["userFraction"] = userFraction; | 5764 _json["userFraction"] = userFraction; |
5522 } | 5765 } |
5523 if (versionCodes != null) { | 5766 if (versionCodes != null) { |
5524 _json["versionCodes"] = versionCodes; | 5767 _json["versionCodes"] = versionCodes; |
5525 } | 5768 } |
5526 return _json; | 5769 return _json; |
5527 } | 5770 } |
5528 } | 5771 } |
5529 | 5772 |
5530 class TracksListResponse { | 5773 class TracksListResponse { |
5531 /** | 5774 /// Identifies what kind of resource this is. Value: the fixed string |
5532 * Identifies what kind of resource this is. Value: the fixed string | 5775 /// "androidpublisher#tracksListResponse". |
5533 * "androidpublisher#tracksListResponse". | |
5534 */ | |
5535 core.String kind; | 5776 core.String kind; |
5536 core.List<Track> tracks; | 5777 core.List<Track> tracks; |
5537 | 5778 |
5538 TracksListResponse(); | 5779 TracksListResponse(); |
5539 | 5780 |
5540 TracksListResponse.fromJson(core.Map _json) { | 5781 TracksListResponse.fromJson(core.Map _json) { |
5541 if (_json.containsKey("kind")) { | 5782 if (_json.containsKey("kind")) { |
5542 kind = _json["kind"]; | 5783 kind = _json["kind"]; |
5543 } | 5784 } |
5544 if (_json.containsKey("tracks")) { | 5785 if (_json.containsKey("tracks")) { |
5545 tracks = _json["tracks"].map((value) => new Track.fromJson(value)).toList(
); | 5786 tracks = |
| 5787 _json["tracks"].map((value) => new Track.fromJson(value)).toList(); |
5546 } | 5788 } |
5547 } | 5789 } |
5548 | 5790 |
5549 core.Map<core.String, core.Object> toJson() { | 5791 core.Map<core.String, core.Object> toJson() { |
5550 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5792 final core.Map<core.String, core.Object> _json = |
| 5793 new core.Map<core.String, core.Object>(); |
5551 if (kind != null) { | 5794 if (kind != null) { |
5552 _json["kind"] = kind; | 5795 _json["kind"] = kind; |
5553 } | 5796 } |
5554 if (tracks != null) { | 5797 if (tracks != null) { |
5555 _json["tracks"] = tracks.map((value) => (value).toJson()).toList(); | 5798 _json["tracks"] = tracks.map((value) => (value).toJson()).toList(); |
5556 } | 5799 } |
5557 return _json; | 5800 return _json; |
5558 } | 5801 } |
5559 } | 5802 } |
5560 | 5803 |
5561 class UserComment { | 5804 class UserComment { |
5562 /** | 5805 /// Integer Android SDK version of the user's device at the time the review |
5563 * Integer Android SDK version of the user's device at the time the review was | 5806 /// was written, e.g. 23 is Marshmallow. May be absent. |
5564 * written, e.g. 23 is Marshmallow. May be absent. | |
5565 */ | |
5566 core.int androidOsVersion; | 5807 core.int androidOsVersion; |
5567 /** | 5808 |
5568 * Integer version code of the app as installed at the time the review was | 5809 /// Integer version code of the app as installed at the time the review was |
5569 * written. May be absent. | 5810 /// written. May be absent. |
5570 */ | |
5571 core.int appVersionCode; | 5811 core.int appVersionCode; |
5572 /** | 5812 |
5573 * String version name of the app as installed at the time the review was | 5813 /// String version name of the app as installed at the time the review was |
5574 * written. May be absent. | 5814 /// written. May be absent. |
5575 */ | |
5576 core.String appVersionName; | 5815 core.String appVersionName; |
5577 /** | 5816 |
5578 * Codename for the reviewer's device, e.g. klte, flounder. May be absent. | 5817 /// Codename for the reviewer's device, e.g. klte, flounder. May be absent. |
5579 */ | |
5580 core.String device; | 5818 core.String device; |
5581 /** Some information about the characteristics of the user's device */ | 5819 |
| 5820 /// Some information about the characteristics of the user's device |
5582 DeviceMetadata deviceMetadata; | 5821 DeviceMetadata deviceMetadata; |
5583 /** The last time at which this comment was updated. */ | 5822 |
| 5823 /// The last time at which this comment was updated. |
5584 Timestamp lastModified; | 5824 Timestamp lastModified; |
5585 /** | 5825 |
5586 * Untranslated text of the review, in the case where the review has been | 5826 /// Untranslated text of the review, in the case where the review has been |
5587 * translated. If the review has not been translated this is left blank. | 5827 /// translated. If the review has not been translated this is left blank. |
5588 */ | |
5589 core.String originalText; | 5828 core.String originalText; |
5590 /** | 5829 |
5591 * Language code for the reviewer. This is taken from the device settings so | 5830 /// Language code for the reviewer. This is taken from the device settings so |
5592 * is not guaranteed to match the language the review is written in. May be | 5831 /// is not guaranteed to match the language the review is written in. May be |
5593 * absent. | 5832 /// absent. |
5594 */ | |
5595 core.String reviewerLanguage; | 5833 core.String reviewerLanguage; |
5596 /** The star rating associated with the review, from 1 to 5. */ | 5834 |
| 5835 /// The star rating associated with the review, from 1 to 5. |
5597 core.int starRating; | 5836 core.int starRating; |
5598 /** | 5837 |
5599 * The content of the comment, i.e. review body. In some cases users have been | 5838 /// The content of the comment, i.e. review body. In some cases users have |
5600 * able to write a review with separate title and body; in those cases the | 5839 /// been able to write a review with separate title and body; in those cases |
5601 * title and body are concatenated and separated by a tab character. | 5840 /// the title and body are concatenated and separated by a tab character. |
5602 */ | |
5603 core.String text; | 5841 core.String text; |
5604 /** Number of users who have given this review a thumbs down */ | 5842 |
| 5843 /// Number of users who have given this review a thumbs down |
5605 core.int thumbsDownCount; | 5844 core.int thumbsDownCount; |
5606 /** Number of users who have given this review a thumbs up */ | 5845 |
| 5846 /// Number of users who have given this review a thumbs up |
5607 core.int thumbsUpCount; | 5847 core.int thumbsUpCount; |
5608 | 5848 |
5609 UserComment(); | 5849 UserComment(); |
5610 | 5850 |
5611 UserComment.fromJson(core.Map _json) { | 5851 UserComment.fromJson(core.Map _json) { |
5612 if (_json.containsKey("androidOsVersion")) { | 5852 if (_json.containsKey("androidOsVersion")) { |
5613 androidOsVersion = _json["androidOsVersion"]; | 5853 androidOsVersion = _json["androidOsVersion"]; |
5614 } | 5854 } |
5615 if (_json.containsKey("appVersionCode")) { | 5855 if (_json.containsKey("appVersionCode")) { |
5616 appVersionCode = _json["appVersionCode"]; | 5856 appVersionCode = _json["appVersionCode"]; |
(...skipping 24 matching lines...) Expand all Loading... |
5641 } | 5881 } |
5642 if (_json.containsKey("thumbsDownCount")) { | 5882 if (_json.containsKey("thumbsDownCount")) { |
5643 thumbsDownCount = _json["thumbsDownCount"]; | 5883 thumbsDownCount = _json["thumbsDownCount"]; |
5644 } | 5884 } |
5645 if (_json.containsKey("thumbsUpCount")) { | 5885 if (_json.containsKey("thumbsUpCount")) { |
5646 thumbsUpCount = _json["thumbsUpCount"]; | 5886 thumbsUpCount = _json["thumbsUpCount"]; |
5647 } | 5887 } |
5648 } | 5888 } |
5649 | 5889 |
5650 core.Map<core.String, core.Object> toJson() { | 5890 core.Map<core.String, core.Object> toJson() { |
5651 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5891 final core.Map<core.String, core.Object> _json = |
| 5892 new core.Map<core.String, core.Object>(); |
5652 if (androidOsVersion != null) { | 5893 if (androidOsVersion != null) { |
5653 _json["androidOsVersion"] = androidOsVersion; | 5894 _json["androidOsVersion"] = androidOsVersion; |
5654 } | 5895 } |
5655 if (appVersionCode != null) { | 5896 if (appVersionCode != null) { |
5656 _json["appVersionCode"] = appVersionCode; | 5897 _json["appVersionCode"] = appVersionCode; |
5657 } | 5898 } |
5658 if (appVersionName != null) { | 5899 if (appVersionName != null) { |
5659 _json["appVersionName"] = appVersionName; | 5900 _json["appVersionName"] = appVersionName; |
5660 } | 5901 } |
5661 if (device != null) { | 5902 if (device != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
5682 if (thumbsDownCount != null) { | 5923 if (thumbsDownCount != null) { |
5683 _json["thumbsDownCount"] = thumbsDownCount; | 5924 _json["thumbsDownCount"] = thumbsDownCount; |
5684 } | 5925 } |
5685 if (thumbsUpCount != null) { | 5926 if (thumbsUpCount != null) { |
5686 _json["thumbsUpCount"] = thumbsUpCount; | 5927 _json["thumbsUpCount"] = thumbsUpCount; |
5687 } | 5928 } |
5688 return _json; | 5929 return _json; |
5689 } | 5930 } |
5690 } | 5931 } |
5691 | 5932 |
5692 /** | 5933 /// A VoidedPurchase resource indicates a purchase that was either |
5693 * A VoidedPurchase resource indicates a purchase that was either | 5934 /// cancelled/refunded/charged-back. |
5694 * cancelled/refunded/charged-back. | |
5695 */ | |
5696 class VoidedPurchase { | 5935 class VoidedPurchase { |
5697 /** | 5936 /// This kind represents a voided purchase object in the androidpublisher |
5698 * This kind represents a voided purchase object in the androidpublisher | 5937 /// service. |
5699 * service. | |
5700 */ | |
5701 core.String kind; | 5938 core.String kind; |
5702 /** | 5939 |
5703 * The time at which the purchase was made, in milliseconds since the epoch | 5940 /// The time at which the purchase was made, in milliseconds since the epoch |
5704 * (Jan 1, 1970). | 5941 /// (Jan 1, 1970). |
5705 */ | |
5706 core.String purchaseTimeMillis; | 5942 core.String purchaseTimeMillis; |
5707 /** | 5943 |
5708 * The token that was generated when a purchase was made. This uniquely | 5944 /// The token that was generated when a purchase was made. This uniquely |
5709 * identifies a purchase. | 5945 /// identifies a purchase. |
5710 */ | |
5711 core.String purchaseToken; | 5946 core.String purchaseToken; |
5712 /** | 5947 |
5713 * The time at which the purchase was cancelled/refunded/charged-back, in | 5948 /// The time at which the purchase was cancelled/refunded/charged-back, in |
5714 * milliseconds since the epoch (Jan 1, 1970). | 5949 /// milliseconds since the epoch (Jan 1, 1970). |
5715 */ | |
5716 core.String voidedTimeMillis; | 5950 core.String voidedTimeMillis; |
5717 | 5951 |
5718 VoidedPurchase(); | 5952 VoidedPurchase(); |
5719 | 5953 |
5720 VoidedPurchase.fromJson(core.Map _json) { | 5954 VoidedPurchase.fromJson(core.Map _json) { |
5721 if (_json.containsKey("kind")) { | 5955 if (_json.containsKey("kind")) { |
5722 kind = _json["kind"]; | 5956 kind = _json["kind"]; |
5723 } | 5957 } |
5724 if (_json.containsKey("purchaseTimeMillis")) { | 5958 if (_json.containsKey("purchaseTimeMillis")) { |
5725 purchaseTimeMillis = _json["purchaseTimeMillis"]; | 5959 purchaseTimeMillis = _json["purchaseTimeMillis"]; |
5726 } | 5960 } |
5727 if (_json.containsKey("purchaseToken")) { | 5961 if (_json.containsKey("purchaseToken")) { |
5728 purchaseToken = _json["purchaseToken"]; | 5962 purchaseToken = _json["purchaseToken"]; |
5729 } | 5963 } |
5730 if (_json.containsKey("voidedTimeMillis")) { | 5964 if (_json.containsKey("voidedTimeMillis")) { |
5731 voidedTimeMillis = _json["voidedTimeMillis"]; | 5965 voidedTimeMillis = _json["voidedTimeMillis"]; |
5732 } | 5966 } |
5733 } | 5967 } |
5734 | 5968 |
5735 core.Map<core.String, core.Object> toJson() { | 5969 core.Map<core.String, core.Object> toJson() { |
5736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5970 final core.Map<core.String, core.Object> _json = |
| 5971 new core.Map<core.String, core.Object>(); |
5737 if (kind != null) { | 5972 if (kind != null) { |
5738 _json["kind"] = kind; | 5973 _json["kind"] = kind; |
5739 } | 5974 } |
5740 if (purchaseTimeMillis != null) { | 5975 if (purchaseTimeMillis != null) { |
5741 _json["purchaseTimeMillis"] = purchaseTimeMillis; | 5976 _json["purchaseTimeMillis"] = purchaseTimeMillis; |
5742 } | 5977 } |
5743 if (purchaseToken != null) { | 5978 if (purchaseToken != null) { |
5744 _json["purchaseToken"] = purchaseToken; | 5979 _json["purchaseToken"] = purchaseToken; |
5745 } | 5980 } |
5746 if (voidedTimeMillis != null) { | 5981 if (voidedTimeMillis != null) { |
(...skipping 11 matching lines...) Expand all Loading... |
5758 VoidedPurchasesListResponse(); | 5993 VoidedPurchasesListResponse(); |
5759 | 5994 |
5760 VoidedPurchasesListResponse.fromJson(core.Map _json) { | 5995 VoidedPurchasesListResponse.fromJson(core.Map _json) { |
5761 if (_json.containsKey("pageInfo")) { | 5996 if (_json.containsKey("pageInfo")) { |
5762 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 5997 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
5763 } | 5998 } |
5764 if (_json.containsKey("tokenPagination")) { | 5999 if (_json.containsKey("tokenPagination")) { |
5765 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 6000 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
5766 } | 6001 } |
5767 if (_json.containsKey("voidedPurchases")) { | 6002 if (_json.containsKey("voidedPurchases")) { |
5768 voidedPurchases = _json["voidedPurchases"].map((value) => new VoidedPurcha
se.fromJson(value)).toList(); | 6003 voidedPurchases = _json["voidedPurchases"] |
| 6004 .map((value) => new VoidedPurchase.fromJson(value)) |
| 6005 .toList(); |
5769 } | 6006 } |
5770 } | 6007 } |
5771 | 6008 |
5772 core.Map<core.String, core.Object> toJson() { | 6009 core.Map<core.String, core.Object> toJson() { |
5773 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6010 final core.Map<core.String, core.Object> _json = |
| 6011 new core.Map<core.String, core.Object>(); |
5774 if (pageInfo != null) { | 6012 if (pageInfo != null) { |
5775 _json["pageInfo"] = (pageInfo).toJson(); | 6013 _json["pageInfo"] = (pageInfo).toJson(); |
5776 } | 6014 } |
5777 if (tokenPagination != null) { | 6015 if (tokenPagination != null) { |
5778 _json["tokenPagination"] = (tokenPagination).toJson(); | 6016 _json["tokenPagination"] = (tokenPagination).toJson(); |
5779 } | 6017 } |
5780 if (voidedPurchases != null) { | 6018 if (voidedPurchases != null) { |
5781 _json["voidedPurchases"] = voidedPurchases.map((value) => (value).toJson()
).toList(); | 6019 _json["voidedPurchases"] = |
| 6020 voidedPurchases.map((value) => (value).toJson()).toList(); |
5782 } | 6021 } |
5783 return _json; | 6022 return _json; |
5784 } | 6023 } |
5785 } | 6024 } |
OLD | NEW |