customerProfileId; } /** * Sets a new customerProfileId * * @param string $customerProfileId * @return self */ public function setCustomerProfileId($customerProfileId) { $this->customerProfileId = $customerProfileId; return $this; } /** * Gets as customerPaymentProfileId * * @return string */ public function getCustomerPaymentProfileId() { return $this->customerPaymentProfileId; } /** * Sets a new customerPaymentProfileId * * @param string $customerPaymentProfileId * @return self */ public function setCustomerPaymentProfileId($customerPaymentProfileId) { $this->customerPaymentProfileId = $customerPaymentProfileId; return $this; } /** * Gets as validationDirectResponse * * @return string */ public function getValidationDirectResponse() { return $this->validationDirectResponse; } /** * Sets a new validationDirectResponse * * @param string $validationDirectResponse * @return self */ public function setValidationDirectResponse($validationDirectResponse) { $this->validationDirectResponse = $validationDirectResponse; return $this; } // Json Set Code public function set($data) { if(is_array($data) || is_object($data)) { $mapper = \net\authorize\util\Mapper::Instance(); foreach($data AS $key => $value) { $classDetails = $mapper->getClass(get_class() , $key); if($classDetails !== NULL ) { if ($classDetails->isArray) { if ($classDetails->isCustomDefined) { foreach($value AS $keyChild => $valueChild) { $type = new $classDetails->className; $type->set($valueChild); $this->{'addTo' . $key}($type); } } else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) { foreach($value AS $keyChild => $valueChild) { $type = new \DateTime($valueChild); $this->{'addTo' . $key}($type); } } else { foreach($value AS $keyChild => $valueChild) { $this->{'addTo' . $key}($valueChild); } } } else { if ($classDetails->isCustomDefined){ $type = new $classDetails->className; $type->set($value); $this->{'set' . $key}($type); } else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) { $type = new \DateTime($value); $this->{'set' . $key}($type); } else { $this->{'set' . $key}($value); } } } } } } }