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/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; +} 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, +}