| |
|
|
| import { z } from 'zod' |
| import * as schemas from '../schemas.js' |
| import type { AcceptDateStrings } from '../../lib/wire.js' |
| import type { |
| Invoice, |
| InvoicePagePaginatedResponse, |
| ListInvoicesParamsFilter, |
| SortQueryInput, |
| UpdateInvoiceRequestInput, |
| } from '../types.js' |
|
|
| export interface ListInvoicesQuery { |
| |
| page?: { size?: number; number?: number } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| sort?: SortQueryInput |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| filter?: ListInvoicesParamsFilter |
| } |
|
|
| export type ListInvoicesRequest = AcceptDateStrings<ListInvoicesQuery> |
| export type ListInvoicesResponse = InvoicePagePaginatedResponse |
|
|
| export type GetInvoiceRequest = { |
| invoiceId: string |
| } |
| export type GetInvoiceResponse = Invoice |
|
|
| export type UpdateInvoiceRequest = AcceptDateStrings<{ |
| invoiceId: string |
| body: UpdateInvoiceRequestInput |
| }> |
| export type UpdateInvoiceResponse = Invoice |
|
|
| export type DeleteInvoiceRequest = { |
| invoiceId: string |
| } |
| export type DeleteInvoiceResponse = void |
|
|
| export type AdvanceInvoiceRequest = { |
| invoiceId: string |
| } |
| export type AdvanceInvoiceResponse = Invoice |
|
|
| export type ApproveInvoiceRequest = { |
| invoiceId: string |
| } |
| export type ApproveInvoiceResponse = Invoice |
|
|
| export type RetryInvoiceRequest = { |
| invoiceId: string |
| } |
| export type RetryInvoiceResponse = Invoice |
|
|
| export type SnapshotQuantitiesInvoiceRequest = { |
| invoiceId: string |
| } |
| export type SnapshotQuantitiesInvoiceResponse = Invoice |
|
|