/** * Generate the successive invoice number for the merchant. * * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials. * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls * @return InvoiceNumber */ public static function generateNumber($apiContext = null, $restCall = null) { $payLoad = ""; $json = self::executeCall("/v1/invoicing/invoices/next-invoice-number", "POST", $payLoad, null, $apiContext, $restCall); $ret = new InvoiceNumber(); $ret->fromJson($json); return $ret; }
/** * @depends testSerializationDeserialization * @param InvoiceNumber $obj */ public function testGetters($obj) { $this->assertEquals($obj->getNumber(), "1234"); }