@maxim_mazurok/gapi.client.androidpublisher-v3 0.4.20260702 → 0.4.20260717
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 +635 -178
- package/package.json +1 -1
- package/readme.md +52 -0
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://androidpublisher.googleapis.com/$discovery/rest?version=v3
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20260717
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -218,6 +218,46 @@ declare namespace gapi.client {
|
|
|
218
218
|
/** Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc. */
|
|
219
219
|
targeting?: Targeting;
|
|
220
220
|
}
|
|
221
|
+
interface AppStoreAppActiveApks {
|
|
222
|
+
/** Required. List specifying which APK sets are distributed together. This list should contain all APKs that you're distributing for this app. Add an entry for each individual installable set of APKs. */
|
|
223
|
+
activeApkSets?: AppStoreAppActiveApkSet[];
|
|
224
|
+
}
|
|
225
|
+
interface AppStoreAppActiveApkSet {
|
|
226
|
+
/** Required. The ID for the main base application module. Example: base.apk or app.apk. */
|
|
227
|
+
baseApkId?: string;
|
|
228
|
+
/** Optional. IDs for split modules that might be installed in combination with the base APK. Can be empty if app bundles (or a similar technology) are not used. Example: config.en.apk. */
|
|
229
|
+
splitApkId?: string[];
|
|
230
|
+
}
|
|
231
|
+
interface AppStoreAppDetails {
|
|
232
|
+
/** Required. The app developer's contact email address. */
|
|
233
|
+
contactEmail?: string;
|
|
234
|
+
/** Required. The app developer's name. */
|
|
235
|
+
developerName?: string;
|
|
236
|
+
/** Optional. Website link for the developer or app. */
|
|
237
|
+
developerWebsite?: string;
|
|
238
|
+
}
|
|
239
|
+
interface AppStoreAppPolicyDeclaration {
|
|
240
|
+
/** Required. ID of the policy declaration. */
|
|
241
|
+
declarationId?: string;
|
|
242
|
+
/** Required. Responses provided for this declaration. */
|
|
243
|
+
responses?: PolicyResponse[];
|
|
244
|
+
}
|
|
245
|
+
interface AppStoreAppStoreListing {
|
|
246
|
+
/** Required. Image ID generated from UploadImage for the main app icon. */
|
|
247
|
+
appIconId?: string;
|
|
248
|
+
/** Required. The title of the app. */
|
|
249
|
+
appName?: string;
|
|
250
|
+
/** Required. Comprehensive description text about the app. */
|
|
251
|
+
fullDescription?: string;
|
|
252
|
+
/** Required. Language code (e.g., "en-US") of the listing. */
|
|
253
|
+
languageCode?: string;
|
|
254
|
+
/** Required. Multiple image IDs for screenshot galleries. */
|
|
255
|
+
screenshotId?: string[];
|
|
256
|
+
/** Optional. Quick summary about the app. */
|
|
257
|
+
shortDescription?: string;
|
|
258
|
+
/** Optional. Link to a video about the app. */
|
|
259
|
+
videoLink?: string;
|
|
260
|
+
}
|
|
221
261
|
interface AppVersionList {
|
|
222
262
|
/** List of app version codes. */
|
|
223
263
|
versionCodes?: string[];
|
|
@@ -488,12 +528,36 @@ declare namespace gapi.client {
|
|
|
488
528
|
/** Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user's freeform response to the survey. */
|
|
489
529
|
reasonUserInput?: string;
|
|
490
530
|
}
|
|
531
|
+
interface CoarseLocation {
|
|
532
|
+
/** Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, "Barcelona" and not "Catalonia"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated. */
|
|
533
|
+
administrativeArea?: string;
|
|
534
|
+
/** Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty. */
|
|
535
|
+
locality?: string;
|
|
536
|
+
/** Required. [CLDR region code](https://cldr.unicode.org/) of the country/region of the address. This value is never inferred and you must ensure the value is correct. Example: "CH" for Switzerland. */
|
|
537
|
+
regionCode?: string;
|
|
538
|
+
/** Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district. For most addresses, you can omit this. */
|
|
539
|
+
sublocality?: string;
|
|
540
|
+
}
|
|
491
541
|
interface Comment {
|
|
492
542
|
/** A comment from a developer. */
|
|
493
543
|
developerComment?: DeveloperComment;
|
|
494
544
|
/** A comment from a user. */
|
|
495
545
|
userComment?: UserComment;
|
|
496
546
|
}
|
|
547
|
+
interface ConsumptionUsageEvent {
|
|
548
|
+
/** Optional. Free form text that allows developers to provide more info on the item consumed. Maximum length is 5000 characters. */
|
|
549
|
+
consumptionItemDescription?: string;
|
|
550
|
+
/** Optional. Time when the user consumed, used, downloaded, opened, or streamed the content. */
|
|
551
|
+
consumptionTime?: string;
|
|
552
|
+
/** Optional. The IP address from which the consumption occurred. */
|
|
553
|
+
ipAddress?: string;
|
|
554
|
+
/** Optional. Geographic location where the consumption occurred. */
|
|
555
|
+
location?: CoarseLocation;
|
|
556
|
+
/** Optional. Obfuscated string that is uniquely associated with the purchaser's user account in the app. https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setObfuscatedAccountId(java.lang.String) */
|
|
557
|
+
obfuscatedAccountId?: string;
|
|
558
|
+
/** Optional. Obfuscated string that is uniquely associated with the purchaser's user profile in the app. https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setObfuscatedProfileId(java.lang.String) */
|
|
559
|
+
obfuscatedProfileId?: string;
|
|
560
|
+
}
|
|
497
561
|
interface ConvertedOtherRegionsPrice {
|
|
498
562
|
/** Price in EUR to use for the "Other regions" location exclusive of taxes. */
|
|
499
563
|
eurPrice?: Money;
|
|
@@ -528,12 +592,25 @@ declare namespace gapi.client {
|
|
|
528
592
|
/** Include "rest of world" as well as explicitly targeted countries. */
|
|
529
593
|
includeRestOfWorld?: boolean;
|
|
530
594
|
}
|
|
595
|
+
interface CreateAppStoreHostedAppRequest {
|
|
596
|
+
/** Required. Package name of the app. */
|
|
597
|
+
packageName?: string;
|
|
598
|
+
}
|
|
599
|
+
interface CreateAppStoreHostedAppResponse {}
|
|
531
600
|
interface CreateDraftAppRecoveryRequest {
|
|
532
601
|
/** Action type is remote in-app update. As a consequence of this action, a downloadable recovery module is also created for testing purposes. */
|
|
533
602
|
remoteInAppUpdate?: RemoteInAppUpdate;
|
|
534
603
|
/** Specifies targeting criteria for the recovery action such as regions, android sdk versions, app versions etc. */
|
|
535
604
|
targeting?: Targeting;
|
|
536
605
|
}
|
|
606
|
+
interface Date {
|
|
607
|
+
/** Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. */
|
|
608
|
+
day?: number;
|
|
609
|
+
/** Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day. */
|
|
610
|
+
month?: number;
|
|
611
|
+
/** Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year. */
|
|
612
|
+
year?: number;
|
|
613
|
+
}
|
|
537
614
|
interface DeactivateBasePlanRequest {
|
|
538
615
|
/** Required. The unique base plan ID of the base plan to deactivate. */
|
|
539
616
|
basePlanId?: string;
|
|
@@ -997,6 +1074,10 @@ declare namespace gapi.client {
|
|
|
997
1074
|
/** Immutable. The package name of the app. This will be empty for draft apps. */
|
|
998
1075
|
packageName?: string;
|
|
999
1076
|
}
|
|
1077
|
+
interface Group {
|
|
1078
|
+
/** Required. Responses within a group. */
|
|
1079
|
+
responses?: NestedPolicyResponse[];
|
|
1080
|
+
}
|
|
1000
1081
|
interface Image {
|
|
1001
1082
|
/** Optional. Whether the image was generated by AI. Attested by the developer. */
|
|
1002
1083
|
aiGeneratedState?:
|
|
@@ -1162,16 +1243,6 @@ declare namespace gapi.client {
|
|
|
1162
1243
|
sha256?: string;
|
|
1163
1244
|
}
|
|
1164
1245
|
interface IntroductoryPriceDetails {}
|
|
1165
|
-
interface IntroductoryPriceInfo {
|
|
1166
|
-
/** Introductory price of the subscription, not including tax. The currency is the same as price_currency_code. Price is expressed in micro-units, where 1,000,000 micro-units represents one unit of the currency. For example, if the subscription price is €1.99, price_amount_micros is 1990000. */
|
|
1167
|
-
introductoryPriceAmountMicros?: string;
|
|
1168
|
-
/** ISO 4217 currency code for the introductory subscription price. For example, if the price is specified in British pounds sterling, price_currency_code is "GBP". */
|
|
1169
|
-
introductoryPriceCurrencyCode?: string;
|
|
1170
|
-
/** The number of billing period to offer introductory pricing. */
|
|
1171
|
-
introductoryPriceCycles?: number;
|
|
1172
|
-
/** Introductory price period, specified in ISO 8601 format. Common values are (but not limited to) "P1W" (one week), "P1M" (one month), "P3M" (three months), "P6M" (six months), and "P1Y" (one year). */
|
|
1173
|
-
introductoryPricePeriod?: string;
|
|
1174
|
-
}
|
|
1175
1246
|
interface IntroductoryPriceOfferPhase {}
|
|
1176
1247
|
interface ItemExpiryTimeDetails {
|
|
1177
1248
|
/** The new expiry time for this subscription item. */
|
|
@@ -1196,6 +1267,12 @@ declare namespace gapi.client {
|
|
|
1196
1267
|
| 'DEFERRED'
|
|
1197
1268
|
| 'KEEP_EXISTING';
|
|
1198
1269
|
}
|
|
1270
|
+
interface KeyedGroup {
|
|
1271
|
+
/** Required. Key for this group. */
|
|
1272
|
+
key?: string;
|
|
1273
|
+
/** Required. Responses in this group. */
|
|
1274
|
+
responses?: NestedPolicyResponse[];
|
|
1275
|
+
}
|
|
1199
1276
|
interface LanguageTargeting {
|
|
1200
1277
|
/** Alternative languages. */
|
|
1201
1278
|
alternatives?: string[];
|
|
@@ -1360,6 +1437,20 @@ declare namespace gapi.client {
|
|
|
1360
1437
|
/** Value of a multi abi. */
|
|
1361
1438
|
value?: MultiAbi[];
|
|
1362
1439
|
}
|
|
1440
|
+
interface NestedPolicyResponse {
|
|
1441
|
+
/** Optional. A boolean response. */
|
|
1442
|
+
booleanResponse?: PolicyBooleanResponse;
|
|
1443
|
+
/** Optional. A document response. */
|
|
1444
|
+
documentResponse?: PolicyDocumentResponse;
|
|
1445
|
+
/** Optional. A multiple choice response. */
|
|
1446
|
+
multipleChoiceResponse?: PolicyMultipleChoiceResponse;
|
|
1447
|
+
/** Required. ID of the question being answered. */
|
|
1448
|
+
questionId?: string;
|
|
1449
|
+
/** Optional. A single choice response. */
|
|
1450
|
+
singleChoiceResponse?: PolicySingleChoiceResponse;
|
|
1451
|
+
/** Optional. A string response. */
|
|
1452
|
+
stringResponse?: PolicyStringResponse;
|
|
1453
|
+
}
|
|
1363
1454
|
interface OfferDetails {
|
|
1364
1455
|
/** The base plan ID. Present for all base plan and offers. */
|
|
1365
1456
|
basePlanId?: string;
|
|
@@ -1621,6 +1712,19 @@ declare namespace gapi.client {
|
|
|
1621
1712
|
/** Details of when the order was fully refunded. */
|
|
1622
1713
|
refundEvent?: RefundEvent;
|
|
1623
1714
|
}
|
|
1715
|
+
interface OrdersReviewRefundRequest {
|
|
1716
|
+
/** Optional. Percentage of the In-App purchase the customer consumed, in milliunits. Minimum: 0 Maximum: 100,000. For paid apps, this can be omitted. Example : 45200 represents 45.2%. */
|
|
1717
|
+
consumptionPercentageMilliunits?: number;
|
|
1718
|
+
/** Optional. List of events, each representing an instance where the user consumed or used the purchased item or service. Lists with over 1000 items will be rejected. */
|
|
1719
|
+
consumptionUsageEvents?: ConsumptionUsageEvent[];
|
|
1720
|
+
/** Required. The pending refund token included in the pending refund review notification. */
|
|
1721
|
+
pendingRefundToken?: string;
|
|
1722
|
+
/** Required. Indicates your preference, based on your operational logic, as to whether the Play Store should grant the refund. */
|
|
1723
|
+
refundPreference?:
|
|
1724
|
+
'REFUND_PREFERENCE_UNSPECIFIED' | 'DECLINE' | 'APPROVE' | 'NEUTRAL';
|
|
1725
|
+
/** Required. Indicates whether you provided a free sample, trial, or information about the functionality prior to the purchase. */
|
|
1726
|
+
sampleContentProvided?: boolean;
|
|
1727
|
+
}
|
|
1624
1728
|
interface OtherRecurringProduct {}
|
|
1625
1729
|
interface OtherRegionsBasePlanConfig {
|
|
1626
1730
|
/** Required. Price in EUR to use for any new locations Play may launch in. */
|
|
@@ -1697,6 +1801,56 @@ declare namespace gapi.client {
|
|
|
1697
1801
|
/** The number of Play Points applied in this order. E.g. for a 100 points for $2 coupon, this is 100. For coupon stacked with base offer, this is the total points spent across both. */
|
|
1698
1802
|
pointsSpent?: string;
|
|
1699
1803
|
}
|
|
1804
|
+
interface PolicyBooleanResponse {
|
|
1805
|
+
/** Required. Provided boolean value. */
|
|
1806
|
+
value?: boolean;
|
|
1807
|
+
}
|
|
1808
|
+
interface PolicyDocumentResponse {
|
|
1809
|
+
/** Required. ID of the uploaded document. */
|
|
1810
|
+
documentId?: string;
|
|
1811
|
+
/** Optional. Expiry date for the document. */
|
|
1812
|
+
expiryDate?: Date;
|
|
1813
|
+
/** Optional. True if confirmed that the document does not have an expiry date. */
|
|
1814
|
+
nonExpiring?: boolean;
|
|
1815
|
+
}
|
|
1816
|
+
interface PolicyGroupResponse {
|
|
1817
|
+
/** Optional. Groups of responses to questions. */
|
|
1818
|
+
groups?: Group[];
|
|
1819
|
+
}
|
|
1820
|
+
interface PolicyKeyedGroupResponse {
|
|
1821
|
+
/** Optional. Groups of responses to questions. Each KeyedGroup.key must be unique within this list. */
|
|
1822
|
+
groups?: KeyedGroup[];
|
|
1823
|
+
}
|
|
1824
|
+
interface PolicyMultipleChoiceResponse {
|
|
1825
|
+
/** Optional. Provided values. */
|
|
1826
|
+
values?: string[];
|
|
1827
|
+
}
|
|
1828
|
+
interface PolicyResponse {
|
|
1829
|
+
/** Optional. A boolean response. */
|
|
1830
|
+
booleanResponse?: PolicyBooleanResponse;
|
|
1831
|
+
/** Optional. A document response. */
|
|
1832
|
+
documentResponse?: PolicyDocumentResponse;
|
|
1833
|
+
/** Optional. A group response. */
|
|
1834
|
+
groupResponse?: PolicyGroupResponse;
|
|
1835
|
+
/** Optional. A keyed group response. */
|
|
1836
|
+
keyedGroupResponse?: PolicyKeyedGroupResponse;
|
|
1837
|
+
/** Optional. A multiple choice response. */
|
|
1838
|
+
multipleChoiceResponse?: PolicyMultipleChoiceResponse;
|
|
1839
|
+
/** Required. ID of the question being answered. */
|
|
1840
|
+
questionId?: string;
|
|
1841
|
+
/** Optional. A single choice response. */
|
|
1842
|
+
singleChoiceResponse?: PolicySingleChoiceResponse;
|
|
1843
|
+
/** Optional. A string response. */
|
|
1844
|
+
stringResponse?: PolicyStringResponse;
|
|
1845
|
+
}
|
|
1846
|
+
interface PolicySingleChoiceResponse {
|
|
1847
|
+
/** Required. Provided value. */
|
|
1848
|
+
value?: string;
|
|
1849
|
+
}
|
|
1850
|
+
interface PolicyStringResponse {
|
|
1851
|
+
/** Required. Provided string value. */
|
|
1852
|
+
value?: string;
|
|
1853
|
+
}
|
|
1700
1854
|
interface PreorderDetails {}
|
|
1701
1855
|
interface PreorderOfferDetails {
|
|
1702
1856
|
/** The time when a preordered item is released for a preorder purchase. */
|
|
@@ -2168,12 +2322,6 @@ declare namespace gapi.client {
|
|
|
2168
2322
|
/** Details about taxes and legal compliance. */
|
|
2169
2323
|
taxAndComplianceSettings?: SubscriptionTaxAndComplianceSettings;
|
|
2170
2324
|
}
|
|
2171
|
-
interface SubscriptionCancelSurveyResult {
|
|
2172
|
-
/** The cancellation reason the user chose in the survey. Possible values are: 0. Other 1. I don't use this service enough 2. Technical issues 3. Cost-related reasons 4. I found a better app */
|
|
2173
|
-
cancelSurveyReason?: number;
|
|
2174
|
-
/** The customized input cancel reason from the user. Only present when cancelReason is 0. */
|
|
2175
|
-
userInputCancelReason?: string;
|
|
2176
|
-
}
|
|
2177
2325
|
interface SubscriptionDeferralInfo {
|
|
2178
2326
|
/** The desired next expiry time to assign to the subscription, in milliseconds since the Epoch. The given time must be later/greater than the current expiry time for the subscription. */
|
|
2179
2327
|
desiredExpiryTimeMillis?: string;
|
|
@@ -2262,72 +2410,6 @@ declare namespace gapi.client {
|
|
|
2262
2410
|
/** Offer targeting rule for upgrading users' existing plans. */
|
|
2263
2411
|
upgradeRule?: UpgradeTargetingRule;
|
|
2264
2412
|
}
|
|
2265
|
-
interface SubscriptionPriceChange {
|
|
2266
|
-
/** The new price the subscription will renew with if the price change is accepted by the user. */
|
|
2267
|
-
newPrice?: Price;
|
|
2268
|
-
/** The current state of the price change. Possible values are: 0. Outstanding: State for a pending price change waiting for the user to agree. In this state, you can optionally seek confirmation from the user using the In-App API. 1. Accepted: State for an accepted price change that the subscription will renew with unless it's canceled. The price change takes effect on a future date when the subscription renews. Note that the change might not occur when the subscription is renewed next. */
|
|
2269
|
-
state?: number;
|
|
2270
|
-
}
|
|
2271
|
-
interface SubscriptionPurchase {
|
|
2272
|
-
/** The acknowledgement state of the subscription product. Possible values are: 0. Yet to be acknowledged 1. Acknowledged */
|
|
2273
|
-
acknowledgementState?: number;
|
|
2274
|
-
/** Whether the subscription will automatically be renewed when it reaches its current expiry time. */
|
|
2275
|
-
autoRenewing?: boolean;
|
|
2276
|
-
/** Time at which the subscription will be automatically resumed, in milliseconds since the Epoch. Only present if the user has requested to pause the subscription. */
|
|
2277
|
-
autoResumeTimeMillis?: string;
|
|
2278
|
-
/** The reason why a subscription was canceled or is not auto-renewing. Possible values are: 0. User canceled the subscription 1. Subscription was canceled by the system, for example because of a billing problem 2. Subscription was replaced with a new subscription 3. Subscription was canceled by the developer */
|
|
2279
|
-
cancelReason?: number;
|
|
2280
|
-
/** Information provided by the user when they complete the subscription cancellation flow (cancellation reason survey). */
|
|
2281
|
-
cancelSurveyResult?: SubscriptionCancelSurveyResult;
|
|
2282
|
-
/** ISO 3166-1 alpha-2 billing country/region code of the user at the time the subscription was granted. */
|
|
2283
|
-
countryCode?: string;
|
|
2284
|
-
/** A developer-specified string that contains supplemental information about an order. */
|
|
2285
|
-
developerPayload?: string;
|
|
2286
|
-
/** The email address of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'. */
|
|
2287
|
-
emailAddress?: string;
|
|
2288
|
-
/** Time at which the subscription will expire, in milliseconds since the Epoch. */
|
|
2289
|
-
expiryTimeMillis?: string;
|
|
2290
|
-
/** User account identifier in the third-party service. Only present if account linking happened as part of the subscription purchase flow. */
|
|
2291
|
-
externalAccountId?: string;
|
|
2292
|
-
/** The family name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'. */
|
|
2293
|
-
familyName?: string;
|
|
2294
|
-
/** The given name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'. */
|
|
2295
|
-
givenName?: string;
|
|
2296
|
-
/** Introductory price information of the subscription. This is only present when the subscription was purchased with an introductory price. This field does not indicate the subscription is currently in introductory price period. */
|
|
2297
|
-
introductoryPriceInfo?: IntroductoryPriceInfo;
|
|
2298
|
-
/** This kind represents a subscriptionPurchase object in the androidpublisher service. */
|
|
2299
|
-
kind?: string;
|
|
2300
|
-
/** The purchase token of the originating purchase if this subscription is one of the following: 0. Re-signup of a canceled but non-lapsed subscription 1. Upgrade/downgrade from a previous subscription For example, suppose a user originally signs up and you receive purchase token X, then the user cancels and goes through the resignup flow (before their subscription lapses) and you receive purchase token Y, and finally the user upgrades their subscription and you receive purchase token Z. If you call this API with purchase token Z, this field will be set to Y. If you call this API with purchase token Y, this field will be set to X. If you call this API with purchase token X, this field will not be set. */
|
|
2301
|
-
linkedPurchaseToken?: string;
|
|
2302
|
-
/** An obfuscated version of the id that is uniquely associated with the user's account in your app. Present for the following purchases: * If account linking happened as part of the subscription purchase flow. * It was specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made. */
|
|
2303
|
-
obfuscatedExternalAccountId?: string;
|
|
2304
|
-
/** An obfuscated version of the id that is uniquely associated with the user's profile in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid when the purchase was made. */
|
|
2305
|
-
obfuscatedExternalProfileId?: string;
|
|
2306
|
-
/** The order id of the latest recurring order associated with the purchase of the subscription. If the subscription was canceled because payment was declined, this will be the order id from the payment declined order. */
|
|
2307
|
-
orderId?: string;
|
|
2308
|
-
/** The payment state of the subscription. Possible values are: 0. Payment pending 1. Payment received 2. Free trial 3. Pending deferred upgrade/downgrade Not present for canceled, expired subscriptions. */
|
|
2309
|
-
paymentState?: number;
|
|
2310
|
-
/** Price of the subscription, For tax exclusive countries, the price doesn't include tax. For tax inclusive countries, the price includes tax. Price is expressed in micro-units, where 1,000,000 micro-units represents one unit of the currency. For example, if the subscription price is €1.99, price_amount_micros is 1990000. */
|
|
2311
|
-
priceAmountMicros?: string;
|
|
2312
|
-
/** The latest price change information available. This is present only when there is an upcoming price change for the subscription yet to be applied. Once the subscription renews with the new price or the subscription is canceled, no price change information will be returned. */
|
|
2313
|
-
priceChange?: SubscriptionPriceChange;
|
|
2314
|
-
/** ISO 4217 currency code for the subscription price. For example, if the price is specified in British pounds sterling, price_currency_code is "GBP". */
|
|
2315
|
-
priceCurrencyCode?: string;
|
|
2316
|
-
/** The Google profile id of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'. */
|
|
2317
|
-
profileId?: string;
|
|
2318
|
-
/** The profile name of the user when the subscription was purchased. Only present for purchases made with 'Subscribe with Google'. */
|
|
2319
|
-
profileName?: string;
|
|
2320
|
-
/** The promotion code applied on this purchase. This field is only set if a vanity code promotion is applied when the subscription was purchased. */
|
|
2321
|
-
promotionCode?: string;
|
|
2322
|
-
/** The type of promotion applied on this purchase. This field is only set if a promotion is applied when the subscription was purchased. Possible values are: 0. One time code 1. Vanity code */
|
|
2323
|
-
promotionType?: number;
|
|
2324
|
-
/** The type of purchase of the subscription. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e. purchased using a promo code) */
|
|
2325
|
-
purchaseType?: number;
|
|
2326
|
-
/** Time at which the subscription was granted, in milliseconds since the Epoch. */
|
|
2327
|
-
startTimeMillis?: string;
|
|
2328
|
-
/** The time at which the subscription was canceled by the user, in milliseconds since the epoch. Only present if cancelReason is 0. */
|
|
2329
|
-
userCancellationTimeMillis?: string;
|
|
2330
|
-
}
|
|
2331
2413
|
interface SubscriptionPurchaseLineItem {
|
|
2332
2414
|
/** The item is auto renewing. */
|
|
2333
2415
|
autoRenewingPlan?: AutoRenewingPlan;
|
|
@@ -2382,8 +2464,6 @@ declare namespace gapi.client {
|
|
|
2382
2464
|
inGracePeriodStateContext?: InGracePeriodStateContext;
|
|
2383
2465
|
/** This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service. */
|
|
2384
2466
|
kind?: string;
|
|
2385
|
-
/** Deprecated: Use line_items.latest_successful_order_id instead. The order id of the latest order associated with the purchase of the subscription. For autoRenewing subscription, this is the order id of signup order if it is not renewed yet, or the last recurring order id (success, pending, or declined order). For prepaid subscription, this is the order id associated with the queried purchase token. */
|
|
2386
|
-
latestOrderId?: string;
|
|
2387
2467
|
/** Item-level info for a subscription purchase. The items in the same purchase should be either all with AutoRenewingPlan or all with PrepaidPlan. */
|
|
2388
2468
|
lineItems?: SubscriptionPurchaseLineItem[];
|
|
2389
2469
|
/** The purchase token of the old subscription if this subscription is one of the following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/downgrade from a previous subscription. * Convert from prepaid to auto renewing subscription. * Convert from an auto renewing subscription to prepaid. * Topup a prepaid subscription. */
|
|
@@ -2581,6 +2661,27 @@ declare namespace gapi.client {
|
|
|
2581
2661
|
/** The country that can be targeted, as a two-letter CLDR code. */
|
|
2582
2662
|
countryCode?: string;
|
|
2583
2663
|
}
|
|
2664
|
+
interface UpdateAppStoreHostedAppPublishStatusRequest {
|
|
2665
|
+
/** Required. The new publish state for the hosted app. */
|
|
2666
|
+
publishState?:
|
|
2667
|
+
| 'APP_STORE_APP_PUBLISH_STATE_UNSPECIFIED'
|
|
2668
|
+
| 'APP_STORE_APP_PUBLISH_STATE_PUBLISHED'
|
|
2669
|
+
| 'APP_STORE_APP_PUBLISH_STATE_UNPUBLISHED';
|
|
2670
|
+
}
|
|
2671
|
+
interface UpdateAppStoreHostedAppPublishStatusResponse {}
|
|
2672
|
+
interface UpdateAppStoreHostedAppRequest {
|
|
2673
|
+
/** Required. Actively distributed APKs of the app. */
|
|
2674
|
+
activeApks?: AppStoreAppActiveApks;
|
|
2675
|
+
/** Required. Localized store listings details of the update. */
|
|
2676
|
+
activeLocalizedStoreListings?: AppStoreAppStoreListing[];
|
|
2677
|
+
/** Required. General developer details for the app. */
|
|
2678
|
+
appDetails?: AppStoreAppDetails;
|
|
2679
|
+
/** Required. Package name of the app. */
|
|
2680
|
+
packageName?: string;
|
|
2681
|
+
/** Required. Policy declarations provided for the app. */
|
|
2682
|
+
policyDeclarations?: AppStoreAppPolicyDeclaration[];
|
|
2683
|
+
}
|
|
2684
|
+
interface UpdateAppStoreHostedAppResponse {}
|
|
2584
2685
|
interface UpdateBasePlanStateRequest {
|
|
2585
2686
|
/** Activates a base plan. Once activated, base plans will be available to new subscribers. */
|
|
2586
2687
|
activateBasePlanRequest?: ActivateBasePlanRequest;
|
|
@@ -2675,6 +2776,25 @@ declare namespace gapi.client {
|
|
|
2675
2776
|
/** Required. The scope of subscriptions this rule considers. Only allows "this subscription" and "specific subscription in app". */
|
|
2676
2777
|
scope?: TargetingRuleScope;
|
|
2677
2778
|
}
|
|
2779
|
+
interface UploadApkRequest {}
|
|
2780
|
+
interface UploadApkResponse {
|
|
2781
|
+
/** The unique ID of the uploaded APK. */
|
|
2782
|
+
apkId?: string;
|
|
2783
|
+
}
|
|
2784
|
+
interface UploadAppStoreAppPolicyDeclarationFileRequest {
|
|
2785
|
+
/** Required. Type of the policy declaration file. */
|
|
2786
|
+
fileType?:
|
|
2787
|
+
'DECLARATION_FILE_TYPE_UNSPECIFIED' | 'DECLARATION_FILE_TYPE_DOCUMENT';
|
|
2788
|
+
}
|
|
2789
|
+
interface UploadAppStoreAppPolicyDeclarationFileResponse {
|
|
2790
|
+
/** The unique ID of the uploaded file. */
|
|
2791
|
+
fileId?: string;
|
|
2792
|
+
}
|
|
2793
|
+
interface UploadImageRequest {}
|
|
2794
|
+
interface UploadImageResponse {
|
|
2795
|
+
/** The unique ID of the uploaded image. */
|
|
2796
|
+
imageId?: string;
|
|
2797
|
+
}
|
|
2678
2798
|
interface User {
|
|
2679
2799
|
/** Output only. The state of the user's access to the Play Console. */
|
|
2680
2800
|
accessState?:
|
|
@@ -3309,6 +3429,372 @@ declare namespace gapi.client {
|
|
|
3309
3429
|
versionCode?: string;
|
|
3310
3430
|
}): Request<ListAppRecoveriesResponse>;
|
|
3311
3431
|
}
|
|
3432
|
+
interface AppstoreappsreviewResource {
|
|
3433
|
+
/** Creates an app store hosted app. This must be called before any other RPCs for this hosted app. */
|
|
3434
|
+
createappstorehostedapp(request: {
|
|
3435
|
+
/** V1 error format. */
|
|
3436
|
+
'$.xgafv'?: '1' | '2';
|
|
3437
|
+
/** OAuth access token. */
|
|
3438
|
+
access_token?: string;
|
|
3439
|
+
/** Data format for response. */
|
|
3440
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3441
|
+
/** Required. Package name of the third-party app store. */
|
|
3442
|
+
appStorePackageName: string;
|
|
3443
|
+
/** JSONP */
|
|
3444
|
+
callback?: string;
|
|
3445
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3446
|
+
fields?: string;
|
|
3447
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3448
|
+
key?: string;
|
|
3449
|
+
/** OAuth 2.0 token for the current user. */
|
|
3450
|
+
oauth_token?: string;
|
|
3451
|
+
/** Returns response with indentations and line breaks. */
|
|
3452
|
+
prettyPrint?: boolean;
|
|
3453
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3454
|
+
quotaUser?: string;
|
|
3455
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3456
|
+
upload_protocol?: string;
|
|
3457
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3458
|
+
uploadType?: string;
|
|
3459
|
+
/** Request body */
|
|
3460
|
+
resource: CreateAppStoreHostedAppRequest;
|
|
3461
|
+
}): Request<{}>;
|
|
3462
|
+
createappstorehostedapp(
|
|
3463
|
+
request: {
|
|
3464
|
+
/** V1 error format. */
|
|
3465
|
+
'$.xgafv'?: '1' | '2';
|
|
3466
|
+
/** OAuth access token. */
|
|
3467
|
+
access_token?: string;
|
|
3468
|
+
/** Data format for response. */
|
|
3469
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3470
|
+
/** Required. Package name of the third-party app store. */
|
|
3471
|
+
appStorePackageName: string;
|
|
3472
|
+
/** JSONP */
|
|
3473
|
+
callback?: string;
|
|
3474
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3475
|
+
fields?: string;
|
|
3476
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3477
|
+
key?: string;
|
|
3478
|
+
/** OAuth 2.0 token for the current user. */
|
|
3479
|
+
oauth_token?: string;
|
|
3480
|
+
/** Returns response with indentations and line breaks. */
|
|
3481
|
+
prettyPrint?: boolean;
|
|
3482
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3483
|
+
quotaUser?: string;
|
|
3484
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3485
|
+
upload_protocol?: string;
|
|
3486
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3487
|
+
uploadType?: string;
|
|
3488
|
+
},
|
|
3489
|
+
body: CreateAppStoreHostedAppRequest,
|
|
3490
|
+
): Request<{}>;
|
|
3491
|
+
/** Updates details for an app hosted on an app store. Use this to provide details for a new app, or to update details for an existing app. The update will be sent for review immediately after creation. */
|
|
3492
|
+
updateappstorehostedapp(request: {
|
|
3493
|
+
/** V1 error format. */
|
|
3494
|
+
'$.xgafv'?: '1' | '2';
|
|
3495
|
+
/** OAuth access token. */
|
|
3496
|
+
access_token?: string;
|
|
3497
|
+
/** Data format for response. */
|
|
3498
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3499
|
+
/** Required. Package name of the third-party app store. */
|
|
3500
|
+
appStorePackageName: string;
|
|
3501
|
+
/** JSONP */
|
|
3502
|
+
callback?: string;
|
|
3503
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3504
|
+
fields?: string;
|
|
3505
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3506
|
+
key?: string;
|
|
3507
|
+
/** OAuth 2.0 token for the current user. */
|
|
3508
|
+
oauth_token?: string;
|
|
3509
|
+
/** Returns response with indentations and line breaks. */
|
|
3510
|
+
prettyPrint?: boolean;
|
|
3511
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3512
|
+
quotaUser?: string;
|
|
3513
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3514
|
+
upload_protocol?: string;
|
|
3515
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3516
|
+
uploadType?: string;
|
|
3517
|
+
/** Request body */
|
|
3518
|
+
resource: UpdateAppStoreHostedAppRequest;
|
|
3519
|
+
}): Request<{}>;
|
|
3520
|
+
updateappstorehostedapp(
|
|
3521
|
+
request: {
|
|
3522
|
+
/** V1 error format. */
|
|
3523
|
+
'$.xgafv'?: '1' | '2';
|
|
3524
|
+
/** OAuth access token. */
|
|
3525
|
+
access_token?: string;
|
|
3526
|
+
/** Data format for response. */
|
|
3527
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3528
|
+
/** Required. Package name of the third-party app store. */
|
|
3529
|
+
appStorePackageName: string;
|
|
3530
|
+
/** JSONP */
|
|
3531
|
+
callback?: string;
|
|
3532
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3533
|
+
fields?: string;
|
|
3534
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3535
|
+
key?: string;
|
|
3536
|
+
/** OAuth 2.0 token for the current user. */
|
|
3537
|
+
oauth_token?: string;
|
|
3538
|
+
/** Returns response with indentations and line breaks. */
|
|
3539
|
+
prettyPrint?: boolean;
|
|
3540
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3541
|
+
quotaUser?: string;
|
|
3542
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3543
|
+
upload_protocol?: string;
|
|
3544
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3545
|
+
uploadType?: string;
|
|
3546
|
+
},
|
|
3547
|
+
body: UpdateAppStoreHostedAppRequest,
|
|
3548
|
+
): Request<{}>;
|
|
3549
|
+
/** Updates the publish status of an app store hosted app. The default state after calling UpdateAppStoreHostedApp is PUBLISHED. It is not necessary to call this RPC explicitly to set an app to PUBLISHED. */
|
|
3550
|
+
updateappstorehostedapppublishstatus(request: {
|
|
3551
|
+
/** V1 error format. */
|
|
3552
|
+
'$.xgafv'?: '1' | '2';
|
|
3553
|
+
/** OAuth access token. */
|
|
3554
|
+
access_token?: string;
|
|
3555
|
+
/** Data format for response. */
|
|
3556
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3557
|
+
/** Required. Package name of the third-party app store. */
|
|
3558
|
+
appStorePackageName: string;
|
|
3559
|
+
/** JSONP */
|
|
3560
|
+
callback?: string;
|
|
3561
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3562
|
+
fields?: string;
|
|
3563
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3564
|
+
key?: string;
|
|
3565
|
+
/** OAuth 2.0 token for the current user. */
|
|
3566
|
+
oauth_token?: string;
|
|
3567
|
+
/** Required. Package name of the app. */
|
|
3568
|
+
packageName: string;
|
|
3569
|
+
/** Returns response with indentations and line breaks. */
|
|
3570
|
+
prettyPrint?: boolean;
|
|
3571
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3572
|
+
quotaUser?: string;
|
|
3573
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3574
|
+
upload_protocol?: string;
|
|
3575
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3576
|
+
uploadType?: string;
|
|
3577
|
+
/** Request body */
|
|
3578
|
+
resource: UpdateAppStoreHostedAppPublishStatusRequest;
|
|
3579
|
+
}): Request<{}>;
|
|
3580
|
+
updateappstorehostedapppublishstatus(
|
|
3581
|
+
request: {
|
|
3582
|
+
/** V1 error format. */
|
|
3583
|
+
'$.xgafv'?: '1' | '2';
|
|
3584
|
+
/** OAuth access token. */
|
|
3585
|
+
access_token?: string;
|
|
3586
|
+
/** Data format for response. */
|
|
3587
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3588
|
+
/** Required. Package name of the third-party app store. */
|
|
3589
|
+
appStorePackageName: string;
|
|
3590
|
+
/** JSONP */
|
|
3591
|
+
callback?: string;
|
|
3592
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3593
|
+
fields?: string;
|
|
3594
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3595
|
+
key?: string;
|
|
3596
|
+
/** OAuth 2.0 token for the current user. */
|
|
3597
|
+
oauth_token?: string;
|
|
3598
|
+
/** Required. Package name of the app. */
|
|
3599
|
+
packageName: string;
|
|
3600
|
+
/** Returns response with indentations and line breaks. */
|
|
3601
|
+
prettyPrint?: boolean;
|
|
3602
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3603
|
+
quotaUser?: string;
|
|
3604
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3605
|
+
upload_protocol?: string;
|
|
3606
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3607
|
+
uploadType?: string;
|
|
3608
|
+
},
|
|
3609
|
+
body: UpdateAppStoreHostedAppPublishStatusRequest,
|
|
3610
|
+
): Request<{}>;
|
|
3611
|
+
/** Upload an APK file for the hosted app. Returns an ID to track this APK. */
|
|
3612
|
+
uploadapk(request: {
|
|
3613
|
+
/** V1 error format. */
|
|
3614
|
+
'$.xgafv'?: '1' | '2';
|
|
3615
|
+
/** OAuth access token. */
|
|
3616
|
+
access_token?: string;
|
|
3617
|
+
/** Data format for response. */
|
|
3618
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3619
|
+
/** Required. Package name of the third-party app store. */
|
|
3620
|
+
appStorePackageName: string;
|
|
3621
|
+
/** JSONP */
|
|
3622
|
+
callback?: string;
|
|
3623
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3624
|
+
fields?: string;
|
|
3625
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3626
|
+
key?: string;
|
|
3627
|
+
/** OAuth 2.0 token for the current user. */
|
|
3628
|
+
oauth_token?: string;
|
|
3629
|
+
/** Required. Package name of the app. */
|
|
3630
|
+
packageName: string;
|
|
3631
|
+
/** Returns response with indentations and line breaks. */
|
|
3632
|
+
prettyPrint?: boolean;
|
|
3633
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3634
|
+
quotaUser?: string;
|
|
3635
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3636
|
+
upload_protocol?: string;
|
|
3637
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3638
|
+
uploadType?: string;
|
|
3639
|
+
/** Request body */
|
|
3640
|
+
resource: UploadApkRequest;
|
|
3641
|
+
}): Request<UploadApkResponse>;
|
|
3642
|
+
uploadapk(
|
|
3643
|
+
request: {
|
|
3644
|
+
/** V1 error format. */
|
|
3645
|
+
'$.xgafv'?: '1' | '2';
|
|
3646
|
+
/** OAuth access token. */
|
|
3647
|
+
access_token?: string;
|
|
3648
|
+
/** Data format for response. */
|
|
3649
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3650
|
+
/** Required. Package name of the third-party app store. */
|
|
3651
|
+
appStorePackageName: string;
|
|
3652
|
+
/** JSONP */
|
|
3653
|
+
callback?: string;
|
|
3654
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3655
|
+
fields?: string;
|
|
3656
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3657
|
+
key?: string;
|
|
3658
|
+
/** OAuth 2.0 token for the current user. */
|
|
3659
|
+
oauth_token?: string;
|
|
3660
|
+
/** Required. Package name of the app. */
|
|
3661
|
+
packageName: string;
|
|
3662
|
+
/** Returns response with indentations and line breaks. */
|
|
3663
|
+
prettyPrint?: boolean;
|
|
3664
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3665
|
+
quotaUser?: string;
|
|
3666
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3667
|
+
upload_protocol?: string;
|
|
3668
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3669
|
+
uploadType?: string;
|
|
3670
|
+
},
|
|
3671
|
+
body: UploadApkRequest,
|
|
3672
|
+
): Request<UploadApkResponse>;
|
|
3673
|
+
/** Upload a policy declaration file for the hosted app. Returns an ID to track the file. */
|
|
3674
|
+
uploadappstoreapppolicydeclarationfile(request: {
|
|
3675
|
+
/** V1 error format. */
|
|
3676
|
+
'$.xgafv'?: '1' | '2';
|
|
3677
|
+
/** OAuth access token. */
|
|
3678
|
+
access_token?: string;
|
|
3679
|
+
/** Data format for response. */
|
|
3680
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3681
|
+
/** Required. Package name of the third-party app store. */
|
|
3682
|
+
appStorePackageName: string;
|
|
3683
|
+
/** JSONP */
|
|
3684
|
+
callback?: string;
|
|
3685
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3686
|
+
fields?: string;
|
|
3687
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3688
|
+
key?: string;
|
|
3689
|
+
/** OAuth 2.0 token for the current user. */
|
|
3690
|
+
oauth_token?: string;
|
|
3691
|
+
/** Required. Package name of the app. */
|
|
3692
|
+
packageName: string;
|
|
3693
|
+
/** Returns response with indentations and line breaks. */
|
|
3694
|
+
prettyPrint?: boolean;
|
|
3695
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3696
|
+
quotaUser?: string;
|
|
3697
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3698
|
+
upload_protocol?: string;
|
|
3699
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3700
|
+
uploadType?: string;
|
|
3701
|
+
/** Request body */
|
|
3702
|
+
resource: UploadAppStoreAppPolicyDeclarationFileRequest;
|
|
3703
|
+
}): Request<UploadAppStoreAppPolicyDeclarationFileResponse>;
|
|
3704
|
+
uploadappstoreapppolicydeclarationfile(
|
|
3705
|
+
request: {
|
|
3706
|
+
/** V1 error format. */
|
|
3707
|
+
'$.xgafv'?: '1' | '2';
|
|
3708
|
+
/** OAuth access token. */
|
|
3709
|
+
access_token?: string;
|
|
3710
|
+
/** Data format for response. */
|
|
3711
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3712
|
+
/** Required. Package name of the third-party app store. */
|
|
3713
|
+
appStorePackageName: string;
|
|
3714
|
+
/** JSONP */
|
|
3715
|
+
callback?: string;
|
|
3716
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3717
|
+
fields?: string;
|
|
3718
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3719
|
+
key?: string;
|
|
3720
|
+
/** OAuth 2.0 token for the current user. */
|
|
3721
|
+
oauth_token?: string;
|
|
3722
|
+
/** Required. Package name of the app. */
|
|
3723
|
+
packageName: string;
|
|
3724
|
+
/** Returns response with indentations and line breaks. */
|
|
3725
|
+
prettyPrint?: boolean;
|
|
3726
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3727
|
+
quotaUser?: string;
|
|
3728
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3729
|
+
upload_protocol?: string;
|
|
3730
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3731
|
+
uploadType?: string;
|
|
3732
|
+
},
|
|
3733
|
+
body: UploadAppStoreAppPolicyDeclarationFileRequest,
|
|
3734
|
+
): Request<UploadAppStoreAppPolicyDeclarationFileResponse>;
|
|
3735
|
+
/** Upload a screenshot or app icon for the hosted app. Returns an ID to track the image. */
|
|
3736
|
+
uploadimage(request: {
|
|
3737
|
+
/** V1 error format. */
|
|
3738
|
+
'$.xgafv'?: '1' | '2';
|
|
3739
|
+
/** OAuth access token. */
|
|
3740
|
+
access_token?: string;
|
|
3741
|
+
/** Data format for response. */
|
|
3742
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3743
|
+
/** Required. Package name of the third-party app store. */
|
|
3744
|
+
appStorePackageName: string;
|
|
3745
|
+
/** JSONP */
|
|
3746
|
+
callback?: string;
|
|
3747
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3748
|
+
fields?: string;
|
|
3749
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3750
|
+
key?: string;
|
|
3751
|
+
/** OAuth 2.0 token for the current user. */
|
|
3752
|
+
oauth_token?: string;
|
|
3753
|
+
/** Required. Package name of the app. */
|
|
3754
|
+
packageName: string;
|
|
3755
|
+
/** Returns response with indentations and line breaks. */
|
|
3756
|
+
prettyPrint?: boolean;
|
|
3757
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3758
|
+
quotaUser?: string;
|
|
3759
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3760
|
+
upload_protocol?: string;
|
|
3761
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3762
|
+
uploadType?: string;
|
|
3763
|
+
/** Request body */
|
|
3764
|
+
resource: UploadImageRequest;
|
|
3765
|
+
}): Request<UploadImageResponse>;
|
|
3766
|
+
uploadimage(
|
|
3767
|
+
request: {
|
|
3768
|
+
/** V1 error format. */
|
|
3769
|
+
'$.xgafv'?: '1' | '2';
|
|
3770
|
+
/** OAuth access token. */
|
|
3771
|
+
access_token?: string;
|
|
3772
|
+
/** Data format for response. */
|
|
3773
|
+
alt?: 'json' | 'media' | 'proto';
|
|
3774
|
+
/** Required. Package name of the third-party app store. */
|
|
3775
|
+
appStorePackageName: string;
|
|
3776
|
+
/** JSONP */
|
|
3777
|
+
callback?: string;
|
|
3778
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
3779
|
+
fields?: string;
|
|
3780
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
3781
|
+
key?: string;
|
|
3782
|
+
/** OAuth 2.0 token for the current user. */
|
|
3783
|
+
oauth_token?: string;
|
|
3784
|
+
/** Required. Package name of the app. */
|
|
3785
|
+
packageName: string;
|
|
3786
|
+
/** Returns response with indentations and line breaks. */
|
|
3787
|
+
prettyPrint?: boolean;
|
|
3788
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
3789
|
+
quotaUser?: string;
|
|
3790
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
3791
|
+
upload_protocol?: string;
|
|
3792
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
3793
|
+
uploadType?: string;
|
|
3794
|
+
},
|
|
3795
|
+
body: UploadImageRequest,
|
|
3796
|
+
): Request<UploadImageResponse>;
|
|
3797
|
+
}
|
|
3312
3798
|
interface ApksResource {
|
|
3313
3799
|
/** 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 application is configured to restrict distribution to the organizations. */
|
|
3314
3800
|
addexternallyhosted(request: {
|
|
@@ -8321,6 +8807,68 @@ declare namespace gapi.client {
|
|
|
8321
8807
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8322
8808
|
uploadType?: string;
|
|
8323
8809
|
}): Request<void>;
|
|
8810
|
+
/** Provide refund preference and purchase usage for a chargeback request */
|
|
8811
|
+
reviewrefund(request: {
|
|
8812
|
+
/** V1 error format. */
|
|
8813
|
+
'$.xgafv'?: '1' | '2';
|
|
8814
|
+
/** OAuth access token. */
|
|
8815
|
+
access_token?: string;
|
|
8816
|
+
/** Data format for response. */
|
|
8817
|
+
alt?: 'json' | 'media' | 'proto';
|
|
8818
|
+
/** JSONP */
|
|
8819
|
+
callback?: string;
|
|
8820
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8821
|
+
fields?: string;
|
|
8822
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
8823
|
+
key?: string;
|
|
8824
|
+
/** OAuth 2.0 token for the current user. */
|
|
8825
|
+
oauth_token?: string;
|
|
8826
|
+
/** Required. The order ID provided to the user when the subscription or in-app order was purchased. */
|
|
8827
|
+
orderId: string;
|
|
8828
|
+
/** Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing'). */
|
|
8829
|
+
packageName: string;
|
|
8830
|
+
/** Returns response with indentations and line breaks. */
|
|
8831
|
+
prettyPrint?: boolean;
|
|
8832
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8833
|
+
quotaUser?: string;
|
|
8834
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8835
|
+
upload_protocol?: string;
|
|
8836
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8837
|
+
uploadType?: string;
|
|
8838
|
+
/** Request body */
|
|
8839
|
+
resource: OrdersReviewRefundRequest;
|
|
8840
|
+
}): Request<void>;
|
|
8841
|
+
reviewrefund(
|
|
8842
|
+
request: {
|
|
8843
|
+
/** V1 error format. */
|
|
8844
|
+
'$.xgafv'?: '1' | '2';
|
|
8845
|
+
/** OAuth access token. */
|
|
8846
|
+
access_token?: string;
|
|
8847
|
+
/** Data format for response. */
|
|
8848
|
+
alt?: 'json' | 'media' | 'proto';
|
|
8849
|
+
/** JSONP */
|
|
8850
|
+
callback?: string;
|
|
8851
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
8852
|
+
fields?: string;
|
|
8853
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
8854
|
+
key?: string;
|
|
8855
|
+
/** OAuth 2.0 token for the current user. */
|
|
8856
|
+
oauth_token?: string;
|
|
8857
|
+
/** Required. The order ID provided to the user when the subscription or in-app order was purchased. */
|
|
8858
|
+
orderId: string;
|
|
8859
|
+
/** Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing'). */
|
|
8860
|
+
packageName: string;
|
|
8861
|
+
/** Returns response with indentations and line breaks. */
|
|
8862
|
+
prettyPrint?: boolean;
|
|
8863
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8864
|
+
quotaUser?: string;
|
|
8865
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8866
|
+
upload_protocol?: string;
|
|
8867
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8868
|
+
uploadType?: string;
|
|
8869
|
+
},
|
|
8870
|
+
body: OrdersReviewRefundRequest,
|
|
8871
|
+
): Request<void>;
|
|
8324
8872
|
}
|
|
8325
8873
|
interface ProductsResource {
|
|
8326
8874
|
/** Acknowledges a purchase of an inapp item. */
|
|
@@ -8647,99 +9195,6 @@ declare namespace gapi.client {
|
|
|
8647
9195
|
},
|
|
8648
9196
|
body: SubscriptionPurchasesDeferRequest,
|
|
8649
9197
|
): Request<SubscriptionPurchasesDeferResponse>;
|
|
8650
|
-
/** Deprecated: Use purchases.subscriptionsv2.get instead. Checks whether a user's subscription purchase is valid and returns its expiry time. */
|
|
8651
|
-
get(request?: {
|
|
8652
|
-
/** V1 error format. */
|
|
8653
|
-
'$.xgafv'?: '1' | '2';
|
|
8654
|
-
/** OAuth access token. */
|
|
8655
|
-
access_token?: string;
|
|
8656
|
-
/** Data format for response. */
|
|
8657
|
-
alt?: 'json' | 'media' | 'proto';
|
|
8658
|
-
/** JSONP */
|
|
8659
|
-
callback?: string;
|
|
8660
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
8661
|
-
fields?: string;
|
|
8662
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
8663
|
-
key?: string;
|
|
8664
|
-
/** OAuth 2.0 token for the current user. */
|
|
8665
|
-
oauth_token?: string;
|
|
8666
|
-
/** The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). */
|
|
8667
|
-
packageName: string;
|
|
8668
|
-
/** Returns response with indentations and line breaks. */
|
|
8669
|
-
prettyPrint?: boolean;
|
|
8670
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8671
|
-
quotaUser?: string;
|
|
8672
|
-
/** The purchased subscription ID (for example, 'monthly001'). */
|
|
8673
|
-
subscriptionId: string;
|
|
8674
|
-
/** The token provided to the user's device when the subscription was purchased. */
|
|
8675
|
-
token: string;
|
|
8676
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8677
|
-
upload_protocol?: string;
|
|
8678
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8679
|
-
uploadType?: string;
|
|
8680
|
-
}): Request<SubscriptionPurchase>;
|
|
8681
|
-
/** Deprecated: Use orders.refund instead. Refunds a user's subscription purchase, but the subscription remains valid until its expiration time and it will continue to recur. */
|
|
8682
|
-
refund(request?: {
|
|
8683
|
-
/** V1 error format. */
|
|
8684
|
-
'$.xgafv'?: '1' | '2';
|
|
8685
|
-
/** OAuth access token. */
|
|
8686
|
-
access_token?: string;
|
|
8687
|
-
/** Data format for response. */
|
|
8688
|
-
alt?: 'json' | 'media' | 'proto';
|
|
8689
|
-
/** JSONP */
|
|
8690
|
-
callback?: string;
|
|
8691
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
8692
|
-
fields?: string;
|
|
8693
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
8694
|
-
key?: string;
|
|
8695
|
-
/** OAuth 2.0 token for the current user. */
|
|
8696
|
-
oauth_token?: string;
|
|
8697
|
-
/** The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). */
|
|
8698
|
-
packageName: string;
|
|
8699
|
-
/** Returns response with indentations and line breaks. */
|
|
8700
|
-
prettyPrint?: boolean;
|
|
8701
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8702
|
-
quotaUser?: string;
|
|
8703
|
-
/** "The purchased subscription ID (for example, 'monthly001'). */
|
|
8704
|
-
subscriptionId: string;
|
|
8705
|
-
/** The token provided to the user's device when the subscription was purchased. */
|
|
8706
|
-
token: string;
|
|
8707
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8708
|
-
upload_protocol?: string;
|
|
8709
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8710
|
-
uploadType?: string;
|
|
8711
|
-
}): Request<void>;
|
|
8712
|
-
/** Deprecated: Use purchases.subscriptionsv2.revoke instead. Refunds and immediately revokes a user's subscription purchase. Access to the subscription will be terminated immediately and it will stop recurring. */
|
|
8713
|
-
revoke(request?: {
|
|
8714
|
-
/** V1 error format. */
|
|
8715
|
-
'$.xgafv'?: '1' | '2';
|
|
8716
|
-
/** OAuth access token. */
|
|
8717
|
-
access_token?: string;
|
|
8718
|
-
/** Data format for response. */
|
|
8719
|
-
alt?: 'json' | 'media' | 'proto';
|
|
8720
|
-
/** JSONP */
|
|
8721
|
-
callback?: string;
|
|
8722
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
8723
|
-
fields?: string;
|
|
8724
|
-
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
8725
|
-
key?: string;
|
|
8726
|
-
/** OAuth 2.0 token for the current user. */
|
|
8727
|
-
oauth_token?: string;
|
|
8728
|
-
/** The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). */
|
|
8729
|
-
packageName: string;
|
|
8730
|
-
/** Returns response with indentations and line breaks. */
|
|
8731
|
-
prettyPrint?: boolean;
|
|
8732
|
-
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
8733
|
-
quotaUser?: string;
|
|
8734
|
-
/** The purchased subscription ID (for example, 'monthly001'). */
|
|
8735
|
-
subscriptionId: string;
|
|
8736
|
-
/** The token provided to the user's device when the subscription was purchased. */
|
|
8737
|
-
token: string;
|
|
8738
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
8739
|
-
upload_protocol?: string;
|
|
8740
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
8741
|
-
uploadType?: string;
|
|
8742
|
-
}): Request<void>;
|
|
8743
9198
|
}
|
|
8744
9199
|
interface Subscriptionsv2Resource {
|
|
8745
9200
|
/** Cancel a subscription purchase for the user. */
|
|
@@ -9481,6 +9936,8 @@ declare namespace gapi.client {
|
|
|
9481
9936
|
|
|
9482
9937
|
const apprecovery: ApprecoveryResource;
|
|
9483
9938
|
|
|
9939
|
+
const appstoreappsreview: AppstoreappsreviewResource;
|
|
9940
|
+
|
|
9484
9941
|
const edits: EditsResource;
|
|
9485
9942
|
|
|
9486
9943
|
const externaltransactions: ExternaltransactionsResource;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -131,6 +131,50 @@ await gapi.client.androidpublisher.apprecovery.list({
|
|
|
131
131
|
packageName: 'packageName',
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
+
/*
|
|
135
|
+
Creates an app store hosted app. This must be called before any other RPCs for this hosted app.
|
|
136
|
+
*/
|
|
137
|
+
await gapi.client.androidpublisher.appstoreappsreview.createappstorehostedapp({
|
|
138
|
+
appStorePackageName: 'appStorePackageName',
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
/*
|
|
142
|
+
Updates details for an app hosted on an app store. Use this to provide details for a new app, or to update details for an existing app. The update will be sent for review immediately after creation.
|
|
143
|
+
*/
|
|
144
|
+
await gapi.client.androidpublisher.appstoreappsreview.updateappstorehostedapp({
|
|
145
|
+
appStorePackageName: 'appStorePackageName',
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
/*
|
|
149
|
+
Updates the publish status of an app store hosted app. The default state after calling UpdateAppStoreHostedApp is PUBLISHED. It is not necessary to call this RPC explicitly to set an app to PUBLISHED.
|
|
150
|
+
*/
|
|
151
|
+
await gapi.client.androidpublisher.appstoreappsreview.updateappstorehostedapppublishstatus(
|
|
152
|
+
{appStorePackageName: 'appStorePackageName', packageName: 'packageName'},
|
|
153
|
+
);
|
|
154
|
+
|
|
155
|
+
/*
|
|
156
|
+
Upload an APK file for the hosted app. Returns an ID to track this APK.
|
|
157
|
+
*/
|
|
158
|
+
await gapi.client.androidpublisher.appstoreappsreview.uploadapk({
|
|
159
|
+
appStorePackageName: 'appStorePackageName',
|
|
160
|
+
packageName: 'packageName',
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
/*
|
|
164
|
+
Upload a policy declaration file for the hosted app. Returns an ID to track the file.
|
|
165
|
+
*/
|
|
166
|
+
await gapi.client.androidpublisher.appstoreappsreview.uploadappstoreapppolicydeclarationfile(
|
|
167
|
+
{appStorePackageName: 'appStorePackageName', packageName: 'packageName'},
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
/*
|
|
171
|
+
Upload a screenshot or app icon for the hosted app. Returns an ID to track the image.
|
|
172
|
+
*/
|
|
173
|
+
await gapi.client.androidpublisher.appstoreappsreview.uploadimage({
|
|
174
|
+
appStorePackageName: 'appStorePackageName',
|
|
175
|
+
packageName: 'packageName',
|
|
176
|
+
});
|
|
177
|
+
|
|
134
178
|
/*
|
|
135
179
|
Commits an app edit.
|
|
136
180
|
*/
|
|
@@ -332,6 +376,14 @@ await gapi.client.androidpublisher.orders.refund({
|
|
|
332
376
|
packageName: 'packageName',
|
|
333
377
|
});
|
|
334
378
|
|
|
379
|
+
/*
|
|
380
|
+
Provide refund preference and purchase usage for a chargeback request
|
|
381
|
+
*/
|
|
382
|
+
await gapi.client.androidpublisher.orders.reviewrefund({
|
|
383
|
+
orderId: 'orderId',
|
|
384
|
+
packageName: 'packageName',
|
|
385
|
+
});
|
|
386
|
+
|
|
335
387
|
/*
|
|
336
388
|
Gets a single review.
|
|
337
389
|
*/
|