public testSerializationDeserialization ( ) : PayPal\Api\Terms | ||
return | PayPal\Api\Terms |
public function testSerializationDeserialization()
{
$obj = new Terms(self::getJson());
$this->assertNotNull($obj);
$this->assertNotNull($obj->getId());
$this->assertNotNull($obj->getType());
$this->assertNotNull($obj->getMaxBillingAmount());
$this->assertNotNull($obj->getOccurrences());
$this->assertNotNull($obj->getAmountRange());
$this->assertNotNull($obj->getBuyerEditable());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}