convert price_in_unit to price_in_cents

GitOrigin-RevId: bae030e9c90f8286d6e6550744849984fe81f63d
This commit is contained in:
Tim Alby
2022-01-21 09:03:29 +00:00
committed by Copybot
parent 3e70546e18
commit bbac46156b
8 changed files with 327 additions and 331 deletions
@@ -23,7 +23,9 @@ async function getRecurlyGroupPrices() {
prices[usage] = prices[usage] || {}
prices[usage][type] = prices[usage][type] || {}
prices[usage][type][currency] = prices[usage][type][currency] || {}
prices[usage][type][currency][size] = { price_in_unit: unitAmount }
prices[usage][type][currency][size] = {
price_in_cents: unitAmount * 100,
}
})
}
}