Skip to content

Commit

Permalink
New API endpoint for getting the invoice Id
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnikai committed Jan 22, 2025
1 parent 4196b7d commit 7dd0522
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
18 changes: 17 additions & 1 deletion billing/v1/billing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,13 @@ service Billing {
body: "*"
};
}

rpc GetInvoiceId(GetInvoiceIdRequest) returns (GetInvoiceIdResponse) {
option (google.api.http) = {
get: "/v1/invoiceid"
};
}

}

message BillingGroup {
Expand Down Expand Up @@ -1540,4 +1547,13 @@ message TagsAddingSetting {
string groupId = 1;
string customerId = 2;
repeated string tagKeys = 3;
}
}


message GetInvoiceIdRequest{
string groupId = 1;
}

message GetInvoiceIdResponse {
string invoiceId = 1;
}
38 changes: 38 additions & 0 deletions openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7099,6 +7099,36 @@
]
}
},
"/v1/invoiceid": {
"get": {
"operationId": "Billing_GetInvoiceId",
"responses": {
"200": {
"description": "A successful response.",
"schema": {
"$ref": "#/definitions/v1GetInvoiceIdResponse"
}
},
"default": {
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/googlerpcStatus"
}
}
},
"parameters": [
{
"name": "groupId",
"in": "query",
"required": false,
"type": "string"
}
],
"tags": [
"Billing"
]
}
},
"/v1/invoiceoverviews:read": {
"post": {
"summary": "WORK-IN-PROGRESS: Read the invoice overviews. Only available in Ripple.",
Expand Down Expand Up @@ -26976,6 +27006,14 @@
},
"description": "Response message for the Pricing.GetInfo rpc."
},
"v1GetInvoiceIdResponse": {
"type": "object",
"properties": {
"invoiceId": {
"type": "string"
}
}
},
"v1GetMSPDefaultMetaResponse": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 7dd0522

Please sign in to comment.