Skip to content

Commit

Permalink
feat(frontier): accept stripe billing webhook (#358)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma authored May 19, 2024
1 parent 7117ad1 commit 9739b35
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1750,6 +1750,19 @@ service FrontierService {
description: "Get the upcoming invoice of a billing account.";
};
}

// Incoming Webhooks
rpc BillingWebhookCallback(BillingWebhookCallbackRequest) returns (BillingWebhookCallbackResponse) {
option (google.api.http) = {
post: "/v1beta1/billing/webhooks/callback/{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.";
};
}
}

// Billing
Expand Down Expand Up @@ -3689,3 +3702,10 @@ message ListCurrentUserPreferencesRequest {}
message ListCurrentUserPreferencesResponse {
repeated Preference preferences = 1;
}

message BillingWebhookCallbackRequest {
string provider = 1 [(validate.rules).string = {min_len: 1}];
bytes body = 2;
}

message BillingWebhookCallbackResponse {}

0 comments on commit 9739b35

Please sign in to comment.