getJson() public static method

Gets Json String of Object ShippingAddress
public static getJson ( ) : string
return string
Beispiel #1
0
 /**
  * Gets Json String of Object ItemList
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"items":' . ItemTest::getJson() . ',"shipping_address":' . ShippingAddressTest::getJson() . ',"shipping_method":"TestSample","shipping_phone_number":"TestSample"}';
 }
Beispiel #2
0
 /**
  * Gets Json String of Object PayerInfo
  *
  * @return string
  */
 public static function getJson()
 {
     return '{"email":"TestSample","external_remember_me_id":"TestSample","account_number":"TestSample","salutation":"TestSample","first_name":"TestSample","middle_name":"TestSample","last_name":"TestSample","suffix":"TestSample","payer_id":"TestSample","phone":"TestSample","phone_type":"TestSample","birth_date":"TestSample","tax_id":"TestSample","tax_id_type":"TestSample","country_code":"TestSample","billing_address":' . AddressTest::getJson() . ',"shipping_address":' . ShippingAddressTest::getJson() . '}';
 }