@vyro-x/pricing-client
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -1,3 +0,3 @@ | ||
import { PricingConfigV2 } from '@vyro-x/vehicle-order-types'; | ||
import { Product } from './getProductLineItems'; | ||
import { PricingConfigV2 } from './types'; | ||
type Args = { | ||
@@ -4,0 +4,0 @@ basePricingConfig: PricingConfigV2; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const vehicle_order_types_1 = require("@vyro-x/vehicle-order-types"); | ||
const types_1 = require("./types"); | ||
const getOrderPricingConfig_1 = require("./getOrderPricingConfig"); | ||
@@ -9,3 +9,3 @@ test('should calc the pricing config', () => { | ||
lineItems: { | ||
dutiable: [{ code: vehicle_order_types_1.DutiablePricingCode.VehiclePrice, value: 10000 }], | ||
dutiable: [{ code: types_1.DutiablePricingCode.VehiclePrice, value: 10000 }], | ||
onRoad: [], | ||
@@ -36,5 +36,5 @@ additional: [], | ||
lineItems: { | ||
dutiable: [{ code: vehicle_order_types_1.DutiablePricingCode.VehiclePrice, value: 10000 }], | ||
dutiable: [{ code: types_1.DutiablePricingCode.VehiclePrice, value: 10000 }], | ||
onRoad: [], | ||
additional: [expect.objectContaining({ code: vehicle_order_types_1.AdditionalPricingCode.Other, value: 1000 })], | ||
additional: [expect.objectContaining({ code: types_1.AdditionalPricingCode.Other, value: 1000 })], | ||
}, | ||
@@ -41,0 +41,0 @@ driveAwayPrice: 11000, |
@@ -1,2 +0,2 @@ | ||
import { AdditionalPricingCode, PricingLineItem } from '@vyro-x/vehicle-order-types'; | ||
import { AdditionalPricingCode, PricingLineItem } from './types'; | ||
type ProductVariant = { | ||
@@ -3,0 +3,0 @@ id: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getProductLineItems = void 0; | ||
const vehicle_order_types_1 = require("@vyro-x/vehicle-order-types"); | ||
const types_1 = require("./types"); | ||
const getProductLineItems = (selectedProductVariants, products) => { | ||
@@ -21,3 +21,3 @@ return selectedProductVariants | ||
return { | ||
code: vehicle_order_types_1.AdditionalPricingCode.Other, | ||
code: types_1.AdditionalPricingCode.Other, | ||
description: `${product.name} - ${productVariant.name}`, | ||
@@ -24,0 +24,0 @@ value: productVariant.gross_price, |
{ | ||
"name": "@vyro-x/pricing-client", | ||
"description": "Client methods and type definitions for price-related entities in Vyro", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
14337
1