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,15 @@
syntax = "proto3";

package sentry_protos.billing.v1.services.invoicer.v1;

import "sentry_protos/billing/v1/services/contract/v1/pricing_config.proto";

message CreateAndBillContractRequest {
uint64 organization_id = 1;
string package_uid = 2;
repeated sentry_protos.billing.v1.services.contract.v1.UserConfig user_configs = 3;
}

message CreateAndBillContractResponse {
bool success = 1;
}
14 changes: 14 additions & 0 deletions rust/src/sentry_protos.billing.v1.services.invoicer.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@ pub struct ChargeInvoicesRequest {
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct ChargeInvoicesResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateAndBillContractRequest {
#[prost(uint64, tag = "1")]
pub organization_id: u64,
#[prost(string, tag = "2")]
pub package_uid: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub user_configs: ::prost::alloc::vec::Vec<super::super::contract::v1::UserConfig>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateAndBillContractResponse {
#[prost(bool, tag = "1")]
pub success: bool,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CreateInvoicesRequest {
/// The current time used to select contracts whose billing period has ended
Expand Down
Loading