네이버 API 클라이언트 수정 완료
This commit is contained in:
@@ -30,7 +30,14 @@ class NaverApiClient
|
||||
/**
|
||||
* [PUT] 매물 정보 수정
|
||||
* @param string $articleNumber 매물번호
|
||||
* @param string charger 변경자
|
||||
* @param array $updateData 수정할 데이터 (tradeType, price, space 등)
|
||||
* string $tradeType 거래유형 (SALE:매매, JEONSE:전세, MONTHLY_RENT:월세, PRE_SALE:분양)
|
||||
* boolean $isResidntsExistence 거주여부
|
||||
* object $address 주소정보 공동 (complexNumber, pyeongTypeNumber, buildingName, hoName, correspondenceFloorCount) 비공동(legalDivisionNumber,jibunAddress,liAddress,etcAddress,referenceAddress,longitude,latitude,correspondenceFloorCount,totalFloorCount,undergroundFloorCount)
|
||||
* object $price 가격정보 (dealAmount,warrantyAmount,leaseAmount,preSaleAmount,premiumAmount,preSaleOptionAmount)
|
||||
* object $space 면적정보[비공동] (supplySpace,exclusiveSpace,totalSpace,groundSpace,buildingSpace)
|
||||
* object $facilities 비공동시설정보 (roomCount)
|
||||
*/
|
||||
public function updateArticleInfo(string $articleNumber, array $updateData, string $charger = 'admin'): ?array
|
||||
{
|
||||
@@ -39,9 +46,50 @@ class NaverApiClient
|
||||
|
||||
return $this->request('PUT', $url, $updateData);
|
||||
}
|
||||
/**
|
||||
* [POST] 4.매물검증 결과관리
|
||||
* API:POST /kiso/center/verification-article/{매물번호}/report?charger={담당자명}
|
||||
* @param string $articleNumber 매물번호
|
||||
* @param string charger 변경자
|
||||
* @param array $reportData 검증결과데이터
|
||||
* string $reportType 검증결과유형 (검증통과:VERIFIED, 검증실패:FAILED, 최종실패:REJECTED)
|
||||
* array $verificationConfirms 검증결과목록
|
||||
* string $ownerBirthDate 소유자 생년월일
|
||||
* Boolean $isOwnerVerifiable 소유자 검증여부
|
||||
*/
|
||||
public function postArticleVerificationReport(string $articleNumber, array $reportData, string $charger = 'admin'): ?array
|
||||
{
|
||||
$this->charger = $charger;
|
||||
$url = "{$this->baseUrl}/kiso/center/verification-article/{$articleNumber}/report?charger={$this->charger}";
|
||||
|
||||
return $this->request('POST', $url, $reportData);
|
||||
}
|
||||
|
||||
/**
|
||||
* [POST] 매물 정보 가격수정
|
||||
* [POST] 5.현장확인 정보 전송
|
||||
* API:POST /kiso/center//verification-article/media/{매물번호}
|
||||
* @param string $articleNumber 매물번호
|
||||
* @param array $movies 동영상 ($url)
|
||||
* @param array $photos 사진 ($fileName, $url)
|
||||
* @param array photo360s 360사진 ($fileName, $url, $desc)
|
||||
* @param string $charger 변경자
|
||||
*/
|
||||
public function postArticleMediaInfo(string $articleNumber, array $movies, array $photos, array $photo360s, string $charger = 'admin'): ?array
|
||||
{
|
||||
$this->charger = $charger;
|
||||
$url = "{$this->baseUrl}/kiso/center/verification-article/media/{$articleNumber}?charger={$this->charger}";
|
||||
|
||||
$data = [
|
||||
'movies' => $movies,
|
||||
'photos' => $photos,
|
||||
'photo360s' => $photo360s
|
||||
];
|
||||
|
||||
return $this->request('POST', $url, $data);
|
||||
}
|
||||
|
||||
/**
|
||||
* [POST] 6.매물 정보 가격수정
|
||||
* @param string $articleNumber 매물번호
|
||||
* @param array $priceData 가격 수정 데이터
|
||||
* API:PATCH /kiso/center/verification-article/price/{매물번호}?charger={변경자}
|
||||
|
||||
Reference in New Issue
Block a user