Skip to content

Commit

Permalink
feat(androidpublisher): update the API
Browse files Browse the repository at this point in the history
#### androidpublisher:v3

The following keys were added:
- schemas.AutoRenewingPlan.properties.priceChangeDetails.$ref
- schemas.AutoRenewingPlan.properties.priceChangeDetails.description
- schemas.OfferDetails.description
- schemas.OfferDetails.id
- schemas.OfferDetails.properties.basePlanId.description
- schemas.OfferDetails.properties.basePlanId.type
- schemas.OfferDetails.properties.offerId.description
- schemas.OfferDetails.properties.offerId.type
- schemas.OfferDetails.properties.offerTags.description
- schemas.OfferDetails.properties.offerTags.items.type
- schemas.OfferDetails.properties.offerTags.type
- schemas.OfferDetails.type
- schemas.SubscriptionItemPriceChangeDetails.description
- schemas.SubscriptionItemPriceChangeDetails.id
- schemas.SubscriptionItemPriceChangeDetails.properties.expectedNewPriceChargeTime.description
- schemas.SubscriptionItemPriceChangeDetails.properties.expectedNewPriceChargeTime.format
- schemas.SubscriptionItemPriceChangeDetails.properties.expectedNewPriceChargeTime.type
- schemas.SubscriptionItemPriceChangeDetails.properties.newPrice.$ref
- schemas.SubscriptionItemPriceChangeDetails.properties.newPrice.description
- schemas.SubscriptionItemPriceChangeDetails.properties.priceChangeMode.description
- schemas.SubscriptionItemPriceChangeDetails.properties.priceChangeMode.enum
- schemas.SubscriptionItemPriceChangeDetails.properties.priceChangeMode.enumDescriptions
- schemas.SubscriptionItemPriceChangeDetails.properties.priceChangeMode.type
- schemas.SubscriptionItemPriceChangeDetails.properties.priceChangeState.description
- schemas.SubscriptionItemPriceChangeDetails.properties.priceChangeState.enum
- schemas.SubscriptionItemPriceChangeDetails.properties.priceChangeState.enumDescriptions
- schemas.SubscriptionItemPriceChangeDetails.properties.priceChangeState.type
- schemas.SubscriptionItemPriceChangeDetails.type
- schemas.SubscriptionPurchaseLineItem.properties.offerDetails.$ref
- schemas.SubscriptionPurchaseLineItem.properties.offerDetails.description

The following keys were changed:
- schemas.RegionalTaxRateInfo.properties.streamingTaxType.description
  • Loading branch information
