public function upcomingInvoice(): ?Invoice
    {
        try {
            $stripeInvoice = StripeInvoice::upcoming(
                ['customer' => $this->stripe_id], ['api_key' => $this->getStripeKey()]
            );

            return new Invoice($this, $stripeInvoice);
        } catch (InvalidRequest $e) {
        }
    }
public function upcomingInvoice(): ?Invoice
    {
        try {
            $stripeInvoice = StripeInvoice::upcoming(
                ['customer' => $this->stripe_id], ['api_key' => $this->getStripeKey()]
            );

            return new Invoice($this, $stripeInvoice);
        } catch (InvalidRequest $e) {
        }
    }
public function upcomingInvoice ( ) : ? Invoice { try { $ stripeInvoice = StripeInvoice :: upcoming ( [ 'customer' => $ this -> stripe_id ] , [ 'api_key' => $ this -> getStripeKey ( ) ] ) ; return new Invoice ( $ this , $ stripeInvoice ) ; } catch ( InvalidRequest $ e ) { } }
Get the entity's upcoming invoice.

@return Invoice|null
Get the entity s upcoming invoice .