Skip to main content

Module reservation

Module reservation 

Source
Expand description

Reservation contracts for age rules, add-ons, transitions, and service eligibility. Reservation support facts used by booking triage and checkout handoff workflows.

§Operator summary

Staff use reservation facts to decide which booking or checkout queue owns the next review: routine front-desk collection, vaccine/document follow-up, care or behavior review, payment review, manager exception, or read-only handoff to checkout/retention workflows. The module reduces labor by naming reusable policy facts—minimum-age thresholds, add-on labels, and transition reasons—so application packets can surface the same evidence without staff retyping provider notes or reconciling free-text labels.

This module must not book, confirm, cancel, check in/out, hold capacity, change pricing, move money, mutate Gingr/provider/PMS records, or send customer messages. It is source vocabulary only. Live authority stays with the provider/PMS ledger, approved location policy, verified payment/deposit records, customer/pet/reservation source snapshots, and accountable staff/manager approvals.

Review gates protect pets, customers, and staff whenever reservation facts touch medical or vaccine evidence, temperament/incident handling, special-care acceptance, capacity or staffing exceptions, payment/deposit closeout, customer-sensitive copy, or provider mutation. Unknown, stale, conflicting, or unmapped source facts should remain review work; they must not become inferred readiness.

Structs§

AddOnLabel
Display label for an optional reservation add-on offered to the customer.
AgeThreshold
Age gate applied when determining whether a pet may book a service.
MinimumAgeWeeks
Minimum pet age, in weeks, required before a service can be booked.

Enums§

AgePolicyReason
Reasons a pet may be blocked by age rules for a service.
Error
Validation failures returned by reservation domain constructors.
TransitionReason
Business reasons for moving or rejecting a reservation workflow transition.

Type Aliases§

Result
Result type returned by fallible reservation error operations.