From 680fa75dfe1a2108580848bd2d465ce58b5c2555 Mon Sep 17 00:00:00 2001 From: markkeshian <115719740+markkeshian@users.noreply.github.com> Date: Fri, 30 Jan 2026 15:40:59 +0800 Subject: [PATCH] bulk create biiling group handle csv --- billing/v1/billing.proto | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/billing/v1/billing.proto b/billing/v1/billing.proto index 68c59e4f..555fc4bb 100644 --- a/billing/v1/billing.proto +++ b/billing/v1/billing.proto @@ -1005,7 +1005,7 @@ service Billing { }; } - // Create billing group in bulk + // Create billing group in bulk from CSV file rpc BulkCreateBillingGroup(BulkCreateBillingGroupRequest) returns (stream BulkCreateBillingGroupResponse) { option (google.api.http) = { post: "/v1/billinggroups:bulkCreate" @@ -3431,8 +3431,14 @@ message SetChildBillingGroupInvoiceServiceDiscountsRequest { } message BulkCreateBillingGroupRequest { - // Required. The list of billing group to create. - repeated CreateBillingGroupRequest request = 1; + // Required. The CSV file content as bytes. + bytes csvContent = 1; + + // Optional. The delimiter used in the CSV file. Defaults to comma (,). + string delimiter = 2; + + // Optional. Whether the CSV file has a header row. Defaults to true. + bool hasHeader = 3; } message BulkCreateBillingGroupResponse {