Skip to main content

BillingSubscription

This deployment's own subscription.

Tablebilling_subscription
Tenant-scopedNo — global table
Columns14
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/BillingSubscription.java
Not tenant-scoped

This entity does not extend TenantOwned, so its rows are shared across every tenant. TenantCoverageTest allows that only for tables deliberately declared global.

Columns​

FieldTypeColumnNullNotes
billingSubscriptionIdIntegerbilling_subscription_id—primary key, generated
providerStringprovider——
providerSubscriptionIdStringprovider_subscription_idYes—
providerCustomerIdStringprovider_customer_idYes—
planCodeStringplan_codeYes—
statusSubscriptionStatusstatus—converted by SubscriptionStatusConverter
amountBigDecimalamountYes—
currencyStringcurrencyYes—
currentPeriodEndLocalDateTimecurrent_period_endYes—
cancelAtPeriodEndbooleancancel_at_period_end——
createdByStringcreated_byYes—
createdDateLocalDateTimecreated_date——
lastModifiedByStringlast_modified_byYes—
lastModifiedDateLocalDateTimelast_modified_dateYes—

Repository​

BillingSubscriptionRepository​

Declared over BillingSubscription with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/BillingSubscriptionRepository.java

Reached by​

These controllers hold — directly or through a service they depend on — a repository over BillingSubscription.

ControllerBase pathEndpointsModule
BillingController/api/billing2Billing & Platform
BillingWebhookController/api/webhooks1Billing & Platform

Generated page

This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.