Skip to content

Commit cbd34da

Browse files
yoshi-automationmiguelvelezsa
authored andcommitted
feat(androidpublisher): update the API
#### androidpublisher:v3 The following keys were added: - schemas.OneTimePurchaseDetails.properties.preorderDetails.$ref - schemas.OneTimePurchaseDetails.properties.preorderDetails.description - schemas.PreorderDetails.description - schemas.PreorderDetails.id - schemas.PreorderDetails.type - schemas.PreorderOfferDetails.description - schemas.PreorderOfferDetails.id - schemas.PreorderOfferDetails.properties.preorderReleaseTime.description - schemas.PreorderOfferDetails.properties.preorderReleaseTime.format - schemas.PreorderOfferDetails.properties.preorderReleaseTime.type - schemas.PreorderOfferDetails.type - schemas.ProductOfferDetails.properties.preorderOfferDetails.$ref - schemas.ProductOfferDetails.properties.preorderOfferDetails.description The following keys were changed: - schemas.OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig.properties.availability.enum - schemas.OneTimeProductPurchaseOptionRegionalPricingAndAvailabilityConfig.properties.availability.enumDescriptions
1 parent 619bd58 commit cbd34da

File tree

2 files changed

+52
-3
lines changed

2 files changed

+52
-3
lines changed

discovery/androidpublisher-v3.json

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5555,7 +5555,7 @@
55555555
}
55565556
}
55575557
},
5558-
"revision": "20250904",
5558+
"revision": "20251028",
55595559
"rootUrl": "https://androidpublisher.googleapis.com/",
55605560
"schemas": {
55615561
"Abi": {
@@ -9456,13 +9456,15 @@
94569456
"AVAILABILITY_UNSPECIFIED",
94579457
"AVAILABLE",
94589458
"NO_LONGER_AVAILABLE",
9459-
"AVAILABLE_IF_RELEASED"
9459+
"AVAILABLE_IF_RELEASED",
9460+
"AVAILABLE_FOR_OFFERS_ONLY"
94609461
],
94619462
"enumDescriptions": [
94629463
"Unspecified availability. Must not be used.",
94639464
"The purchase option is available to users.",
94649465
"The purchase option is no longer available to users. This value can only be used if the availability was previously set as AVAILABLE.",
9465-
"The purchase option is initially unavailable, but made available via a released pre-order offer."
9466+
"The purchase option is initially unavailable, but made available via a released pre-order offer.",
9467+
"The purchase option is unavailable but offers linked to it (i.e. Play Points offer) are available."
94669468
],
94679469
"type": "string"
94689470
},
@@ -9518,6 +9520,10 @@
95189520
"description": "The offer ID of the one-time purchase offer.",
95199521
"type": "string"
95209522
},
9523+
"preorderDetails": {
9524+
"$ref": "PreorderDetails",
9525+
"description": "The details of a pre-order purchase. Only set if it is a pre-order purchase. Note that this field will be set even after pre-order is fulfilled."
9526+
},
95219527
"purchaseOptionId": {
95229528
"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.",
95239529
"type": "string"
@@ -9855,6 +9861,24 @@
98559861
},
98569862
"type": "object"
98579863
},
9864+
"PreorderDetails": {
9865+
"description": "Details of a pre-order purchase.",
9866+
"id": "PreorderDetails",
9867+
"properties": {},
9868+
"type": "object"
9869+
},
9870+
"PreorderOfferDetails": {
9871+
"description": "Offer details information related to a preorder line item.",
9872+
"id": "PreorderOfferDetails",
9873+
"properties": {
9874+
"preorderReleaseTime": {
9875+
"description": "The time when a preordered item is released for a preorder purchase.",
9876+
"format": "google-datetime",
9877+
"type": "string"
9878+
}
9879+
},
9880+
"type": "object"
9881+
},
98589882
"PrepaidBasePlanType": {
98599883
"description": "Represents a base plan that does not automatically renew at the end of the base plan, and must be manually renewed by the user.",
98609884
"id": "PrepaidBasePlanType",
@@ -10001,6 +10025,10 @@
1000110025
"description": "The per-transaction offer token used to make this purchase line item.",
1000210026
"type": "string"
1000310027
},
10028+
"preorderOfferDetails": {
10029+
"$ref": "PreorderOfferDetails",
10030+
"description": "Offer details for a preorder offer. This will only be set for preorders."
10031+
},
1000410032
"purchaseOptionId": {
1000510033
"description": "The purchase option ID.",
1000610034
"type": "string"

src/apis/androidpublisher/v3.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2898,6 +2898,10 @@ export namespace androidpublisher_v3 {
28982898
* The offer ID of the one-time purchase offer.
28992899
*/
29002900
offerId?: string | null;
2901+
/**
2902+
* The details of a pre-order purchase. Only set if it is a pre-order purchase. Note that this field will be set even after pre-order is fulfilled.
2903+
*/
2904+
preorderDetails?: Schema$PreorderDetails;
29012905
/**
29022906
* 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.
29032907
*/
@@ -3155,6 +3159,19 @@ export namespace androidpublisher_v3 {
31553159
*/
31563160
pointsSpent?: string | null;
31573161
}
3162+
/**
3163+
* Details of a pre-order purchase.
3164+
*/
3165+
export interface Schema$PreorderDetails {}
3166+
/**
3167+
* Offer details information related to a preorder line item.
3168+
*/
3169+
export interface Schema$PreorderOfferDetails {
3170+
/**
3171+
* The time when a preordered item is released for a preorder purchase.
3172+
*/
3173+
preorderReleaseTime?: string | null;
3174+
}
31583175
/**
31593176
* Represents a base plan that does not automatically renew at the end of the base plan, and must be manually renewed by the user.
31603177
*/
@@ -3249,6 +3266,10 @@ export namespace androidpublisher_v3 {
32493266
* The per-transaction offer token used to make this purchase line item.
32503267
*/
32513268
offerToken?: string | null;
3269+
/**
3270+
* Offer details for a preorder offer. This will only be set for preorders.
3271+
*/
3272+
preorderOfferDetails?: Schema$PreorderOfferDetails;
32523273
/**
32533274
* The purchase option ID.
32543275
*/

0 commit comments

Comments
 (0)