@@ -278,6 +278,35 @@ export interface ApiHttpBody {
278278 extensions ?: ProtobufAny [ ] ;
279279}
280280
281+ export interface Frontierv1Beta1Invoice {
282+ id ?: string ;
283+ customer_id ?: string ;
284+ provider_id ?: string ;
285+ state ?: string ;
286+ currency ?: string ;
287+ /** @format int64 */
288+ amount ?: string ;
289+ hosted_url ?: string ;
290+ /**
291+ * The date on which payment for this invoice is due
292+ * @format date-time
293+ */
294+ due_date ?: string ;
295+ /**
296+ * The date when this invoice is in effect.
297+ * @format date-time
298+ */
299+ effective_at ?: string ;
300+ /** @format date-time */
301+ period_start_at ?: string ;
302+ /** @format date-time */
303+ period_end_at ?: string ;
304+ metadata ?: object ;
305+ /** @format date-time */
306+ created_at ?: string ;
307+ customer ?: V1Beta1BillingAccount ;
308+ }
309+
281310export interface Frontierv1Beta1OrganizationRequestBody {
282311 /** The name of the organization. The name must be unique within the entire Frontier instance. The name can contain only alphanumeric characters, dashes and underscores.<br/>*Example:*`"frontier-org1-acme"` */
283312 name : string ;
@@ -1222,7 +1251,7 @@ export interface V1Beta1GetSubscriptionResponse {
12221251
12231252export interface V1Beta1GetUpcomingInvoiceResponse {
12241253 /** Upcoming invoice */
1225- invoice ?: V1Beta1Invoice ;
1254+ invoice ?: Frontierv1Beta1Invoice ;
12261255}
12271256
12281257export interface V1Beta1GetUserResponse {
@@ -1315,35 +1344,6 @@ export interface V1Beta1Invitation {
13151344 role_ids ?: string [ ] ;
13161345}
13171346
1318- export interface V1Beta1Invoice {
1319- id ?: string ;
1320- customer_id ?: string ;
1321- provider_id ?: string ;
1322- state ?: string ;
1323- currency ?: string ;
1324- /** @format int64 */
1325- amount ?: string ;
1326- hosted_url ?: string ;
1327- /**
1328- * The date on which payment for this invoice is due
1329- * @format date-time
1330- */
1331- due_date ?: string ;
1332- /**
1333- * The date when this invoice is in effect.
1334- * @format date-time
1335- */
1336- effective_at ?: string ;
1337- /** @format date-time */
1338- period_start_at ?: string ;
1339- /** @format date-time */
1340- period_end_at ?: string ;
1341- metadata ?: object ;
1342- /** @format date-time */
1343- created_at ?: string ;
1344- customer ?: V1Beta1BillingAccount ;
1345- }
1346-
13471347/** JSON Web Key as specified in RFC 7517 */
13481348export interface V1Beta1JSONWebKey {
13491349 /** Key Type. */
@@ -1381,7 +1381,7 @@ export interface V1Beta1ListAllBillingAccountsResponse {
13811381}
13821382
13831383export interface V1Beta1ListAllInvoicesResponse {
1384- invoices ?: V1Beta1Invoice [ ] ;
1384+ invoices ?: Frontierv1Beta1Invoice [ ] ;
13851385 /**
13861386 * Total number of records present
13871387 * @format int32
@@ -1466,7 +1466,7 @@ export interface V1Beta1ListGroupsResponse {
14661466
14671467export interface V1Beta1ListInvoicesResponse {
14681468 /** List of invoices */
1469- invoices ?: V1Beta1Invoice [ ] ;
1469+ invoices ?: Frontierv1Beta1Invoice [ ] ;
14701470}
14711471
14721472export interface V1Beta1ListMetaSchemasResponse {
@@ -2271,6 +2271,26 @@ export interface V1Beta1RoleRequestBody {
22712271 scopes ?: string [ ] ;
22722272}
22732273
2274+ export interface V1Beta1SearchInvoicesResponse {
2275+ invoices ?: V1Beta1SearchInvoicesResponseInvoice [ ] ;
2276+ pagination ?: V1Beta1RQLQueryPaginationResponse ;
2277+ group ?: V1Beta1RQLQueryGroupResponse ;
2278+ }
2279+
2280+ export interface V1Beta1SearchInvoicesResponseInvoice {
2281+ id ?: string ;
2282+ /** @format int64 */
2283+ amount ?: string ;
2284+ currency ?: string ;
2285+ state ?: string ;
2286+ invoice_link ?: string ;
2287+ /** @format date-time */
2288+ created_at ?: string ;
2289+ org_id ?: string ;
2290+ org_name ?: string ;
2291+ org_title ?: string ;
2292+ }
2293+
22742294export interface V1Beta1SearchOrganizationInvoicesResponse {
22752295 organization_invoices ?: SearchOrganizationInvoicesResponseOrganizationInvoice [ ] ;
22762296 pagination ?: V1Beta1RQLQueryPaginationResponse ;
@@ -2979,6 +2999,29 @@ export class Api<
29792999 ...params ,
29803000 } ) ,
29813001
3002+ /**
3003+ * No description
3004+ *
3005+ * @tags invoice
3006+ * @name AdminServiceSearchInvoices
3007+ * @summary Search invoices across all organizations
3008+ * @request POST:/v1beta1/admin/invoices/search
3009+ * @secure
3010+ */
3011+ adminServiceSearchInvoices : (
3012+ query : V1Beta1RQLRequest ,
3013+ params : RequestParams = { } ,
3014+ ) =>
3015+ this . request < V1Beta1SearchInvoicesResponse , GooglerpcStatus > ( {
3016+ path : `/v1beta1/admin/invoices/search` ,
3017+ method : "POST" ,
3018+ body : query ,
3019+ secure : true ,
3020+ type : ContentType . Json ,
3021+ format : "json" ,
3022+ ...params ,
3023+ } ) ,
3024+
29823025 /**
29833026 * @description Lists all the organizations in a Frontier instance. It can be filtered by user and state.
29843027 *
0 commit comments