The PayPal-generated batch status.
Inheritance: extends PayPal\Common\PayPalModel
 /**
  * @depends testSerializationDeserialization
  * @param PayoutBatch $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getBatchHeader(), PayoutBatchHeaderTest::getObject());
     $this->assertEquals($obj->getItems(), PayoutItemDetailsTest::getObject());
 }
Beispiel #2
0
 /**
  * Obtain the status of a specific batch resource by passing the payout batch ID to the request URI. You can issue this call multiple times to get the current status.
  *
  * @param string $payoutBatchId
  * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
  * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
  * @return PayoutBatch
  */
 public static function get($payoutBatchId, $apiContext = null, $restCall = null)
 {
     ArgumentValidator::validate($payoutBatchId, 'payoutBatchId');
     $payLoad = "";
     $json = self::executeCall("/v1/payments/payouts/{$payoutBatchId}", "GET", $payLoad, null, $apiContext, $restCall);
     $ret = new PayoutBatch();
     $ret->fromJson($json);
     return $ret;
 }