Unit price of the item. Range of -1,000,000 to 1,000,000.
public getUnitPrice ( ) : PayPal\Api\Currency | ||
Результат | PayPal\Api\Currency |
/** * @depends testSerializationDeserialization * @param InvoiceItem $obj */ public function testGetters($obj) { $this->assertEquals($obj->getName(), "TestSample"); $this->assertEquals($obj->getDescription(), "TestSample"); $this->assertEquals($obj->getQuantity(), "12.34"); $this->assertEquals($obj->getUnitPrice(), CurrencyTest::getObject()); $this->assertEquals($obj->getTax(), TaxTest::getObject()); $this->assertEquals($obj->getDate(), "TestSample"); $this->assertEquals($obj->getDiscount(), CostTest::getObject()); }
/** * @depends testSerializationDeserialization * @param InvoiceItem $obj */ public function testGetters($obj) { $this->assertEquals($obj->getName(), "TestSample"); $this->assertEquals($obj->getDescription(), "TestSample"); $this->assertEquals($obj->getQuantity(), "12.34"); $this->assertEquals($obj->getUnitPrice(), CurrencyTest::getObject()); $this->assertEquals($obj->getTax(), TaxTest::getObject()); $this->assertEquals($obj->getDate(), "TestSample"); $this->assertEquals($obj->getDiscount(), CostTest::getObject()); $this->assertEquals($obj->getImageUrl(), "http://www.google.com"); $this->assertEquals($obj->getUnitOfMeasure(), "TestSample"); }