Repository navigation
Conversation
|
PR Packages Published Python Package:
NPM Package:
|
This comment has been minimized.
This comment has been minimized.
|
The latest Buf updates on your PR. Results from workflow Pull Request / linting (pull_request).
|
|
The latest Buf updates on your PR. Results from workflow Pull Request / linting (pull_request).
|
Rendez
force-pushed
the
CBI-856-billing-profile
branch
2 times, most recently
from
December 3, 2026 14:56
82ea090 to
09bea35
Compare
Rendez
marked this pull request as draft
December 3, 2026 15:13
Rendez
force-pushed
the
CBI-856-billing-profile
branch
from
December 4, 2026 10:09
09bea35 to
85f560c
Compare
This comment has been minimized.
This comment has been minimized.
Rendez
force-pushed
the
CBI-856-billing-profile
branch
from
December 4, 2026 10:40
85f560c to
6223f28
Compare
Rendez
marked this pull request as ready for review
December 4, 2026 14:39
Rendez
force-pushed
the
CBI-856-billing-profile
branch
from
December 4, 2026 14:46
6223f28 to
8106f58
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
BillingServicegets two RPCs for the billing profile: who a billing account is billed as (legal name, billing email, address and Tax ID).GetBillingProfilereads it, andUpdateBillingProfilewrites it, with an optional update mask in which the address counts as one field,address. Both work on the billing account only; a child account getsFAILED_PRECONDITION, which names the billing account to use instead.Why
Today the billing name, address and Tax ID live on each payment method, so an account with several payment records has several, possibly conflicting, copies. The billing profile keeps one copy per billing account, and new clients will read and write it through these RPCs instead of
UpdatePaymentMethod(CBI-856, design section 7.1). The billing fields onPaymentMethodstay as they are for now and are deprecated in a later change.Notes
UpdateBillingProfileis a PUT, likeUpdateClusterandUpdatePaymentMethod, withaccount_id_expressionand apatch_sourceonGetBillingProfile. With a mask, fields left out of it keep their stored values;tax_idlisted in the mask with no value removes the Tax ID. The address cannot be removed: an update without one keeps the stored address. Both responses markbilling_profileasrequired, like the other get and update responses.UpdateBillingProfileis notinteractive_only, so API keys and MCP clients can call it. Both RPCs are MCP tools:get_billing_profile, andupdate_billing_profile, which asks the user to confirm before an agent's change goes through, asupdate_clusterdoes. The gateway's verb defaults for a PUT (idempotent, destructive) fit, so no hints are set.UpdateBillingProfilepublishes anEVENT_TYPE_UPDATEDevent forbilling-profile, and both RPCs log the account id when they fail. Both name the account id only, never the name, email, address or Tax ID.GetBillingProfilehas no event, like every other read RPC.BillingProfileAddressfollowspayment.v1.BillingAddress: its comments and rules, and the read-onlytax_supported_country. A new read-onlyformatted_addressholds the address on one line in its country's format, ending with the country name, for exampleMainzer Landstraße 50, 60325 FRANKFURT, GERMANY; the cluster API fills it in a follow-up PR and leaves it unset until then. The display namesstate_formattedandcountry_formattedare left out, because no client of the profile needs them; adding them later is backwards compatible. Onlyline1andcountryare required;line2,city,stateandpostal_codestayoptional, because which of them an address has depends on the country. A Tax ID needs a country with an Orb tax type (otherwiseE1037), andtax_supported_countrytells the client whether the address's country has one, so it can save the country before the Tax ID, or with it. Lengths follow the columns of the newbilling_profilestable in the cluster API.api_versionstays1.0.0, as it did whenListCommitmentswas added.enable_billing_profilesgate. While it is off, afeatureGateRulesentry in the API gateway answersNOT_FOUND(HTTP 404); the cluster API does not check the gate itself. Behind it,GetBillingProfilereturns the profile, andUpdateBillingProfileanswersUNIMPLEMENTEDuntil the profile logic lands. The RPCs are still listed in reflection, MCP and GraphQL until launch; that is accepted. The cluster API branch (feat/CBI-856-billing-profile) pins a dev build of this PR until a release.make generaterebuiltgen/; only the billing files changed.