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.

13 changes: 13 additions & 0 deletions proto/sentry_protos/billing/v1/common/v1/address.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
syntax = "proto3";

package sentry_protos.billing.v1.common.v1;

message Address {
string city = 1;
string region = 2;
string country_code = 3;
string postal_code = 4;
string address_line_1 = 5;
string address_line_2 = 6;
string address_line_3 = 7;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ syntax = "proto3";

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

import "sentry_protos/billing/v1/common/v1/address.proto";

message Address {
option deprecated = true;

string city = 1;
string region = 2;
string country_code = 3;
Expand All @@ -13,8 +17,9 @@ message Address {
}

message BillingDetails {
Address address = 1;
Address address = 1 [deprecated = true];
string display_address = 2;
optional string company_name = 3;
optional string billing_email = 4;
sentry_protos.billing.v1.common.v1.Address billing_address = 5;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ syntax = "proto3";
package sentry_protos.billing.v1.services.contract.v1;

import "google/protobuf/timestamp.proto";
import "sentry_protos/billing/v1/common/v1/address.proto";

// This is not the same as LineItemDetails, it includes
// items not related to the package such as tax.
Expand All @@ -21,4 +22,6 @@ message Invoice {
bool paid = 5;
google.protobuf.Timestamp date_added = 6;
string guid = 7;
bool needs_charged = 8;
sentry_protos.billing.v1.common.v1.Address address = 9;
}
17 changes: 17 additions & 0 deletions rust/src/sentry_protos.billing.v1.common.v1.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
// This file is @generated by prost-build.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct Address {
#[prost(string, tag = "1")]
pub city: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub region: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub country_code: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub postal_code: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub address_line_1: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub address_line_2: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub address_line_3: ::prost::alloc::string::String,
}
/// Defines how usage data is transformed into a billable line item through arithmetic operations.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BillableMetric {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub struct Address {
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BillingDetails {
#[deprecated]
#[prost(message, optional, tag = "1")]
pub address: ::core::option::Option<Address>,
#[prost(string, tag = "2")]
Expand All @@ -26,6 +27,10 @@ pub struct BillingDetails {
pub company_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, optional, tag = "4")]
pub billing_email: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub billing_address: ::core::option::Option<
super::super::super::common::v1::Address,
>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetBillingDetailsRequest {
Expand Down
4 changes: 4 additions & 0 deletions rust/src/sentry_protos.billing.v1.services.contract.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ pub struct Invoice {
pub date_added: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "7")]
pub guid: ::prost::alloc::string::String,
#[prost(bool, tag = "8")]
pub needs_charged: bool,
#[prost(message, optional, tag = "9")]
pub address: ::core::option::Option<super::super::super::common::v1::Address>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateContractRequest {
Expand Down
Loading