"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.AccountingJournalCreateRequestDto$ = exports.AccountingJournalCreateRequestDto$outboundSchema = exports.AccountingJournalCreateRequestDto$inboundSchema = exports.CurrencyCode$ = exports.CurrencyCode$outboundSchema = exports.CurrencyCode$inboundSchema = exports.AccountingJournalCreateRequestDtoValue$ = exports.AccountingJournalCreateRequestDtoValue$outboundSchema = exports.AccountingJournalCreateRequestDtoValue$inboundSchema = exports.AccountingJournalCreateRequestDtoSourceValue$ = exports.AccountingJournalCreateRequestDtoSourceValue$outboundSchema = exports.AccountingJournalCreateRequestDtoSourceValue$inboundSchema = exports.AccountingJournalCreateRequestDto4$ = exports.AccountingJournalCreateRequestDto4$outboundSchema = exports.AccountingJournalCreateRequestDto4$inboundSchema = exports.AccountingJournalCreateRequestDtoValue = void 0;
exports.accountingJournalCreateRequestDto4ToJSON = accountingJournalCreateRequestDto4ToJSON;
exports.accountingJournalCreateRequestDto4FromJSON = accountingJournalCreateRequestDto4FromJSON;
exports.accountingJournalCreateRequestDtoSourceValueToJSON = accountingJournalCreateRequestDtoSourceValueToJSON;
exports.accountingJournalCreateRequestDtoSourceValueFromJSON = accountingJournalCreateRequestDtoSourceValueFromJSON;
exports.currencyCodeToJSON = currencyCodeToJSON;
exports.currencyCodeFromJSON = currencyCodeFromJSON;
exports.accountingJournalCreateRequestDtoToJSON = accountingJournalCreateRequestDtoToJSON;
exports.accountingJournalCreateRequestDtoFromJSON = accountingJournalCreateRequestDtoFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const enums_js_1 = require("../../types/enums.js");
const createjournalline_js_1 = require("./createjournalline.js");
/**
 * Default currency for the company
 */
