Skip to content

Commit

Permalink
feat(frontier): accept stripe billing webhook
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma committed May 13, 2024
1 parent 7117ad1 commit 5453a63
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,19 @@ service AdminService {
};
}

// Incoming Webhooks
rpc AcceptBillingWebhook(AcceptBillingWebhookRequest) returns (AcceptBillingWebhookResponse) {
option (google.api.http) = {
post: "/v1beta1/admin/billing/webhook/{provider}",
body: "body"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Webhook";
summary: "Accept Billing webhook";
description: "Accepts a Billing webhook and processes it.";
};
}

// Usage
rpc RevertBillingUsage(RevertBillingUsageRequest) returns (RevertBillingUsageResponse) {
option (google.api.http) = {
Expand Down Expand Up @@ -711,3 +724,10 @@ message ListWebhooksRequest {}
message ListWebhooksResponse {
repeated Webhook webhooks = 1;
}

message AcceptBillingWebhookRequest {
string provider = 1 [(validate.rules).string = {min_len: 1}];
google.protobuf.Struct body = 2;
}

message AcceptBillingWebhookResponse {}

0 comments on commit 5453a63

Please sign in to comment.