Payments API Updates

This commit is contained in:
Jay Patel
2015-10-02 14:25:46 -05:00
parent 02fca1bda4
commit a37b880e96
112 changed files with 3857 additions and 1495 deletions

View File

@@ -13,15 +13,17 @@ class FundingDetailTest extends \PHPUnit_Framework_TestCase
{
/**
* Gets Json String of Object FundingDetail
*
* @return string
*/
public static function getJson()
{
return '{"clearing_time":"TestSample","payment_hold_date":"TestSample"}';
return '{"clearing_time":"TestSample","payment_hold_date":"TestSample","payment_debit_date":"TestSample","processing_type":"TestSample"}';
}
/**
* Gets Object Instance with Json data filled in
*
* @return FundingDetail
*/
public static function getObject()
@@ -32,6 +34,7 @@ class FundingDetailTest extends \PHPUnit_Framework_TestCase
/**
* Tests for Serialization and Deserialization Issues
*
* @return FundingDetail
*/
public function testSerializationDeserialization()
@@ -40,6 +43,8 @@ class FundingDetailTest extends \PHPUnit_Framework_TestCase
$this->assertNotNull($obj);
$this->assertNotNull($obj->getClearingTime());
$this->assertNotNull($obj->getPaymentHoldDate());
$this->assertNotNull($obj->getPaymentDebitDate());
$this->assertNotNull($obj->getProcessingType());
$this->assertEquals(self::getJson(), $obj->toJson());
return $obj;
}
@@ -52,6 +57,9 @@ class FundingDetailTest extends \PHPUnit_Framework_TestCase
{
$this->assertEquals($obj->getClearingTime(), "TestSample");
$this->assertEquals($obj->getPaymentHoldDate(), "TestSample");
$this->assertEquals($obj->getPaymentDebitDate(), "TestSample");
$this->assertEquals($obj->getProcessingType(), "TestSample");
}
}