DealDocumentScreening/CONTEXT.md
2026-08-25 21:57:05 +03:00

65 lines
2.2 KiB
Markdown

# DealDocumentScreening
Screening of deal documents (contracts) with extraction, prescreen and analysis workers. This context covers the whole product, including billing for document consumption.
## Language
### Billing
**Plan**:
A recurring subscription offering: monthly price and a monthly document quota. Seeded by code, identified by `code`.
_Avoid_: Tier, package
**Subscription**:
A user's active relationship to one Plan for a 30-day period. At most one active or past_due Subscription per user.
_Avoid_: Membership
**Quota**:
The per-Subscription allowance of document screenings within the current period. Does not roll over.
_Avoid_: Allowance, limit
**Credits**:
Prepaid document screenings on a user's balance. Consumed only after Quota is exhausted; purchased credits never expire.
_Avoid_: Points, tokens
**Topup**:
A one-time purchase of Credits.
_Avoid_: Recharge, refill
**Invoice**:
A request for payment. Kinds: `topup`, `subscription` (first purchase), `renewal` (subsequent period).
_Avoid_: Bill, charge
**Renewal**:
The invoice and payment that extends a Subscription into its next period.
_Avoid_: Rebill
**Saved Payment Method**:
A card token stored with one payment provider, enabling charges without the user present. Bound to a single provider and currency; saved on every successful card payment.
_Avoid_: Recurring token, card binding
**Dunning**:
The retry ladder after a failed renewal charge: retried on days 1, 3 and 7 after period end, then the Subscription expires.
_Avoid_: Retry loop, collection
**Signup Bonus**:
One Credit granted at registration, only to users who registered after the bonus shipped.
_Avoid_: Welcome credits, trial
**ЕРИП**:
Belarusian interbank payment rails offered through bePaid. Settlement is delayed by hours, no Saved Payment Method is possible, so renewal is manual.
_Avoid_: ERIP
**Billing Hold**:
A flag on a user whose refund clawed back value; blocks further document processing until cleared by an admin.
_Avoid_: Ban, block
**Clawback**:
Removal of unspent value (Credits or remaining period) after a refund.
_Avoid_: Chargeback
### Document processing
**Document Slot**:
The reservation of one Quota unit or one Credit for a single document, released when processing fails.
_Avoid_: Ticket