Skip to content

Commit 7922722

Browse files
update request
1 parent 3adc74c commit 7922722

2 files changed

Lines changed: 9 additions & 19 deletions

File tree

proto/sentry_protos/billing/v1/services/usage_pricer/v1/endpoint_price_usage.proto

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,13 @@ syntax = "proto3";
22

33
package sentry_protos.billing.v1.services.usage_pricer.v1;
44

5-
import "sentry_protos/billing/v1/services/contract/v1/endpoint_get_contract.proto";
6-
import "sentry_protos/billing/v1/services/trial/v1/endpoint_get_trials.proto";
7-
import "sentry_protos/billing/v1/services/usage/v1/endpoint_usage.proto";
5+
import "google/protobuf/timestamp.proto";
86
import "sentry_protos/billing/v1/sku.proto";
97

108
message PriceUsageRequest {
11-
// The organization's contract (contains PricingConfig with SKUConfigs, shared budgets, tiers)
12-
sentry_protos.billing.v1.services.contract.v1.GetContractResponse contract = 1;
13-
// Active credits/trials for the organization
14-
sentry_protos.billing.v1.services.trial.v1.GetTrialsResponse credits = 2;
15-
// Usage data for the billing period
16-
sentry_protos.billing.v1.services.usage.v1.GetUsageResponse usage = 3;
9+
uint64 organization_id = 1;
10+
google.protobuf.Timestamp start = 2;
11+
google.protobuf.Timestamp end = 3;
1712
}
1813

1914
message SKUUsageSummary {

rust/src/sentry_protos.billing.v1.services.usage_pricer.v1.rs

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
// This file is @generated by prost-build.
2-
#[derive(Clone, PartialEq, ::prost::Message)]
2+
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
33
pub struct PriceUsageRequest {
4-
/// The organization's contract (contains PricingConfig with SKUConfigs, shared budgets, tiers)
5-
#[prost(message, optional, tag = "1")]
6-
pub contract: ::core::option::Option<
7-
super::super::contract::v1::GetContractResponse,
8-
>,
9-
/// Active credits/trials for the organization
4+
#[prost(uint64, tag = "1")]
5+
pub organization_id: u64,
106
#[prost(message, optional, tag = "2")]
11-
pub credits: ::core::option::Option<super::super::trial::v1::GetTrialsResponse>,
12-
/// Usage data for the billing period
7+
pub start: ::core::option::Option<::prost_types::Timestamp>,
138
#[prost(message, optional, tag = "3")]
14-
pub usage: ::core::option::Option<super::super::usage::v1::GetUsageResponse>,
9+
pub end: ::core::option::Option<::prost_types::Timestamp>,
1510
}
1611
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
1712
pub struct SkuUsageSummary {

0 commit comments

Comments
 (0)