@if (usageData | async; as usage) {

{{ 'billing.usage.title' | translate }}

{{ 'billing.usage.description' | translate }}
{{ 'billing.usage.interval' | translate: { to: usage.end_billing_date | date: 'yyyy-MM-dd' } }}
@if (isDeprecatedAccount | async) {
{{ total | async | currency: usage.currency }}
}
@if (isDeprecatedAccount | async) { {{ 'billing.usage.consumables' | translate }} {{ 'billing.usage.tier_included' | translate }} {{ 'billing.usage.consumption' | translate }} {{ 'billing.usage.over_consume' | translate }}
{{ 'billing.usage.cost' | translate }}
@for (item of invoiceItems | async; track item) { {{ 'billing.parameter.' + item[0] | translate }} {{ item[1].threshold | number }} {{ item[1].current_usage | number }} {{ item[1].over_usage | number }}
{{ item[1].over_cost | currency: usage.currency }}
}
} @else { {{ 'billing.usage.consumption' | translate }} {{ 'billing.usage.billable' | translate }} {{ 'billing.usage.cost' | translate }}
{{ 'billing.usage.total' | translate }}
@if (usage.invoice_items['nuclia-tokens'] || usage.invoice_items['ai-tokens-used']; as nucliaTokens) { {{ 'billing.tokens' | translate }}* @if (usage.consumption) { {{ usage.consumption | number: '1.0-0' }} } {{ nucliaTokens.current_usage | number: '1.0-0' }} {{ nucliaTokens.price | currency: usage.currency : 'symbol' : '1.2-6' }}/ token
{{ nucliaTokens.over_cost | currency: usage.currency }}
}
* {{ 'billing.token-help' | translate }}
} }