Files
Crussell/backend/handlers/payments/refund_policy.go
T
popertotsandSisyphus 19996c1e08 feat(backend): add loyalty constants and first-payment guard
Extract LoyaltyStampCost and add LoyaltyDiscountPercent constant. Add first-payment guard to ApplyLoyaltyRedemption — reject if a non-discount payment already exists on the booking.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-06-19 11:34:20 +01:00

22 lines
501 B
Go

package payments
import "time"
const (
FullRefundThreshold = 72 * time.Hour
PartialRefundThreshold = 24 * time.Hour
NoShowThreshold = 24 * time.Hour
DepositDeadlineWindow = 24 * time.Hour
DepositAdvanceWindow = 36 * time.Hour
FullRefundTier = "full_refund_72h"
PartialRefundTier = "partial_refund_24h_72h"
NoRefundTier = "no_refund_under_24h"
ProtectedDepositMaxPct = 0.50
RequiredDepositPct = 0.20
LoyaltyStampCost = 10
LoyaltyDiscountPercent = 10.0
)