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: PaymentState should be a pointer type #727
Comments
It looks like the case when this is not sent is when a subscription has lapsed or expired. I think it should be possible to check the But I agree, this field could be made a pointer type to remove any ambiguity. These files are auto-generated, so it is the generator that needs to be updated to make such a change. If you want to make the change we happily accept pull requests. But I can make the change too, let me know what you think. |
Thanks @codyoss . Fell free to implement, it is not a problem at all for me 😄 . |
Hey all, I see this didn't make it but am seeing the same thing and would like it to be a |
Added field PaymentState of schema SubscriptionPurchase of the androidpublisher:v3 api to the list of pointerFields. This was done the same way as it was previously done for v2. Fixes googleapis#727
Added field PaymentState of schema SubscriptionPurchase of the androidpublisher:v3 api to the list of pointerFields. This was done the same way as it was previously done for v2. Fixes googleapis#727
Working with the api, I notice that PendingState is not using a pointer, but the value 0 is a valid information to business:
google-api-go-client/androidpublisher/v3/androidpublisher-gen.go
Line 1932 in 8001663
I believe will be best to change it to a pointer like the
PurchaseType
(example).I notice that because when I call the
.MarshalJSON()
the field disappeared.If allowed, I can submit this PR.
The text was updated successfully, but these errors were encountered: