Skip to content

Commit f90f261

Browse files
feat(androidpublisher): update the API
#### androidpublisher:v3 The following keys were added: - resources.purchases.resources.productsv2.methods.getproductpurchasev2.description - resources.purchases.resources.productsv2.methods.getproductpurchasev2.flatPath - resources.purchases.resources.productsv2.methods.getproductpurchasev2.httpMethod - resources.purchases.resources.productsv2.methods.getproductpurchasev2.id - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameterOrder - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameters.packageName.description - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameters.packageName.location - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameters.packageName.required - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameters.packageName.type - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameters.token.description - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameters.token.location - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameters.token.required - resources.purchases.resources.productsv2.methods.getproductpurchasev2.parameters.token.type - resources.purchases.resources.productsv2.methods.getproductpurchasev2.path - resources.purchases.resources.productsv2.methods.getproductpurchasev2.response.$ref - resources.purchases.resources.productsv2.methods.getproductpurchasev2.scopes - schemas.ProductLineItem.description - schemas.ProductLineItem.id - schemas.ProductLineItem.properties.productId.description - schemas.ProductLineItem.properties.productId.type - schemas.ProductLineItem.properties.productOfferDetails.$ref - schemas.ProductLineItem.properties.productOfferDetails.description - schemas.ProductLineItem.type - schemas.ProductOfferDetails.description - schemas.ProductOfferDetails.id - schemas.ProductOfferDetails.properties.consumptionState.description - schemas.ProductOfferDetails.properties.consumptionState.enum - schemas.ProductOfferDetails.properties.consumptionState.enumDescriptions - schemas.ProductOfferDetails.properties.consumptionState.readOnly - schemas.ProductOfferDetails.properties.consumptionState.type - schemas.ProductOfferDetails.properties.offerId.description - schemas.ProductOfferDetails.properties.offerId.type - schemas.ProductOfferDetails.properties.offerTags.description - schemas.ProductOfferDetails.properties.offerTags.items.type - schemas.ProductOfferDetails.properties.offerTags.type - schemas.ProductOfferDetails.properties.offerToken.description - schemas.ProductOfferDetails.properties.offerToken.type - schemas.ProductOfferDetails.properties.purchaseOptionId.description - schemas.ProductOfferDetails.properties.purchaseOptionId.type - schemas.ProductOfferDetails.properties.quantity.description - schemas.ProductOfferDetails.properties.quantity.format - schemas.ProductOfferDetails.properties.quantity.type - schemas.ProductOfferDetails.properties.refundableQuantity.description - schemas.ProductOfferDetails.properties.refundableQuantity.format - schemas.ProductOfferDetails.properties.refundableQuantity.type - schemas.ProductOfferDetails.properties.rentOfferDetails.$ref - schemas.ProductOfferDetails.properties.rentOfferDetails.description - schemas.ProductOfferDetails.type - schemas.ProductPurchaseV2.description - schemas.ProductPurchaseV2.id - schemas.ProductPurchaseV2.properties.acknowledgementState.description - schemas.ProductPurchaseV2.properties.acknowledgementState.enum - schemas.ProductPurchaseV2.properties.acknowledgementState.enumDescriptions - schemas.ProductPurchaseV2.properties.acknowledgementState.readOnly - schemas.ProductPurchaseV2.properties.acknowledgementState.type - schemas.ProductPurchaseV2.properties.kind.description - schemas.ProductPurchaseV2.properties.kind.type - schemas.ProductPurchaseV2.properties.obfuscatedExternalAccountId.description - schemas.ProductPurchaseV2.properties.obfuscatedExternalAccountId.type - schemas.ProductPurchaseV2.properties.obfuscatedExternalProfileId.description - schemas.ProductPurchaseV2.properties.obfuscatedExternalProfileId.type - schemas.ProductPurchaseV2.properties.orderId.description - schemas.ProductPurchaseV2.properties.orderId.type - schemas.ProductPurchaseV2.properties.productLineItem.description - schemas.ProductPurchaseV2.properties.productLineItem.items.$ref - schemas.ProductPurchaseV2.properties.productLineItem.type - schemas.ProductPurchaseV2.properties.purchaseCompletionTime.description - schemas.ProductPurchaseV2.properties.purchaseCompletionTime.format - schemas.ProductPurchaseV2.properties.purchaseCompletionTime.type - schemas.ProductPurchaseV2.properties.purchaseStateContext.$ref - schemas.ProductPurchaseV2.properties.purchaseStateContext.description - schemas.ProductPurchaseV2.properties.regionCode.description - schemas.ProductPurchaseV2.properties.regionCode.type - schemas.ProductPurchaseV2.properties.testPurchaseContext.$ref - schemas.ProductPurchaseV2.properties.testPurchaseContext.description - schemas.ProductPurchaseV2.type - schemas.PurchaseStateContext.description - schemas.PurchaseStateContext.id - schemas.PurchaseStateContext.properties.purchaseState.description - schemas.PurchaseStateContext.properties.purchaseState.enum - schemas.PurchaseStateContext.properties.purchaseState.enumDescriptions - schemas.PurchaseStateContext.properties.purchaseState.readOnly - schemas.PurchaseStateContext.properties.purchaseState.type - schemas.PurchaseStateContext.type - schemas.RentOfferDetails.description - schemas.RentOfferDetails.id - schemas.RentOfferDetails.type - schemas.TestPurchaseContext.description - schemas.TestPurchaseContext.id - schemas.TestPurchaseContext.properties.fopType.description - schemas.TestPurchaseContext.properties.fopType.enum - schemas.TestPurchaseContext.properties.fopType.enumDescriptions - schemas.TestPurchaseContext.properties.fopType.type - schemas.TestPurchaseContext.type
1 parent 0015176 commit f90f261

