diff --git a/Cargo.lock b/Cargo.lock index 23370d6d..9961b920 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -717,7 +717,7 @@ checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" [[package]] name = "sentry_protos" -version = "0.8.26" +version = "0.8.27" dependencies = [ "prost", "prost-types", diff --git a/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_record_failed_charge_attempt.proto b/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_record_failed_charge_attempt.proto index acf09c53..5bc0c74c 100644 --- a/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_record_failed_charge_attempt.proto +++ b/proto/sentry_protos/billing/v1/services/contract/v1/endpoint_record_failed_charge_attempt.proto @@ -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; @@ -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; } diff --git a/rust/src/sentry_protos.billing.v1.services.contract.v1.rs b/rust/src/sentry_protos.billing.v1.services.contract.v1.rs index a107fe42..1ef956d2 100644 --- a/rust/src/sentry_protos.billing.v1.services.contract.v1.rs +++ b/rust/src/sentry_protos.billing.v1.services.contract.v1.rs @@ -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