Пример #1
0
 /**
  * Create a web experience profile by passing the name of the profile and other profile details in the request JSON to the request URI.
  *
  * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
  * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
  * @return CreateProfileResponse
  */
 public function create($apiContext = null, $restCall = null)
 {
     $payLoad = $this->toJSON();
     $json = self::executeCall("/v1/payment-experience/web-profiles/", "POST", $payLoad, null, $apiContext, $restCall);
     $ret = new CreateProfileResponse();
     $ret->fromJson($json);
     return $ret;
 }
 /**
  * @depends testSerializationDeserialization
  * @param CreateProfileResponse $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getId(), "TestSample");
 }