diff --git a/docs/uat-receipt-submission.md b/docs/uat-receipt-submission.md index 97d1a97..ac87630 100644 --- a/docs/uat-receipt-submission.md +++ b/docs/uat-receipt-submission.md @@ -50,14 +50,9 @@ MatchResult created with method=upc, confidence=1.0 for known UPCs ### Email Address Format -Each user is assigned a unique inbound token. The email address format depends on the environment: +Each user is assigned a unique inbound token. The receipt submission email address is shown in **Settings → Receipt Email** on the UI: -| Environment | Domain | -|-------------|--------| -| Dev | `cartsnitch.dev.farh.net` | -| UAT | `cartsnitch.uat.farh.net` | - -**Address:** `@cartsnitch..farh.net` +**Address:** `receipts+@receipts.cartsnitch.com` To find a user's token in the UAT database (requires `kubectl` access to `cartsnitch-uat`): @@ -83,10 +78,10 @@ kubectl exec -n cartsnitch-uat deployment/cartsnitch-api -- \\ ### Steps 1. **Obtain the test user's inbound token.** - Use the UAT Settings → Account page in the UI, or query the DB directly (see above). + Use the UAT Settings → Receipt Email page in the UI to see the full address `receipts+@receipts.cartsnitch.com`, or query the DB directly (see above). 2. **Compose the email.** - Send to: `@cartsnitch.uat.farh.net` + Send to: the address shown in Settings → Receipt Email Subject: anything Body: plain-text or HTML receipt content diff --git a/scripts/seed-env.sh b/scripts/seed-env.sh index 2b19538..93c083d 100755 --- a/scripts/seed-env.sh +++ b/scripts/seed-env.sh @@ -22,8 +22,10 @@ set -euo pipefail # --- Config ------------------------------------------------------------------- -ENV="${1:-dev}" -shift || true +ENV="dev" +if [[ "${1:-}" == "dev" || "${1:-}" == "uat" ]]; then + ENV="$1"; shift +fi while [[ $# -gt 0 ]]; do case "$1" in