File tree

3 files changed

+508
-2
lines changed

3 files changed

+508
-2
lines changed

‎discovery/androidpublisher-v3.json

Lines changed: 217 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4029,6 +4029,41 @@
40294029
}
40304030
}
40314031
},
4032+
"productsv2": {
4033+
"methods": {
4034+
"getproductpurchasev2": {
4035+
"description": "Checks the purchase and consumption status of an inapp item.",
4036+
"flatPath": "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}",
4037+
"httpMethod": "GET",
4038+
"id": "androidpublisher.purchases.productsv2.getproductpurchasev2",
4039+
"parameterOrder": [
4040+
"packageName",
4041+
"token"
4042+
],
4043+
"parameters": {
4044+
"packageName": {
4045+
"description": "The package name of the application the inapp product was sold in (for example, 'com.some.thing').",
4046+
"location": "path",
4047+
"required": true,
4048+
"type": "string"
4049+
},
4050+
"token": {
4051+
"description": "The token provided to the user's device when the inapp product was purchased.",
4052+
"location": "path",
4053+
"required": true,
4054+
"type": "string"
4055+
}
4056+
},
4057+
"path": "androidpublisher/v3/applications/{packageName}/purchases/productsv2/tokens/{token}",
4058+
"response": {
4059+
"$ref": "ProductPurchaseV2"
4060+
},
4061+
"scopes": [
4062+
"https://www.googleapis.com/auth/androidpublisher"
4063+
]
4064+
}
4065+
}
4066+
},
40324067
"subscriptions": {
40334068
"methods": {
40344069
"acknowledge": {
@@ -4796,7 +4831,7 @@
47964831
}
47974832
}
47984833
},
4799-
"revision": "20250602",
4834+
"revision": "20250701",
48004835
"rootUrl": "https://androidpublisher.googleapis.com/",
48014836
"schemas": {
48024837
"Abi": {
@@ -8162,6 +8197,76 @@
81628197
},
81638198
"type": "object"
81648199
},
8200+
"ProductLineItem": {
8201+
"description": "Contains item-level info for a ProductPurchaseV2.",
8202+
"id": "ProductLineItem",
8203+
"properties": {
8204+
"productId": {
8205+
"description": "The purchased product ID (for example, 'monthly001').",
8206+
"type": "string"
8207+
},
8208+
"productOfferDetails": {
8209+
"$ref": "ProductOfferDetails",
8210+
"description": "The offer details for this item."
8211+
}
8212+
},
8213+
"type": "object"
8214+
},
8215+
"ProductOfferDetails": {
8216+
"description": "Offer details information related to a purchase line item.",
8217+
"id": "ProductOfferDetails",
8218+
"properties": {
8219+
"consumptionState": {
8220+
"description": "Output only. The consumption state of the purchase.",
8221+
"enum": [
8222+
"CONSUMPTION_STATE_UNSPECIFIED",
8223+
"CONSUMPTION_STATE_YET_TO_BE_CONSUMED",
8224+
"CONSUMPTION_STATE_CONSUMED"
8225+
],
8226+
"enumDescriptions": [
8227+
"Consumption state unspecified. This value should never be set.",
8228+
"Yet to be consumed.",
8229+
"Consumed already."
8230+
],
8231+
"readOnly": true,
8232+
"type": "string"
8233+
},
8234+
"offerId": {
8235+
"description": "The offer ID. Only present for offers.",
8236+
"type": "string"
8237+
},
8238+
"offerTags": {
8239+
"description": "The latest offer tags associated with the offer. It includes tags inherited from the purchase option.",
8240+
"items": {
8241+
"type": "string"
8242+
},
8243+
"type": "array"
8244+
},
8245+
"offerToken": {
8246+
"description": "The per-transaction offer token used to make this purchase line item.",
8247+
"type": "string"
8248+
},
8249+
"purchaseOptionId": {
8250+
"description": "The purchase option ID.",
8251+
"type": "string"
8252+
},
8253+
"quantity": {
8254+
"description": "The quantity associated with the purchase of the inapp product.",
8255+
"format": "int32",
8256+
"type": "integer"
8257+
},
8258+
"refundableQuantity": {
8259+
"description": "The quantity eligible for refund, i.e. quantity that hasn't been refunded. The value reflects quantity-based partial refunds and full refunds.",
8260+
"format": "int32",
8261+
"type": "integer"
8262+
},
8263+
"rentOfferDetails": {
8264+
"$ref": "RentOfferDetails",
8265+
"description": "Offer details about rent offers. This will only be set for rental line items."
8266+
}
8267+
},
8268+
"type": "object"
8269+
},
81658270
"ProductPurchase": {
81668271
"description": "A ProductPurchase resource indicates the status of a user's inapp product purchase.",
81678272
"id": "ProductPurchase",
@@ -8236,6 +8341,68 @@
82368341
},
82378342
"type": "object"
82388343
},
8344+
"ProductPurchaseV2": {
8345+
"description": "A ProductPurchaseV2 resource indicates the status of a user's inapp product purchase.",
8346+
"id": "ProductPurchaseV2",
8347+
"properties": {
8348+
"acknowledgementState": {
8349+
"description": "Output only. The acknowledgement state of the purchase.",
8350+
"enum": [
8351+
"ACKNOWLEDGEMENT_STATE_UNSPECIFIED",
8352+
"ACKNOWLEDGEMENT_STATE_PENDING",
8353+
"ACKNOWLEDGEMENT_STATE_ACKNOWLEDGED"
8354+
],
8355+
"enumDescriptions": [
8356+
"Unspecified acknowledgement state.",
8357+
"The purchase is not acknowledged yet.",
8358+
"The purchase is acknowledged."
8359+
],
8360+
"readOnly": true,
8361+
"type": "string"
8362+
},
8363+
"kind": {
8364+
"description": "This kind represents a ProductPurchaseV2 object in the androidpublisher service.",
8365+
"type": "string"
8366+
},
8367+
"obfuscatedExternalAccountId": {
8368+
"description": "An obfuscated version of the id that is uniquely associated with the user's account in your app. Only present if specified using https://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.",
8369+
"type": "string"
8370+
},
8371+
"obfuscatedExternalProfileId": {
8372+
"description": "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.",
8373+
"type": "string"
8374+
},
8375+
"orderId": {
8376+
"description": "The order id associated with the purchase of the inapp product. May not be set if there is no order associated with the purchase.",
8377+
"type": "string"
8378+
},
8379+
"productLineItem": {
8380+
"description": "Contains item-level info for a ProductPurchaseV2.",
8381+
"items": {
8382+
"$ref": "ProductLineItem"
8383+
},
8384+
"type": "array"
8385+
},
8386+
"purchaseCompletionTime": {
8387+
"description": "The time when the purchase was successful, i.e., when the PurchaseState has changed to PURCHASED. This field will not be present until the payment is complete. For example, if the user initiated a pending transaction (https://developer.android.com/google/play/billing/integrate#pending), this field will not be populated until the user successfully completes the steps required to complete the transaction.",
8388+
"format": "google-datetime",
8389+
"type": "string"
8390+
},
8391+
"purchaseStateContext": {
8392+
"$ref": "PurchaseStateContext",
8393+
"description": "Information about the purchase state of the purchase."
8394+
},
8395+
"regionCode": {
8396+
"description": "ISO 3166-1 alpha-2 billing region code of the user at the time the product was granted.",
8397+
"type": "string"
8398+
},
8399+
"testPurchaseContext": {
8400+
"$ref": "TestPurchaseContext",
8401+
"description": "Information related to test purchases. This will only be set for test purchases."
8402+
}
8403+
},
8404+
"type": "object"
8405+
},
82398406
"ProductPurchasesAcknowledgeRequest": {
82408407
"description": "Request for the product.purchases.acknowledge API.",
82418408
"id": "ProductPurchasesAcknowledgeRequest",
@@ -8247,6 +8414,30 @@
82478414
},
82488415
"type": "object"
82498416
},
8417+
"PurchaseStateContext": {
8418+
"description": "Context about the purchase state.",
8419+
"id": "PurchaseStateContext",
8420+
"properties": {
8421+
"purchaseState": {
8422+
"description": "Output only. The purchase state of the purchase.",
8423+
"enum": [
8424+
"PURCHASE_STATE_UNSPECIFIED",
8425+
"PURCHASED",
8426+
"CANCELLED",
8427+
"PENDING"
8428+
],
8429+
"enumDescriptions": [
8430+
"Purchase state unspecified. This value should never be set.",
8431+
"Purchased successfully.",
8432+
"Purchase canceled.",
8433+
"The purchase is in a pending state and has not yet been completed. For more information on handling pending purchases, see https://developer.android.com/google/play/billing/integrate#pending."
8434+
],
8435+
"readOnly": true,
8436+
"type": "string"
8437+
}
8438+
},
8439+
"type": "object"
8440+
},
82508441
"RecurringExternalTransaction": {
82518442
"description": "Represents a transaction that is part of a recurring series of payments. This can be a subscription or a one-time product with multiple payments (such as preorder).",
82528443
"id": "RecurringExternalTransaction",
@@ -8572,6 +8763,12 @@
85728763
},
85738764
"type": "object"
85748765
},
8766+
"RentOfferDetails": {
8767+
"description": "Offer details information related to a rental line item.",
8768+
"id": "RentOfferDetails",
8769+
"properties": {},
8770+
"type": "object"
8771+
},
85758772
"ReplacementCancellation": {
85768773
"description": "Information specific to cancellations caused by subscription replacement.",
85778774
"id": "ReplacementCancellation",
@@ -9763,6 +9960,25 @@
97639960
"properties": {},
97649961
"type": "object"
97659962
},
9963+
"TestPurchaseContext": {
9964+
"description": "Context about a test purchase.",
9965+
"id": "TestPurchaseContext",
9966+
"properties": {
9967+
"fopType": {
9968+
"description": "The fop type of the test purchase.",
9969+
"enum": [
9970+
"FOP_TYPE_UNSPECIFIED",
9971+
"TEST"
9972+
],
9973+
"enumDescriptions": [
9974+
"Fop type unspecified. This value should never be set.",
9975+
"The purchase was made using a test card."
9976+
],
9977+
"type": "string"
9978+
}
9979+
},
9980+
"type": "object"
9981+
},
97669982
"Testers": {
97679983
"description": "The testers of an app. The resource for TestersService. Note: while it is possible in the Play Console UI to add testers via email lists, email lists are not supported by this resource.",
97689984
"id": "Testers",

‎src/apis/androidpublisher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"webpack": "webpack"
2929
},
3030
"dependencies": {
31-
"googleapis-common": "^8.0.0"
31+
"googleapis-common": "^8.0.2-rc.0"
3232
},
3333
"devDependencies": {
3434
"@microsoft/api-documenter": "^7.8.10",

0 commit comments

Comments
 (0)