@maxim_mazurok/gapi.client.androidpublisher-v3 0.4.20260702 → 0.4.20260706

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 (3) hide show
  1. package/index.d.ts +100 -1
  2. package/package.json +1 -1
  3. package/readme.md +8 -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: 20260702
12
+ // Revision: 20260706
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -488,12 +488,36 @@ declare namespace gapi.client {
488
488
  /** Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user's freeform response to the survey. */
489
489
  reasonUserInput?: string;
490
490
  }
491
+ interface CoarseLocation {
492
+ /** 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. */
493
+ administrativeArea?: string;
494
+ /** 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. */
495
+ locality?: string;
496
+ /** 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. */
497
+ regionCode?: string;
498
+ /** Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district. For most addresses, you can omit this. */
499
+ sublocality?: string;
500
+ }
491
501
  interface Comment {
492
502
  /** A comment from a developer. */
493
503
  developerComment?: DeveloperComment;
494
504
  /** A comment from a user. */
495
505
  userComment?: UserComment;
496
506
  }
507
+ interface ConsumptionUsageEvent {
508
+ /** Optional. Free form text that allows developers to provide more info on the item consumed. Maximum length is 5000 characters. */
509
+ consumptionItemDescription?: string;
510
+ /** Optional. Time when the user consumed, used, downloaded, opened, or streamed the content. */
511
+ consumptionTime?: string;
512
+ /** Optional. The IP address from which the consumption occurred. */
513
+ ipAddress?: string;
514
+ /** Optional. Geographic location where the consumption occurred. */
515
+ location?: CoarseLocation;
516
+ /** 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) */
517
+ obfuscatedAccountId?: string;
518
+ /** 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) */
519
+ obfuscatedProfileId?: string;
520
+ }
497
521
  interface ConvertedOtherRegionsPrice {
498
522
  /** Price in EUR to use for the "Other regions" location exclusive of taxes. */
499
523
  eurPrice?: Money;
@@ -1621,6 +1645,19 @@ declare namespace gapi.client {
1621
1645
  /** Details of when the order was fully refunded. */
1622
1646
  refundEvent?: RefundEvent;
1623
1647
  }
1648
+ interface OrdersReviewRefundRequest {
1649
+ /** 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%. */
1650
+ consumptionPercentageMilliunits?: number;
1651
+ /** 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. */
1652
+ consumptionUsageEvents?: ConsumptionUsageEvent[];
1653
+ /** Required. The pending refund token included in the pending refund review notification. */
1654
+ pendingRefundToken?: string;
1655
+ /** Required. Indicates your preference, based on your operational logic, as to whether the Play Store should grant the refund. */
1656
+ refundPreference?:
1657
+ 'REFUND_PREFERENCE_UNSPECIFIED' | 'DECLINE' | 'APPROVE' | 'NEUTRAL';
1658
+ /** Required. Indicates whether you provided a free sample, trial, or information about the functionality prior to the purchase. */
1659
+ sampleContentProvided?: boolean;
1660
+ }
1624
1661
  interface OtherRecurringProduct {}
1625
1662
  interface OtherRegionsBasePlanConfig {
1626
1663
  /** Required. Price in EUR to use for any new locations Play may launch in. */
@@ -8321,6 +8358,68 @@ declare namespace gapi.client {
8321
8358
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8322
8359
  uploadType?: string;
8323
8360
  }): Request<void>;
8361
+ /** Provide refund preference and purchase usage for a chargeback request */
8362
+ reviewrefund(request: {
8363
+ /** V1 error format. */
8364
+ '$.xgafv'?: '1' | '2';
8365
+ /** OAuth access token. */
8366
+ access_token?: string;
8367
+ /** Data format for response. */
8368
+ alt?: 'json' | 'media' | 'proto';
8369
+ /** JSONP */
8370
+ callback?: string;
8371
+ /** Selector specifying which fields to include in a partial response. */
8372
+ fields?: string;
8373
+ /** 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. */
8374
+ key?: string;
8375
+ /** OAuth 2.0 token for the current user. */
8376
+ oauth_token?: string;
8377
+ /** Required. The order ID provided to the user when the subscription or in-app order was purchased. */
8378
+ orderId: string;
8379
+ /** Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing'). */
8380
+ packageName: string;
8381
+ /** Returns response with indentations and line breaks. */
8382
+ prettyPrint?: boolean;
8383
+ /** 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. */
8384
+ quotaUser?: string;
8385
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8386
+ upload_protocol?: string;
8387
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8388
+ uploadType?: string;
8389
+ /** Request body */
8390
+ resource: OrdersReviewRefundRequest;
8391
+ }): Request<void>;
8392
+ reviewrefund(
8393
+ request: {
8394
+ /** V1 error format. */
8395
+ '$.xgafv'?: '1' | '2';
8396
+ /** OAuth access token. */
8397
+ access_token?: string;
8398
+ /** Data format for response. */
8399
+ alt?: 'json' | 'media' | 'proto';
8400
+ /** JSONP */
8401
+ callback?: string;
8402
+ /** Selector specifying which fields to include in a partial response. */
8403
+ fields?: string;
8404
+ /** 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. */
8405
+ key?: string;
8406
+ /** OAuth 2.0 token for the current user. */
8407
+ oauth_token?: string;
8408
+ /** Required. The order ID provided to the user when the subscription or in-app order was purchased. */
8409
+ orderId: string;
8410
+ /** Required. The package name of the application for which this subscription or in-app item was purchased (for example, 'com.some.thing'). */
8411
+ packageName: string;
8412
+ /** Returns response with indentations and line breaks. */
8413
+ prettyPrint?: boolean;
8414
+ /** 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. */
8415
+ quotaUser?: string;
8416
+ /** Upload protocol for media (e.g. "raw", "multipart"). */
8417
+ upload_protocol?: string;
8418
+ /** Legacy upload protocol for media (e.g. "media", "multipart"). */
8419
+ uploadType?: string;
8420
+ },
8421
+ body: OrdersReviewRefundRequest,
8422
+ ): Request<void>;
8324
8423
  }
8325
8424
  interface ProductsResource {
8326
8425
  /** Acknowledges a purchase of an inapp item. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.androidpublisher-v3",
3
- "version": "0.4.20260702",
3
+ "version": "0.4.20260706",
4
4
  "description": "TypeScript typings for Google Play Android Developer API v3",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -332,6 +332,14 @@ await gapi.client.androidpublisher.orders.refund({
332
332
  packageName: 'packageName',
333
333
  });
334
334
 
335
+ /*
336
+ Provide refund preference and purchase usage for a chargeback request
337
+ */
338
+ await gapi.client.androidpublisher.orders.reviewrefund({
339
+ orderId: 'orderId',
340
+ packageName: 'packageName',
341
+ });
342
+
335
343
  /*
336
344
  Gets a single review.
337
345
  */