From 460944e2a74100c490e9b6969d7ed4413d116b9d Mon Sep 17 00:00:00 2001 From: Anuj Khandelwal Date: Tue, 2 Apr 2024 17:07:00 +0530 Subject: [PATCH] fix: make billing_id optional in entitlement check request --- raystack/frontier/v1beta1/frontier.proto | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/raystack/frontier/v1beta1/frontier.proto b/raystack/frontier/v1beta1/frontier.proto index 72303a9f..a595b1ea 100644 --- a/raystack/frontier/v1beta1/frontier.proto +++ b/raystack/frontier/v1beta1/frontier.proto @@ -1956,7 +1956,10 @@ message ListPlansResponse { message CheckFeatureEntitlementRequest { string org_id = 1; // ID of the billing account to update the subscription for - string billing_id = 2 [(validate.rules).string.uuid = true]; + string billing_id = 2 [(validate.rules).string = { + ignore_empty: true, + uuid: true + }]; // either provide billing_id of the org or API can infer the default // billing ID from either org_id or project_id, not both