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 offeringId = item.id;
const skuName = map.get(region).get(offeringId); const skuName = map.get(region).get(offeringId);
const unitEffectivePriceInBillingCurrency = item.prices.find((x) => x.type === "Consumption") const unitPriceinBillingCurrency = item.prices.find((x) => x.type === "Consumption")
?.unitEffectivePriceInBillingCurrency; ?.unitPriceinBillingCurrency;
regionPriceMap.set(skuName, unitEffectivePriceInBillingCurrency); regionPriceMap.set(skuName, unitPriceinBillingCurrency);
} }
priceMap.set(region, regionPriceMap); priceMap.set(region, regionPriceMap);
} }

View File

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