"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformPayload = transformPayload;
const transformCart_1 = require("../transformFields/transformCart");
const transformCommonFields_1 = require("../transformFields/transformCommonFields");
const transformCustomer_1 = require("../transformFields/transformCustomer");
function transformPayload(payload) {
    const commonFields = (0, transformCommonFields_1.transformCommonFields)(payload);
    const result = {
        ...commonFields,
        data: {
            ...commonFields.data,
            ...(0, transformCustomer_1.transformCustomer)(payload),
            ...(0, transformCart_1.transformCart)(payload)
        }
    };
    return result;
}
//# sourceMappingURL=transform-payload.js.map