use unitPriceinBillingCurrency instead

This commit is contained in:
Tara Zou 2024-06-05 15:33:46 -04:00
parent 5ee2af75dd
commit de89fd2011
2 changed files with 4 additions and 4 deletions

View File

@ -225,9 +225,9 @@ export const getPriceMapAndCurrencyCode = async (map: OfferingIdMap): Promise<Pr
const offeringId = item.id;
const skuName = map.get(region).get(offeringId);
const unitEffectivePriceInBillingCurrency = item.prices.find((x) => x.type === "Consumption")
?.unitEffectivePriceInBillingCurrency;
regionPriceMap.set(skuName, unitEffectivePriceInBillingCurrency);
const unitPriceinBillingCurrency = item.prices.find((x) => x.type === "Consumption")
?.unitPriceinBillingCurrency;
regionPriceMap.set(skuName, unitPriceinBillingCurrency);
}
priceMap.set(region, regionPriceMap);
}

View File

@ -41,7 +41,7 @@ export type PriceItem = {
export type PriceType = {
type: string;
unitEffectivePriceInBillingCurrency: number;
unitPriceinBillingCurrency: number;
};
export type PriceError = {