PayPal\Api\Incentive::getTerms PHP Method

getTerms() public method

URI to the associated terms
public getTerms ( ) : string
return string
    public function getTerms()
    {
        return $this->terms;
    }

Usage Example

コード例 #1
0
ファイル: IncentiveTest.php プロジェクト: Roc4rdho/app
 /**
  * @depends testSerializationDeserialization
  * @param Incentive $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getCode(), "TestSample");
     $this->assertEquals($obj->getName(), "TestSample");
     $this->assertEquals($obj->getDescription(), "TestSample");
     $this->assertEquals($obj->getMinimumPurchaseAmount(), CurrencyTest::getObject());
     $this->assertEquals($obj->getLogoImageUrl(), "http://www.google.com");
     $this->assertEquals($obj->getExpiryDate(), "TestSample");
     $this->assertEquals($obj->getType(), "TestSample");
     $this->assertEquals($obj->getTerms(), "TestSample");
 }