getAmount() public method

Amount being collected.
public getAmount ( ) : Amount
return Amount
Exemplo n.º 1
0
 public function testGetterSetter()
 {
     $this->assertEquals(self::$id, $this->order->getId());
     $this->assertEquals(self::$createTime, $this->order->getCreateTime());
     $this->assertEquals(self::$updateTime, $this->order->getUpdateTime());
     $this->assertEquals(self::$state, $this->order->getState());
     $this->assertEquals(AmountTest::$currency, $this->order->getAmount()->getCurrency());
 }
Exemplo n.º 2
0
 /**
  * @depends testSerializationDeserialization
  * @param Order $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
     $this->assertEquals($obj->getPurchaseUnitReferenceId(), "TestSample");
     $this->assertEquals($obj->getAmount(), AmountTest::getObject());
     $this->assertEquals($obj->getPaymentMode(), "TestSample");
     $this->assertEquals($obj->getState(), "TestSample");
     $this->assertEquals($obj->getReasonCode(), "TestSample");
     $this->assertEquals($obj->getPendingReason(), "TestSample");
     $this->assertEquals($obj->getProtectionEligibility(), "TestSample");
     $this->assertEquals($obj->getProtectionEligibilityType(), "TestSample");
     $this->assertEquals($obj->getParentPayment(), "TestSample");
     $this->assertEquals($obj->getFmfDetails(), FmfDetailsTest::getObject());
     $this->assertEquals($obj->getCreateTime(), "TestSample");
     $this->assertEquals($obj->getUpdateTime(), "TestSample");
     $this->assertEquals($obj->getLinks(), LinksTest::getObject());
 }