/*
 * 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 GetLineItemRequest$inboundSchema = z.object({
    sourcedId: z.string(),
});
/** @internal */
export const GetLineItemRequest$outboundSchema = z.object({
    sourcedId: 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 GetLineItemRequest$;
(function (GetLineItemRequest$) {
    /** @deprecated use `GetLineItemRequest$inboundSchema` instead. */
    GetLineItemRequest$.inboundSchema = GetLineItemRequest$inboundSchema;
    /** @deprecated use `GetLineItemRequest$outboundSchema` instead. */
    GetLineItemRequest$.outboundSchema = GetLineItemRequest$outboundSchema;
})(GetLineItemRequest$ || (GetLineItemRequest$ = {}));
export function getLineItemRequestToJSON(getLineItemRequest) {
    return JSON.stringify(GetLineItemRequest$outboundSchema.parse(getLineItemRequest));
}
export function getLineItemRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetLineItemRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemRequest' from JSON`);
}
/** @internal */
export const GetLineItemResponse$inboundSchema = z.object({
    lineItem: components.LineItem$inboundSchema,
});
/** @internal */
export const GetLineItemResponse$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 GetLineItemResponse$;
(function (GetLineItemResponse$) {
    /** @deprecated use `GetLineItemResponse$inboundSchema` instead. */
    GetLineItemResponse$.inboundSchema = GetLineItemResponse$inboundSchema;
    /** @deprecated use `GetLineItemResponse$outboundSchema` instead. */
    GetLineItemResponse$.outboundSchema = GetLineItemResponse$outboundSchema;
})(GetLineItemResponse$ || (GetLineItemResponse$ = {}));
export function getLineItemResponseToJSON(getLineItemResponse) {
    return JSON.stringify(GetLineItemResponse$outboundSchema.parse(getLineItemResponse));
}
export function getLineItemResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetLineItemResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetLineItemResponse' from JSON`);
}
//# sourceMappingURL=getlineitem.js.map