Skip to content

Commit fe3b295

Browse files
yoshi-automationsofisl
authored andcommitted
feat(androidpublisher): update the API
#### androidpublisher:v3 The following keys were added: - schemas.OneTimePurchaseDetails.properties.purchaseOptionId.description - schemas.OneTimePurchaseDetails.properties.purchaseOptionId.type - schemas.OneTimePurchaseDetails.properties.rentalDetails.$ref - schemas.OneTimePurchaseDetails.properties.rentalDetails.description - schemas.RentalDetails.description - schemas.RentalDetails.id - schemas.RentalDetails.type
1 parent 6e662bd commit fe3b295

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

discovery/androidpublisher-v3.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4831,7 +4831,7 @@
48314831
}
48324832
}
48334833
},
4834-
"revision": "20250701",
4834+
"revision": "20250710",
48354835
"rootUrl": "https://androidpublisher.googleapis.com/",
48364836
"schemas": {
48374837
"Abi": {
@@ -7804,10 +7804,18 @@
78047804
"description": "The offer ID of the one-time purchase offer.",
78057805
"type": "string"
78067806
},
7807+
"purchaseOptionId": {
7808+
"description": "ID of the purchase option. This field is set for both purchase options and variant offers. For purchase options, this ID identifies the purchase option itself. For variant offers, this ID refers to the associated purchase option, and in conjunction with offer_id it identifies the variant offer.",
7809+
"type": "string"
7810+
},
78077811
"quantity": {
78087812
"description": "The number of items purchased (for multi-quantity item purchases).",
78097813
"format": "int32",
78107814
"type": "integer"
7815+
},
7816+
"rentalDetails": {
7817+
"$ref": "RentalDetails",
7818+
"description": "The details of a rent purchase. Only set if it is a rent purchase."
78117819
}
78127820
},
78137821
"type": "object"
@@ -8769,6 +8777,12 @@
87698777
"properties": {},
87708778
"type": "object"
87718779
},
8780+
"RentalDetails": {
8781+
"description": "Details of a rental purchase.",
8782+
"id": "RentalDetails",
8783+
"properties": {},
8784+
"type": "object"
8785+
},
87728786
"ReplacementCancellation": {
87738787
"description": "Information specific to cancellations caused by subscription replacement.",
87748788
"id": "ReplacementCancellation",

src/apis/androidpublisher/v3.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2235,10 +2235,18 @@ export namespace androidpublisher_v3 {
22352235
* The offer ID of the one-time purchase offer.
22362236
*/
22372237
offerId?: string | null;
2238+
/**
2239+
* ID of the purchase option. This field is set for both purchase options and variant offers. For purchase options, this ID identifies the purchase option itself. For variant offers, this ID refers to the associated purchase option, and in conjunction with offer_id it identifies the variant offer.
2240+
*/
2241+
purchaseOptionId?: string | null;
22382242
/**
22392243
* The number of items purchased (for multi-quantity item purchases).
22402244
*/
22412245
quantity?: number | null;
2246+
/**
2247+
* The details of a rent purchase. Only set if it is a rent purchase.
2248+
*/
2249+
rentalDetails?: Schema$RentalDetails;
22422250
}
22432251
/**
22442252
* The Order resource encapsulates comprehensive information about a transaction made on Google Play. It includes a variety of attributes that provide details about the order itself, the products purchased, and the history of events related to the order. The Orders APIs provide real-time access to your order data within the Google Play ecosystem. You can retrieve detailed information and metadata for both one-time and recurring orders, including transaction details like charges, taxes, and refunds, as well as metadata such as pricing phases for subscriptions. The Orders APIs let you automate tasks related to order management, reducing the need for manual checks via the Play Developer Console. The following are some of the use cases for this API: + Real-time order data retrieval - Get order details and metadata immediately after a purchase using an order ID. + Order update synchronization - Periodically sync order updates to maintain an up-to-date record of order information. Note: + The Orders API calls count towards your Play Developer API quota, which defaults to 200K daily, and may be insufficient to sync extensive order histories. + A maximum of 1000 orders can be retrieved per call. Using larger page sizes is recommended to minimize quota usage. Check your quota in the Cloud Console and request more if required.
@@ -2924,6 +2932,10 @@ export namespace androidpublisher_v3 {
29242932
*/
29252933
versionCode?: string | null;
29262934
}
2935+
/**
2936+
* Details of a rental purchase.
2937+
*/
2938+
export interface Schema$RentalDetails {}
29272939
/**
29282940
* Offer details information related to a rental line item.
29292941
*/

0 commit comments

Comments
 (0)