public function create($apiContext = null, $restCall = null) { $payLoad = $this->toJSON(); $json = self::executeCall("/v1/invoicing/invoices", "POST", $payLoad, null, $apiContext, $restCall); $this->fromJson($json); return $this; }
public function testCreate() { $request = $this->operation['request']['body']; $obj = new Invoice($request); $result = $obj->create(null, $this->mockPayPalRestCall); $this->assertNotNull($result); self::$obj = $result; return $result; }