Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";

package sentry_protos.billing.v1.services.billing_details.v1;

// Fetches lightweight identity fields for an organization. Used by callers
// that need slug/name/default_user_id without pulling the full Organization
// record across service boundaries.
message GetOrganizationMetadataRequest {
uint64 organization_id = 1;
}

message GetOrganizationMetadataResponse {
string slug = 1;
string name = 2;
// Unset when the organization has no default owner.
optional uint64 default_user_id = 3;
// Email of the default owner.
optional string default_owner_email = 4;
// Emails of every active org member whose role grants the "org:billing"
// scope (e.g. owner, manager, billing).
repeated string billing_role_emails = 5;
}
25 changes: 25 additions & 0 deletions rust/src/sentry_protos.billing.v1.services.billing_details.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,31 @@ pub struct GetBillingDetailsResponse {
#[prost(message, optional, tag = "1")]
pub billing_details: ::core::option::Option<BillingDetails>,
}
/// Fetches lightweight identity fields for an organization. Used by callers
/// that need slug/name/default_user_id without pulling the full Organization
/// record across service boundaries.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetOrganizationMetadataRequest {
#[prost(uint64, tag = "1")]
pub organization_id: u64,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetOrganizationMetadataResponse {
#[prost(string, tag = "1")]
pub slug: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
/// Unset when the organization has no default owner.
#[prost(uint64, optional, tag = "3")]
pub default_user_id: ::core::option::Option<u64>,
/// Email of the default owner.
#[prost(string, optional, tag = "4")]
pub default_owner_email: ::core::option::Option<::prost::alloc::string::String>,
/// Emails of every active org member whose role grants the "org:billing"
/// scope (e.g. owner, manager, billing).
#[prost(string, repeated, tag = "5")]
pub billing_role_emails: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetStripePaymentDataRequest {
#[prost(uint64, tag = "1")]
Expand Down
Loading