File size: 1,213 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 {
  CreateTaxCodeRequest as CreateTaxCodeRequestBody,
  TaxCode,
  TaxCodePagePaginatedResponse,
  UpsertTaxCodeRequest as UpsertTaxCodeRequestBody,
} from '../types.js'

export type CreateTaxCodeRequest = AcceptDateStrings<CreateTaxCodeRequestBody>
export type CreateTaxCodeResponse = TaxCode

export type GetTaxCodeRequest = {
  taxCodeId: string
}
export type GetTaxCodeResponse = TaxCode

export interface ListTaxCodesQuery {
  /** Determines which page of the collection to retrieve. */
  page?: { size?: number; number?: number }
  /** Include deleted tax codes in the response. */
  includeDeleted?: boolean
}

export type ListTaxCodesRequest = AcceptDateStrings<ListTaxCodesQuery>
export type ListTaxCodesResponse = TaxCodePagePaginatedResponse

export type UpsertTaxCodeRequest = AcceptDateStrings<{
  taxCodeId: string
  body: UpsertTaxCodeRequestBody
}>
export type UpsertTaxCodeResponse = TaxCode

export type DeleteTaxCodeRequest = {
  taxCodeId: string
}
export type DeleteTaxCodeResponse = void