From d3138183761149c879144c4382f1258f145be98f Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Tue, 23 Jun 2026 14:29:01 -0600 Subject: [PATCH 1/3] Add allow_payg field to PackageConfig Add a boolean field indicating whether a package permits pay-as-you-go (PAYG) billing, so consumers can gate PAYG behavior per package. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../sentry_protos/billing/v1/services/package/v1/package.proto | 3 +++ rust/src/sentry_protos.billing.v1.services.package.v1.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/proto/sentry_protos/billing/v1/services/package/v1/package.proto b/proto/sentry_protos/billing/v1/services/package/v1/package.proto index 371558d9..622d3b8b 100644 --- a/proto/sentry_protos/billing/v1/services/package/v1/package.proto +++ b/proto/sentry_protos/billing/v1/services/package/v1/package.proto @@ -77,4 +77,7 @@ message PackageConfig { // Whether the package can be chosen in the self-serve checkout flow. bool user_selectable = 11; + + // Whether the package allows pay-as-you-go (PAYG) billing. + bool allow_payg = 12; } diff --git a/rust/src/sentry_protos.billing.v1.services.package.v1.rs b/rust/src/sentry_protos.billing.v1.services.package.v1.rs index bb841289..ffbf15a0 100644 --- a/rust/src/sentry_protos.billing.v1.services.package.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.package.v1.rs @@ -123,6 +123,9 @@ pub struct PackageConfig { /// Whether the package can be chosen in the self-serve checkout flow. #[prost(bool, tag = "11")] pub user_selectable: bool, + /// Whether the package allows pay-as-you-go (PAYG) billing. + #[prost(bool, tag = "12")] + pub allow_payg: bool, } #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct GetPackageRequest { From ddf35276c82e2003b1e19710d484a3b774988e27 Mon Sep 17 00:00:00 2001 From: "getsantry[bot]" <66042841+getsantry[bot]@users.noreply.github.com> Date: Tue, 23 Jun 2026 20:30:12 +0000 Subject: [PATCH 2/3] chore: Regenerate Rust bindings --- Cargo.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index f1f06471..72f1826f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.32.5" +version = "0.33.0" dependencies = [ "prost", "prost-types", From a36fdb40703834fd0d3d564bf6a7d2feb57165a8 Mon Sep 17 00:00:00 2001 From: Noah Martin Date: Tue, 23 Jun 2026 15:06:16 -0600 Subject: [PATCH 3/3] Rename PackageConfig field to has_payg_modes Rename the new boolean from allow_payg to has_payg_modes to better reflect that it signals the presence of pay-as-you-go modes for the package. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../billing/v1/services/package/v1/package.proto | 4 ++-- rust/src/sentry_protos.billing.v1.services.package.v1.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/proto/sentry_protos/billing/v1/services/package/v1/package.proto b/proto/sentry_protos/billing/v1/services/package/v1/package.proto index 622d3b8b..6b879baf 100644 --- a/proto/sentry_protos/billing/v1/services/package/v1/package.proto +++ b/proto/sentry_protos/billing/v1/services/package/v1/package.proto @@ -78,6 +78,6 @@ message PackageConfig { // Whether the package can be chosen in the self-serve checkout flow. bool user_selectable = 11; - // Whether the package allows pay-as-you-go (PAYG) billing. - bool allow_payg = 12; + // Whether the package has pay-as-you-go (PAYG) modes. + bool has_payg_modes = 12; } diff --git a/rust/src/sentry_protos.billing.v1.services.package.v1.rs b/rust/src/sentry_protos.billing.v1.services.package.v1.rs index ffbf15a0..88c7c578 100644 --- a/rust/src/sentry_protos.billing.v1.services.package.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.package.v1.rs @@ -123,9 +123,9 @@ pub struct PackageConfig { /// Whether the package can be chosen in the self-serve checkout flow. #[prost(bool, tag = "11")] pub user_selectable: bool, - /// Whether the package allows pay-as-you-go (PAYG) billing. + /// Whether the package has pay-as-you-go (PAYG) modes. #[prost(bool, tag = "12")] - pub allow_payg: bool, + pub has_payg_modes: bool, } #[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)] pub struct GetPackageRequest {