yoshi-automation authored and bcoe committed Dec 22, 2022
1 parent 9325719 commit b029f60
Show file tree
Hide file tree
Showing 2 changed files with 125 additions and 3 deletions.
80 changes: 78 additions & 2 deletions discovery/androidpublisher-v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -3920,7 +3920,7 @@
}
}
},
"revision": "20221027",
"revision": "20221215",
"rootUrl": "https://androidpublisher.googleapis.com/",
"schemas": {
"AcquisitionTargetingRule": {
Expand Down Expand Up @@ -4121,6 +4121,10 @@
"autoRenewEnabled": {
"description": "If the subscription is currently set to auto-renew, e.g. the user has not canceled the subscription",
"type": "boolean"
},
"priceChangeDetails": {
"$ref": "SubscriptionItemPriceChangeDetails",
"description": "The information of the last price change for the item since subscription signup."
}
},
"type": "object"
Expand Down Expand Up @@ -5407,6 +5411,28 @@
},
"type": "object"
},
"OfferDetails": {
"description": "Offer details information related to a purchase line item.",
"id": "OfferDetails",
"properties": {
"basePlanId": {
"description": "The base plan ID. Present for all base plan and offers.",
"type": "string"
},
"offerId": {
"description": "The offer ID. Only present for discounted offers.",
"type": "string"
},
"offerTags": {
"description": "The latest offer tags associated with the offer. It includes tags inherited from the base plan.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
},
"OfferTag": {
"description": "Represents a custom tag specified for base plans and subscription offers.",
"id": "OfferTag",
Expand Down Expand Up @@ -5732,7 +5758,7 @@
"type": "boolean"
},
"streamingTaxType": {
"description": "To collect communications or amusement taxes in the United States, choose the appropriate tax category. By default Google will determine the collected rate based on the buyer ZIP code. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).",
"description": "To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).",
"enum": [
"STREAMING_TAX_TYPE_UNSPECIFIED",
"STREAMING_TAX_TYPE_TELCO_VIDEO_RENTAL",
Expand Down Expand Up @@ -5972,6 +5998,52 @@
},
"type": "object"
},
"SubscriptionItemPriceChangeDetails": {
"description": "Price change related information of a subscription item.",
"id": "SubscriptionItemPriceChangeDetails",
"properties": {
"expectedNewPriceChargeTime": {
"description": "The renewal time at which the price change will become effective for the user. This is subject to change(to a future time) due to cases where the renewal time shifts like pause.",
"format": "google-datetime",
"type": "string"
},
"newPrice": {
"$ref": "Money",
"description": "New recurring price for the subscription item."
},
"priceChangeMode": {
"description": "Price change mode specifies how the subscription item price is changing.",
"enum": [
"PRICE_CHANGE_MODE_UNSPECIFIED",
"PRICE_DECREASE",
"PRICE_INCREASE"
],
"enumDescriptions": [
"Price change mode unspecified. This value should never be set.",
"If the subscription price is decreasing.",
"If the subscription price is increasing and the user needs to accept it."
],
"type": "string"
},
"priceChangeState": {
"description": "State the price change is currently in.",
"enum": [
"PRICE_CHANGE_STATE_UNSPECIFIED",
"OUTSTANDING",
"CONFIRMED",
"APPLIED"
],
"enumDescriptions": [
"Price change state unspecified. This value should not be used.",
"Waiting for the user to agree for the price change.",
"The price change is confirmed to happen for the user.",
"The price change is applied, i.e. the user has started being charged the new price."
],
"type": "string"
}
},
"type": "object"
},
"SubscriptionListing": {
"description": "The consumer-visible metadata of a subscription.",
"id": "SubscriptionListing",
Expand Down Expand Up @@ -6271,6 +6343,10 @@
"format": "google-datetime",
"type": "string"
},
"offerDetails": {
"$ref": "OfferDetails",
"description": "The offer details for this item."
},
"prepaidPlan": {
"$ref": "PrepaidPlan",
"description": "The item is prepaid."
Expand Down
48 changes: 47 additions & 1 deletion src/apis/androidpublisher/v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ export namespace androidpublisher_v3 {
* If the subscription is currently set to auto-renew, e.g. the user has not canceled the subscription
*/
autoRenewEnabled?: boolean | null;
/**
* The information of the last price change for the item since subscription signup.
*/
priceChangeDetails?: Schema$SubscriptionItemPriceChangeDetails;
}
/**
* A single base plan for a subscription.
Expand Down Expand Up @@ -1236,6 +1240,23 @@ export namespace androidpublisher_v3 {
*/
units?: string | null;
}
/**
* Offer details information related to a purchase line item.
*/
export interface Schema$OfferDetails {
/**
* The base plan ID. Present for all base plan and offers.
*/
basePlanId?: string | null;
/**
* The offer ID. Only present for discounted offers.
*/
offerId?: string | null;
/**
* The latest offer tags associated with the offer. It includes tags inherited from the base plan.
*/
offerTags?: string[] | null;
}
/**
* Represents a custom tag specified for base plans and subscription offers.
*/
Expand Down Expand Up @@ -1505,7 +1526,7 @@ export namespace androidpublisher_v3 {
*/
eligibleForStreamingServiceTaxRate?: boolean | null;
/**
* To collect communications or amusement taxes in the United States, choose the appropriate tax category. By default Google will determine the collected rate based on the buyer ZIP code. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
* To collect communications or amusement taxes in the United States, choose the appropriate tax category. [Learn more](https://support.google.com/googleplay/android-developer/answer/10463498#streaming_tax).
*/
streamingTaxType?: string | null;
/**
Expand Down Expand Up @@ -1671,6 +1692,27 @@ export namespace androidpublisher_v3 {
*/
expectedExpiryTimeMillis?: string | null;
}
/**
* Price change related information of a subscription item.
*/
export interface Schema$SubscriptionItemPriceChangeDetails {
/**
* The renewal time at which the price change will become effective for the user. This is subject to change(to a future time) due to cases where the renewal time shifts like pause.
*/
expectedNewPriceChargeTime?: string | null;
/**
* New recurring price for the subscription item.
*/
newPrice?: Schema$Money;
/**
* Price change mode specifies how the subscription item price is changing.
*/
priceChangeMode?: string | null;
/**
* State the price change is currently in.
*/
priceChangeState?: string | null;
}
/**
* The consumer-visible metadata of a subscription.
*/
Expand Down Expand Up @@ -1917,6 +1959,10 @@ export namespace androidpublisher_v3 {
* Time at which the subscription expired or will expire unless the access is extended (ex. renews).
*/
expiryTime?: string | null;
/**
* The offer details for this item.
*/
offerDetails?: Schema$OfferDetails;
/**
* The item is prepaid.
*/
Expand Down

0 comments on commit b029f60

Please sign in to comment.