Spensara Spensara Knowledge Base & Documentation Repository

Repository Docs & Knowledge Base

Consolidated Spensara documentation repository (722 Markdown & architecture documents in ../repository)
Built Word Documents (.docx): Spensara Overview (.docx) Capability Assessment (.docx) Brink POS Ingestion Analysis (.docx) The Borg Ingestion Architecture (.docx)

Warehouse Model (93)

Analytical data warehouse schemas, curated tables, and Redshift/Athena data models.
warehouse-model/docs/features/ETL/warehouse-data/curated-model/pos_tenders.md 4,938 bytes · Updated Oct 23, 2026 10:44 AM EDT
Raw File

curated.pos_tenders

Purpose

This table stores tender master configuration from the POS. It defines how payment methods behave operationally, how they print, validate, authorize, round, and interact with drawers or processors.

It is primarily reference data used to interpret transaction tenders rather than a transactional fact table.

Schema contract

The deployed SQL under backend/Kds.Ai.Warehouse/Sql/Bootstrap/Tenant/Curated/ is the source of truth for the current column names, types, and nullability.

Column groups

  • Business properties describe the business entity, event, fact, or reference record represented by the table.
  • Technical and ETL properties describe warehouse lineage, surrogate keys, source reconciliation, tenant scoping, slowly changing dimension controls, and ingestion metadata.

Business properties

ColumnTypeNullableBusiness MeaningNotes
idINTEGERYesTender identifier in the POS source.
usernumberINTEGERYesUser-visible tender number in the POS.
nameVARCHAR(10)YesShort tender name shown to operators.
cashVARCHAR(1)YesFlag indicating whether this tender behaves as cash.
gcertVARCHAR(1)YesFlag indicating gift certificate support.
changeVARCHAR(1)YesFlag indicating whether this tender can issue change.
reportasINTEGERYesReporting classification code for the tender.
houseVARCHAR(1)YesFlag indicating house-account behavior.
activeVARCHAR(1)YesFlag indicating whether the tender is active.
tipsVARCHAR(1)YesFlag indicating whether the tender supports tips.
cardtypeINTEGERYesCard type classification code.
fcurrncyidINTEGERYesForeign currency identifier.
accntrcvblVARCHAR(1)YesFlag indicating accounts-receivable behavior.
cashcardVARCHAR(1)YesFlag indicating cash-card behavior.
ischeckVARCHAR(1)YesFlag indicating check tender behavior.
externalVARCHAR(1)YesFlag indicating external processor or external payment behavior.
debitVARCHAR(1)YesFlag indicating debit-card behavior.
giftcardVARCHAR(1)YesFlag indicating gift-card behavior.
iscredtcrdVARCHAR(1)YesFlag indicating credit-card behavior.
roundactivVARCHAR(1)YesFlag enabling rounding for this tender.
roundtoDOUBLE PRECISIONYesRounding increment.
roundmthdINTEGERYesRounding method code.
ebtVARCHAR(1)YesFlag indicating EBT behavior.
ebttypeINTEGERYesEBT subtype code.
tdrsurchINTEGERYesTender surcharge identifier.
disloyaltyVARCHAR(1)YesFlag disabling loyalty behavior for this tender.
iscampusVARCHAR(1)YesFlag indicating campus-payment behavior.
payment_familyVARCHAR(100)YesStandardized payment family code such as cash, card, wallet, loyalty, or house account.
payment_family_nameVARCHAR(255)YesReadable business name of the standardized payment family.
is_digitalBOOLEANYesCanonical flag indicating whether the tender is a digital payment method.
is_cash_equivalentBOOLEANYesCanonical flag indicating whether the tender behaves like cash in analysis.
processor_nameVARCHAR(255)YesReadable payment processor or external provider name when available.

Technical and ETL properties

ColumnTypeNullableTechnical MeaningNotes
tender_keyBIGINTYesStable warehouse key for the tender entity.
source_systemVARCHAR(100)YesCanonical name of the source platform that produced the tender row.
source_tender_idVARCHAR(199)YesOriginal tender identifier from the source platform.
tenant_keyBIGINTYesStable warehouse key for the tenant, brand, or client that owns the tender configuration.
tenant_nameVARCHAR(255)YesReadable tenant, brand, or client name associated with the tender.
effective_from_utcTIMESTAMPYesUTC timestamp from which the current tender version is valid.
effective_to_utcTIMESTAMPYesUTC timestamp until which the current tender version is valid.
is_currentBOOLEANYesCanonical flag indicating whether the row is the current tender version.
_etl_batch_idVARCHAR(256)YesETL batch lineage identifier.
_etl_source_typeVARCHAR(100)YesSource adapter type used by ETL.
_etl_ingested_atTIMESTAMPNoWarehouse ingestion timestamp for the curated row.Required ingestion audit timestamp.