From fa57e04ceed12242ddfa468380b38edf941887ea Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Fri, 5 Jun 2020 15:32:32 -0700 Subject: [PATCH] feat(androidpublisher): update the API #### androidpublisher:v3 The following keys were added: - schemas.InAppProduct.properties.resubscribeEligibility.description - schemas.InAppProduct.properties.resubscribeEligibility.type - schemas.InAppProductListing.properties.benefits.description - schemas.InAppProductListing.properties.benefits.items.type - schemas.InAppProductListing.properties.benefits.type - schemas.InAppProductListing.properties.description.description - schemas.InAppProductListing.properties.title.description --- discovery/androidpublisher-v3.json | 17 +++++++++++++++-- src/apis/androidpublisher/v3.ts | 21 +++++++++++++++++++++ 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/discovery/androidpublisher-v3.json b/discovery/androidpublisher-v3.json index 1498d853247..aacd48dbb05 100644 --- a/discovery/androidpublisher-v3.json +++ b/discovery/androidpublisher-v3.json @@ -15,7 +15,7 @@ "description": "Accesses Android application developers' Google Play accounts.", "discoveryVersion": "v1", "documentationLink": "https://developers.google.com/android-publisher", - "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/SetFLBXGvnz8NnoZq8WRUMdUaG4\"", + "etag": "\"u9GIe6H63LSGq-9_t39K2Zx_EAc/944s_nQUBB2zQT_SQbdy8UnEiHI\"", "icons": { "x16": "https://www.google.com/images/icons/product/android-16.png", "x32": "https://www.google.com/images/icons/product/android-32.png" @@ -2555,7 +2555,7 @@ } } }, - "revision": "20200505", + "revision": "20200602", "rootUrl": "https://www.googleapis.com/", "schemas": { "Apk": { @@ -3084,6 +3084,10 @@ "description": "Purchase type enum value. Unmodifiable after creation.", "type": "string" }, + "resubscribeEligibility": { + "description": "Whether or not the developer wants the specific subscription to be resubscribable. If the developer doesn't use PBL2.0, this value is ignored since the feature is only for developers using PBL2.0. This feature allows users to resubscribe to an expired subscription directly from the subscription center by clicking on a \"Resubscribe\" CTA under the entry for the expired subscription.", + "type": "string" + }, "sku": { "description": "The stock-keeping-unit (SKU) of the product, unique within an app.", "type": "string" @@ -3105,10 +3109,19 @@ "InAppProductListing": { "id": "InAppProductListing", "properties": { + "benefits": { + "description": "The localized entitlement benefits of the in-app product. These are supported only for subscriptions.", + "items": { + "type": "string" + }, + "type": "array" + }, "description": { + "description": "The localized description of the in-app product. These are deprecated for subscriptions.", "type": "string" }, "title": { + "description": "The localized title of the in-app product.", "type": "string" } }, diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts index 97aaf440aa3..1f852e2c958 100644 --- a/src/apis/androidpublisher/v3.ts +++ b/src/apis/androidpublisher/v3.ts @@ -459,6 +459,10 @@ export namespace androidpublisher_v3 { * Purchase type enum value. Unmodifiable after creation. */ purchaseType?: string | null; + /** + * Whether or not the developer wants the specific subscription to be resubscribable. If the developer doesn't use PBL2.0, this value is ignored since the feature is only for developers using PBL2.0. This feature allows users to resubscribe to an expired subscription directly from the subscription center by clicking on a "Resubscribe" CTA under the entry for the expired subscription. + */ + resubscribeEligibility?: string | null; /** * The stock-keeping-unit (SKU) of the product, unique within an app. */ @@ -474,7 +478,17 @@ export namespace androidpublisher_v3 { trialPeriod?: string | null; } export interface Schema$InAppProductListing { + /** + * The localized entitlement benefits of the in-app product. These are supported only for subscriptions. + */ + benefits?: string[] | null; + /** + * The localized description of the in-app product. These are deprecated for subscriptions. + */ description?: string | null; + /** + * The localized title of the in-app product. + */ title?: string | null; } export interface Schema$InappproductsListResponse { @@ -7076,6 +7090,7 @@ export namespace androidpublisher_v3 { * // "packageName": "my_packageName", * // "prices": {}, * // "purchaseType": "my_purchaseType", + * // "resubscribeEligibility": "my_resubscribeEligibility", * // "sku": "my_sku", * // "status": "my_status", * // "subscriptionPeriod": "my_subscriptionPeriod", @@ -7220,6 +7235,7 @@ export namespace androidpublisher_v3 { * // "packageName": "my_packageName", * // "prices": {}, * // "purchaseType": "my_purchaseType", + * // "resubscribeEligibility": "my_resubscribeEligibility", * // "sku": "my_sku", * // "status": "my_status", * // "subscriptionPeriod": "my_subscriptionPeriod", @@ -7238,6 +7254,7 @@ export namespace androidpublisher_v3 { * // "packageName": "my_packageName", * // "prices": {}, * // "purchaseType": "my_purchaseType", + * // "resubscribeEligibility": "my_resubscribeEligibility", * // "sku": "my_sku", * // "status": "my_status", * // "subscriptionPeriod": "my_subscriptionPeriod", @@ -7534,6 +7551,7 @@ export namespace androidpublisher_v3 { * // "packageName": "my_packageName", * // "prices": {}, * // "purchaseType": "my_purchaseType", + * // "resubscribeEligibility": "my_resubscribeEligibility", * // "sku": "my_sku", * // "status": "my_status", * // "subscriptionPeriod": "my_subscriptionPeriod", @@ -7552,6 +7570,7 @@ export namespace androidpublisher_v3 { * // "packageName": "my_packageName", * // "prices": {}, * // "purchaseType": "my_purchaseType", + * // "resubscribeEligibility": "my_resubscribeEligibility", * // "sku": "my_sku", * // "status": "my_status", * // "subscriptionPeriod": "my_subscriptionPeriod", @@ -7700,6 +7719,7 @@ export namespace androidpublisher_v3 { * // "packageName": "my_packageName", * // "prices": {}, * // "purchaseType": "my_purchaseType", + * // "resubscribeEligibility": "my_resubscribeEligibility", * // "sku": "my_sku", * // "status": "my_status", * // "subscriptionPeriod": "my_subscriptionPeriod", @@ -7718,6 +7738,7 @@ export namespace androidpublisher_v3 { * // "packageName": "my_packageName", * // "prices": {}, * // "purchaseType": "my_purchaseType", + * // "resubscribeEligibility": "my_resubscribeEligibility", * // "sku": "my_sku", * // "status": "my_status", * // "subscriptionPeriod": "my_subscriptionPeriod",