Invoices: issued in Billingo by the worker, downloadable on Számláim
A paid checkout queues an invoice row with every invoice detail (buyer, tax type and number, item, net, VAT, gross). The worker's new 'invoices' task creates the Billingo partner and the paid card invoice and e-mails it (API v3), saving each step so a retry never issues a second invoice, and keeps Billingo's whole answer; the PDF is fetched from Billingo when the user downloads it from the new Számláim page (in the menu once there is an invoice). Payments and invoices outlive a deleted account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
@@ -23,6 +23,8 @@ export interface Me {
|
||||
package: { id: string; name: string; since: string } | null;
|
||||
/** The free question for a shared link is used up (once per user). */
|
||||
share_reward_granted: boolean;
|
||||
/** Invoices of the user's payments (the "Számláim" menu shows from the first). */
|
||||
invoice_count: number;
|
||||
/** Natal analyses earned by bringing new users through shared links. */
|
||||
referral_rewards: { earned: number; limit: number };
|
||||
}
|
||||
@@ -582,3 +584,14 @@ export interface PersonInviteLanding {
|
||||
|
||||
/** How this user can buy a package; `null`: purchases are off. */
|
||||
export type PayMethod = "stripe" | "stripe_test" | "mock";
|
||||
|
||||
export interface Invoice {
|
||||
id: string;
|
||||
/** Issued in Billingo: the PDF can be downloaded. */
|
||||
ready: boolean;
|
||||
invoice_number: string | null;
|
||||
invoice_date: string | null;
|
||||
item: string;
|
||||
gross_huf: number;
|
||||
paid_at: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user