Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

androidpublisher/v3 RegionalSubscriptionOfferPhaseConfig missing field #2273

Open
zhulingbiezhi opened this issue Nov 22, 2023 · 3 comments
Open
Assignees
Labels
external This issue is blocked on a bug with the actual product. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@zhulingbiezhi
Copy link

zhulingbiezhi commented Nov 22, 2023

regionalsubscriptionofferphaseconfigCould you please check the structure "regionalsubscriptionofferphaseconfig" in the SubscriptionOfferPhase of the google.golang.org/api/androidpublisher/v3 library? It seems that the "free" object is missing, which is an important identifier used to mark subscription free trials.

You can find more information about regionalsubscriptionofferphaseconfig in the official documentation.

@zhulingbiezhi zhulingbiezhi added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Nov 22, 2023
@codyoss codyoss added the external This issue is blocked on a bug with the actual product. label Nov 22, 2023
@codyoss
Copy link
Member

codyoss commented Nov 22, 2023

It is not listed in the schema for this API:

"RegionalSubscriptionOfferPhaseConfig": {
"description": "Configuration for a single phase of a subscription offer in a single region.",
"id": "RegionalSubscriptionOfferPhaseConfig",
"properties": {
"absoluteDiscount": {
"$ref": "Money",
"description": "The absolute amount of money subtracted from the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a $1 absolute discount for a phase of a duration of 3 months would correspond to a price of $2. The resulting price may not be smaller than the minimum price allowed for this region."
},
"price": {
"$ref": "Money",
"description": "The absolute price the user pays for this offer phase. The price must not be smaller than the minimum price allowed for this region."
},
"regionCode": {
"description": "Required. Immutable. The region to which this config applies.",
"type": "string"
},
"relativeDiscount": {
"description": "The fraction of the base plan price prorated over the phase duration that the user pays for this offer phase. For example, if the base plan price for this region is $12 for a period of 1 year, then a 50% discount for a phase of a duration of 3 months would correspond to a price of $1.50. The discount must be specified as a fraction strictly larger than 0 and strictly smaller than 1. The resulting price will be rounded to the nearest billable unit (e.g. cents for USD). The relative discount is considered invalid if the discounted price ends up being smaller than the minimum price allowed in this region.",
"format": "double",
"type": "number"
}
},
"type": "object"
},
. These are generated client libraries from the public spec. I filed an internal bug and get back to you if I hear more: 312707405

@zhulingbiezhi
Copy link
Author

Thank you for your prompt reply. I greatly appreciate your timely response and I am eagerly awaiting your reply.

@zhulingbiezhi
Copy link
Author

Do you have any updates? I'm feeling a bit confused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external This issue is blocked on a bug with the actual product. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants