public function init($map = null, $prefix = '') { if ($map != null) { if (PPUtils::array_match_key($map, $prefix . "receiver.")) { $newPrefix = $prefix . "receiver."; $this->receiver = new Receiver(); $this->receiver->init($map, $newPrefix); } $mapKeyName = $prefix . 'refundStatus'; if ($map != null && array_key_exists($mapKeyName, $map)) { $this->refundStatus = $map[$mapKeyName]; } $mapKeyName = $prefix . 'refundNetAmount'; if ($map != null && array_key_exists($mapKeyName, $map)) { $this->refundNetAmount = $map[$mapKeyName]; } $mapKeyName = $prefix . 'refundFeeAmount'; if ($map != null && array_key_exists($mapKeyName, $map)) { $this->refundFeeAmount = $map[$mapKeyName]; } $mapKeyName = $prefix . 'refundGrossAmount'; if ($map != null && array_key_exists($mapKeyName, $map)) { $this->refundGrossAmount = $map[$mapKeyName]; } $mapKeyName = $prefix . 'totalOfAllRefunds'; if ($map != null && array_key_exists($mapKeyName, $map)) { $this->totalOfAllRefunds = $map[$mapKeyName]; } $mapKeyName = $prefix . 'refundHasBecomeFull'; if ($map != null && array_key_exists($mapKeyName, $map)) { $this->refundHasBecomeFull = $map[$mapKeyName]; } $mapKeyName = $prefix . 'encryptedRefundTransactionId'; if ($map != null && array_key_exists($mapKeyName, $map)) { $this->encryptedRefundTransactionId = $map[$mapKeyName]; } $mapKeyName = $prefix . 'refundTransactionStatus'; if ($map != null && array_key_exists($mapKeyName, $map)) { $this->refundTransactionStatus = $map[$mapKeyName]; } if (PPUtils::array_match_key($map, $prefix . "errorList.")) { $newPrefix = $prefix . "errorList."; $this->errorList = new ErrorList(); $this->errorList->init($map, $newPrefix); } } }