File size: 1,185 Bytes
1477a90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// Code generated by @openmeter/typespec-typescript. DO NOT EDIT.

import { z } from 'zod'
import * as schemas from '../schemas.js'
import type { AcceptDateStrings } from '../../lib/wire.js'
import type {
  CreateBillingProfileRequestInput,
  Profile,
  ProfilePagePaginatedResponse,
  UpsertBillingProfileRequestInput,
} from '../types.js'

export interface ListBillingProfilesQuery {
  /** Determines which page of the collection to retrieve. */
  page?: { size?: number; number?: number }
}

export type ListBillingProfilesRequest =
  AcceptDateStrings<ListBillingProfilesQuery>
export type ListBillingProfilesResponse = ProfilePagePaginatedResponse

export type CreateBillingProfileRequest =
  AcceptDateStrings<CreateBillingProfileRequestInput>
export type CreateBillingProfileResponse = Profile

export type GetBillingProfileRequest = {
  id: string
}
export type GetBillingProfileResponse = Profile

export type UpdateBillingProfileRequest = AcceptDateStrings<{
  id: string
  body: UpsertBillingProfileRequestInput
}>
export type UpdateBillingProfileResponse = Profile

export type DeleteBillingProfileRequest = {
  id: string
}
export type DeleteBillingProfileResponse = void