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 bc9aec8
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 AcceptBillingWebhook(AcceptBillingWebhookRequest) returns (AcceptBillingWebhookResponse) {
option (google.api.http) = {
post: "/v1beta1/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.";
};
}
}

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

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

message AcceptBillingWebhookResponse {}

0 comments on commit bc9aec8

Please sign in to comment.