"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.CreateLineItemsForSchoolResponse$ = exports.CreateLineItemsForSchoolResponse$outboundSchema = exports.CreateLineItemsForSchoolResponse$inboundSchema = exports.CreateLineItemsForSchoolSourcedIdPairs$ = exports.CreateLineItemsForSchoolSourcedIdPairs$outboundSchema = exports.CreateLineItemsForSchoolSourcedIdPairs$inboundSchema = exports.CreateLineItemsForSchoolRequest$ = exports.CreateLineItemsForSchoolRequest$outboundSchema = exports.CreateLineItemsForSchoolRequest$inboundSchema = exports.CreateLineItemsForSchoolRequestBody$ = exports.CreateLineItemsForSchoolRequestBody$outboundSchema = exports.CreateLineItemsForSchoolRequestBody$inboundSchema = void 0;
exports.createLineItemsForSchoolRequestBodyToJSON = createLineItemsForSchoolRequestBodyToJSON;
exports.createLineItemsForSchoolRequestBodyFromJSON = createLineItemsForSchoolRequestBodyFromJSON;
exports.createLineItemsForSchoolRequestToJSON = createLineItemsForSchoolRequestToJSON;
exports.createLineItemsForSchoolRequestFromJSON = createLineItemsForSchoolRequestFromJSON;
exports.createLineItemsForSchoolSourcedIdPairsToJSON = createLineItemsForSchoolSourcedIdPairsToJSON;
exports.createLineItemsForSchoolSourcedIdPairsFromJSON = createLineItemsForSchoolSourcedIdPairsFromJSON;
exports.createLineItemsForSchoolResponseToJSON = createLineItemsForSchoolResponseToJSON;
exports.createLineItemsForSchoolResponseFromJSON = createLineItemsForSchoolResponseFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
const components = __importStar(require("../components/index.js"));
/** @internal */
exports.CreateLineItemsForSchoolRequestBody$inboundSchema = z.object({
    lineItems: z.array(components.LineItem$inboundSchema),
});
/** @internal */
exports.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.
 */
var CreateLineItemsForSchoolRequestBody$;
(function (CreateLineItemsForSchoolRequestBody$) {
    /** @deprecated use `CreateLineItemsForSchoolRequestBody$inboundSchema` instead. */
    CreateLineItemsForSchoolRequestBody$.inboundSchema = exports.CreateLineItemsForSchoolRequestBody$inboundSchema;
    /** @deprecated use `CreateLineItemsForSchoolRequestBody$outboundSchema` instead. */
    CreateLineItemsForSchoolRequestBody$.outboundSchema = exports.CreateLineItemsForSchoolRequestBody$outboundSchema;
})(CreateLineItemsForSchoolRequestBody$ || (exports.CreateLineItemsForSchoolRequestBody$ = CreateLineItemsForSchoolRequestBody$ = {}));
function createLineItemsForSchoolRequestBodyToJSON(createLineItemsForSchoolRequestBody) {
    return JSON.stringify(exports.CreateLineItemsForSchoolRequestBody$outboundSchema.parse(createLineItemsForSchoolRequestBody));
}
function createLineItemsForSchoolRequestBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateLineItemsForSchoolRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemsForSchoolRequestBody' from JSON`);
}
/** @internal */
exports.CreateLineItemsForSchoolRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => exports.CreateLineItemsForSchoolRequestBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
exports.CreateLineItemsForSchoolRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => exports.CreateLineItemsForSchoolRequestBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var CreateLineItemsForSchoolRequest$;
(function (CreateLineItemsForSchoolRequest$) {
    /** @deprecated use `CreateLineItemsForSchoolRequest$inboundSchema` instead. */
    CreateLineItemsForSchoolRequest$.inboundSchema = exports.CreateLineItemsForSchoolRequest$inboundSchema;
    /** @deprecated use `CreateLineItemsForSchoolRequest$outboundSchema` instead. */
    CreateLineItemsForSchoolRequest$.outboundSchema = exports.CreateLineItemsForSchoolRequest$outboundSchema;
})(CreateLineItemsForSchoolRequest$ || (exports.CreateLineItemsForSchoolRequest$ = CreateLineItemsForSchoolRequest$ = {}));
function createLineItemsForSchoolRequestToJSON(createLineItemsForSchoolRequest) {
    return JSON.stringify(exports.CreateLineItemsForSchoolRequest$outboundSchema.parse(createLineItemsForSchoolRequest));
}
function createLineItemsForSchoolRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateLineItemsForSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemsForSchoolRequest' from JSON`);
}
/** @internal */
exports.CreateLineItemsForSchoolSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
exports.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.
 */
var CreateLineItemsForSchoolSourcedIdPairs$;
(function (CreateLineItemsForSchoolSourcedIdPairs$) {
    /** @deprecated use `CreateLineItemsForSchoolSourcedIdPairs$inboundSchema` instead. */
    CreateLineItemsForSchoolSourcedIdPairs$.inboundSchema = exports.CreateLineItemsForSchoolSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateLineItemsForSchoolSourcedIdPairs$outboundSchema` instead. */
    CreateLineItemsForSchoolSourcedIdPairs$.outboundSchema = exports.CreateLineItemsForSchoolSourcedIdPairs$outboundSchema;
})(CreateLineItemsForSchoolSourcedIdPairs$ || (exports.CreateLineItemsForSchoolSourcedIdPairs$ = CreateLineItemsForSchoolSourcedIdPairs$ = {}));
function createLineItemsForSchoolSourcedIdPairsToJSON(createLineItemsForSchoolSourcedIdPairs) {
    return JSON.stringify(exports.CreateLineItemsForSchoolSourcedIdPairs$outboundSchema.parse(createLineItemsForSchoolSourcedIdPairs));
}
function createLineItemsForSchoolSourcedIdPairsFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateLineItemsForSchoolSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemsForSchoolSourcedIdPairs' from JSON`);
}
/** @internal */
exports.CreateLineItemsForSchoolResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateLineItemsForSchoolSourcedIdPairs$inboundSchema),
});
/** @internal */
exports.CreateLineItemsForSchoolResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => exports.CreateLineItemsForSchoolSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CreateLineItemsForSchoolResponse$;
(function (CreateLineItemsForSchoolResponse$) {
    /** @deprecated use `CreateLineItemsForSchoolResponse$inboundSchema` instead. */
    CreateLineItemsForSchoolResponse$.inboundSchema = exports.CreateLineItemsForSchoolResponse$inboundSchema;
    /** @deprecated use `CreateLineItemsForSchoolResponse$outboundSchema` instead. */
    CreateLineItemsForSchoolResponse$.outboundSchema = exports.CreateLineItemsForSchoolResponse$outboundSchema;
})(CreateLineItemsForSchoolResponse$ || (exports.CreateLineItemsForSchoolResponse$ = CreateLineItemsForSchoolResponse$ = {}));
function createLineItemsForSchoolResponseToJSON(createLineItemsForSchoolResponse) {
    return JSON.stringify(exports.CreateLineItemsForSchoolResponse$outboundSchema.parse(createLineItemsForSchoolResponse));
}
function createLineItemsForSchoolResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateLineItemsForSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemsForSchoolResponse' from JSON`);
}
//# sourceMappingURL=createlineitemsforschool.js.map