"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.GetLineItemsForClassResponse$ = exports.GetLineItemsForClassResponse$outboundSchema = exports.GetLineItemsForClassResponse$inboundSchema = exports.GetLineItemsForClassResponseBody$ = exports.GetLineItemsForClassResponseBody$outboundSchema = exports.GetLineItemsForClassResponseBody$inboundSchema = exports.GetLineItemsForClassRequest$ = exports.GetLineItemsForClassRequest$outboundSchema = exports.GetLineItemsForClassRequest$inboundSchema = exports.GetLineItemsForClassOrderBy$ = exports.GetLineItemsForClassOrderBy$outboundSchema = exports.GetLineItemsForClassOrderBy$inboundSchema = exports.GetLineItemsForClassOrderBy = void 0;
exports.getLineItemsForClassRequestToJSON = getLineItemsForClassRequestToJSON;
exports.getLineItemsForClassRequestFromJSON = getLineItemsForClassRequestFromJSON;
exports.getLineItemsForClassResponseBodyToJSON = getLineItemsForClassResponseBodyToJSON;
exports.getLineItemsForClassResponseBodyFromJSON = getLineItemsForClassResponseBodyFromJSON;
exports.getLineItemsForClassResponseToJSON = getLineItemsForClassResponseToJSON;
exports.getLineItemsForClassResponseFromJSON = getLineItemsForClassResponseFromJSON;
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"));
/**
 * The order to sort the response by
 */
exports.GetLineItemsForClassOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
/** @internal */
exports.GetLineItemsForClassOrderBy$inboundSchema = z.nativeEnum(exports.GetLineItemsForClassOrderBy);
/** @internal */
exports.GetLineItemsForClassOrderBy$outboundSchema = exports.GetLineItemsForClassOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var GetLineItemsForClassOrderBy$;
(function (GetLineItemsForClassOrderBy$) {
    /** @deprecated use `GetLineItemsForClassOrderBy$inboundSchema` instead. */
    GetLineItemsForClassOrderBy$.inboundSchema = exports.GetLineItemsForClassOrderBy$inboundSchema;
    /** @deprecated use `GetLineItemsForClassOrderBy$outboundSchema` instead. */
    GetLineItemsForClassOrderBy$.outboundSchema = exports.GetLineItemsForClassOrderBy$outboundSchema;
})(GetLineItemsForClassOrderBy$ || (exports.GetLineItemsForClassOrderBy$ = GetLineItemsForClassOrderBy$ = {}));
/** @internal */
exports.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: exports.GetLineItemsForClassOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
exports.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: exports.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.
 */
var GetLineItemsForClassRequest$;
(function (GetLineItemsForClassRequest$) {
    /** @deprecated use `GetLineItemsForClassRequest$inboundSchema` instead. */
    GetLineItemsForClassRequest$.inboundSchema = exports.GetLineItemsForClassRequest$inboundSchema;
    /** @deprecated use `GetLineItemsForClassRequest$outboundSchema` instead. */
    GetLineItemsForClassRequest$.outboundSchema = exports.GetLineItemsForClassRequest$outboundSchema;
})(GetLineItemsForClassRequest$ || (exports.GetLineItemsForClassRequest$ = GetLineItemsForClassRequest$ = {}));
function getLineItemsForClassRequestToJSON(getLineItemsForClassRequest) {
    return JSON.stringify(exports.GetLineItemsForClassRequest$outboundSchema.parse(getLineItemsForClassRequest));
}
function getLineItemsForClassRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetLineItemsForClassRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForClassRequest' from JSON`);
}
/** @internal */
exports.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 */
exports.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.
 */
var GetLineItemsForClassResponseBody$;
(function (GetLineItemsForClassResponseBody$) {
    /** @deprecated use `GetLineItemsForClassResponseBody$inboundSchema` instead. */
    GetLineItemsForClassResponseBody$.inboundSchema = exports.GetLineItemsForClassResponseBody$inboundSchema;
    /** @deprecated use `GetLineItemsForClassResponseBody$outboundSchema` instead. */
    GetLineItemsForClassResponseBody$.outboundSchema = exports.GetLineItemsForClassResponseBody$outboundSchema;
})(GetLineItemsForClassResponseBody$ || (exports.GetLineItemsForClassResponseBody$ = GetLineItemsForClassResponseBody$ = {}));
function getLineItemsForClassResponseBodyToJSON(getLineItemsForClassResponseBody) {
    return JSON.stringify(exports.GetLineItemsForClassResponseBody$outboundSchema.parse(getLineItemsForClassResponseBody));
}
function getLineItemsForClassResponseBodyFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetLineItemsForClassResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForClassResponseBody' from JSON`);
}
/** @internal */
exports.GetLineItemsForClassResponse$inboundSchema = z.object({
    Result: z.lazy(() => exports.GetLineItemsForClassResponseBody$inboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "Result": "result",
    });
});
/** @internal */
exports.GetLineItemsForClassResponse$outboundSchema = z.object({
    result: z.lazy(() => exports.GetLineItemsForClassResponseBody$outboundSchema),
}).transform((v) => {
    return (0, primitives_js_1.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.
 */
var GetLineItemsForClassResponse$;
(function (GetLineItemsForClassResponse$) {
    /** @deprecated use `GetLineItemsForClassResponse$inboundSchema` instead. */
    GetLineItemsForClassResponse$.inboundSchema = exports.GetLineItemsForClassResponse$inboundSchema;
    /** @deprecated use `GetLineItemsForClassResponse$outboundSchema` instead. */
    GetLineItemsForClassResponse$.outboundSchema = exports.GetLineItemsForClassResponse$outboundSchema;
})(GetLineItemsForClassResponse$ || (exports.GetLineItemsForClassResponse$ = GetLineItemsForClassResponse$ = {}));
function getLineItemsForClassResponseToJSON(getLineItemsForClassResponse) {
    return JSON.stringify(exports.GetLineItemsForClassResponse$outboundSchema.parse(getLineItemsForClassResponse));
}
function getLineItemsForClassResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetLineItemsForClassResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemsForClassResponse' from JSON`);
}
//# sourceMappingURL=getlineitemsforclass.js.map