diff --git a/Cargo.lock b/Cargo.lock index 75841175..2ba72cf8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.32.3" +version = "0.32.4" dependencies = [ "prost", "prost-types", diff --git a/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_create_contract.proto b/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_create_contract.proto index b1d439ee..ef6e4591 100644 --- a/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_create_contract.proto +++ b/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_create_contract.proto @@ -25,6 +25,12 @@ message CreateContractRequest { // Whether usage past reserved volume is allowed (and billed) instead of // hard-stopping ingestion. bool has_soft_cap = 8; + + // The tax provider's reference for the tax document opened for this invoice. + // When set, the contract service records it on the created invoice as a + // pending tax transaction atomically with invoice creation. Unset means no + // tax document was opened. + optional string tax_transaction_code = 9; } message CreateContractResponse { diff --git a/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_rollover_contract.proto b/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_rollover_contract.proto index fc4cdfd9..2a099050 100644 --- a/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_rollover_contract.proto +++ b/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_rollover_contract.proto @@ -18,6 +18,12 @@ message RolloverContractRequest { // The pending change to apply to the new contract, if any. Unset means no // pending change is being applied during this rollover. optional sentry_protos.billing.v1.common.v1.PendingChange pending_change = 5; + + // The tax provider's reference for the tax document opened for this invoice. + // When set, the contract service records it on the new invoice as a pending + // tax transaction atomically with invoice creation, so the document can later + // be committed or voided. Unset means no tax document was opened. + optional string tax_transaction_code = 7; } message RolloverContractResponse { 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 01e66f77..0aacb665 100644 --- a/rust/src/sentry_protos.billing.v1.services.contract.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.contract.v1.rs @@ -520,6 +520,12 @@ pub struct CreateContractRequest { /// hard-stopping ingestion. #[prost(bool, tag = "8")] pub has_soft_cap: bool, + /// The tax provider's reference for the tax document opened for this invoice. + /// When set, the contract service records it on the created invoice as a + /// pending tax transaction atomically with invoice creation. Unset means no + /// tax document was opened. + #[prost(string, optional, tag = "9")] + pub tax_transaction_code: ::core::option::Option<::prost::alloc::string::String>, } #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct CreateContractResponse { @@ -722,6 +728,12 @@ pub struct RolloverContractRequest { pub pending_change: ::core::option::Option< super::super::super::common::v1::PendingChange, >, + /// The tax provider's reference for the tax document opened for this invoice. + /// When set, the contract service records it on the new invoice as a pending + /// tax transaction atomically with invoice creation, so the document can later + /// be committed or voided. Unset means no tax document was opened. + #[prost(string, optional, tag = "7")] + pub tax_transaction_code: ::core::option::Option<::prost::alloc::string::String>, } #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] pub struct RolloverContractResponse {