Skip to content

feat(billing): protos for master-dataclass promotion#344

Draft
armcknight wants to merge 3 commits into
mainfrom
andrewmcknight/billing-master-dataclass-promotion
Draft

feat(billing): protos for master-dataclass promotion#344
armcknight wants to merge 3 commits into
mainfrom
andrewmcknight/billing-master-dataclass-promotion

Conversation

@armcknight

Copy link
Copy Markdown
Member

Promotes several dataclass prototypes already in use on getsentry master to real protos. Companion to a getsentry-side promotion PR (getsentry/getsentry#20887) that will bump the sentry-protos pin once this lands.

Included

  • charge.proto — adds PlatformCharge.date_added_st (mirrors PlatformRefund.date_added_st so mixed charge+refund timelines can sort off a single time axis).
  • endpoint_list_charges_for_invoice_ids.proto (new) — used by ChargeService.list_charges_for_invoice_ids on master.
  • endpoint_list_charges_for_organization.proto (new) — used by ChargeService.list_charges_for_organization on master.
  • endpoint_get_invoice_guids_for_ids.proto (new) — used by ContractService.get_invoice_guids_for_ids on master.
  • endpoint_start_manual_payment.proto (new) — used by ContractService.start_manual_payment on master (added in getsentry/getsentry#20790).

Context

Split out from an earlier combined branch. The remaining Pay-Now-loop protos (release_manual_payment_lock + modifications to handle_charge_succeeded / capture_charge / mark_invoice_paid) live on branch andrewmcknight/billing-pay-now-loop-close-protos and partner with getsentry/getsentry#20833.

Promotes several dataclass prototypes already in use on getsentry master
to real protos. No behavioral change on its own -- this is the sentry-protos
side of the getsentry-side promotion PR.

Included:

  - ``charge.proto`` -- adds ``PlatformCharge.date_added_st`` (mirrors
    ``PlatformRefund.date_added_st`` so mixed charge+refund timelines
    can sort off a single time axis).
  - ``endpoint_list_charges_for_invoice_ids.proto`` (new) -- used by
    ``ChargeService.list_charges_for_invoice_ids`` on master.
  - ``endpoint_list_charges_for_organization.proto`` (new) -- used by
    ``ChargeService.list_charges_for_organization`` on master.
  - ``endpoint_get_invoice_guids_for_ids.proto`` (new) -- used by
    ``ContractService.get_invoice_guids_for_ids`` on master.
  - ``endpoint_start_manual_payment.proto`` (new) -- used by
    ``ContractService.start_manual_payment`` on master (added in
    getsentry/getsentry#20790).

Split out from the original combined branch. The remaining Pay-Now-loop
protos (release_manual_payment_lock, modifications to handle_charge_succeeded /
capture_charge / mark_invoice_paid) live on a separate branch that
partners with getsentry/getsentry#20833.
@github-actions

github-actions Bot commented Jul 2, 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✅ passedJul 2, 2026, 11:45 PM

Andrew McKnight and others added 2 commits July 2, 2026 15:45
…rotos

Field-level context moved to PR #344's description; kept short one-line
comments for the semantic hint.
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.

1 participant