From bc23f36a455c5ae88308c7302e7075e768e2a5da Mon Sep 17 00:00:00 2001 From: Alberto Leal Date: Wed, 17 Jun 2026 17:39:50 -0400 Subject: [PATCH 1/2] chore(billing-platform): Add protos for set_pending_tax_transaction endpoint Records the tax provider's document reference on an invoice as a pending tax transaction so it can be committed or voided once the charge outcome is known. Co-Authored-By: Claude Opus 4.8 --- .../endpoint_set_pending_tax_transaction.proto | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 proto/sentry_protos/billing/v1/services/contract/v1/endpoint_set_pending_tax_transaction.proto diff --git a/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_set_pending_tax_transaction.proto b/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_set_pending_tax_transaction.proto new file mode 100644 index 00000000..548fa8c3 --- /dev/null +++ b/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_set_pending_tax_transaction.proto @@ -0,0 +1,17 @@ +syntax = "proto3"; + +package sentry_protos.billing.v1.services.contract.v1; + +// Records the tax provider's document reference on an invoice as a pending tax +// transaction, linking the invoice to the opened tax document so it can be +// committed or voided once the charge outcome is known. +message SetPendingTaxTransactionRequest { + uint64 invoice_id = 1; + // The tax provider's reference for the opened (uncommitted) tax document. + string external_reference = 2; +} + +message SetPendingTaxTransactionResponse { + // True if a matching invoice was found and updated. + bool updated = 1; +} From 1f9aeefb3fd49c2022a1b990790880655ce9c4a5 Mon Sep 17 00:00:00 2001 From: "getsantry[bot]" <66042841+getsantry[bot]@users.noreply.github.com> Date: Wed, 17 Jun 2026 21:45:31 +0000 Subject: [PATCH 2/2] chore: Regenerate Rust bindings --- Cargo.lock | 2 +- ...ry_protos.billing.v1.services.contract.v1.rs | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index e8698790..ddccf172 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.30.1" +version = "0.31.2" dependencies = [ "prost", "prost-types", diff --git a/rust/src/sentry_protos.billing.v1.services.contract.v1.rs b/rust/src/sentry_protos.billing.v1.services.contract.v1.rs index 0a75a6e7..465d514d 100644 --- a/rust/src/sentry_protos.billing.v1.services.contract.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.contract.v1.rs @@ -711,3 +711,20 @@ pub struct RolloverContractResponse { #[prost(uint64, tag = "3")] pub amount_billed: u64, } +/// Records the tax provider's document reference on an invoice as a pending tax +/// transaction, linking the invoice to the opened tax document so it can be +/// committed or voided once the charge outcome is known. +#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] +pub struct SetPendingTaxTransactionRequest { + #[prost(uint64, tag = "1")] + pub invoice_id: u64, + /// The tax provider's reference for the opened (uncommitted) tax document. + #[prost(string, tag = "2")] + pub external_reference: ::prost::alloc::string::String, +} +#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] +pub struct SetPendingTaxTransactionResponse { + /// True if a matching invoice was found and updated. + #[prost(bool, tag = "1")] + pub updated: bool, +}