@maxim_mazurok/gapi.client.androidpublisher-v3 0.1.20260128 → 0.1.20260202

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.
Files changed (2) hide show
  1. package/index.d.ts +107 -2
  2. package/package.json +1 -1
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: 20260128
12
+ // Revision: 20260202
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -263,6 +263,7 @@ declare namespace gapi.client {
263
263
  /** Output only. The state of the base plan, i.e. whether it's active. Draft and inactive base plans can be activated or deleted. Active base plans can be made inactive. Inactive base plans can be canceled. This field cannot be changed by updating the resource. Use the dedicated endpoints instead. */
264
264
  state?: string;
265
265
  }
266
+ interface BasePriceOfferPhase {}
266
267
  interface BatchDeleteOneTimeProductOffersRequest {
267
268
  /** Required. A list of update requests of up to 100 elements. All requests must correspond to different offers. */
268
269
  requests?: DeleteOneTimeProductOfferRequest[];
@@ -527,11 +528,27 @@ declare namespace gapi.client {
527
528
  /** Required. The parent subscription (ID) of the offer to deactivate. */
528
529
  productId?: string;
529
530
  }
531
+ interface DeferralContext {
532
+ /** Required. The duration by which all subscription items should be deferred. */
533
+ deferDuration?: string;
534
+ /** Required. The API will fail if the etag does not match the latest etag for this subscription. The etag is retrieved from purchases.subscriptionsv2.get: https://developers.google.com/android-publisher/api-ref/rest/v3/purchases.subscriptionsv2/get */
535
+ etag?: string;
536
+ /** If set to "true", the request is a dry run to validate the effect of Defer, the subscription would not be impacted. */
537
+ validateOnly?: boolean;
538
+ }
530
539
  interface DeferredItemRemoval {}
531
540
  interface DeferredItemReplacement {
532
541
  /** The product_id going to replace the existing product_id. */
533
542
  productId?: string;
534
543
  }
544
+ interface DeferSubscriptionPurchaseRequest {
545
+ /** Required. Details about the subscription deferral. */
546
+ deferralContext?: DeferralContext;
547
+ }
548
+ interface DeferSubscriptionPurchaseResponse {
549
+ /** The new expiry time for each subscription items. */
550
+ itemExpiryTimeDetails?: ItemExpiryTimeDetails[];
551
+ }
535
552
  interface DeleteOneTimeProductOfferRequest {
536
553
  /** Optional. The latency tolerance for the propagation of this product update. Defaults to latency-sensitive. */
537
554
  latencyTolerance?: string;
@@ -785,6 +802,7 @@ declare namespace gapi.client {
785
802
  }
786
803
  interface ExternalTransactionTestPurchase {}
787
804
  interface FreeTrialDetails {}
805
+ interface FreeTrialOfferPhase {}
788
806
  interface FullRefund {}
789
807
  interface GeneratedApksListResponse {
790
808
  /** All generated APKs, grouped by the APK signing key. */
@@ -1025,6 +1043,13 @@ declare namespace gapi.client {
1025
1043
  /** 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). */
1026
1044
  introductoryPricePeriod?: string;
1027
1045
  }
1046
+ interface IntroductoryPriceOfferPhase {}
1047
+ interface ItemExpiryTimeDetails {
1048
+ /** The new expiry time for this subscription item. */
1049
+ expiryTime?: string;
1050
+ /** The product ID of the subscription item (for example, 'premium_plan'). */
1051
+ productId?: string;
1052
+ }
1028
1053
  interface ItemReplacement {
1029
1054
  /** The base plan ID of the subscription line item being replaced. */
1030
1055
  basePlanId?: string;
@@ -1196,6 +1221,16 @@ declare namespace gapi.client {
1196
1221
  /** The latest offer tags associated with the offer. It includes tags inherited from the base plan. */
1197
1222
  offerTags?: string[];
1198
1223
  }
1224
+ interface OfferPhase {
1225
+ /** Set when the offer phase is a base plan pricing phase. */
1226
+ basePrice?: any;
1227
+ /** Set when the offer phase is a free trial. */
1228
+ freeTrial?: any;
1229
+ /** Set when the offer phase is an introductory price offer phase. */
1230
+ introductoryPrice?: any;
1231
+ /** Set when the offer phase is a proration period. */
1232
+ prorationPeriod?: ProrationPeriodOfferPhase;
1233
+ }
1199
1234
  interface OfferPhaseDetails {
1200
1235
  /** The order funds a base price period. */
1201
1236
  baseDetails?: any;
@@ -1603,6 +1638,10 @@ declare namespace gapi.client {
1603
1638
  /** Represent the original offer phase from the purchased the line item if the proration period contains any of them. For example, a proration period from CHARGE_FULL_PRICE plan change may merge the 1st offer phase of the subscription offer of the new product user purchased. In this case, the original offer phase will be set here. */
1604
1639
  originalOfferPhase?: string;
1605
1640
  }
1641
+ interface ProrationPeriodOfferPhase {
1642
+ /** The original offer phase type before the proration period. Only set when the proration period is updated from an existing offer phase. */
1643
+ originalOfferPhaseType?: string;
1644
+ }
1606
1645
  interface PurchaseOptionTaxAndComplianceSettings {
1607
1646
  /** Optional. Digital content or service classification for products distributed to users in eligible regions. If unset, it defaults to `WITHDRAWAL_RIGHT_DIGITAL_CONTENT`. Refer to the [Help Center article](https://support.google.com/googleplay/android-developer/answer/10463498) for more information. */
1608
1647
  withdrawalRightType?: string;
@@ -2028,6 +2067,8 @@ declare namespace gapi.client {
2028
2067
  latestSuccessfulOrderId?: string;
2029
2068
  /** The offer details for this item. */
2030
2069
  offerDetails?: OfferDetails;
2070
+ /** Current offer phase details for this item. */
2071
+ offerPhase?: OfferPhase;
2031
2072
  /** The item is prepaid. */
2032
2073
  prepaidPlan?: PrepaidPlan;
2033
2074
  /** The purchased product ID (for example, 'monthly001'). */
@@ -2054,6 +2095,8 @@ declare namespace gapi.client {
2054
2095
  acknowledgementState?: string;
2055
2096
  /** Additional context around canceled subscriptions. Only present if the subscription currently has subscription_state SUBSCRIPTION_STATE_CANCELED or SUBSCRIPTION_STATE_EXPIRED. */
2056
2097
  canceledStateContext?: CanceledStateContext;
2098
+ /** Entity tag representing the current state of the subscription. The developer will provide this etag for subscription actions. This etag is always present for auto-renewing and prepaid subscriptions. */
2099
+ etag?: string;
2057
2100
  /** User account identifier in the third-party service. */
2058
2101
  externalAccountIdentifiers?: ExternalAccountIdentifiers;
2059
2102
  /** This kind represents a SubscriptionPurchaseV2 object in the androidpublisher service. */
@@ -2227,7 +2270,7 @@ declare namespace gapi.client {
2227
2270
  tracks?: Track[];
2228
2271
  }
2229
2272
  interface TrackTargetedCountry {
2230
- /** The country to target, as a two-letter CLDR code. */
2273
+ /** The country that can be targeted, as a two-letter CLDR code. */
2231
2274
  countryCode?: string;
2232
2275
  }
2233
2276
  interface UpdateBasePlanStateRequest {
@@ -8299,6 +8342,68 @@ declare namespace gapi.client {
8299
8342
  },
8300
8343
  body: CancelSubscriptionPurchaseRequest,
8301
8344
  ): Request<{}>;
8345
+ /** Defers the renewal of a subscription. */
8346
+ defer(request: {
8347
+ /** V1 error format. */
8348
+ '$.xgafv'?: string;
8349
+ /** OAuth access token. */
8350
+ access_token?: string;
8351
+ /** Data format for response. */
8352
+ alt?: string;
8353
+ /** JSONP */
8354
+ callback?: string;
8355
+ /** Selector specifying which fields to include in a partial response. */
8356
+ fields?: string;
8357
+ /** 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. */
8358
+ key?: string;
8359
+ /** OAuth 2.0 token for the current user. */
8360
+ oauth_token?: string;
8361
+ /** Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing'). */
8362
+ packageName: string;
8363
+ /** Returns response with indentations and line breaks. */
8364
+ prettyPrint?: boolean;
8365
+ /** 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. */
8366
+ quotaUser?: string;
8367
+ /** Required. The token provided to the user's device when the subscription was purchased. */
8368
+ token: string;
8369
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8370
+ upload_protocol?: string;
8371
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8372
+ uploadType?: string;
8373
+ /** Request body */
8374
+ resource: DeferSubscriptionPurchaseRequest;
8375
+ }): Request<DeferSubscriptionPurchaseResponse>;
8376
+ defer(
8377
+ request: {
8378
+ /** V1 error format. */
8379
+ '$.xgafv'?: string;
8380
+ /** OAuth access token. */
8381
+ access_token?: string;
8382
+ /** Data format for response. */
8383
+ alt?: string;
8384
+ /** JSONP */
8385
+ callback?: string;
8386
+ /** Selector specifying which fields to include in a partial response. */
8387
+ fields?: string;
8388
+ /** 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. */
8389
+ key?: string;
8390
+ /** OAuth 2.0 token for the current user. */
8391
+ oauth_token?: string;
8392
+ /** Required. The package of the application for which this subscription was purchased (for example, 'com.some.thing'). */
8393
+ packageName: string;
8394
+ /** Returns response with indentations and line breaks. */
8395
+ prettyPrint?: boolean;
8396
+ /** 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. */
8397
+ quotaUser?: string;
8398
+ /** Required. The token provided to the user's device when the subscription was purchased. */
8399
+ token: string;
8400
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8401
+ upload_protocol?: string;
8402
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8403
+ uploadType?: string;
8404
+ },
8405
+ body: DeferSubscriptionPurchaseRequest,
8406
+ ): Request<DeferSubscriptionPurchaseResponse>;
8302
8407
  /** Get metadata about a subscription */
8303
8408
  get(request?: {
8304
8409
  /** V1 error format. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.androidpublisher-v3",
3
- "version": "0.1.20260128",
3
+ "version": "0.1.20260202",
4
4
  "description": "TypeScript typings for Google Play Android Developer API v3",
5
5
  "repository": {
6
6
  "type": "git",