Skip to content

feat(billing): add optional type to InvoiceLineItem#293

Merged
dashed merged 2 commits into
mainfrom
aleal/feat/invoice-line-item-type
Jun 5, 2026
Merged

feat(billing): add optional type to InvoiceLineItem#293
dashed merged 2 commits into
mainfrom
aleal/feat/invoice-line-item-type

Conversation

@dashed

@dashed dashed commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

Adds an optional string type = 3 field to InvoiceLineItem (proto/sentry_protos/billing/v1/services/contract/v1/invoice.proto).

This lets a line item carry a classifier (e.g. "tax") so consumers can treat it specially without parsing the human-readable description. It is the foundation for representing sales tax as an ordinary, typed entry in line_items rather than a dedicated request field.

Field layout (InvoiceLineItem)

# field notes
1 amount_cents unchanged
2 description unchanged
3 type new, optional string classifier

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

Test plan

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

Line items can now carry an optional type classifier (e.g. "tax") so
consumers can treat a line item specially without parsing its description.
Regenerates the Rust bindings.
@github-actions

github-actions Bot commented Jun 5, 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, 6:02 PM

@dashed dashed self-assigned this Jun 5, 2026
@dashed dashed marked this pull request as ready for review June 5, 2026 18:33
@dashed dashed requested a review from a team as a code owner June 5, 2026 18:33
@dashed dashed merged commit ff1fae7 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