import type { AcceptDateStrings } from '../../lib/wire.js'; import type { CreatePlanAddonRequest as CreatePlanAddonRequestBody, ListPlanAddonsParamsFilter, PlanAddon, PlanAddonPagePaginatedResponse, SortQueryInput, UpsertPlanAddonRequest } from '../types.js'; export interface ListPlanAddonsQuery { /** Determines which page of the collection to retrieve. */ page?: { size?: number; number?: number; }; /** * Sort plan add-ons returned in the response. Supported sort attributes are: * * - `id` (default) * - `created_at` * - `updated_at` * * The `asc` suffix is optional as the default sort order is ascending. The `desc` * suffix is used to specify a descending order. */ sort?: SortQueryInput; /** Filter plan add-ons returned in the response. */ filter?: ListPlanAddonsParamsFilter; } export type ListPlanAddonsRequest = AcceptDateStrings; export type ListPlanAddonsResponse = PlanAddonPagePaginatedResponse; export type CreatePlanAddonRequest = AcceptDateStrings<{ planId: string; body: CreatePlanAddonRequestBody; }>; export type CreatePlanAddonResponse = PlanAddon; export type GetPlanAddonRequest = { planId: string; planAddonId: string; }; export type GetPlanAddonResponse = PlanAddon; export type UpdatePlanAddonRequest = AcceptDateStrings<{ planId: string; planAddonId: string; body: UpsertPlanAddonRequest; }>; export type UpdatePlanAddonResponse = PlanAddon; export type DeletePlanAddonRequest = { planId: string; planAddonId: string; }; export type DeletePlanAddonResponse = void;