PayPal\Test\Api\ChargeModelTest::getJson PHP Méthode

getJson() public static méthode

Gets Json String of Object ChargeModels
public static getJson ( ) : string
Résultat string
    public static function getJson()
    {
        return '{"id":"TestSample","type":"TestSample","amount":' . CurrencyTest::getJson() . '}';
    }

Usage Example

 /**
  * Gets Json String of Object PaymentDefinition
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","name":"TestSample","type":"TestSample","frequency_interval":"TestSample","frequency":"TestSample","cycles":"TestSample","amount":' . CurrencyTest::getJson() . ',"charge_models":' . ChargeModelTest::getJson() . '}';
 }