Scale Intelligence■ Docs
Docs / The model / BillingAccount

BillingAccount.

The tenant's account with the payment provider: the provider's customer id, the currency, the address, the payment state, the period

Figure 1BillingAccountspecified
BILLINGACCOUNTrow at tenant scopethe connector packageprovidertextthe provider'scustomer_idtextcurrencytextaddresstextoptionalpayment_stateenum:none|on file|failingperiodenum:monthly|yearlypoints at no other object
BillingAccount is a row at tenant scope. The drawing shows its fields and the objects that they point at.
kind
row
scope
tenant
key
the tenant
store
postgres
family
operations

Fields#

fieldtyperequirednote
providertextyesthe connector package
customer_idtextyesthe provider’s
currencytextyes
addresstextno
payment_stateone of none | on file | failingyes
periodone of monthly | yearlyyes

Routes that use it#

No route takes or returns BillingAccount directly. The record holds it, and the objects that point at it reach it.