/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/**
 * The order to sort the response by
 */
export const GetLineItemsForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
export const GetLineItemsForClassOrderBy$inboundSchema = z.nativeEnum(GetLineItemsForClassOrderBy);
/** @internal */
export const GetLineItemsForClassOrderBy$outboundSchema = GetLineItemsForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetLineItemsForClassOrderBy$;
(function (GetLineItemsForClassOrderBy$) {
    /** @deprecated use `GetLineItemsForClassOrderBy$inboundSchema` instead. */
    GetLineItemsForClassOrderBy$.inboundSchema = GetLineItemsForClassOrderBy$inboundSchema;
    /** @deprecated use `GetLineItemsForClassOrderBy$outboundSchema` instead. */
    GetLineItemsForClassOrderBy$.outboundSchema = GetLineItemsForClassOrderBy$outboundSchema;
})(GetLineItemsForClassOrderBy$ || (GetLineItemsForClassOrderBy$ = {}));
/** @internal */
export const GetLineItemsForClassRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetLineItemsForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetLineItemsForClassRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetLineItemsForClassOrderBy$outboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetLineItemsForClassRequest$;
(function (GetLineItemsForClassRequest$) {
    /** @deprecated use `GetLineItemsForClassRequest$inboundSchema` instead. */
    GetLineItemsForClassRequest$.inboundSchema = GetLineItemsForClassRequest$inboundSchema;
    /** @deprecated use `GetLineItemsForClassRequest$outboundSchema` instead. */
    GetLineItemsForClassRequest$.outboundSchema = GetLineItemsForClassRequest$outboundSchema;
})(GetLineItemsForClassRequest$ || (GetLineItemsForClassRequest$ = {}));
export function getLineItemsForClassRequestToJSON(getLineItemsForClassRequest) {
    return JSON.stringify(GetLineItemsForClassRequest$outboundSchema.parse(getLineItemsForClassRequest));
}
export function getLineItemsForClassRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetLineItemsForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForClassRequest' from JSON`);
}
/** @internal */
export const GetLineItemsForClassResponseBody$inboundSchema = z.object({
    lineItems: z.array(components.LineItem$inboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetLineItemsForClassResponseBody$outboundSchema = z.object({
    lineItems: z.array(components.LineItem$outboundSchema),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetLineItemsForClassResponseBody$;
(function (GetLineItemsForClassResponseBody$) {
    /** @deprecated use `GetLineItemsForClassResponseBody$inboundSchema` instead. */
    GetLineItemsForClassResponseBody$.inboundSchema = GetLineItemsForClassResponseBody$inboundSchema;
    /** @deprecated use `GetLineItemsForClassResponseBody$outboundSchema` instead. */
    GetLineItemsForClassResponseBody$.outboundSchema = GetLineItemsForClassResponseBody$outboundSchema;
})(GetLineItemsForClassResponseBody$ || (GetLineItemsForClassResponseBody$ = {}));
export function getLineItemsForClassResponseBodyToJSON(getLineItemsForClassResponseBody) {
    return JSON.stringify(GetLineItemsForClassResponseBody$outboundSchema.parse(getLineItemsForClassResponseBody));
}
export function getLineItemsForClassResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetLineItemsForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForClassResponseBody' from JSON`);
}
/** @internal */
export const GetLineItemsForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetLineItemsForClassResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetLineItemsForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => GetLineItemsForClassResponseBody$outboundSchema),
}).transform((v) => {
    return remap$(v, {
        result: "Result",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetLineItemsForClassResponse$;
(function (GetLineItemsForClassResponse$) {
    /** @deprecated use `GetLineItemsForClassResponse$inboundSchema` instead. */
    GetLineItemsForClassResponse$.inboundSchema = GetLineItemsForClassResponse$inboundSchema;
    /** @deprecated use `GetLineItemsForClassResponse$outboundSchema` instead. */
    GetLineItemsForClassResponse$.outboundSchema = GetLineItemsForClassResponse$outboundSchema;
})(GetLineItemsForClassResponse$ || (GetLineItemsForClassResponse$ = {}));
export function getLineItemsForClassResponseToJSON(getLineItemsForClassResponse) {
    return JSON.stringify(GetLineItemsForClassResponse$outboundSchema.parse(getLineItemsForClassResponse));
}
export function getLineItemsForClassResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetLineItemsForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForClassResponse' from JSON`);
}
//# sourceMappingURL=getlineitemsforclass.js.map