PayPal\Test\Api\ErrorTest::getJson PHP Метод

getJson() публичный статический Метод

Gets Json String of Object Error
public static getJson ( ) : string
Результат string
    public static function getJson()
    {
        return '{"name":"TestSample","purchase_unit_reference_id":"TestSample","message":"TestSample","code":"TestSample","details":' . ErrorDetailsTest::getJson() . ',"processor_response":' . ProcessorResponseTest::getJson() . ',"fmf_details":' . FmfDetailsTest::getJson() . ',"information_link":"TestSample","debug_id":"TestSample","links":' . LinksTest::getJson() . '}';
    }

Usage Example

 /**
  * Gets Json String of Object PayoutBatchHeader
  * @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() . '}';
 }
All Usage Examples Of PayPal\Test\Api\ErrorTest::getJson