var AccountingJournalCreateRequestDtoValue;
(function (AccountingJournalCreateRequestDtoValue) {
    AccountingJournalCreateRequestDtoValue["Aed"] = "AED";
    AccountingJournalCreateRequestDtoValue["Afn"] = "AFN";
    AccountingJournalCreateRequestDtoValue["All"] = "ALL";
    AccountingJournalCreateRequestDtoValue["Amd"] = "AMD";
    AccountingJournalCreateRequestDtoValue["Ang"] = "ANG";
    AccountingJournalCreateRequestDtoValue["Aoa"] = "AOA";
    AccountingJournalCreateRequestDtoValue["Ars"] = "ARS";
    AccountingJournalCreateRequestDtoValue["Aud"] = "AUD";
    AccountingJournalCreateRequestDtoValue["Awg"] = "AWG";
    AccountingJournalCreateRequestDtoValue["Azn"] = "AZN";
    AccountingJournalCreateRequestDtoValue["Bam"] = "BAM";
    AccountingJournalCreateRequestDtoValue["Bbd"] = "BBD";
    AccountingJournalCreateRequestDtoValue["Bdt"] = "BDT";
    AccountingJournalCreateRequestDtoValue["Bgn"] = "BGN";
    AccountingJournalCreateRequestDtoValue["Bhd"] = "BHD";
    AccountingJournalCreateRequestDtoValue["Bif"] = "BIF";
    AccountingJournalCreateRequestDtoValue["Bmd"] = "BMD";
    AccountingJournalCreateRequestDtoValue["Bnd"] = "BND";
    AccountingJournalCreateRequestDtoValue["Bob"] = "BOB";
    AccountingJournalCreateRequestDtoValue["Brl"] = "BRL";
    AccountingJournalCreateRequestDtoValue["Bsd"] = "BSD";
    AccountingJournalCreateRequestDtoValue["Btn"] = "BTN";
    AccountingJournalCreateRequestDtoValue["Bwp"] = "BWP";
    AccountingJournalCreateRequestDtoValue["Byn"] = "BYN";
    AccountingJournalCreateRequestDtoValue["Bzd"] = "BZD";
    AccountingJournalCreateRequestDtoValue["Cad"] = "CAD";
    AccountingJournalCreateRequestDtoValue["Cdf"] = "CDF";
    AccountingJournalCreateRequestDtoValue["Chf"] = "CHF";
    AccountingJournalCreateRequestDtoValue["Clp"] = "CLP";
    AccountingJournalCreateRequestDtoValue["Cny"] = "CNY";
    AccountingJournalCreateRequestDtoValue["Cop"] = "COP";
    AccountingJournalCreateRequestDtoValue["Crc"] = "CRC";
    AccountingJournalCreateRequestDtoValue["Cuc"] = "CUC";
    AccountingJournalCreateRequestDtoValue["Cup"] = "CUP";
    AccountingJournalCreateRequestDtoValue["Cve"] = "CVE";
    AccountingJournalCreateRequestDtoValue["Czk"] = "CZK";
    AccountingJournalCreateRequestDtoValue["Djf"] = "DJF";
    AccountingJournalCreateRequestDtoValue["Dkk"] = "DKK";
    AccountingJournalCreateRequestDtoValue["Dop"] = "DOP";
    AccountingJournalCreateRequestDtoValue["Dzd"] = "DZD";
    AccountingJournalCreateRequestDtoValue["Egp"] = "EGP";
    AccountingJournalCreateRequestDtoValue["Ern"] = "ERN";
    AccountingJournalCreateRequestDtoValue["Etb"] = "ETB";
    AccountingJournalCreateRequestDtoValue["Eur"] = "EUR";
    AccountingJournalCreateRequestDtoValue["Fjd"] = "FJD";
    AccountingJournalCreateRequestDtoValue["Fkp"] = "FKP";
    AccountingJournalCreateRequestDtoValue["Gbp"] = "GBP";
    AccountingJournalCreateRequestDtoValue["Gel"] = "GEL";
    AccountingJournalCreateRequestDtoValue["Ghs"] = "GHS";
    AccountingJournalCreateRequestDtoValue["Gip"] = "GIP";
    AccountingJournalCreateRequestDtoValue["Gmd"] = "GMD";
    AccountingJournalCreateRequestDtoValue["Gnf"] = "GNF";
    AccountingJournalCreateRequestDtoValue["Gtq"] = "GTQ";
    AccountingJournalCreateRequestDtoValue["Gyd"] = "GYD";
    AccountingJournalCreateRequestDtoValue["Hkd"] = "HKD";
    AccountingJournalCreateRequestDtoValue["Hnl"] = "HNL";
    AccountingJournalCreateRequestDtoValue["Hrk"] = "HRK";
    AccountingJournalCreateRequestDtoValue["Htg"] = "HTG";
    AccountingJournalCreateRequestDtoValue["Huf"] = "HUF";
    AccountingJournalCreateRequestDtoValue["Idr"] = "IDR";
    AccountingJournalCreateRequestDtoValue["Ils"] = "ILS";
    AccountingJournalCreateRequestDtoValue["Inr"] = "INR";
    AccountingJournalCreateRequestDtoValue["Iqd"] = "IQD";
    AccountingJournalCreateRequestDtoValue["Irr"] = "IRR";
    AccountingJournalCreateRequestDtoValue["Isk"] = "ISK";
    AccountingJournalCreateRequestDtoValue["Jmd"] = "JMD";
    AccountingJournalCreateRequestDtoValue["Jod"] = "JOD";
    AccountingJournalCreateRequestDtoValue["Jpy"] = "JPY";
    AccountingJournalCreateRequestDtoValue["Kes"] = "KES";
    AccountingJournalCreateRequestDtoValue["Kgs"] = "KGS";
    AccountingJournalCreateRequestDtoValue["Khr"] = "KHR";
    AccountingJournalCreateRequestDtoValue["Kmf"] = "KMF";
    AccountingJournalCreateRequestDtoValue["Kpw"] = "KPW";
    AccountingJournalCreateRequestDtoValue["Krw"] = "KRW";
    AccountingJournalCreateRequestDtoValue["Kwd"] = "KWD";
    AccountingJournalCreateRequestDtoValue["Kyd"] = "KYD";
    AccountingJournalCreateRequestDtoValue["Kzt"] = "KZT";
    AccountingJournalCreateRequestDtoValue["Lak"] = "LAK";
    AccountingJournalCreateRequestDtoValue["Lbp"] = "LBP";
    AccountingJournalCreateRequestDtoValue["Lkr"] = "LKR";
    AccountingJournalCreateRequestDtoValue["Lrd"] = "LRD";
    AccountingJournalCreateRequestDtoValue["Lsl"] = "LSL";
    AccountingJournalCreateRequestDtoValue["Lyd"] = "LYD";
    AccountingJournalCreateRequestDtoValue["Mad"] = "MAD";
    AccountingJournalCreateRequestDtoValue["Mdl"] = "MDL";
    AccountingJournalCreateRequestDtoValue["Mga"] = "MGA";
    AccountingJournalCreateRequestDtoValue["Mkd"] = "MKD";
    AccountingJournalCreateRequestDtoValue["Mmk"] = "MMK";
    AccountingJournalCreateRequestDtoValue["Mnt"] = "MNT";
    AccountingJournalCreateRequestDtoValue["Mop"] = "MOP";
    AccountingJournalCreateRequestDtoValue["Mru"] = "MRU";
    AccountingJournalCreateRequestDtoValue["Mur"] = "MUR";
    AccountingJournalCreateRequestDtoValue["Mvr"] = "MVR";
    AccountingJournalCreateRequestDtoValue["Mwk"] = "MWK";
    AccountingJournalCreateRequestDtoValue["Mxn"] = "MXN";
    AccountingJournalCreateRequestDtoValue["Myr"] = "MYR";
    AccountingJournalCreateRequestDtoValue["Mzn"] = "MZN";
    AccountingJournalCreateRequestDtoValue["Nad"] = "NAD";
    AccountingJournalCreateRequestDtoValue["Ngn"] = "NGN";
    AccountingJournalCreateRequestDtoValue["Nio"] = "NIO";
    AccountingJournalCreateRequestDtoValue["Nok"] = "NOK";
    AccountingJournalCreateRequestDtoValue["Npr"] = "NPR";
    AccountingJournalCreateRequestDtoValue["Nzd"] = "NZD";
    AccountingJournalCreateRequestDtoValue["Omr"] = "OMR";
    AccountingJournalCreateRequestDtoValue["Pab"] = "PAB";
    AccountingJournalCreateRequestDtoValue["Pen"] = "PEN";
    AccountingJournalCreateRequestDtoValue["Pgk"] = "PGK";
    AccountingJournalCreateRequestDtoValue["Php"] = "PHP";
    AccountingJournalCreateRequestDtoValue["Pkr"] = "PKR";
    AccountingJournalCreateRequestDtoValue["Pln"] = "PLN";
    AccountingJournalCreateRequestDtoValue["Pyg"] = "PYG";
    AccountingJournalCreateRequestDtoValue["Qar"] = "QAR";
    AccountingJournalCreateRequestDtoValue["Ron"] = "RON";
    AccountingJournalCreateRequestDtoValue["Rsd"] = "RSD";
    AccountingJournalCreateRequestDtoValue["Rub"] = "RUB";
    AccountingJournalCreateRequestDtoValue["Rwf"] = "RWF";
    AccountingJournalCreateRequestDtoValue["Sar"] = "SAR";
    AccountingJournalCreateRequestDtoValue["Sbd"] = "SBD";
    AccountingJournalCreateRequestDtoValue["Scr"] = "SCR";
    AccountingJournalCreateRequestDtoValue["Sdg"] = "SDG";
    AccountingJournalCreateRequestDtoValue["Sek"] = "SEK";
    AccountingJournalCreateRequestDtoValue["Sgd"] = "SGD";
    AccountingJournalCreateRequestDtoValue["Shp"] = "SHP";
    AccountingJournalCreateRequestDtoValue["Sll"] = "SLL";
    AccountingJournalCreateRequestDtoValue["Sos"] = "SOS";
    AccountingJournalCreateRequestDtoValue["Srd"] = "SRD";
    AccountingJournalCreateRequestDtoValue["Ssp"] = "SSP";
    AccountingJournalCreateRequestDtoValue["Stn"] = "STN";
    AccountingJournalCreateRequestDtoValue["Syp"] = "SYP";
    AccountingJournalCreateRequestDtoValue["Szl"] = "SZL";
    AccountingJournalCreateRequestDtoValue["Thb"] = "THB";
    AccountingJournalCreateRequestDtoValue["Tjs"] = "TJS";
    AccountingJournalCreateRequestDtoValue["Tmt"] = "TMT";
    AccountingJournalCreateRequestDtoValue["Tnd"] = "TND";
    AccountingJournalCreateRequestDtoValue["Top"] = "TOP";
    AccountingJournalCreateRequestDtoValue["Try"] = "TRY";
    AccountingJournalCreateRequestDtoValue["Ttd"] = "TTD";
    AccountingJournalCreateRequestDtoValue["Twd"] = "TWD";
    AccountingJournalCreateRequestDtoValue["Tzs"] = "TZS";
    AccountingJournalCreateRequestDtoValue["Uah"] = "UAH";
    AccountingJournalCreateRequestDtoValue["Ugx"] = "UGX";
    AccountingJournalCreateRequestDtoValue["Usd"] = "USD";
    AccountingJournalCreateRequestDtoValue["Uyu"] = "UYU";
    AccountingJournalCreateRequestDtoValue["Uzs"] = "UZS";
    AccountingJournalCreateRequestDtoValue["Ves"] = "VES";
    AccountingJournalCreateRequestDtoValue["Vnd"] = "VND";
    AccountingJournalCreateRequestDtoValue["Vuv"] = "VUV";
    AccountingJournalCreateRequestDtoValue["Wst"] = "WST";
    AccountingJournalCreateRequestDtoValue["Xaf"] = "XAF";
    AccountingJournalCreateRequestDtoValue["Xcd"] = "XCD";
    AccountingJournalCreateRequestDtoValue["Xdr"] = "XDR";
    AccountingJournalCreateRequestDtoValue["Xof"] = "XOF";
    AccountingJournalCreateRequestDtoValue["Xpf"] = "XPF";
    AccountingJournalCreateRequestDtoValue["Yer"] = "YER";
    AccountingJournalCreateRequestDtoValue["Zar"] = "ZAR";
    AccountingJournalCreateRequestDtoValue["Zmw"] = "ZMW";
    AccountingJournalCreateRequestDtoValue["Zwl"] = "ZWL";
    AccountingJournalCreateRequestDtoValue["UnmappedValue"] = "unmapped_value";
})(AccountingJournalCreateRequestDtoValue || (exports.AccountingJournalCreateRequestDtoValue = AccountingJournalCreateRequestDtoValue = {}));
/** @internal */
exports.AccountingJournalCreateRequestDto4$inboundSchema = z.object({});
/** @internal */
exports.AccountingJournalCreateRequestDto4$outboundSchema = z.object({});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AccountingJournalCreateRequestDto4$;
(function (AccountingJournalCreateRequestDto4$) {
    /** @deprecated use `AccountingJournalCreateRequestDto4$inboundSchema` instead. */
    AccountingJournalCreateRequestDto4$.inboundSchema = exports.AccountingJournalCreateRequestDto4$inboundSchema;
    /** @deprecated use `AccountingJournalCreateRequestDto4$outboundSchema` instead. */
    AccountingJournalCreateRequestDto4$.outboundSchema = exports.AccountingJournalCreateRequestDto4$outboundSchema;
})(AccountingJournalCreateRequestDto4$ || (exports.AccountingJournalCreateRequestDto4$ = AccountingJournalCreateRequestDto4$ = {}));
function accountingJournalCreateRequestDto4ToJSON(accountingJournalCreateRequestDto4) {
    return JSON.stringify(exports.AccountingJournalCreateRequestDto4$outboundSchema.parse(accountingJournalCreateRequestDto4));
}
function accountingJournalCreateRequestDto4FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingJournalCreateRequestDto4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingJournalCreateRequestDto4' from JSON`);
}
/** @internal */
exports.AccountingJournalCreateRequestDtoSourceValue$inboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AccountingJournalCreateRequestDto4$inboundSchema),
    z.array(z.any()),
]);
/** @internal */
exports.AccountingJournalCreateRequestDtoSourceValue$outboundSchema = z.union([
    z.string(),
    z.number(),
    z.boolean(),
    z.lazy(() => exports.AccountingJournalCreateRequestDto4$outboundSchema),
    z.array(z.any()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AccountingJournalCreateRequestDtoSourceValue$;
(function (AccountingJournalCreateRequestDtoSourceValue$) {
    /** @deprecated use `AccountingJournalCreateRequestDtoSourceValue$inboundSchema` instead. */
    AccountingJournalCreateRequestDtoSourceValue$.inboundSchema = exports.AccountingJournalCreateRequestDtoSourceValue$inboundSchema;
    /** @deprecated use `AccountingJournalCreateRequestDtoSourceValue$outboundSchema` instead. */
    AccountingJournalCreateRequestDtoSourceValue$.outboundSchema = exports.AccountingJournalCreateRequestDtoSourceValue$outboundSchema;
})(AccountingJournalCreateRequestDtoSourceValue$ || (exports.AccountingJournalCreateRequestDtoSourceValue$ = AccountingJournalCreateRequestDtoSourceValue$ = {}));
function accountingJournalCreateRequestDtoSourceValueToJSON(accountingJournalCreateRequestDtoSourceValue) {
    return JSON.stringify(exports.AccountingJournalCreateRequestDtoSourceValue$outboundSchema.parse(accountingJournalCreateRequestDtoSourceValue));
}
function accountingJournalCreateRequestDtoSourceValueFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingJournalCreateRequestDtoSourceValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingJournalCreateRequestDtoSourceValue' from JSON`);
}
/** @internal */
exports.AccountingJournalCreateRequestDtoValue$inboundSchema = z
    .union([
    z.nativeEnum(AccountingJournalCreateRequestDtoValue),
    z.string().transform(enums_js_1.catchUnrecognizedEnum),
]);
/** @internal */
exports.AccountingJournalCreateRequestDtoValue$outboundSchema = z.union([
    z.nativeEnum(AccountingJournalCreateRequestDtoValue),
    z.string().and(z.custom()),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AccountingJournalCreateRequestDtoValue$;
(function (AccountingJournalCreateRequestDtoValue$) {
    /** @deprecated use `AccountingJournalCreateRequestDtoValue$inboundSchema` instead. */
    AccountingJournalCreateRequestDtoValue$.inboundSchema = exports.AccountingJournalCreateRequestDtoValue$inboundSchema;
    /** @deprecated use `AccountingJournalCreateRequestDtoValue$outboundSchema` instead. */
    AccountingJournalCreateRequestDtoValue$.outboundSchema = exports.AccountingJournalCreateRequestDtoValue$outboundSchema;
})(AccountingJournalCreateRequestDtoValue$ || (exports.AccountingJournalCreateRequestDtoValue$ = AccountingJournalCreateRequestDtoValue$ = {}));
/** @internal */
exports.CurrencyCode$inboundSchema = z.object({
    source_value: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AccountingJournalCreateRequestDto4$inboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AccountingJournalCreateRequestDtoValue$inboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "source_value": "sourceValue",
    });
});
/** @internal */
exports.CurrencyCode$outboundSchema = z.object({
    sourceValue: z.nullable(z.union([
        z.string(),
        z.number(),
        z.boolean(),
        z.lazy(() => exports.AccountingJournalCreateRequestDto4$outboundSchema),
        z.array(z.any()),
    ])).optional(),
    value: z.nullable(exports.AccountingJournalCreateRequestDtoValue$outboundSchema)
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        sourceValue: "source_value",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var CurrencyCode$;
(function (CurrencyCode$) {
    /** @deprecated use `CurrencyCode$inboundSchema` instead. */
    CurrencyCode$.inboundSchema = exports.CurrencyCode$inboundSchema;
    /** @deprecated use `CurrencyCode$outboundSchema` instead. */
    CurrencyCode$.outboundSchema = exports.CurrencyCode$outboundSchema;
})(CurrencyCode$ || (exports.CurrencyCode$ = CurrencyCode$ = {}));
function currencyCodeToJSON(currencyCode) {
    return JSON.stringify(exports.CurrencyCode$outboundSchema.parse(currencyCode));
}
function currencyCodeFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CurrencyCode$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CurrencyCode' from JSON`);
}
/** @internal */
exports.AccountingJournalCreateRequestDto$inboundSchema = z.object({
    currency_code: z.nullable(z.lazy(() => exports.CurrencyCode$inboundSchema))
        .optional(),
    exchange_rate: z.nullable(z.number()).optional(),
    lines: z.nullable(z.array(createjournalline_js_1.CreateJournalLine$inboundSchema)).optional(),
    memo: z.nullable(z.string()).optional(),
    reference: z.nullable(z.string()).optional(),
    transaction_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "currency_code": "currencyCode",
        "exchange_rate": "exchangeRate",
        "transaction_date": "transactionDate",
    });
});
/** @internal */
exports.AccountingJournalCreateRequestDto$outboundSchema = z.object({
    currencyCode: z.nullable(z.lazy(() => exports.CurrencyCode$outboundSchema))
        .optional(),
    exchangeRate: z.nullable(z.number()).optional(),
    lines: z.nullable(z.array(createjournalline_js_1.CreateJournalLine$outboundSchema)).optional(),
    memo: z.nullable(z.string()).optional(),
    reference: z.nullable(z.string()).optional(),
    transactionDate: z.nullable(z.date().transform(v => v.toISOString()))
        .optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        currencyCode: "currency_code",
        exchangeRate: "exchange_rate",
        transactionDate: "transaction_date",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var AccountingJournalCreateRequestDto$;
(function (AccountingJournalCreateRequestDto$) {
    /** @deprecated use `AccountingJournalCreateRequestDto$inboundSchema` instead. */
    AccountingJournalCreateRequestDto$.inboundSchema = exports.AccountingJournalCreateRequestDto$inboundSchema;
    /** @deprecated use `AccountingJournalCreateRequestDto$outboundSchema` instead. */
    AccountingJournalCreateRequestDto$.outboundSchema = exports.AccountingJournalCreateRequestDto$outboundSchema;
})(AccountingJournalCreateRequestDto$ || (exports.AccountingJournalCreateRequestDto$ = AccountingJournalCreateRequestDto$ = {}));
function accountingJournalCreateRequestDtoToJSON(accountingJournalCreateRequestDto) {
    return JSON.stringify(exports.AccountingJournalCreateRequestDto$outboundSchema.parse(accountingJournalCreateRequestDto));
}
function accountingJournalCreateRequestDtoFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountingJournalCreateRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountingJournalCreateRequestDto' from JSON`);
}
//# sourceMappingURL=accountingjournalcreaterequestdto.js.map