@maxim_mazurok/gapi.client.androidpublisher-v3 0.0.20220811
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +5457 -0
- package/package.json +20 -0
- package/readme.md +203 -0
- package/tests.ts +1292 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/tests.ts
ADDED
|
@@ -0,0 +1,1292 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.androidpublisher-v3 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20220811
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://androidpublisher.googleapis.com/$discovery/rest?version=v3');
|
|
12
|
+
/** now we can use gapi.client.androidpublisher */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** View and manage your Google Play Developer account */
|
|
19
|
+
'https://www.googleapis.com/auth/androidpublisher',
|
|
20
|
+
];
|
|
21
|
+
const immediate = false;
|
|
22
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
+
if (authResult && !authResult.error) {
|
|
24
|
+
/** handle successful authorization */
|
|
25
|
+
run();
|
|
26
|
+
} else {
|
|
27
|
+
/** handle authorization error */
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
/** Creates a new device tier config for an app. */
|
|
33
|
+
await gapi.client.androidpublisher.applications.deviceTierConfigs.create({
|
|
34
|
+
allowUnknownDevices: true,
|
|
35
|
+
packageName: "Test string",
|
|
36
|
+
}, {
|
|
37
|
+
deviceGroups: [
|
|
38
|
+
{
|
|
39
|
+
deviceSelectors: [
|
|
40
|
+
{
|
|
41
|
+
deviceRam: {
|
|
42
|
+
maxBytes: "Test string",
|
|
43
|
+
minBytes: "Test string",
|
|
44
|
+
},
|
|
45
|
+
excludedDeviceIds: [
|
|
46
|
+
{
|
|
47
|
+
buildBrand: "Test string",
|
|
48
|
+
buildDevice: "Test string",
|
|
49
|
+
}
|
|
50
|
+
],
|
|
51
|
+
forbiddenSystemFeatures: [
|
|
52
|
+
{
|
|
53
|
+
name: "Test string",
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
includedDeviceIds: [
|
|
57
|
+
{
|
|
58
|
+
buildBrand: "Test string",
|
|
59
|
+
buildDevice: "Test string",
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
requiredSystemFeatures: [
|
|
63
|
+
{
|
|
64
|
+
name: "Test string",
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
name: "Test string",
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
deviceTierConfigId: "Test string",
|
|
73
|
+
deviceTierSet: {
|
|
74
|
+
deviceTiers: [
|
|
75
|
+
{
|
|
76
|
+
deviceGroupNames: [
|
|
77
|
+
"Test string"
|
|
78
|
+
],
|
|
79
|
+
level: 42,
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
},
|
|
83
|
+
});
|
|
84
|
+
/** Returns a particular device tier config. */
|
|
85
|
+
await gapi.client.androidpublisher.applications.deviceTierConfigs.get({
|
|
86
|
+
deviceTierConfigId: "Test string",
|
|
87
|
+
packageName: "Test string",
|
|
88
|
+
});
|
|
89
|
+
/** Returns created device tier configs, ordered by descending creation time. */
|
|
90
|
+
await gapi.client.androidpublisher.applications.deviceTierConfigs.list({
|
|
91
|
+
packageName: "Test string",
|
|
92
|
+
pageSize: 42,
|
|
93
|
+
pageToken: "Test string",
|
|
94
|
+
});
|
|
95
|
+
/** Commits an app edit. */
|
|
96
|
+
await gapi.client.androidpublisher.edits.commit({
|
|
97
|
+
changesNotSentForReview: true,
|
|
98
|
+
editId: "Test string",
|
|
99
|
+
packageName: "Test string",
|
|
100
|
+
});
|
|
101
|
+
/** Deletes an app edit. */
|
|
102
|
+
await gapi.client.androidpublisher.edits.delete({
|
|
103
|
+
editId: "Test string",
|
|
104
|
+
packageName: "Test string",
|
|
105
|
+
});
|
|
106
|
+
/** Gets an app edit. */
|
|
107
|
+
await gapi.client.androidpublisher.edits.get({
|
|
108
|
+
editId: "Test string",
|
|
109
|
+
packageName: "Test string",
|
|
110
|
+
});
|
|
111
|
+
/** Creates a new edit for an app. */
|
|
112
|
+
await gapi.client.androidpublisher.edits.insert({
|
|
113
|
+
packageName: "Test string",
|
|
114
|
+
}, {
|
|
115
|
+
expiryTimeSeconds: "Test string",
|
|
116
|
+
id: "Test string",
|
|
117
|
+
});
|
|
118
|
+
/** Validates an app edit. */
|
|
119
|
+
await gapi.client.androidpublisher.edits.validate({
|
|
120
|
+
editId: "Test string",
|
|
121
|
+
packageName: "Test string",
|
|
122
|
+
});
|
|
123
|
+
/**
|
|
124
|
+
* Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. This function is only available to organizations using Managed Play whose
|
|
125
|
+
* application is configured to restrict distribution to the organizations.
|
|
126
|
+
*/
|
|
127
|
+
await gapi.client.androidpublisher.edits.apks.addexternallyhosted({
|
|
128
|
+
editId: "Test string",
|
|
129
|
+
packageName: "Test string",
|
|
130
|
+
}, {
|
|
131
|
+
externallyHostedApk: {
|
|
132
|
+
applicationLabel: "Test string",
|
|
133
|
+
certificateBase64s: [
|
|
134
|
+
"Test string"
|
|
135
|
+
],
|
|
136
|
+
externallyHostedUrl: "Test string",
|
|
137
|
+
fileSha1Base64: "Test string",
|
|
138
|
+
fileSha256Base64: "Test string",
|
|
139
|
+
fileSize: "Test string",
|
|
140
|
+
iconBase64: "Test string",
|
|
141
|
+
maximumSdk: 42,
|
|
142
|
+
minimumSdk: 42,
|
|
143
|
+
nativeCodes: [
|
|
144
|
+
"Test string"
|
|
145
|
+
],
|
|
146
|
+
packageName: "Test string",
|
|
147
|
+
usesFeatures: [
|
|
148
|
+
"Test string"
|
|
149
|
+
],
|
|
150
|
+
usesPermissions: [
|
|
151
|
+
{
|
|
152
|
+
maxSdkVersion: 42,
|
|
153
|
+
name: "Test string",
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
versionCode: 42,
|
|
157
|
+
versionName: "Test string",
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
/** Lists all current APKs of the app and edit. */
|
|
161
|
+
await gapi.client.androidpublisher.edits.apks.list({
|
|
162
|
+
editId: "Test string",
|
|
163
|
+
packageName: "Test string",
|
|
164
|
+
});
|
|
165
|
+
/** Uploads an APK and adds to the current edit. */
|
|
166
|
+
await gapi.client.androidpublisher.edits.apks.upload({
|
|
167
|
+
editId: "Test string",
|
|
168
|
+
packageName: "Test string",
|
|
169
|
+
});
|
|
170
|
+
/** Lists all current Android App Bundles of the app and edit. */
|
|
171
|
+
await gapi.client.androidpublisher.edits.bundles.list({
|
|
172
|
+
editId: "Test string",
|
|
173
|
+
packageName: "Test string",
|
|
174
|
+
});
|
|
175
|
+
/**
|
|
176
|
+
* Uploads a new Android App Bundle to this edit. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout
|
|
177
|
+
* of 2 minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example in java.
|
|
178
|
+
*/
|
|
179
|
+
await gapi.client.androidpublisher.edits.bundles.upload({
|
|
180
|
+
ackBundleInstallationWarning: true,
|
|
181
|
+
editId: "Test string",
|
|
182
|
+
packageName: "Test string",
|
|
183
|
+
});
|
|
184
|
+
/** Gets country availability. */
|
|
185
|
+
await gapi.client.androidpublisher.edits.countryavailability.get({
|
|
186
|
+
editId: "Test string",
|
|
187
|
+
packageName: "Test string",
|
|
188
|
+
track: "Test string",
|
|
189
|
+
});
|
|
190
|
+
/** Uploads a new deobfuscation file and attaches to the specified APK. */
|
|
191
|
+
await gapi.client.androidpublisher.edits.deobfuscationfiles.upload({
|
|
192
|
+
apkVersionCode: 42,
|
|
193
|
+
deobfuscationFileType: "Test string",
|
|
194
|
+
editId: "Test string",
|
|
195
|
+
packageName: "Test string",
|
|
196
|
+
});
|
|
197
|
+
/** Gets details of an app. */
|
|
198
|
+
await gapi.client.androidpublisher.edits.details.get({
|
|
199
|
+
editId: "Test string",
|
|
200
|
+
packageName: "Test string",
|
|
201
|
+
});
|
|
202
|
+
/** Patches details of an app. */
|
|
203
|
+
await gapi.client.androidpublisher.edits.details.patch({
|
|
204
|
+
editId: "Test string",
|
|
205
|
+
packageName: "Test string",
|
|
206
|
+
}, {
|
|
207
|
+
contactEmail: "Test string",
|
|
208
|
+
contactPhone: "Test string",
|
|
209
|
+
contactWebsite: "Test string",
|
|
210
|
+
defaultLanguage: "Test string",
|
|
211
|
+
});
|
|
212
|
+
/** Updates details of an app. */
|
|
213
|
+
await gapi.client.androidpublisher.edits.details.update({
|
|
214
|
+
editId: "Test string",
|
|
215
|
+
packageName: "Test string",
|
|
216
|
+
}, {
|
|
217
|
+
contactEmail: "Test string",
|
|
218
|
+
contactPhone: "Test string",
|
|
219
|
+
contactWebsite: "Test string",
|
|
220
|
+
defaultLanguage: "Test string",
|
|
221
|
+
});
|
|
222
|
+
/** Fetches the expansion file configuration for the specified APK. */
|
|
223
|
+
await gapi.client.androidpublisher.edits.expansionfiles.get({
|
|
224
|
+
apkVersionCode: 42,
|
|
225
|
+
editId: "Test string",
|
|
226
|
+
expansionFileType: "Test string",
|
|
227
|
+
packageName: "Test string",
|
|
228
|
+
});
|
|
229
|
+
/** Patches the APK's expansion file configuration to reference another APK's expansion file. To add a new expansion file use the Upload method. */
|
|
230
|
+
await gapi.client.androidpublisher.edits.expansionfiles.patch({
|
|
231
|
+
apkVersionCode: 42,
|
|
232
|
+
editId: "Test string",
|
|
233
|
+
expansionFileType: "Test string",
|
|
234
|
+
packageName: "Test string",
|
|
235
|
+
}, {
|
|
236
|
+
fileSize: "Test string",
|
|
237
|
+
referencesVersion: 42,
|
|
238
|
+
});
|
|
239
|
+
/** Updates the APK's expansion file configuration to reference another APK's expansion file. To add a new expansion file use the Upload method. */
|
|
240
|
+
await gapi.client.androidpublisher.edits.expansionfiles.update({
|
|
241
|
+
apkVersionCode: 42,
|
|
242
|
+
editId: "Test string",
|
|
243
|
+
expansionFileType: "Test string",
|
|
244
|
+
packageName: "Test string",
|
|
245
|
+
}, {
|
|
246
|
+
fileSize: "Test string",
|
|
247
|
+
referencesVersion: 42,
|
|
248
|
+
});
|
|
249
|
+
/** Uploads a new expansion file and attaches to the specified APK. */
|
|
250
|
+
await gapi.client.androidpublisher.edits.expansionfiles.upload({
|
|
251
|
+
apkVersionCode: 42,
|
|
252
|
+
editId: "Test string",
|
|
253
|
+
expansionFileType: "Test string",
|
|
254
|
+
packageName: "Test string",
|
|
255
|
+
});
|
|
256
|
+
/** Deletes the image (specified by id) from the edit. */
|
|
257
|
+
await gapi.client.androidpublisher.edits.images.delete({
|
|
258
|
+
editId: "Test string",
|
|
259
|
+
imageId: "Test string",
|
|
260
|
+
imageType: "Test string",
|
|
261
|
+
language: "Test string",
|
|
262
|
+
packageName: "Test string",
|
|
263
|
+
});
|
|
264
|
+
/** Deletes all images for the specified language and image type. Returns an empty response if no images are found. */
|
|
265
|
+
await gapi.client.androidpublisher.edits.images.deleteall({
|
|
266
|
+
editId: "Test string",
|
|
267
|
+
imageType: "Test string",
|
|
268
|
+
language: "Test string",
|
|
269
|
+
packageName: "Test string",
|
|
270
|
+
});
|
|
271
|
+
/** Lists all images. The response may be empty. */
|
|
272
|
+
await gapi.client.androidpublisher.edits.images.list({
|
|
273
|
+
editId: "Test string",
|
|
274
|
+
imageType: "Test string",
|
|
275
|
+
language: "Test string",
|
|
276
|
+
packageName: "Test string",
|
|
277
|
+
});
|
|
278
|
+
/** Uploads an image of the specified language and image type, and adds to the edit. */
|
|
279
|
+
await gapi.client.androidpublisher.edits.images.upload({
|
|
280
|
+
editId: "Test string",
|
|
281
|
+
imageType: "Test string",
|
|
282
|
+
language: "Test string",
|
|
283
|
+
packageName: "Test string",
|
|
284
|
+
});
|
|
285
|
+
/** Deletes a localized store listing. */
|
|
286
|
+
await gapi.client.androidpublisher.edits.listings.delete({
|
|
287
|
+
editId: "Test string",
|
|
288
|
+
language: "Test string",
|
|
289
|
+
packageName: "Test string",
|
|
290
|
+
});
|
|
291
|
+
/** Deletes all store listings. */
|
|
292
|
+
await gapi.client.androidpublisher.edits.listings.deleteall({
|
|
293
|
+
editId: "Test string",
|
|
294
|
+
packageName: "Test string",
|
|
295
|
+
});
|
|
296
|
+
/** Gets a localized store listing. */
|
|
297
|
+
await gapi.client.androidpublisher.edits.listings.get({
|
|
298
|
+
editId: "Test string",
|
|
299
|
+
language: "Test string",
|
|
300
|
+
packageName: "Test string",
|
|
301
|
+
});
|
|
302
|
+
/** Lists all localized store listings. */
|
|
303
|
+
await gapi.client.androidpublisher.edits.listings.list({
|
|
304
|
+
editId: "Test string",
|
|
305
|
+
packageName: "Test string",
|
|
306
|
+
});
|
|
307
|
+
/** Patches a localized store listing. */
|
|
308
|
+
await gapi.client.androidpublisher.edits.listings.patch({
|
|
309
|
+
editId: "Test string",
|
|
310
|
+
language: "Test string",
|
|
311
|
+
packageName: "Test string",
|
|
312
|
+
}, {
|
|
313
|
+
fullDescription: "Test string",
|
|
314
|
+
language: "Test string",
|
|
315
|
+
shortDescription: "Test string",
|
|
316
|
+
title: "Test string",
|
|
317
|
+
video: "Test string",
|
|
318
|
+
});
|
|
319
|
+
/** Creates or updates a localized store listing. */
|
|
320
|
+
await gapi.client.androidpublisher.edits.listings.update({
|
|
321
|
+
editId: "Test string",
|
|
322
|
+
language: "Test string",
|
|
323
|
+
packageName: "Test string",
|
|
324
|
+
}, {
|
|
325
|
+
fullDescription: "Test string",
|
|
326
|
+
language: "Test string",
|
|
327
|
+
shortDescription: "Test string",
|
|
328
|
+
title: "Test string",
|
|
329
|
+
video: "Test string",
|
|
330
|
+
});
|
|
331
|
+
/** Gets testers. Note: Testers resource does not support email lists. */
|
|
332
|
+
await gapi.client.androidpublisher.edits.testers.get({
|
|
333
|
+
editId: "Test string",
|
|
334
|
+
packageName: "Test string",
|
|
335
|
+
track: "Test string",
|
|
336
|
+
});
|
|
337
|
+
/** Patches testers. Note: Testers resource does not support email lists. */
|
|
338
|
+
await gapi.client.androidpublisher.edits.testers.patch({
|
|
339
|
+
editId: "Test string",
|
|
340
|
+
packageName: "Test string",
|
|
341
|
+
track: "Test string",
|
|
342
|
+
}, {
|
|
343
|
+
googleGroups: [
|
|
344
|
+
"Test string"
|
|
345
|
+
],
|
|
346
|
+
});
|
|
347
|
+
/** Updates testers. Note: Testers resource does not support email lists. */
|
|
348
|
+
await gapi.client.androidpublisher.edits.testers.update({
|
|
349
|
+
editId: "Test string",
|
|
350
|
+
packageName: "Test string",
|
|
351
|
+
track: "Test string",
|
|
352
|
+
}, {
|
|
353
|
+
googleGroups: [
|
|
354
|
+
"Test string"
|
|
355
|
+
],
|
|
356
|
+
});
|
|
357
|
+
/** Gets a track. */
|
|
358
|
+
await gapi.client.androidpublisher.edits.tracks.get({
|
|
359
|
+
editId: "Test string",
|
|
360
|
+
packageName: "Test string",
|
|
361
|
+
track: "Test string",
|
|
362
|
+
});
|
|
363
|
+
/** Lists all tracks. */
|
|
364
|
+
await gapi.client.androidpublisher.edits.tracks.list({
|
|
365
|
+
editId: "Test string",
|
|
366
|
+
packageName: "Test string",
|
|
367
|
+
});
|
|
368
|
+
/** Patches a track. */
|
|
369
|
+
await gapi.client.androidpublisher.edits.tracks.patch({
|
|
370
|
+
editId: "Test string",
|
|
371
|
+
packageName: "Test string",
|
|
372
|
+
track: "Test string",
|
|
373
|
+
}, {
|
|
374
|
+
releases: [
|
|
375
|
+
{
|
|
376
|
+
countryTargeting: {
|
|
377
|
+
countries: [
|
|
378
|
+
"Test string"
|
|
379
|
+
],
|
|
380
|
+
includeRestOfWorld: true,
|
|
381
|
+
},
|
|
382
|
+
inAppUpdatePriority: 42,
|
|
383
|
+
name: "Test string",
|
|
384
|
+
releaseNotes: [
|
|
385
|
+
{
|
|
386
|
+
language: "Test string",
|
|
387
|
+
text: "Test string",
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
status: "Test string",
|
|
391
|
+
userFraction: 42,
|
|
392
|
+
versionCodes: [
|
|
393
|
+
"Test string"
|
|
394
|
+
],
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
track: "Test string",
|
|
398
|
+
});
|
|
399
|
+
/** Updates a track. */
|
|
400
|
+
await gapi.client.androidpublisher.edits.tracks.update({
|
|
401
|
+
editId: "Test string",
|
|
402
|
+
packageName: "Test string",
|
|
403
|
+
track: "Test string",
|
|
404
|
+
}, {
|
|
405
|
+
releases: [
|
|
406
|
+
{
|
|
407
|
+
countryTargeting: {
|
|
408
|
+
countries: [
|
|
409
|
+
"Test string"
|
|
410
|
+
],
|
|
411
|
+
includeRestOfWorld: true,
|
|
412
|
+
},
|
|
413
|
+
inAppUpdatePriority: 42,
|
|
414
|
+
name: "Test string",
|
|
415
|
+
releaseNotes: [
|
|
416
|
+
{
|
|
417
|
+
language: "Test string",
|
|
418
|
+
text: "Test string",
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
status: "Test string",
|
|
422
|
+
userFraction: 42,
|
|
423
|
+
versionCodes: [
|
|
424
|
+
"Test string"
|
|
425
|
+
],
|
|
426
|
+
}
|
|
427
|
+
],
|
|
428
|
+
track: "Test string",
|
|
429
|
+
});
|
|
430
|
+
/** Downloads a single signed APK generated from an app bundle. */
|
|
431
|
+
await gapi.client.androidpublisher.generatedapks.download({
|
|
432
|
+
downloadId: "Test string",
|
|
433
|
+
packageName: "Test string",
|
|
434
|
+
versionCode: 42,
|
|
435
|
+
});
|
|
436
|
+
/** Returns download metadata for all APKs that were generated from a given app bundle. */
|
|
437
|
+
await gapi.client.androidpublisher.generatedapks.list({
|
|
438
|
+
packageName: "Test string",
|
|
439
|
+
versionCode: 42,
|
|
440
|
+
});
|
|
441
|
+
/** Grant access for a user to the given package. */
|
|
442
|
+
await gapi.client.androidpublisher.grants.create({
|
|
443
|
+
parent: "Test string",
|
|
444
|
+
}, {
|
|
445
|
+
appLevelPermissions: [
|
|
446
|
+
"Test string"
|
|
447
|
+
],
|
|
448
|
+
name: "Test string",
|
|
449
|
+
packageName: "Test string",
|
|
450
|
+
});
|
|
451
|
+
/** Removes all access for the user to the given package or developer account. */
|
|
452
|
+
await gapi.client.androidpublisher.grants.delete({
|
|
453
|
+
name: "Test string",
|
|
454
|
+
});
|
|
455
|
+
/** Updates access for the user to the given package. */
|
|
456
|
+
await gapi.client.androidpublisher.grants.patch({
|
|
457
|
+
name: "Test string",
|
|
458
|
+
updateMask: "Test string",
|
|
459
|
+
}, {
|
|
460
|
+
appLevelPermissions: [
|
|
461
|
+
"Test string"
|
|
462
|
+
],
|
|
463
|
+
name: "Test string",
|
|
464
|
+
packageName: "Test string",
|
|
465
|
+
});
|
|
466
|
+
/** Deletes an in-app product (i.e. a managed product or a subscriptions). */
|
|
467
|
+
await gapi.client.androidpublisher.inappproducts.delete({
|
|
468
|
+
packageName: "Test string",
|
|
469
|
+
sku: "Test string",
|
|
470
|
+
});
|
|
471
|
+
/** Gets an in-app product, which can be a managed product or a subscription. */
|
|
472
|
+
await gapi.client.androidpublisher.inappproducts.get({
|
|
473
|
+
packageName: "Test string",
|
|
474
|
+
sku: "Test string",
|
|
475
|
+
});
|
|
476
|
+
/** Creates an in-app product (i.e. a managed product or a subscriptions). */
|
|
477
|
+
await gapi.client.androidpublisher.inappproducts.insert({
|
|
478
|
+
autoConvertMissingPrices: true,
|
|
479
|
+
packageName: "Test string",
|
|
480
|
+
}, {
|
|
481
|
+
defaultLanguage: "Test string",
|
|
482
|
+
defaultPrice: {
|
|
483
|
+
currency: "Test string",
|
|
484
|
+
priceMicros: "Test string",
|
|
485
|
+
},
|
|
486
|
+
gracePeriod: "Test string",
|
|
487
|
+
listings: {
|
|
488
|
+
A: {
|
|
489
|
+
benefits: [
|
|
490
|
+
"Test string"
|
|
491
|
+
],
|
|
492
|
+
description: "Test string",
|
|
493
|
+
title: "Test string",
|
|
494
|
+
}
|
|
495
|
+
},
|
|
496
|
+
managedProductTaxesAndComplianceSettings: {
|
|
497
|
+
eeaWithdrawalRightType: "Test string",
|
|
498
|
+
taxRateInfoByRegionCode: {
|
|
499
|
+
A: {
|
|
500
|
+
eligibleForStreamingServiceTaxRate: true,
|
|
501
|
+
taxTier: "Test string",
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
},
|
|
505
|
+
packageName: "Test string",
|
|
506
|
+
prices: {
|
|
507
|
+
A: {
|
|
508
|
+
currency: "Test string",
|
|
509
|
+
priceMicros: "Test string",
|
|
510
|
+
}
|
|
511
|
+
},
|
|
512
|
+
purchaseType: "Test string",
|
|
513
|
+
sku: "Test string",
|
|
514
|
+
status: "Test string",
|
|
515
|
+
subscriptionPeriod: "Test string",
|
|
516
|
+
subscriptionTaxesAndComplianceSettings: {
|
|
517
|
+
eeaWithdrawalRightType: "Test string",
|
|
518
|
+
taxRateInfoByRegionCode: {
|
|
519
|
+
A: {
|
|
520
|
+
eligibleForStreamingServiceTaxRate: true,
|
|
521
|
+
taxTier: "Test string",
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
trialPeriod: "Test string",
|
|
526
|
+
});
|
|
527
|
+
/**
|
|
528
|
+
* Lists all in-app products - both managed products and subscriptions. If an app has a large number of in-app products, the response may be paginated. In this case the response field
|
|
529
|
+
* `tokenPagination.nextPageToken` will be set and the caller should provide its value as a `token` request parameter to retrieve the next page.
|
|
530
|
+
*/
|
|
531
|
+
await gapi.client.androidpublisher.inappproducts.list({
|
|
532
|
+
maxResults: 42,
|
|
533
|
+
packageName: "Test string",
|
|
534
|
+
startIndex: 42,
|
|
535
|
+
token: "Test string",
|
|
536
|
+
});
|
|
537
|
+
/** Patches an in-app product (i.e. a managed product or a subscriptions). */
|
|
538
|
+
await gapi.client.androidpublisher.inappproducts.patch({
|
|
539
|
+
autoConvertMissingPrices: true,
|
|
540
|
+
packageName: "Test string",
|
|
541
|
+
sku: "Test string",
|
|
542
|
+
}, {
|
|
543
|
+
defaultLanguage: "Test string",
|
|
544
|
+
defaultPrice: {
|
|
545
|
+
currency: "Test string",
|
|
546
|
+
priceMicros: "Test string",
|
|
547
|
+
},
|
|
548
|
+
gracePeriod: "Test string",
|
|
549
|
+
listings: {
|
|
550
|
+
A: {
|
|
551
|
+
benefits: [
|
|
552
|
+
"Test string"
|
|
553
|
+
],
|
|
554
|
+
description: "Test string",
|
|
555
|
+
title: "Test string",
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
managedProductTaxesAndComplianceSettings: {
|
|
559
|
+
eeaWithdrawalRightType: "Test string",
|
|
560
|
+
taxRateInfoByRegionCode: {
|
|
561
|
+
A: {
|
|
562
|
+
eligibleForStreamingServiceTaxRate: true,
|
|
563
|
+
taxTier: "Test string",
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
},
|
|
567
|
+
packageName: "Test string",
|
|
568
|
+
prices: {
|
|
569
|
+
A: {
|
|
570
|
+
currency: "Test string",
|
|
571
|
+
priceMicros: "Test string",
|
|
572
|
+
}
|
|
573
|
+
},
|
|
574
|
+
purchaseType: "Test string",
|
|
575
|
+
sku: "Test string",
|
|
576
|
+
status: "Test string",
|
|
577
|
+
subscriptionPeriod: "Test string",
|
|
578
|
+
subscriptionTaxesAndComplianceSettings: {
|
|
579
|
+
eeaWithdrawalRightType: "Test string",
|
|
580
|
+
taxRateInfoByRegionCode: {
|
|
581
|
+
A: {
|
|
582
|
+
eligibleForStreamingServiceTaxRate: true,
|
|
583
|
+
taxTier: "Test string",
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
trialPeriod: "Test string",
|
|
588
|
+
});
|
|
589
|
+
/** Updates an in-app product (i.e. a managed product or a subscriptions). */
|
|
590
|
+
await gapi.client.androidpublisher.inappproducts.update({
|
|
591
|
+
allowMissing: true,
|
|
592
|
+
autoConvertMissingPrices: true,
|
|
593
|
+
packageName: "Test string",
|
|
594
|
+
sku: "Test string",
|
|
595
|
+
}, {
|
|
596
|
+
defaultLanguage: "Test string",
|
|
597
|
+
defaultPrice: {
|
|
598
|
+
currency: "Test string",
|
|
599
|
+
priceMicros: "Test string",
|
|
600
|
+
},
|
|
601
|
+
gracePeriod: "Test string",
|
|
602
|
+
listings: {
|
|
603
|
+
A: {
|
|
604
|
+
benefits: [
|
|
605
|
+
"Test string"
|
|
606
|
+
],
|
|
607
|
+
description: "Test string",
|
|
608
|
+
title: "Test string",
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
managedProductTaxesAndComplianceSettings: {
|
|
612
|
+
eeaWithdrawalRightType: "Test string",
|
|
613
|
+
taxRateInfoByRegionCode: {
|
|
614
|
+
A: {
|
|
615
|
+
eligibleForStreamingServiceTaxRate: true,
|
|
616
|
+
taxTier: "Test string",
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
packageName: "Test string",
|
|
621
|
+
prices: {
|
|
622
|
+
A: {
|
|
623
|
+
currency: "Test string",
|
|
624
|
+
priceMicros: "Test string",
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
purchaseType: "Test string",
|
|
628
|
+
sku: "Test string",
|
|
629
|
+
status: "Test string",
|
|
630
|
+
subscriptionPeriod: "Test string",
|
|
631
|
+
subscriptionTaxesAndComplianceSettings: {
|
|
632
|
+
eeaWithdrawalRightType: "Test string",
|
|
633
|
+
taxRateInfoByRegionCode: {
|
|
634
|
+
A: {
|
|
635
|
+
eligibleForStreamingServiceTaxRate: true,
|
|
636
|
+
taxTier: "Test string",
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
},
|
|
640
|
+
trialPeriod: "Test string",
|
|
641
|
+
});
|
|
642
|
+
/**
|
|
643
|
+
* Uploads an APK to internal app sharing. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout of 2
|
|
644
|
+
* minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example in java.
|
|
645
|
+
*/
|
|
646
|
+
await gapi.client.androidpublisher.internalappsharingartifacts.uploadapk({
|
|
647
|
+
packageName: "Test string",
|
|
648
|
+
});
|
|
649
|
+
/**
|
|
650
|
+
* Uploads an app bundle to internal app sharing. If you are using the Google API client libraries, please increase the timeout of the http request before calling this endpoint (a timeout
|
|
651
|
+
* of 2 minutes is recommended). See [Timeouts and Errors](https://developers.google.com/api-client-library/java/google-api-java-client/errors) for an example in java.
|
|
652
|
+
*/
|
|
653
|
+
await gapi.client.androidpublisher.internalappsharingartifacts.uploadbundle({
|
|
654
|
+
packageName: "Test string",
|
|
655
|
+
});
|
|
656
|
+
/** Calculates the region prices, using today's exchange rate and country-specific pricing patterns, based on the price in the request for a set of regions. */
|
|
657
|
+
await gapi.client.androidpublisher.monetization.convertRegionPrices({
|
|
658
|
+
packageName: "Test string",
|
|
659
|
+
}, {
|
|
660
|
+
price: {
|
|
661
|
+
currencyCode: "Test string",
|
|
662
|
+
nanos: 42,
|
|
663
|
+
units: "Test string",
|
|
664
|
+
},
|
|
665
|
+
});
|
|
666
|
+
/**
|
|
667
|
+
* Archives a subscription. Can only be done if at least one base plan was active in the past, and no base plan is available for new or existing subscribers currently. This action is
|
|
668
|
+
* irreversible, and the subscription ID will remain reserved.
|
|
669
|
+
*/
|
|
670
|
+
await gapi.client.androidpublisher.monetization.subscriptions.archive({
|
|
671
|
+
packageName: "Test string",
|
|
672
|
+
productId: "Test string",
|
|
673
|
+
}, {
|
|
674
|
+
});
|
|
675
|
+
/** Creates a new subscription. Newly added base plans will remain in draft state until activated. */
|
|
676
|
+
await gapi.client.androidpublisher.monetization.subscriptions.create({
|
|
677
|
+
packageName: "Test string",
|
|
678
|
+
productId: "Test string",
|
|
679
|
+
"regionsVersion.version": "Test string",
|
|
680
|
+
}, {
|
|
681
|
+
archived: true,
|
|
682
|
+
basePlans: [
|
|
683
|
+
{
|
|
684
|
+
autoRenewingBasePlanType: {
|
|
685
|
+
billingPeriodDuration: "Test string",
|
|
686
|
+
gracePeriodDuration: "Test string",
|
|
687
|
+
legacyCompatible: true,
|
|
688
|
+
prorationMode: "Test string",
|
|
689
|
+
resubscribeState: "Test string",
|
|
690
|
+
},
|
|
691
|
+
basePlanId: "Test string",
|
|
692
|
+
offerTags: [
|
|
693
|
+
{
|
|
694
|
+
tag: "Test string",
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
otherRegionsConfig: {
|
|
698
|
+
eurPrice: {
|
|
699
|
+
currencyCode: "Test string",
|
|
700
|
+
nanos: 42,
|
|
701
|
+
units: "Test string",
|
|
702
|
+
},
|
|
703
|
+
newSubscriberAvailability: true,
|
|
704
|
+
usdPrice: {
|
|
705
|
+
currencyCode: "Test string",
|
|
706
|
+
nanos: 42,
|
|
707
|
+
units: "Test string",
|
|
708
|
+
},
|
|
709
|
+
},
|
|
710
|
+
prepaidBasePlanType: {
|
|
711
|
+
billingPeriodDuration: "Test string",
|
|
712
|
+
timeExtension: "Test string",
|
|
713
|
+
},
|
|
714
|
+
regionalConfigs: [
|
|
715
|
+
{
|
|
716
|
+
newSubscriberAvailability: true,
|
|
717
|
+
price: {
|
|
718
|
+
currencyCode: "Test string",
|
|
719
|
+
nanos: 42,
|
|
720
|
+
units: "Test string",
|
|
721
|
+
},
|
|
722
|
+
regionCode: "Test string",
|
|
723
|
+
}
|
|
724
|
+
],
|
|
725
|
+
state: "Test string",
|
|
726
|
+
}
|
|
727
|
+
],
|
|
728
|
+
listings: [
|
|
729
|
+
{
|
|
730
|
+
benefits: [
|
|
731
|
+
"Test string"
|
|
732
|
+
],
|
|
733
|
+
description: "Test string",
|
|
734
|
+
languageCode: "Test string",
|
|
735
|
+
title: "Test string",
|
|
736
|
+
}
|
|
737
|
+
],
|
|
738
|
+
packageName: "Test string",
|
|
739
|
+
productId: "Test string",
|
|
740
|
+
taxAndComplianceSettings: {
|
|
741
|
+
eeaWithdrawalRightType: "Test string",
|
|
742
|
+
taxRateInfoByRegionCode: {
|
|
743
|
+
A: {
|
|
744
|
+
eligibleForStreamingServiceTaxRate: true,
|
|
745
|
+
taxTier: "Test string",
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
},
|
|
749
|
+
});
|
|
750
|
+
/** Deletes a subscription. A subscription can only be deleted if it has never had a base plan published. */
|
|
751
|
+
await gapi.client.androidpublisher.monetization.subscriptions.delete({
|
|
752
|
+
packageName: "Test string",
|
|
753
|
+
productId: "Test string",
|
|
754
|
+
});
|
|
755
|
+
/** Reads a single subscription. */
|
|
756
|
+
await gapi.client.androidpublisher.monetization.subscriptions.get({
|
|
757
|
+
packageName: "Test string",
|
|
758
|
+
productId: "Test string",
|
|
759
|
+
});
|
|
760
|
+
/** Lists all subscriptions under a given app. */
|
|
761
|
+
await gapi.client.androidpublisher.monetization.subscriptions.list({
|
|
762
|
+
packageName: "Test string",
|
|
763
|
+
pageSize: 42,
|
|
764
|
+
pageToken: "Test string",
|
|
765
|
+
showArchived: true,
|
|
766
|
+
});
|
|
767
|
+
/** Updates an existing subscription. */
|
|
768
|
+
await gapi.client.androidpublisher.monetization.subscriptions.patch({
|
|
769
|
+
packageName: "Test string",
|
|
770
|
+
productId: "Test string",
|
|
771
|
+
"regionsVersion.version": "Test string",
|
|
772
|
+
updateMask: "Test string",
|
|
773
|
+
}, {
|
|
774
|
+
archived: true,
|
|
775
|
+
basePlans: [
|
|
776
|
+
{
|
|
777
|
+
autoRenewingBasePlanType: {
|
|
778
|
+
billingPeriodDuration: "Test string",
|
|
779
|
+
gracePeriodDuration: "Test string",
|
|
780
|
+
legacyCompatible: true,
|
|
781
|
+
prorationMode: "Test string",
|
|
782
|
+
resubscribeState: "Test string",
|
|
783
|
+
},
|
|
784
|
+
basePlanId: "Test string",
|
|
785
|
+
offerTags: [
|
|
786
|
+
{
|
|
787
|
+
tag: "Test string",
|
|
788
|
+
}
|
|
789
|
+
],
|
|
790
|
+
otherRegionsConfig: {
|
|
791
|
+
eurPrice: {
|
|
792
|
+
currencyCode: "Test string",
|
|
793
|
+
nanos: 42,
|
|
794
|
+
units: "Test string",
|
|
795
|
+
},
|
|
796
|
+
newSubscriberAvailability: true,
|
|
797
|
+
usdPrice: {
|
|
798
|
+
currencyCode: "Test string",
|
|
799
|
+
nanos: 42,
|
|
800
|
+
units: "Test string",
|
|
801
|
+
},
|
|
802
|
+
},
|
|
803
|
+
prepaidBasePlanType: {
|
|
804
|
+
billingPeriodDuration: "Test string",
|
|
805
|
+
timeExtension: "Test string",
|
|
806
|
+
},
|
|
807
|
+
regionalConfigs: [
|
|
808
|
+
{
|
|
809
|
+
newSubscriberAvailability: true,
|
|
810
|
+
price: {
|
|
811
|
+
currencyCode: "Test string",
|
|
812
|
+
nanos: 42,
|
|
813
|
+
units: "Test string",
|
|
814
|
+
},
|
|
815
|
+
regionCode: "Test string",
|
|
816
|
+
}
|
|
817
|
+
],
|
|
818
|
+
state: "Test string",
|
|
819
|
+
}
|
|
820
|
+
],
|
|
821
|
+
listings: [
|
|
822
|
+
{
|
|
823
|
+
benefits: [
|
|
824
|
+
"Test string"
|
|
825
|
+
],
|
|
826
|
+
description: "Test string",
|
|
827
|
+
languageCode: "Test string",
|
|
828
|
+
title: "Test string",
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
packageName: "Test string",
|
|
832
|
+
productId: "Test string",
|
|
833
|
+
taxAndComplianceSettings: {
|
|
834
|
+
eeaWithdrawalRightType: "Test string",
|
|
835
|
+
taxRateInfoByRegionCode: {
|
|
836
|
+
A: {
|
|
837
|
+
eligibleForStreamingServiceTaxRate: true,
|
|
838
|
+
taxTier: "Test string",
|
|
839
|
+
}
|
|
840
|
+
},
|
|
841
|
+
},
|
|
842
|
+
});
|
|
843
|
+
/** Activates a base plan. Once activated, base plans will be available to new subscribers. */
|
|
844
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.activate({
|
|
845
|
+
basePlanId: "Test string",
|
|
846
|
+
packageName: "Test string",
|
|
847
|
+
productId: "Test string",
|
|
848
|
+
}, {
|
|
849
|
+
});
|
|
850
|
+
/** Deactivates a base plan. Once deactivated, the base plan will become unavailable to new subscribers, but existing subscribers will maintain their subscription */
|
|
851
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.deactivate({
|
|
852
|
+
basePlanId: "Test string",
|
|
853
|
+
packageName: "Test string",
|
|
854
|
+
productId: "Test string",
|
|
855
|
+
}, {
|
|
856
|
+
});
|
|
857
|
+
/** Deletes a base plan. Can only be done for draft base plans. This action is irreversible. */
|
|
858
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.delete({
|
|
859
|
+
basePlanId: "Test string",
|
|
860
|
+
packageName: "Test string",
|
|
861
|
+
productId: "Test string",
|
|
862
|
+
});
|
|
863
|
+
/**
|
|
864
|
+
* Migrates subscribers who are receiving an historical subscription price to the currently-offered price for the specified region. Requests will cause price change notifications to be
|
|
865
|
+
* sent to users who are currently receiving an historical price older than the supplied timestamp. Subscribers who do not agree to the new price will have their subscription ended at the
|
|
866
|
+
* next renewal.
|
|
867
|
+
*/
|
|
868
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.migratePrices({
|
|
869
|
+
basePlanId: "Test string",
|
|
870
|
+
packageName: "Test string",
|
|
871
|
+
productId: "Test string",
|
|
872
|
+
}, {
|
|
873
|
+
regionalPriceMigrations: [
|
|
874
|
+
{
|
|
875
|
+
oldestAllowedPriceVersionTime: "Test string",
|
|
876
|
+
regionCode: "Test string",
|
|
877
|
+
}
|
|
878
|
+
],
|
|
879
|
+
regionsVersion: {
|
|
880
|
+
version: "Test string",
|
|
881
|
+
},
|
|
882
|
+
});
|
|
883
|
+
/** Activates a subscription offer. Once activated, subscription offers will be available to new subscribers. */
|
|
884
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.offers.activate({
|
|
885
|
+
basePlanId: "Test string",
|
|
886
|
+
offerId: "Test string",
|
|
887
|
+
packageName: "Test string",
|
|
888
|
+
productId: "Test string",
|
|
889
|
+
}, {
|
|
890
|
+
});
|
|
891
|
+
/** Creates a new subscription offer. Only auto-renewing base plans can have subscription offers. The offer state will be DRAFT until it is activated. */
|
|
892
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.offers.create({
|
|
893
|
+
basePlanId: "Test string",
|
|
894
|
+
offerId: "Test string",
|
|
895
|
+
packageName: "Test string",
|
|
896
|
+
productId: "Test string",
|
|
897
|
+
"regionsVersion.version": "Test string",
|
|
898
|
+
}, {
|
|
899
|
+
basePlanId: "Test string",
|
|
900
|
+
offerId: "Test string",
|
|
901
|
+
offerTags: [
|
|
902
|
+
{
|
|
903
|
+
tag: "Test string",
|
|
904
|
+
}
|
|
905
|
+
],
|
|
906
|
+
otherRegionsConfig: {
|
|
907
|
+
otherRegionsNewSubscriberAvailability: true,
|
|
908
|
+
},
|
|
909
|
+
packageName: "Test string",
|
|
910
|
+
phases: [
|
|
911
|
+
{
|
|
912
|
+
duration: "Test string",
|
|
913
|
+
otherRegionsConfig: {
|
|
914
|
+
absoluteDiscounts: {
|
|
915
|
+
eurPrice: {
|
|
916
|
+
currencyCode: "Test string",
|
|
917
|
+
nanos: 42,
|
|
918
|
+
units: "Test string",
|
|
919
|
+
},
|
|
920
|
+
usdPrice: {
|
|
921
|
+
currencyCode: "Test string",
|
|
922
|
+
nanos: 42,
|
|
923
|
+
units: "Test string",
|
|
924
|
+
},
|
|
925
|
+
},
|
|
926
|
+
otherRegionsPrices: {
|
|
927
|
+
eurPrice: {
|
|
928
|
+
currencyCode: "Test string",
|
|
929
|
+
nanos: 42,
|
|
930
|
+
units: "Test string",
|
|
931
|
+
},
|
|
932
|
+
usdPrice: {
|
|
933
|
+
currencyCode: "Test string",
|
|
934
|
+
nanos: 42,
|
|
935
|
+
units: "Test string",
|
|
936
|
+
},
|
|
937
|
+
},
|
|
938
|
+
relativeDiscount: 42,
|
|
939
|
+
},
|
|
940
|
+
recurrenceCount: 42,
|
|
941
|
+
regionalConfigs: [
|
|
942
|
+
{
|
|
943
|
+
absoluteDiscount: {
|
|
944
|
+
currencyCode: "Test string",
|
|
945
|
+
nanos: 42,
|
|
946
|
+
units: "Test string",
|
|
947
|
+
},
|
|
948
|
+
price: {
|
|
949
|
+
currencyCode: "Test string",
|
|
950
|
+
nanos: 42,
|
|
951
|
+
units: "Test string",
|
|
952
|
+
},
|
|
953
|
+
regionCode: "Test string",
|
|
954
|
+
relativeDiscount: 42,
|
|
955
|
+
}
|
|
956
|
+
],
|
|
957
|
+
}
|
|
958
|
+
],
|
|
959
|
+
productId: "Test string",
|
|
960
|
+
regionalConfigs: [
|
|
961
|
+
{
|
|
962
|
+
newSubscriberAvailability: true,
|
|
963
|
+
regionCode: "Test string",
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
state: "Test string",
|
|
967
|
+
targeting: {
|
|
968
|
+
acquisitionRule: {
|
|
969
|
+
scope: {
|
|
970
|
+
specificSubscriptionInApp: "Test string",
|
|
971
|
+
},
|
|
972
|
+
},
|
|
973
|
+
upgradeRule: {
|
|
974
|
+
billingPeriodDuration: "Test string",
|
|
975
|
+
oncePerUser: true,
|
|
976
|
+
scope: {
|
|
977
|
+
specificSubscriptionInApp: "Test string",
|
|
978
|
+
},
|
|
979
|
+
},
|
|
980
|
+
},
|
|
981
|
+
});
|
|
982
|
+
/** Deactivates a subscription offer. Once deactivated, existing subscribers will maintain their subscription, but the offer will become unavailable to new subscribers. */
|
|
983
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.offers.deactivate({
|
|
984
|
+
basePlanId: "Test string",
|
|
985
|
+
offerId: "Test string",
|
|
986
|
+
packageName: "Test string",
|
|
987
|
+
productId: "Test string",
|
|
988
|
+
}, {
|
|
989
|
+
});
|
|
990
|
+
/** Deletes a subscription offer. Can only be done for draft offers. This action is irreversible. */
|
|
991
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.offers.delete({
|
|
992
|
+
basePlanId: "Test string",
|
|
993
|
+
offerId: "Test string",
|
|
994
|
+
packageName: "Test string",
|
|
995
|
+
productId: "Test string",
|
|
996
|
+
});
|
|
997
|
+
/** Reads a single offer */
|
|
998
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.offers.get({
|
|
999
|
+
basePlanId: "Test string",
|
|
1000
|
+
offerId: "Test string",
|
|
1001
|
+
packageName: "Test string",
|
|
1002
|
+
productId: "Test string",
|
|
1003
|
+
});
|
|
1004
|
+
/** Lists all offers under a given subscription. */
|
|
1005
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.offers.list({
|
|
1006
|
+
basePlanId: "Test string",
|
|
1007
|
+
packageName: "Test string",
|
|
1008
|
+
pageSize: 42,
|
|
1009
|
+
pageToken: "Test string",
|
|
1010
|
+
productId: "Test string",
|
|
1011
|
+
});
|
|
1012
|
+
/** Updates an existing subscription offer. */
|
|
1013
|
+
await gapi.client.androidpublisher.monetization.subscriptions.basePlans.offers.patch({
|
|
1014
|
+
basePlanId: "Test string",
|
|
1015
|
+
offerId: "Test string",
|
|
1016
|
+
packageName: "Test string",
|
|
1017
|
+
productId: "Test string",
|
|
1018
|
+
"regionsVersion.version": "Test string",
|
|
1019
|
+
updateMask: "Test string",
|
|
1020
|
+
}, {
|
|
1021
|
+
basePlanId: "Test string",
|
|
1022
|
+
offerId: "Test string",
|
|
1023
|
+
offerTags: [
|
|
1024
|
+
{
|
|
1025
|
+
tag: "Test string",
|
|
1026
|
+
}
|
|
1027
|
+
],
|
|
1028
|
+
otherRegionsConfig: {
|
|
1029
|
+
otherRegionsNewSubscriberAvailability: true,
|
|
1030
|
+
},
|
|
1031
|
+
packageName: "Test string",
|
|
1032
|
+
phases: [
|
|
1033
|
+
{
|
|
1034
|
+
duration: "Test string",
|
|
1035
|
+
otherRegionsConfig: {
|
|
1036
|
+
absoluteDiscounts: {
|
|
1037
|
+
eurPrice: {
|
|
1038
|
+
currencyCode: "Test string",
|
|
1039
|
+
nanos: 42,
|
|
1040
|
+
units: "Test string",
|
|
1041
|
+
},
|
|
1042
|
+
usdPrice: {
|
|
1043
|
+
currencyCode: "Test string",
|
|
1044
|
+
nanos: 42,
|
|
1045
|
+
units: "Test string",
|
|
1046
|
+
},
|
|
1047
|
+
},
|
|
1048
|
+
otherRegionsPrices: {
|
|
1049
|
+
eurPrice: {
|
|
1050
|
+
currencyCode: "Test string",
|
|
1051
|
+
nanos: 42,
|
|
1052
|
+
units: "Test string",
|
|
1053
|
+
},
|
|
1054
|
+
usdPrice: {
|
|
1055
|
+
currencyCode: "Test string",
|
|
1056
|
+
nanos: 42,
|
|
1057
|
+
units: "Test string",
|
|
1058
|
+
},
|
|
1059
|
+
},
|
|
1060
|
+
relativeDiscount: 42,
|
|
1061
|
+
},
|
|
1062
|
+
recurrenceCount: 42,
|
|
1063
|
+
regionalConfigs: [
|
|
1064
|
+
{
|
|
1065
|
+
absoluteDiscount: {
|
|
1066
|
+
currencyCode: "Test string",
|
|
1067
|
+
nanos: 42,
|
|
1068
|
+
units: "Test string",
|
|
1069
|
+
},
|
|
1070
|
+
price: {
|
|
1071
|
+
currencyCode: "Test string",
|
|
1072
|
+
nanos: 42,
|
|
1073
|
+
units: "Test string",
|
|
1074
|
+
},
|
|
1075
|
+
regionCode: "Test string",
|
|
1076
|
+
relativeDiscount: 42,
|
|
1077
|
+
}
|
|
1078
|
+
],
|
|
1079
|
+
}
|
|
1080
|
+
],
|
|
1081
|
+
productId: "Test string",
|
|
1082
|
+
regionalConfigs: [
|
|
1083
|
+
{
|
|
1084
|
+
newSubscriberAvailability: true,
|
|
1085
|
+
regionCode: "Test string",
|
|
1086
|
+
}
|
|
1087
|
+
],
|
|
1088
|
+
state: "Test string",
|
|
1089
|
+
targeting: {
|
|
1090
|
+
acquisitionRule: {
|
|
1091
|
+
scope: {
|
|
1092
|
+
specificSubscriptionInApp: "Test string",
|
|
1093
|
+
},
|
|
1094
|
+
},
|
|
1095
|
+
upgradeRule: {
|
|
1096
|
+
billingPeriodDuration: "Test string",
|
|
1097
|
+
oncePerUser: true,
|
|
1098
|
+
scope: {
|
|
1099
|
+
specificSubscriptionInApp: "Test string",
|
|
1100
|
+
},
|
|
1101
|
+
},
|
|
1102
|
+
},
|
|
1103
|
+
});
|
|
1104
|
+
/** Refunds a user's subscription or in-app purchase order. Orders older than 1 year cannot be refunded. */
|
|
1105
|
+
await gapi.client.androidpublisher.orders.refund({
|
|
1106
|
+
orderId: "Test string",
|
|
1107
|
+
packageName: "Test string",
|
|
1108
|
+
revoke: true,
|
|
1109
|
+
});
|
|
1110
|
+
/** Acknowledges a purchase of an inapp item. */
|
|
1111
|
+
await gapi.client.androidpublisher.purchases.products.acknowledge({
|
|
1112
|
+
packageName: "Test string",
|
|
1113
|
+
productId: "Test string",
|
|
1114
|
+
token: "Test string",
|
|
1115
|
+
}, {
|
|
1116
|
+
developerPayload: "Test string",
|
|
1117
|
+
});
|
|
1118
|
+
/** Checks the purchase and consumption status of an inapp item. */
|
|
1119
|
+
await gapi.client.androidpublisher.purchases.products.get({
|
|
1120
|
+
packageName: "Test string",
|
|
1121
|
+
productId: "Test string",
|
|
1122
|
+
token: "Test string",
|
|
1123
|
+
});
|
|
1124
|
+
/** Acknowledges a subscription purchase. */
|
|
1125
|
+
await gapi.client.androidpublisher.purchases.subscriptions.acknowledge({
|
|
1126
|
+
packageName: "Test string",
|
|
1127
|
+
subscriptionId: "Test string",
|
|
1128
|
+
token: "Test string",
|
|
1129
|
+
}, {
|
|
1130
|
+
developerPayload: "Test string",
|
|
1131
|
+
});
|
|
1132
|
+
/** Cancels a user's subscription purchase. The subscription remains valid until its expiration time. */
|
|
1133
|
+
await gapi.client.androidpublisher.purchases.subscriptions.cancel({
|
|
1134
|
+
packageName: "Test string",
|
|
1135
|
+
subscriptionId: "Test string",
|
|
1136
|
+
token: "Test string",
|
|
1137
|
+
});
|
|
1138
|
+
/** Defers a user's subscription purchase until a specified future expiration time. */
|
|
1139
|
+
await gapi.client.androidpublisher.purchases.subscriptions.defer({
|
|
1140
|
+
packageName: "Test string",
|
|
1141
|
+
subscriptionId: "Test string",
|
|
1142
|
+
token: "Test string",
|
|
1143
|
+
}, {
|
|
1144
|
+
deferralInfo: {
|
|
1145
|
+
desiredExpiryTimeMillis: "Test string",
|
|
1146
|
+
expectedExpiryTimeMillis: "Test string",
|
|
1147
|
+
},
|
|
1148
|
+
});
|
|
1149
|
+
/** Checks whether a user's subscription purchase is valid and returns its expiry time. */
|
|
1150
|
+
await gapi.client.androidpublisher.purchases.subscriptions.get({
|
|
1151
|
+
packageName: "Test string",
|
|
1152
|
+
subscriptionId: "Test string",
|
|
1153
|
+
token: "Test string",
|
|
1154
|
+
});
|
|
1155
|
+
/** Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur. */
|
|
1156
|
+
await gapi.client.androidpublisher.purchases.subscriptions.refund({
|
|
1157
|
+
packageName: "Test string",
|
|
1158
|
+
subscriptionId: "Test string",
|
|
1159
|
+
token: "Test string",
|
|
1160
|
+
});
|
|
1161
|
+
/** Refunds and immediately revokes a user's subscription purchase. Access to the subscription will be terminated immediately and it will stop recurring. */
|
|
1162
|
+
await gapi.client.androidpublisher.purchases.subscriptions.revoke({
|
|
1163
|
+
packageName: "Test string",
|
|
1164
|
+
subscriptionId: "Test string",
|
|
1165
|
+
token: "Test string",
|
|
1166
|
+
});
|
|
1167
|
+
/** Get metadata about a subscription */
|
|
1168
|
+
await gapi.client.androidpublisher.purchases.subscriptionsv2.get({
|
|
1169
|
+
packageName: "Test string",
|
|
1170
|
+
token: "Test string",
|
|
1171
|
+
});
|
|
1172
|
+
/** Lists the purchases that were canceled, refunded or charged-back. */
|
|
1173
|
+
await gapi.client.androidpublisher.purchases.voidedpurchases.list({
|
|
1174
|
+
endTime: "Test string",
|
|
1175
|
+
maxResults: 42,
|
|
1176
|
+
packageName: "Test string",
|
|
1177
|
+
startIndex: 42,
|
|
1178
|
+
startTime: "Test string",
|
|
1179
|
+
token: "Test string",
|
|
1180
|
+
type: 42,
|
|
1181
|
+
});
|
|
1182
|
+
/** Gets a single review. */
|
|
1183
|
+
await gapi.client.androidpublisher.reviews.get({
|
|
1184
|
+
packageName: "Test string",
|
|
1185
|
+
reviewId: "Test string",
|
|
1186
|
+
translationLanguage: "Test string",
|
|
1187
|
+
});
|
|
1188
|
+
/** Lists all reviews. */
|
|
1189
|
+
await gapi.client.androidpublisher.reviews.list({
|
|
1190
|
+
maxResults: 42,
|
|
1191
|
+
packageName: "Test string",
|
|
1192
|
+
startIndex: 42,
|
|
1193
|
+
token: "Test string",
|
|
1194
|
+
translationLanguage: "Test string",
|
|
1195
|
+
});
|
|
1196
|
+
/** Replies to a single review, or updates an existing reply. */
|
|
1197
|
+
await gapi.client.androidpublisher.reviews.reply({
|
|
1198
|
+
packageName: "Test string",
|
|
1199
|
+
reviewId: "Test string",
|
|
1200
|
+
}, {
|
|
1201
|
+
replyText: "Test string",
|
|
1202
|
+
});
|
|
1203
|
+
/** Creates an APK which is suitable for inclusion in a system image from an already uploaded Android App Bundle. */
|
|
1204
|
+
await gapi.client.androidpublisher.systemapks.variants.create({
|
|
1205
|
+
packageName: "Test string",
|
|
1206
|
+
versionCode: "Test string",
|
|
1207
|
+
}, {
|
|
1208
|
+
deviceSpec: {
|
|
1209
|
+
screenDensity: 42,
|
|
1210
|
+
supportedAbis: [
|
|
1211
|
+
"Test string"
|
|
1212
|
+
],
|
|
1213
|
+
supportedLocales: [
|
|
1214
|
+
"Test string"
|
|
1215
|
+
],
|
|
1216
|
+
},
|
|
1217
|
+
variantId: 42,
|
|
1218
|
+
});
|
|
1219
|
+
/** Downloads a previously created system APK which is suitable for inclusion in a system image. */
|
|
1220
|
+
await gapi.client.androidpublisher.systemapks.variants.download({
|
|
1221
|
+
packageName: "Test string",
|
|
1222
|
+
variantId: 42,
|
|
1223
|
+
versionCode: "Test string",
|
|
1224
|
+
});
|
|
1225
|
+
/** Returns a previously created system APK variant. */
|
|
1226
|
+
await gapi.client.androidpublisher.systemapks.variants.get({
|
|
1227
|
+
packageName: "Test string",
|
|
1228
|
+
variantId: 42,
|
|
1229
|
+
versionCode: "Test string",
|
|
1230
|
+
});
|
|
1231
|
+
/** Returns the list of previously created system APK variants. */
|
|
1232
|
+
await gapi.client.androidpublisher.systemapks.variants.list({
|
|
1233
|
+
packageName: "Test string",
|
|
1234
|
+
versionCode: "Test string",
|
|
1235
|
+
});
|
|
1236
|
+
/** Grant access for a user to the given developer account. */
|
|
1237
|
+
await gapi.client.androidpublisher.users.create({
|
|
1238
|
+
parent: "Test string",
|
|
1239
|
+
}, {
|
|
1240
|
+
accessState: "Test string",
|
|
1241
|
+
developerAccountPermissions: [
|
|
1242
|
+
"Test string"
|
|
1243
|
+
],
|
|
1244
|
+
email: "Test string",
|
|
1245
|
+
expirationTime: "Test string",
|
|
1246
|
+
grants: [
|
|
1247
|
+
{
|
|
1248
|
+
appLevelPermissions: [
|
|
1249
|
+
"Test string"
|
|
1250
|
+
],
|
|
1251
|
+
name: "Test string",
|
|
1252
|
+
packageName: "Test string",
|
|
1253
|
+
}
|
|
1254
|
+
],
|
|
1255
|
+
name: "Test string",
|
|
1256
|
+
partial: true,
|
|
1257
|
+
});
|
|
1258
|
+
/** Removes all access for the user to the given developer account. */
|
|
1259
|
+
await gapi.client.androidpublisher.users.delete({
|
|
1260
|
+
name: "Test string",
|
|
1261
|
+
});
|
|
1262
|
+
/** Lists all users with access to a developer account. */
|
|
1263
|
+
await gapi.client.androidpublisher.users.list({
|
|
1264
|
+
pageSize: 42,
|
|
1265
|
+
pageToken: "Test string",
|
|
1266
|
+
parent: "Test string",
|
|
1267
|
+
});
|
|
1268
|
+
/** Updates access for the user to the developer account. */
|
|
1269
|
+
await gapi.client.androidpublisher.users.patch({
|
|
1270
|
+
name: "Test string",
|
|
1271
|
+
updateMask: "Test string",
|
|
1272
|
+
}, {
|
|
1273
|
+
accessState: "Test string",
|
|
1274
|
+
developerAccountPermissions: [
|
|
1275
|
+
"Test string"
|
|
1276
|
+
],
|
|
1277
|
+
email: "Test string",
|
|
1278
|
+
expirationTime: "Test string",
|
|
1279
|
+
grants: [
|
|
1280
|
+
{
|
|
1281
|
+
appLevelPermissions: [
|
|
1282
|
+
"Test string"
|
|
1283
|
+
],
|
|
1284
|
+
name: "Test string",
|
|
1285
|
+
packageName: "Test string",
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
name: "Test string",
|
|
1289
|
+
partial: true,
|
|
1290
|
+
});
|
|
1291
|
+
}
|
|
1292
|
+
});
|