Skip to content
Draft
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
Expand Up @@ -2,6 +2,8 @@ syntax = "proto3";

package sentry_protos.billing.v1.services.contract.ledger.v1;

import "google/protobuf/timestamp.proto";

message GetLedgerBalanceRequest {
uint64 organization_id = 1;
string account_id = 2;
Expand All @@ -12,4 +14,7 @@ message GetLedgerBalanceResponse {
int64 balance_cents = 1;
// Deposits whose invoices are not paid yet. Not part of balance_cents.
int64 pending_deposit_cents = 2;
// Creation time of the most recent deposit, whether or not its invoice has
// been paid. Unset when the account has no deposits.
optional google.protobuf.Timestamp latest_deposit_at = 3;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ syntax = "proto3";

package sentry_protos.billing.v1.services.seer_feature_billing.v1;

import "sentry_protos/billing/v1/date.proto";

// Reads the organization's prepaid Seer credit from its current contract.
message GetSeerWalletBalanceRequest {
uint64 organization_id = 1;
Expand All @@ -23,6 +25,9 @@ message SeerWallet {
uint64 included_credits = 4;
// Included credits used this billing period. At most included_credits.
uint64 included_credits_used = 5;
// Purchased credits expire twelve months after the latest ledger deposit.
// Unset when the wallet has never received a deposit.
optional sentry_protos.billing.v1.Date expires_at = 6;
}

message GetSeerWalletBalanceResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ pub struct GetLedgerBalanceResponse {
/// Deposits whose invoices are not paid yet. Not part of balance_cents.
#[prost(int64, tag = "2")]
pub pending_deposit_cents: i64,
/// Creation time of the most recent deposit, whether or not its invoice has
/// been paid. Unset when the account has no deposits.
#[prost(message, optional, tag = "3")]
pub latest_deposit_at: ::core::option::Option<::prost_types::Timestamp>,
}
/// One row of an account's transaction history. Entries are append-only.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ pub struct SeerWallet {
/// Included credits used this billing period. At most included_credits.
#[prost(uint64, tag = "5")]
pub included_credits_used: u64,
/// Purchased credits expire twelve months after the latest ledger deposit.
/// Unset when the wallet has never received a deposit.
#[prost(message, optional, tag = "6")]
pub expires_at: ::core::option::Option<super::super::super::Date>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetSeerWalletBalanceResponse {
Expand Down
Loading