diff --git a/Cargo.lock b/Cargo.lock index c2346d72..2894b567 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.21.0" +version = "0.22.0" dependencies = [ "prost", "prost-types", diff --git a/proto/sentry_protos/billing/v1/services/billing_details/v1/billing_details.proto b/proto/sentry_protos/billing/v1/services/billing_details/v1/billing_details.proto index 864bef55..cdeb1720 100644 --- a/proto/sentry_protos/billing/v1/services/billing_details/v1/billing_details.proto +++ b/proto/sentry_protos/billing/v1/services/billing_details/v1/billing_details.proto @@ -22,4 +22,6 @@ message BillingDetails { optional string company_name = 3; optional string billing_email = 4; sentry_protos.billing.v1.common.v1.Address billing_address = 5; + // The customer's tax registration number (e.g. VAT ID), if on file. + optional string tax_number = 6; } 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 0bc0d05b..0125014c 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 @@ -16,6 +16,10 @@ message CreateContractRequest { // supported_month_intervals. If unset, defaults to the package's first // supported interval. uint32 month_interval = 6; + // The customer's tax registration number (e.g. VAT ID), used to determine + // tax treatment for this contract (for example, reverse charge for + // tax-registered businesses). Unset if none is on file. + optional string customer_tax_id = 7; } 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..1e39c36f 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,10 @@ 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 customer's tax registration number (e.g. VAT ID), used to determine + // tax treatment for this contract (for example, reverse charge for + // tax-registered businesses). Unset if none is on file. + optional string customer_tax_id = 6; } message RolloverContractResponse { diff --git a/rust/src/sentry_protos.billing.v1.services.billing_details.v1.rs b/rust/src/sentry_protos.billing.v1.services.billing_details.v1.rs index 3a05b50b..e21d6284 100644 --- a/rust/src/sentry_protos.billing.v1.services.billing_details.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.billing_details.v1.rs @@ -31,6 +31,9 @@ pub struct BillingDetails { pub billing_address: ::core::option::Option< super::super::super::common::v1::Address, >, + /// The customer's tax registration number (e.g. VAT ID), if on file. + #[prost(string, optional, tag = "6")] + pub tax_number: ::core::option::Option<::prost::alloc::string::String>, } #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] pub struct GetBillingDetailsRequest { 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 e5812bb5..9d3961f5 100644 --- a/rust/src/sentry_protos.billing.v1.services.contract.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.contract.v1.rs @@ -493,6 +493,11 @@ pub struct CreateContractRequest { /// supported interval. #[prost(uint32, tag = "6")] pub month_interval: u32, + /// The customer's tax registration number (e.g. VAT ID), used to determine + /// tax treatment for this contract (for example, reverse charge for + /// tax-registered businesses). Unset if none is on file. + #[prost(string, optional, tag = "7")] + pub customer_tax_id: ::core::option::Option<::prost::alloc::string::String>, } #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct CreateContractResponse { @@ -673,6 +678,11 @@ pub struct RolloverContractRequest { pub pending_change: ::core::option::Option< super::super::super::common::v1::PendingChange, >, + /// The customer's tax registration number (e.g. VAT ID), used to determine + /// tax treatment for this contract (for example, reverse charge for + /// tax-registered businesses). Unset if none is on file. + #[prost(string, optional, tag = "6")] + pub customer_tax_id: ::core::option::Option<::prost::alloc::string::String>, } #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] pub struct RolloverContractResponse {