diff --git a/Cargo.lock b/Cargo.lock index 09d2f89c..0af9158c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.90.0" +version = "0.91.0" dependencies = [ "prost", "prost-types", diff --git a/proto/sentry_protos/billing/v1/services/engagement/v1/endpoint_reset_subscription_trial.proto b/proto/sentry_protos/billing/v1/services/engagement/v1/endpoint_reset_subscription_trial.proto new file mode 100644 index 00000000..a96b3134 --- /dev/null +++ b/proto/sentry_protos/billing/v1/services/engagement/v1/endpoint_reset_subscription_trial.proto @@ -0,0 +1,13 @@ +syntax = "proto3"; + +package sentry_protos.billing.v1.services.engagement.v1; + +// Clears an organization's ended subscription trials so it can start another. +message ResetSubscriptionTrialRequest { + uint64 organization_id = 1; +} + +message ResetSubscriptionTrialResponse { + // Whether any ended subscription trial was cleared. + bool reset = 1; +} diff --git a/rust/src/sentry_protos.billing.v1.services.engagement.v1.rs b/rust/src/sentry_protos.billing.v1.services.engagement.v1.rs index 663093a3..416d13b6 100644 --- a/rust/src/sentry_protos.billing.v1.services.engagement.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.engagement.v1.rs @@ -778,6 +778,18 @@ pub struct RedeemPromoCodeResponse { #[prost(string, optional, tag = "6")] pub campaign: ::core::option::Option<::prost::alloc::string::String>, } +/// Clears an organization's ended subscription trials so it can start another. +#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] +pub struct ResetSubscriptionTrialRequest { + #[prost(uint64, tag = "1")] + pub organization_id: u64, +} +#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] +pub struct ResetSubscriptionTrialResponse { + /// Whether any ended subscription trial was cleared. + #[prost(bool, tag = "1")] + pub reset: bool, +} #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)] pub struct RolloverMonetaryGrantsRequest { #[prost(uint64, tag = "1")]