Skip to content

Feat(domain): price snapshot and master book_for_client - #1

Merged
DigitalJacob merged 2 commits into
mainfrom
feat/price-snapshot-master-book
Oct 16, 2026
Merged

DigitalJacob merged 2 commits into
mainfrom
feat/price-snapshot-master-book

Conversation

@DigitalJacob

@DigitalJacob DigitalJacob commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Store appointments.price_snapshot at booking time (migration 014); client book_window copies service.price.
  • Add BookingService.book_for_client: confirmed appointment, owner check, min_lead ignored, booking horizon kept.
  • Expose ignore_min_lead on availability / window listing for the future master booking UI.

Out of scope

Master hub UI, manual clients, client push notifications, stats — later PRs.

Test plan

  • CI green (ruff + unit + Postgres integration)
  • Client booking still creates pending with snapshot
  • Unit: book_for_client → confirmed, foreign service forbidden, taken window rejected
  • Unit: under min_lead, client cannot book near slot, master can; outside horizon both cannot

@DigitalJacob
DigitalJacob merged commit 3f065a3 into main Oct 16, 2026
1 check passed
@DigitalJacob
DigitalJacob deleted the feat/price-snapshot-master-book branch October 16, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant