Functions
| Function | Description |
|---|---|
app_user_validate | Validate app security code |
app_list_orders | List all orders for a user |
app_list_orders_events | List orders filtered by event |
app_list_events | List unique events a user has tickets for |
app_list_tickets | List all tickets in a user’s wallet |
app_list_tickets_events | List tickets filtered by event |
app_transfer_tickets | Transfer a ticket online to another user |
app_transfer_tickets_offline | Transfer a ticket offline (with deduplication guard) |
app_user_validate
App security code. Currently validates against hardcoded sentinel value
"-".app_list_orders
User’s Firestore UID (document ID in
u_users).u_users/{userd_id}/orders where status: true.
app_list_orders_events
User’s Firestore UID.
Event ID to filter orders by.
app_list_events
User’s Firestore UID.
u_users/{userd_id}/tickets, enriched with event metadata.
app_list_tickets
User’s Firestore UID.
u_users/{userd_id}/tickets.
Ticket objects. Key fields:
ticket_id, event_id, event_name, zone, seat_id, customer_name, customer_email, status, transferred, ledger.app_list_tickets_events
User’s Firestore UID.
Event ID to filter tickets by.
app_transfer_tickets
Full ticket ID (e.g.,
eventId-ticketDocId).Email address of the recipient user.
Email address of the sender.
u_users and have account_validated: true. Updates Firestore and PostgreSQL (tickets table) with the new owner. Sets transferred: "online".
app_transfer_tickets_offline
app_transfer_tickets. Adds a guard: if transferred is already set in PostgreSQL, returns 400 with "Ticket ya sincronizado". Sets transferred: "offline" on success.
Full ticket ID.
Recipient email.
Sender email.