PayPal\Test\Api\TemplateSettingsTest::getJson PHP 메소드

getJson() 공개 정적인 메소드

Gets Json String of Object TemplateSettings
public static getJson ( ) : string
리턴 string
    public static function getJson()
    {
        return '{"field_name":"TestSample","display_preference":' . TemplateSettingsMetadataTest::getJson() . '}';
    }

Usage Example

예제 #1
0
 /**
  * Gets Json String of Object Template
  * @return string
  */
 public static function getJson()
 {
     return '{"template_id":"TestSample","name":"TestSample","default":true,"template_data":' . TemplateDataTest::getJson() . ',"settings":' . TemplateSettingsTest::getJson() . ',"unit_of_measure":"TestSample","custom":true}';
 }