Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

fix!: Change PremiumRequestUsageItem quantities to float64#4002

Merged
gmlewis merged 2 commits intogoogle:masterfrom
kyyril:fix/v2-billing-float
Feb 13, 2026
Merged

fix!: Change PremiumRequestUsageItem quantities to float64#4002
gmlewis merged 2 commits intogoogle:masterfrom
kyyril:fix/v2-billing-float

Conversation

@kyyril
Copy link
Contributor

@kyyril kyyril commented Feb 12, 2026

BREAKING CHANGE: PremiumRequestUsageItem numeric fields are now float64.

The GitHub API returns float values (e.g. 5054.0) for GrossQuantity, DiscountQuantity, and NetQuantity. Previously these were typed as int, causing JSON unmarshal errors.

Fixes #3996

The GitHub API returns float values (e.g. 5054.0) for GrossQuantity, DiscountQuantity, and NetQuantity. Previously these were typed as int, causing JSON unmarshal errors.

Fixes google#3996
@gmlewis gmlewis changed the title fix(billing): change PremiumRequestUsageItem quantities to float64 fix!: Change PremiumRequestUsageItem quantities to float64 Feb 12, 2026
@gmlewis gmlewis added NeedsReview PR is awaiting a review before merging. Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s). labels Feb 12, 2026
@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.52%. Comparing base (98e26cc) to head (66f50d3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4002   +/-   ##
=======================================
  Coverage   93.52%   93.52%           
=======================================
  Files         207      207           
  Lines       17597    17597           
=======================================
  Hits        16458    16458           
  Misses        938      938           
  Partials      201      201           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @kyyril!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.

cc: @stevehipwell - @alexandear - @zyfy29 - @Not-Dhananjay-Mishra

Copy link
Contributor

@Not-Dhananjay-Mishra Not-Dhananjay-Mishra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@gmlewis gmlewis removed the NeedsReview PR is awaiting a review before merging. label Feb 13, 2026
@gmlewis
Copy link
Collaborator

gmlewis commented Feb 13, 2026

Thank you, @Not-Dhananjay-Mishra!
Merging.

@gmlewis gmlewis merged commit 223960b into google:master Feb 13, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Breaking API Change PR will require a bump to the major version num in next release. Look here to see the change(s).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Billing.GetOrganizationPremiumRequestUsageReport failing to unmarshal

3 participants