/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const CreateLineItemRequest$inboundSchema = z.object({
    lineItem: components.LineItem$inboundSchema,
});
/** @internal */
export const CreateLineItemRequest$outboundSchema = z.object({
    lineItem: 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 CreateLineItemRequest$;
(function (CreateLineItemRequest$) {
    /** @deprecated use `CreateLineItemRequest$inboundSchema` instead. */
    CreateLineItemRequest$.inboundSchema = CreateLineItemRequest$inboundSchema;
    /** @deprecated use `CreateLineItemRequest$outboundSchema` instead. */
    CreateLineItemRequest$.outboundSchema = CreateLineItemRequest$outboundSchema;
})(CreateLineItemRequest$ || (CreateLineItemRequest$ = {}));
export function createLineItemRequestToJSON(createLineItemRequest) {
    return JSON.stringify(CreateLineItemRequest$outboundSchema.parse(createLineItemRequest));
}
export function createLineItemRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateLineItemRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemRequest' from JSON`);
}
/** @internal */
export const CreateLineItemSourcedIdPairs$inboundSchema = z.object({
    suppliedSourcedId: z.string(),
    allocatedSourcedId: z.string(),
});
/** @internal */
export const CreateLineItemSourcedIdPairs$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 CreateLineItemSourcedIdPairs$;
(function (CreateLineItemSourcedIdPairs$) {
    /** @deprecated use `CreateLineItemSourcedIdPairs$inboundSchema` instead. */
    CreateLineItemSourcedIdPairs$.inboundSchema = CreateLineItemSourcedIdPairs$inboundSchema;
    /** @deprecated use `CreateLineItemSourcedIdPairs$outboundSchema` instead. */
    CreateLineItemSourcedIdPairs$.outboundSchema = CreateLineItemSourcedIdPairs$outboundSchema;
})(CreateLineItemSourcedIdPairs$ || (CreateLineItemSourcedIdPairs$ = {}));
export function createLineItemSourcedIdPairsToJSON(createLineItemSourcedIdPairs) {
    return JSON.stringify(CreateLineItemSourcedIdPairs$outboundSchema.parse(createLineItemSourcedIdPairs));
}
export function createLineItemSourcedIdPairsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateLineItemSourcedIdPairs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemSourcedIdPairs' from JSON`);
}
/** @internal */
export const CreateLineItemResponse$inboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateLineItemSourcedIdPairs$inboundSchema),
});
/** @internal */
export const CreateLineItemResponse$outboundSchema = z.object({
    sourcedIdPairs: z.lazy(() => CreateLineItemSourcedIdPairs$outboundSchema),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var CreateLineItemResponse$;
(function (CreateLineItemResponse$) {
    /** @deprecated use `CreateLineItemResponse$inboundSchema` instead. */
    CreateLineItemResponse$.inboundSchema = CreateLineItemResponse$inboundSchema;
    /** @deprecated use `CreateLineItemResponse$outboundSchema` instead. */
    CreateLineItemResponse$.outboundSchema = CreateLineItemResponse$outboundSchema;
})(CreateLineItemResponse$ || (CreateLineItemResponse$ = {}));
export function createLineItemResponseToJSON(createLineItemResponse) {
    return JSON.stringify(CreateLineItemResponse$outboundSchema.parse(createLineItemResponse));
}
export function createLineItemResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => CreateLineItemResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateLineItemResponse' from JSON`);
}
//# sourceMappingURL=createlineitem.js.map