SDK reference / Models

Models.Billing namespace

Types

TypeKindDescription
BillingInfoclassThe organisation's prepaid wallet as one project sees it (ADR-1105).
BillingInfo_currencyenum
BudgetclassA budget on the organisation's wallet (W133; ADR-1114, ADR-1103): an amount per calendar month (UTC) and its thresholds. Eachthreshold fires once a month; a CAP threshold stops the spend leases while the month lasts. Deleting the budget lifts its cap.
BudgetActionenumWhat a budget threshold does when the month's spend reaches it (W133; ADR-1114).
BudgetAlertclassA threshold that fired this month.
BudgetStatusclassA budget's current month.
BudgetThresholdclassA threshold of a budget.
CostAnomalyclassOne day whose cost stands out from the days before it.
CostAnomalyListclassThe days of the last 30 whose cost exceeded the 14 days before them by more than three standard deviations and by at least €1(W133; ADR-1114). Computed from the cost receipts on each read; a notice by mail comes later.
CostExportclassA project's costs as a FinOps FOCUS 1.x CSV document, one line per resource, meter and day (W133; ADR-1114).
CostForecastclassThe project's spend this calendar month (UTC) and where it is heading (W133; ADR-1114): the month to date from the cost receipts,plus the average of the last full days (at most seven) for each day left. A projection, not a commitment.
CostGroupByenumHow a cost report groups its rows.
CostRecommendationclassOne way to spend less, with what it would save.
CostRecommendationListclassWays to spend less, from the cost receipts of the last 7 days (W133; ADR-1114).
CostReportclassA project's costs in this cell over a time range (W133; ADR-1114): what the enforcer billed each resource from its size, and what therater priced from usage events. Read from the cost receipts; a range is at most 93 days.
CostRowclassOne row of a cost report.
FreeAllowanceclassThe free tier a project is on and what it allows (commerce/plans/free-v1.yaml, ADR-1102).
FreeAllowanceItemclassOne line of the free allowance: a limit of the free tier, grouped by what it limits.
LabCreditRequestclassA lab-only shadow credit (W39b). Refused outside the lab.
OrganizationPlanclassThe organisation's plan as the platform records it.
OrganizationPlanKindenumThe plans a project can be on.
PriceBookclassThe platform's price book as the cells rate with it (ADR-1107). Read-only.
PriceBookPlanclassA subscription plan of the price book (ADR-1107).
PriceBookRateclassOne rate of the price book: the price of one unit of a priced thing.
ProjectLabelEntryclassThe labels of one resource: its name (or the ID the label registry holds it under) and its key-value labels.
ProjectLabelEntry_labelsclass
ProjectLabelListclassThe labels of a project's resources in one location (console lane, 21 Nov 2026): only resources that carry a label, by resource.
RedeemReferralRequestclassEntering a code.
RedeemReferralResponseclassWhat entering a code did.
ReferralclassA referral as one of its two sides sees it. A referrer never learns which account entered its code.
ReferralCodeclassAn account's referral code. It is shared as a link; the platform sends no referral e-mails (ADR-1107).
ReferralCode_stateenum
ReferralProgramclassThe referral page of one account (ADR-1107).
Referral_roleenumreferrer: the caller issued the code; referred: the caller entered it.
Referral_stateenumsigned_up: waiting for the first paid top-up. qualified: the top-up cleared, the credit waits for room under the cap. granted: credit paid. revoked: granted, then taken back. rejected or expired: no credit.
RevokeReferralCodeRequestclassRevoking a code.
SignupCreditclassWhat the sign-up credit did for one account (ADR-1185).
SignupCredit_stateenumactive: credit left. used: spent. expired: lapsed. voided: taken back on an abuse case. refused: the sign-up did not receive it, with a reason. none: the account has no claim (it is older than the offer).
SignupOfferclassThe sign-up credit offer as anyone may read it, before signing in (ADR-1185). It says nothing about any account.
SignupOffer_closedReasonenumWhy it is not open: closed (the platform's register turns it off) or cap-reached (every grant the cap allows is open).
StatementclassA monthly statement or a top-up receipt of the prepaid wallet, a sum over its journal postings (ADR-1105).
StatementKindenumWhat a document is.
StatementLineclassOne line of a statement.
StatementListclass
TopUpRequestclassA card top-up of the wallet (W39b; ADR-1116, ADR-1110). Not open yet: every call answers 501 `payments-not-open`until card payments open after production is live; the lab funds wallets with `:labCredit`.