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

getJson() 공개 정적인 메소드

Gets Json String of Object CurrencyConversion
public static getJson ( ) : string
리턴 string
    public static function getJson()
    {
        return '{"conversion_date":"TestSample","from_currency":"TestSample","from_amount":"TestSample","to_currency":"TestSample","to_amount":"TestSample","conversion_type":"TestSample","conversion_type_changeable":true,"web_url":"http://www.google.com","links":' . LinksTest::getJson() . '}';
    }

Usage Example

예제 #1
0
 /**
  * Gets Json String of Object FundingOption
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","funding_sources":' . FundingSourceTest::getJson() . ',"backup_funding_instrument":' . FundingInstrumentTest::getJson() . ',"currency_conversion":' . CurrencyConversionTest::getJson() . ',"installment_info":' . InstallmentInfoTest::getJson() . ',"links":' . LinksTest::getJson() . '}';
 }