Christmas gifts and timed gift e-mails
- Gifts bought 15 Nov - 6 Jan get a Christmas card ("Boldog karácsonyt és
csillagos 2027-et!", snowflakes) and a Christmas e-mail subject.
- The buyer can time the gift e-mail (e.g. Christmas morning); "Küldés most"
replaces a waiting one, a refund takes it back.
- Admin: timed e-mails by hour (waiting / sent / failed), e-mail state per gift.
- /karacsony landing page; seasonal hints on /csomagok and /ajandek.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -137,6 +137,7 @@ async fn gift_card(id: Uuid, payload: &Value) -> Option<Pdf> {
|
||||
recipient_name: to.as_deref(),
|
||||
from_name: from.as_deref(),
|
||||
message: message.as_deref(),
|
||||
christmas: card["christmas_year"].as_i64().and_then(|y| i32::try_from(y).ok()),
|
||||
})
|
||||
.map_err(|e| e.to_string())?;
|
||||
let code: String = code.chars().filter(|c| c.is_ascii_alphanumeric() || *c == '-').collect();
|
||||
|
||||
Reference in New Issue
Block a user