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

getJson() public static method

Gets Json String of Object Tax
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"id":"TestSample","name":"TestSample","percent":"12.34","amount":' . CurrencyTest::getJson() . '}';
    }

Usage Example

 /**
  * Gets Json String of Object InvoiceItem
  * @return string
  */
 public static function getJson()
 {
     return '{"name":"TestSample","description":"TestSample","quantity":"12.34","unit_price":' . CurrencyTest::getJson() . ',"tax":' . TaxTest::getJson() . ',"date":"TestSample","discount":' . CostTest::getJson() . '}';
 }
All Usage Examples Of PayPal\Test\Api\TaxTest::getJson