Skip to content

feat(billing): add tax_number to BillingDetails#286

Merged
dashed merged 2 commits into
mainfrom
aleal/feat/contract-sales-tax
Jun 5, 2026
Merged

feat(billing): add tax_number to BillingDetails#286
dashed merged 2 commits into
mainfrom
aleal/feat/contract-sales-tax

Conversation

@dashed

@dashed dashed commented Jun 4, 2026

Copy link
Copy Markdown
Member

Summary

Adds an optional string tax_number = 6 to BillingDetails (the customer's tax registration number, e.g. VAT ID), used when determining tax treatment.

Sales tax is no longer carried on the contract requests as a dedicated sales_tax field. It now flows through line_items as a typed InvoiceLineItem (see the typed line-item change this PR is stacked on). The field slots previously considered for sales_tax are reserved for hygiene:

  • CreateContractRequest: reserved 7;
  • RolloverContractRequest: reserved 6;

Changes

  • BillingDetails.tax_number = 6 (new, optional string)
  • CreateContractRequest: reserved 7;
  • RolloverContractRequest: reserved 6;

Rust bindings regenerated via make build-rust; Python bindings via make build-py (py/ is gitignored).

Stacking

main#293 (InvoiceLineItem.type) → this PR#287 (tax_pending). Review/merge in order.

Test plan

  • make build-py + make build-rust succeed
  • buf lint / buf format pass

@linear-code

linear-code Bot commented Jun 4, 2026

Copy link
Copy Markdown

REVENG-15

@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedJun 5, 2026, 9:31 PM

@dashed dashed self-assigned this Jun 4, 2026
@dashed dashed marked this pull request as ready for review June 4, 2026 15:47
@dashed dashed requested a review from a team as a code owner June 4, 2026 15:47
@dashed dashed force-pushed the aleal/feat/contract-sales-tax branch from c040360 to d4052c4 Compare June 5, 2026 18:02
@dashed dashed changed the title feat(billing): Add sales tax fields to contract and billing protos feat(billing): add tax_number to BillingDetails Jun 5, 2026
@dashed dashed changed the base branch from main to aleal/feat/invoice-line-item-type June 5, 2026 18:02
@dashed dashed changed the base branch from aleal/feat/invoice-line-item-type to main June 5, 2026 21:21
@dashed dashed force-pushed the aleal/feat/contract-sales-tax branch from 729d1fc to 42df697 Compare June 5, 2026 21:21
Comment thread Cargo.lock
Adds an optional tax_number (e.g. VAT ID) to BillingDetails for determining
a customer's tax treatment.

Sales tax is no longer carried on the contract requests as a dedicated field;
it now flows through line_items as a typed entry. The field slots that were
considered for it are reserved on CreateContractRequest (7) and
RolloverContractRequest (6). Regenerates the Rust bindings.
@dashed dashed force-pushed the aleal/feat/contract-sales-tax branch from c407799 to 7ae8585 Compare June 5, 2026 21:30
@dashed dashed merged commit 60d7879 into main Jun 5, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants