File tree Expand file tree Collapse file tree
raystack/frontier/v1beta1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -741,6 +741,17 @@ service AdminService {
741741 };
742742 }
743743
744+ rpc SearchInvoices (SearchInvoicesRequest ) returns (SearchInvoicesResponse ) {
745+ option (google.api.http ) = {
746+ post : "/v1beta1/admin/invoices/search" ,
747+ body : "query"
748+ };
749+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
750+ tags : "invoice" ;
751+ summary : "Search invoices across all organizations" ;
752+ };
753+ }
754+
744755}
745756
746757message ListAllUsersRequest {
@@ -1597,3 +1608,26 @@ message AdminCreateOrganizationRequest {
15971608message AdminCreateOrganizationResponse {
15981609 Organization organization = 1 ;
15991610}
1611+
1612+ message SearchInvoicesRequest {
1613+ string id = 1 [(validate.rules ) .string.min_len = 3 ];
1614+ RQLRequest query = 2 ;
1615+ }
1616+
1617+ message SearchInvoicesResponse {
1618+ message Invoice {
1619+ string id = 1 ;
1620+ int64 amount = 2 ;
1621+ string currency = 3 ;
1622+ string state = 4 ;
1623+ string invoice_link = 5 ;
1624+ google.protobuf.Timestamp created_at = 6 ;
1625+ string org_id = 7 ;
1626+ string org_name = 8 ;
1627+ string org_title = 9 ;
1628+ }
1629+
1630+ repeated Invoice invoices = 1 ;
1631+ RQLQueryPaginationResponse pagination = 2 ;
1632+ RQLQueryGroupResponse group = 3 ;
1633+ }
You can’t perform that action at this time.
0 commit comments