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

getJson() public static method

Gets Json String of Object TemplateData
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"merchant_info":' . MerchantInfoTest::getJson() . ',"billing_info":' . BillingInfoTest::getJson() . ',"shipping_info":' . ShippingInfoTest::getJson() . ',"items":' . InvoiceItemTest::getJson() . ',"payment_term":' . PaymentTermTest::getJson() . ',"reference":"TestSample","discount":' . CostTest::getJson() . ',"shipping_cost":' . ShippingCostTest::getJson() . ',"custom":' . CustomAmountTest::getJson() . ',"allow_partial_payment":true,"minimum_amount_due":' . CurrencyTest::getJson() . ',"tax_calculated_after_discount":true,"tax_inclusive":true,"terms":"TestSample","note":"TestSample","merchant_memo":"TestSample","logo_url":"http://www.google.com","total_amount":' . CurrencyTest::getJson() . ',"attachments":' . FileAttachmentTest::getJson() . '}';
    }

Usage Example

 /**
  * 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}';
 }