use unitPriceinBillingCurrency instead
This commit is contained in:
parent
5ee2af75dd
commit
de89fd2011
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -41,7 +41,7 @@ export type PriceItem = {
|
|||
|
||||
export type PriceType = {
|
||||
type: string;
|
||||
unitEffectivePriceInBillingCurrency: number;
|
||||
unitPriceinBillingCurrency: number;
|
||||
};
|
||||
|
||||
export type PriceError = {
|
||||
|
|
Loading…
Reference in New Issue