/*
 * 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 UpdateLineItemRequestBody$inboundSchema = z.object({
    lineItem: components.LineItem$inboundSchema,
});
/** @internal */
export const UpdateLineItemRequestBody$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 UpdateLineItemRequestBody$;
(function (UpdateLineItemRequestBody$) {
    /** @deprecated use `UpdateLineItemRequestBody$inboundSchema` instead. */
    UpdateLineItemRequestBody$.inboundSchema = UpdateLineItemRequestBody$inboundSchema;
    /** @deprecated use `UpdateLineItemRequestBody$outboundSchema` instead. */
    UpdateLineItemRequestBody$.outboundSchema = UpdateLineItemRequestBody$outboundSchema;
})(UpdateLineItemRequestBody$ || (UpdateLineItemRequestBody$ = {}));
export function updateLineItemRequestBodyToJSON(updateLineItemRequestBody) {
    return JSON.stringify(UpdateLineItemRequestBody$outboundSchema.parse(updateLineItemRequestBody));
}
export function updateLineItemRequestBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateLineItemRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateLineItemRequestBody' from JSON`);
}
/** @internal */
export const UpdateLineItemRequest$inboundSchema = z.object({
    sourcedId: z.string(),
    RequestBody: z.lazy(() => UpdateLineItemRequestBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "RequestBody": "requestBody",
    });
});
/** @internal */
export const UpdateLineItemRequest$outboundSchema = z.object({
    sourcedId: z.string(),
    requestBody: z.lazy(() => UpdateLineItemRequestBody$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 UpdateLineItemRequest$;
(function (UpdateLineItemRequest$) {
    /** @deprecated use `UpdateLineItemRequest$inboundSchema` instead. */
    UpdateLineItemRequest$.inboundSchema = UpdateLineItemRequest$inboundSchema;
    /** @deprecated use `UpdateLineItemRequest$outboundSchema` instead. */
    UpdateLineItemRequest$.outboundSchema = UpdateLineItemRequest$outboundSchema;
})(UpdateLineItemRequest$ || (UpdateLineItemRequest$ = {}));
export function updateLineItemRequestToJSON(updateLineItemRequest) {
    return JSON.stringify(UpdateLineItemRequest$outboundSchema.parse(updateLineItemRequest));
}
export function updateLineItemRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => UpdateLineItemRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateLineItemRequest' from JSON`);
}
//# sourceMappingURL=updatelineitem.js.map