'array', 'issued_on' => 'date', 'due_on' => 'date', 'sent_at' => 'datetime', 'exported_at' => 'datetime', 'net_cents' => 'integer', 'tax_cents' => 'integer', 'gross_cents' => 'integer', ]; } public function series(): BelongsTo { return $this->belongsTo(InvoiceSeries::class, 'invoice_series_id'); } public function customer(): BelongsTo { return $this->belongsTo(Customer::class); } public function order(): BelongsTo { return $this->belongsTo(Order::class); } /** What this document cancels, if it is a cancellation. */ public function cancels(): BelongsTo { return $this->belongsTo(Invoice::class, 'cancels_invoice_id'); } }