PayPal\Test\Api\PayoutBatchHeaderTest::getJson PHP Method

getJson() public static method

Gets Json String of Object PayoutBatchHeader
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"payout_batch_id":"TestSample","batch_status":"TestSample","time_created":"TestSample","time_completed":"TestSample","sender_batch_header":' . PayoutSenderBatchHeaderTest::getJson() . ',"amount":' . CurrencyTest::getJson() . ',"fees":' . CurrencyTest::getJson() . ',"errors":' . ErrorTest::getJson() . ',"links":' . LinksTest::getJson() . '}';
    }

Usage Example

 /**
  * Gets Json String of Object PayoutBatch
  * @return string
  */
 public static function getJson()
 {
     return '{"batch_header":' . PayoutBatchHeaderTest::getJson() . ',"items":' . PayoutItemDetailsTest::getJson() . '}';
 }