/*
 * 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 CreateResultForLineItemRequestBody$inboundSchema = z.object({
    results: z.array(components.Result$inboundSchema),
});
/** @internal */
export const CreateResultForLineItemRequestBody$outboundSchema = z.object({
    results: z.array(components.Result$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateResultForLineItemRequestBody$;
(function (CreateResultForLineItemRequestBody$) {
    /** @deprecated use `CreateResultForLineItemRequestBody$inboundSchema` instead. */
    CreateResultForLineItemRequestBody$.inboundSchema = CreateResultForLineItemRequestBody$inboundSchema;
    /** @deprecated use `CreateResultForLineItemRequestBody$outboundSchema` instead. */
    CreateResultForLineItemRequestBody$.outboundSchema = CreateResultForLineItemRequestBody$outboundSchema;
})(CreateResultForLineItemRequestBody$ || (CreateResultForLineItemRequestBody$ = {}));
export function createResultForLineItemRequestBodyToJSON(createResultForLineItemRequestBody) {
    return JSON.stringify(CreateResultForLineItemRequestBody$outboundSchema.parse(createResultForLineItemRequestBody));
}
export function createResultForLineItemRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateResultForLineItemRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResultForLineItemRequestBody' from JSON`);
}
/** @internal */
export const CreateResultForLineItemRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => CreateResultForLineItemRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const CreateResultForLineItemRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => CreateResultForLineItemRequestBody$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 CreateResultForLineItemRequest$;
(function (CreateResultForLineItemRequest$) {
    /** @deprecated use `CreateResultForLineItemRequest$inboundSchema` instead. */
    CreateResultForLineItemRequest$.inboundSchema = CreateResultForLineItemRequest$inboundSchema;
    /** @deprecated use `CreateResultForLineItemRequest$outboundSchema` instead. */
    CreateResultForLineItemRequest$.outboundSchema = CreateResultForLineItemRequest$outboundSchema;
})(CreateResultForLineItemRequest$ || (CreateResultForLineItemRequest$ = {}));
export function createResultForLineItemRequestToJSON(createResultForLineItemRequest) {
    return JSON.stringify(CreateResultForLineItemRequest$outboundSchema.parse(createResultForLineItemRequest));
}
export function createResultForLineItemRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateResultForLineItemRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResultForLineItemRequest' from JSON`);
}
/** @internal */
export const CreateResultForLineItemSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const CreateResultForLineItemSourcedIdPairs$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 CreateResultForLineItemSourcedIdPairs$;
(function (CreateResultForLineItemSourcedIdPairs$) {
    /** @deprecated use `CreateResultForLineItemSourcedIdPairs$inboundSchema` instead. */
    CreateResultForLineItemSourcedIdPairs$.inboundSchema = CreateResultForLineItemSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateResultForLineItemSourcedIdPairs$outboundSchema` instead. */
    CreateResultForLineItemSourcedIdPairs$.outboundSchema = CreateResultForLineItemSourcedIdPairs$outboundSchema;
})(CreateResultForLineItemSourcedIdPairs$ || (CreateResultForLineItemSourcedIdPairs$ = {}));
export function createResultForLineItemSourcedIdPairsToJSON(createResultForLineItemSourcedIdPairs) {
    return JSON.stringify(CreateResultForLineItemSourcedIdPairs$outboundSchema.parse(createResultForLineItemSourcedIdPairs));
}
export function createResultForLineItemSourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateResultForLineItemSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResultForLineItemSourcedIdPairs' from JSON`);
}
/** @internal */
export const CreateResultForLineItemResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateResultForLineItemSourcedIdPairs$inboundSchema),
});
/** @internal */
export const CreateResultForLineItemResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateResultForLineItemSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateResultForLineItemResponse$;
(function (CreateResultForLineItemResponse$) {
    /** @deprecated use `CreateResultForLineItemResponse$inboundSchema` instead. */
    CreateResultForLineItemResponse$.inboundSchema = CreateResultForLineItemResponse$inboundSchema;
    /** @deprecated use `CreateResultForLineItemResponse$outboundSchema` instead. */
    CreateResultForLineItemResponse$.outboundSchema = CreateResultForLineItemResponse$outboundSchema;
})(CreateResultForLineItemResponse$ || (CreateResultForLineItemResponse$ = {}));
export function createResultForLineItemResponseToJSON(createResultForLineItemResponse) {
    return JSON.stringify(CreateResultForLineItemResponse$outboundSchema.parse(createResultForLineItemResponse));
}
export function createResultForLineItemResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateResultForLineItemResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateResultForLineItemResponse' from JSON`);
}
//# sourceMappingURL=createresultforlineitem.js.map