( costKiloCredits: number, billingPeriodDays: number, planId?: string )
| 70 | } |
| 71 | |
| 72 | export function formatCodingPlanPrice( |
| 73 | costKiloCredits: number, |
| 74 | billingPeriodDays: number, |
| 75 | planId?: string |
| 76 | ): string { |
| 77 | const { amount, cadenceLabel } = getCodingPlanPriceParts( |
| 78 | costKiloCredits, |
| 79 | billingPeriodDays, |
| 80 | planId |
| 81 | ); |
| 82 | |
| 83 | return `${amount} ${cadenceLabel}`; |
| 84 | } |
| 85 | |
| 86 | export function formatCodingPlanBillingAmount(amountMicrodollars: number): string { |
| 87 | const amount = Math.abs(amountMicrodollars) / 1_000_000; |
no test coverage detected