/*
 * 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";
/** @internal */
export const CreateLineItemsForSchoolRequestBody$inboundSchema = z.object({
    lineItems: z.array(components.LineItem$inboundSchema),
});
/** @internal */
export const CreateLineItemsForSchoolRequestBody$outboundSchema = z.object({
    lineItems: z.array(components.LineItem$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateLineItemsForSchoolRequestBody$;
(function (CreateLineItemsForSchoolRequestBody$) {
    /** @deprecated use `CreateLineItemsForSchoolRequestBody$inboundSchema` instead. */
    CreateLineItemsForSchoolRequestBody$.inboundSchema = CreateLineItemsForSchoolRequestBody$inboundSchema;
    /** @deprecated use `CreateLineItemsForSchoolRequestBody$outboundSchema` instead. */
    CreateLineItemsForSchoolRequestBody$.outboundSchema = CreateLineItemsForSchoolRequestBody$outboundSchema;
})(CreateLineItemsForSchoolRequestBody$ || (CreateLineItemsForSchoolRequestBody$ = {}));
export function createLineItemsForSchoolRequestBodyToJSON(createLineItemsForSchoolRequestBody) {
    return JSON.stringify(CreateLineItemsForSchoolRequestBody$outboundSchema.parse(createLineItemsForSchoolRequestBody));
}
export function createLineItemsForSchoolRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateLineItemsForSchoolRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemsForSchoolRequestBody' from JSON`);
}
/** @internal */
export const CreateLineItemsForSchoolRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => CreateLineItemsForSchoolRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const CreateLineItemsForSchoolRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => CreateLineItemsForSchoolRequestBody$outboundSchema),
}).transform((v) => {
    return remap$(v, {
        requestBody: "RequestBody",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateLineItemsForSchoolRequest$;
(function (CreateLineItemsForSchoolRequest$) {
    /** @deprecated use `CreateLineItemsForSchoolRequest$inboundSchema` instead. */
    CreateLineItemsForSchoolRequest$.inboundSchema = CreateLineItemsForSchoolRequest$inboundSchema;
    /** @deprecated use `CreateLineItemsForSchoolRequest$outboundSchema` instead. */
    CreateLineItemsForSchoolRequest$.outboundSchema = CreateLineItemsForSchoolRequest$outboundSchema;
})(CreateLineItemsForSchoolRequest$ || (CreateLineItemsForSchoolRequest$ = {}));
export function createLineItemsForSchoolRequestToJSON(createLineItemsForSchoolRequest) {
    return JSON.stringify(CreateLineItemsForSchoolRequest$outboundSchema.parse(createLineItemsForSchoolRequest));
}
export function createLineItemsForSchoolRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateLineItemsForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemsForSchoolRequest' from JSON`);
}
/** @internal */
export const CreateLineItemsForSchoolSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const CreateLineItemsForSchoolSourcedIdPairs$outboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateLineItemsForSchoolSourcedIdPairs$;
(function (CreateLineItemsForSchoolSourcedIdPairs$) {
    /** @deprecated use `CreateLineItemsForSchoolSourcedIdPairs$inboundSchema` instead. */
    CreateLineItemsForSchoolSourcedIdPairs$.inboundSchema = CreateLineItemsForSchoolSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateLineItemsForSchoolSourcedIdPairs$outboundSchema` instead. */
    CreateLineItemsForSchoolSourcedIdPairs$.outboundSchema = CreateLineItemsForSchoolSourcedIdPairs$outboundSchema;
})(CreateLineItemsForSchoolSourcedIdPairs$ || (CreateLineItemsForSchoolSourcedIdPairs$ = {}));
export function createLineItemsForSchoolSourcedIdPairsToJSON(createLineItemsForSchoolSourcedIdPairs) {
    return JSON.stringify(CreateLineItemsForSchoolSourcedIdPairs$outboundSchema.parse(createLineItemsForSchoolSourcedIdPairs));
}
export function createLineItemsForSchoolSourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateLineItemsForSchoolSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemsForSchoolSourcedIdPairs' from JSON`);
}
/** @internal */
export const CreateLineItemsForSchoolResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateLineItemsForSchoolSourcedIdPairs$inboundSchema),
});
/** @internal */
export const CreateLineItemsForSchoolResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateLineItemsForSchoolSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateLineItemsForSchoolResponse$;
(function (CreateLineItemsForSchoolResponse$) {
    /** @deprecated use `CreateLineItemsForSchoolResponse$inboundSchema` instead. */
    CreateLineItemsForSchoolResponse$.inboundSchema = CreateLineItemsForSchoolResponse$inboundSchema;
    /** @deprecated use `CreateLineItemsForSchoolResponse$outboundSchema` instead. */
    CreateLineItemsForSchoolResponse$.outboundSchema = CreateLineItemsForSchoolResponse$outboundSchema;
})(CreateLineItemsForSchoolResponse$ || (CreateLineItemsForSchoolResponse$ = {}));
export function createLineItemsForSchoolResponseToJSON(createLineItemsForSchoolResponse) {
    return JSON.stringify(CreateLineItemsForSchoolResponse$outboundSchema.parse(createLineItemsForSchoolResponse));
}
export function createLineItemsForSchoolResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateLineItemsForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemsForSchoolResponse' from JSON`);
}
//# sourceMappingURL=createlineitemsforschool.js.map