This commit is contained in:
John Yeo
2025-12-22 10:45:49 +00:00
parent 42999f1455
commit 7ee92f4e88
90 changed files with 1673 additions and 432 deletions

View File

@@ -66,3 +66,10 @@ export const isAllocatedPrice = (
const billingType = getBillingType(price.config);
return billingType === BillingType.InArrearProrated;
};
export const isPrepaidPrice = (
price: Price,
): price is Price & { config: UsagePriceConfig } => {
const billingType = getBillingType(price.config);
return billingType === BillingType.UsageInAdvance;
};