Skip to content
Open
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 @@ -21,6 +21,8 @@ enum ChargeMethod {
CHARGE_METHOD_STRIPE = 2;
// Record an already-succeeded Stripe charge without calling Stripe.
CHARGE_METHOD_STRIPE_PAYMENT_INTENT = 3;
// Submit the invoice to Vercel for collection.
CHARGE_METHOD_VERCEL = 4;
}

message CaptureChargeRequest {
Expand Down
4 changes: 4 additions & 0 deletions rust/src/sentry_protos.billing.v1.services.charge.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ pub enum ChargeMethod {
Stripe = 2,
/// Record an already-succeeded Stripe charge without calling Stripe.
StripePaymentIntent = 3,
/// Submit the invoice to Vercel for collection.
Vercel = 4,
}
impl ChargeMethod {
/// String value of the enum field names used in the ProtoBuf definition.
Expand All @@ -140,6 +142,7 @@ impl ChargeMethod {
Self::None => "CHARGE_METHOD_NONE",
Self::Stripe => "CHARGE_METHOD_STRIPE",
Self::StripePaymentIntent => "CHARGE_METHOD_STRIPE_PAYMENT_INTENT",
Self::Vercel => "CHARGE_METHOD_VERCEL",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
Expand All @@ -149,6 +152,7 @@ impl ChargeMethod {
"CHARGE_METHOD_NONE" => Some(Self::None),
"CHARGE_METHOD_STRIPE" => Some(Self::Stripe),
"CHARGE_METHOD_STRIPE_PAYMENT_INTENT" => Some(Self::StripePaymentIntent),
"CHARGE_METHOD_VERCEL" => Some(Self::Vercel),
_ => None,
}
}
Expand Down
Loading