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 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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in New Issue