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

getJson() public static method

Gets Json String of Object ShippingInfo
public static getJson ( ) : string
return string
    public static function getJson()
    {
        return '{"first_name":"TestSample","last_name":"TestSample","business_name":"TestSample","address":' . AddressTest::getJson() . '}';
    }

Usage Example

コード例 #1
0
 /**
  * Gets Json String of Object Invoice
  * @return string
  */
 public static function getJson()
 {
     return '{"id":"TestSample","number":"TestSample","uri":"TestSample","status":"TestSample","merchant_info":' . MerchantInfoTest::getJson() . ',"billing_info":' . BillingInfoTest::getJson() . ',"shipping_info":' . ShippingInfoTest::getJson() . ',"items":' . InvoiceItemTest::getJson() . ',"invoice_date":"TestSample","payment_term":' . PaymentTermTest::getJson() . ',"discount":' . CostTest::getJson() . ',"shipping_cost":' . ShippingCostTest::getJson() . ',"custom":' . CustomAmountTest::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() . ',"payments":' . PaymentDetailTest::getJson() . ',"refunds":' . RefundDetailTest::getJson() . ',"metadata":' . MetadataTest::getJson() . ',"additional_data":"TestSample"}';
 }
All Usage Examples Of PayPal\Test\Api\ShippingInfoTest::getJson