BillingSubscription
This deployment's own subscription.
| Table | billing_subscription |
| Tenant-scoped | No — global table |
| Columns | 14 |
| Relationships | 0 |
| Source | backend/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
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
billingSubscriptionId | Integer | billing_subscription_id | — | primary key, generated |
provider | String | provider | — | — |
providerSubscriptionId | String | provider_subscription_id | Yes | — |
providerCustomerId | String | provider_customer_id | Yes | — |
planCode | String | plan_code | Yes | — |
status | SubscriptionStatus | status | — | converted by SubscriptionStatusConverter |
amount | BigDecimal | amount | Yes | — |
currency | String | currency | Yes | — |
currentPeriodEnd | LocalDateTime | current_period_end | Yes | — |
cancelAtPeriodEnd | boolean | cancel_at_period_end | — | — |
createdBy | String | created_by | Yes | — |
createdDate | LocalDateTime | created_date | — | — |
lastModifiedBy | String | last_modified_by | Yes | — |
lastModifiedDate | LocalDateTime | last_modified_date | Yes | — |
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.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| BillingController | /api/billing | 2 | Billing & Platform |
| BillingWebhookController | /api/webhooks | 1 | Billing & 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/.