refactor: rename points earn endpoint to /points/earn for clarity
Some checks failed
CI / ruff (push) Successful in 10s
CI / validate (push) Successful in 23s
CI / dependency-scanning (push) Successful in 29s
CI / docs (push) Has been skipped
CI / deploy (push) Has been skipped
CI / pytest (push) Failing after 45m37s

Use /points/earn and /points/redeem consistently for explicit intent.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 23:04:01 +01:00
parent 01146d5c97
commit 92a434530f
2 changed files with 2 additions and 2 deletions

View File

@@ -647,7 +647,7 @@ def void_stamps(
# =============================================================================
@store_router.post("/points", response_model=PointsEarnResponse)
@store_router.post("/points/earn", response_model=PointsEarnResponse)
def earn_points(
request: Request,
data: PointsEarnRequest,

View File

@@ -220,7 +220,7 @@ function storeLoyaltyTerminal() {
async earnPoints() {
loyaltyTerminalLog.info('Earning points...', { amount: this.earnAmount });
const response = await apiClient.post('/store/loyalty/points', {
const response = await apiClient.post('/store/loyalty/points/earn', {
card_id: this.selectedCard.id,
purchase_amount_cents: Math.round(this.earnAmount * 100),
staff_pin: this.pinDigits