"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformCartLine = transformCartLine;
function transformCartLine(payload) {
    return {
        cartLine: {
            cost: {
                totalAmount: {
                    amount: payload.cartLine?.priceAmount
                }
            },
            merchandise: {
                id: payload.cartLine?.variantId,
                image: {
                    src: payload.cartLine?.imageSrc
                },
                price: {
                    amount: payload.cartLine?.priceAmount
                },
                product: {
                    title: payload.cartLine?.title,
                    untranslatedTitle: payload.cartLine?.untranslatedTitle,
                    vendor: payload.cartLine?.vendor,
                    type: payload.cartLine?.type,
                    url: payload.cartLine?.url
                },
                sku: payload.cartLine?.sku,
                title: payload.cartLine?.title,
                untranslatedTitle: payload.cartLine?.untranslatedTitle
            },
            quantity: payload.cartLine?.quantity
        }
    };
}
//# sourceMappingURL=transformCartLine.js.map