Pricing - minro type change
MODIFY
src/integration/pricing/PricingHelper.ts
src/integration/pricing/PricingHelper.ts
@@ -50,7 +50,6 @@ export default class PricingHelper {
if (pricedData[dimensionType]) {
if (!accumulatedData[dimensionType]) {
const emptyDimensionData: PricedDimensionData = {
- unitPrice: 0,
quantity:0,
amount: 0,
roundedAmount: 0

MODIFY
src/types/Pricing.ts
src/types/Pricing.ts
@@ -124,7 +124,7 @@ export interface PricedConsumptionData {
}
export interface PricedDimensionData {
- unitPrice: number;
+ unitPrice?: number;
amount: number;
roundedAmount: number;
quantity: number;

Pricing - minro type change