App\Ninja\Transformers\PaymentTransformer::includeInvoice PHP Method

includeInvoice() public method

public includeInvoice ( Payment $payment )
$payment app\models\Payment
    public function includeInvoice(Payment $payment)
    {
        $transformer = new InvoiceTransformer($this->account, $this->serializer);
        return $this->includeItem($payment->invoice, $transformer, 'invoice');
    }