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

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

import "google/protobuf/timestamp.proto";

// Records a failed charge attempt against an invoice.
message RecordFailedChargeAttemptRequest {
uint64 invoice_id = 1;
Expand All @@ -10,4 +12,11 @@ message RecordFailedChargeAttemptRequest {
message RecordFailedChargeAttemptResponse {
// True if a matching invoice was found and updated.
bool updated = 1;

// Post-update attempt_count on the invoice.
uint32 attempt_count = 2;

// Post-update next_payment_attempt on the invoice. Unset if the retry
// schedule has been exhausted and no further automatic retries will run.
optional google.protobuf.Timestamp next_payment_attempt = 3;
}
7 changes: 7 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 @@ -631,6 +631,13 @@ pub struct RecordFailedChargeAttemptResponse {
/// True if a matching invoice was found and updated.
#[prost(bool, tag = "1")]
pub updated: bool,
/// Post-update attempt_count on the invoice.
#[prost(uint32, tag = "2")]
pub attempt_count: u32,
/// Post-update next_payment_attempt on the invoice. Unset if the retry
/// schedule has been exhausted and no further automatic retries will run.
#[prost(message, optional, tag = "3")]
pub next_payment_attempt: ::core::option::Option<::prost_types::Timestamp>,
}
/// Creates a new contract for a new billing period. Closes out the current contract by
/// creating an invoice and setting the last usage date
Expand Down
Loading