-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
129 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
src/main/kotlin/herbaccara/datakr/form/BusinessNoValidateForm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package herbaccara.datakr.form | ||
|
||
import com.fasterxml.jackson.annotation.JsonFormat | ||
import com.fasterxml.jackson.annotation.JsonProperty | ||
import java.time.LocalDate | ||
|
||
data class BusinessNoValidateForm @JvmOverloads constructor( | ||
/** | ||
* 사업자등록번호 | ||
*/ | ||
@field:JsonProperty("b_no") | ||
val bNo: String, | ||
|
||
/** | ||
* 개업일자 | ||
*/ | ||
@field:JsonProperty("start_dt") | ||
@field:JsonFormat(pattern = "yyyyMMdd") | ||
val startDt: LocalDate, | ||
|
||
/** | ||
* 대표자성명 | ||
*/ | ||
@field:JsonProperty("p_nm") | ||
val pNm: String, | ||
|
||
/** | ||
* 대표자성명2 | ||
*/ | ||
@field:JsonProperty("p_nm2") | ||
val pNm2: String = "", | ||
|
||
/** | ||
* 상호 | ||
*/ | ||
@field:JsonProperty("b_nm") | ||
val bNm: String = "", | ||
|
||
/** | ||
* 법인등록번호 | ||
*/ | ||
@field:JsonProperty("corp_no") | ||
val corpNo: String = "", | ||
|
||
/** | ||
* 주업태명 | ||
*/ | ||
@field:JsonProperty("b_sector") | ||
val bSector: String = "", | ||
|
||
/** | ||
* 주종목명 | ||
*/ | ||
@field:JsonProperty("b_type") | ||
val bType: String = "" | ||
) |
15 changes: 15 additions & 0 deletions
15
src/main/kotlin/herbaccara/datakr/model/BusinessNoStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package herbaccara.datakr.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty | ||
|
||
data class BusinessNoStatus( | ||
@field:JsonProperty("b_no") val bNo: String, | ||
@field:JsonProperty("b_stt") val bStt: String, | ||
@field:JsonProperty("b_stt_cd") val bSttCd: String, | ||
@field:JsonProperty("tax_type") val taxType: String, | ||
@field:JsonProperty("tax_type_cd") val taxTypeCd: String, | ||
@field:JsonProperty("end_dt") val endDt: String, | ||
@field:JsonProperty("utcc_yn") val utccYn: String, | ||
@field:JsonProperty("tax_type_change_dt") val taxTypeChangeDt: String, | ||
@field:JsonProperty("invoice_apply_dt") val invoiceApplyDt: String | ||
) |
10 changes: 10 additions & 0 deletions
10
src/main/kotlin/herbaccara/datakr/model/BusinessNoStatusResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package herbaccara.datakr.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty | ||
|
||
data class BusinessNoStatusResult( | ||
@field:JsonProperty("request_cnt") val requestCnt: Int, | ||
@field:JsonProperty("match_cnt") val matchCnt: Int, | ||
@field:JsonProperty("status_code") val statusCode: String, | ||
@field:JsonProperty("data") val data: List<BusinessNoStatus> | ||
) |
18 changes: 18 additions & 0 deletions
18
src/main/kotlin/herbaccara/datakr/model/BusinessNoValidateResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package herbaccara.datakr.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty | ||
import herbaccara.datakr.form.BusinessNoValidateForm | ||
|
||
data class BusinessNoValidateResult( | ||
@field:JsonProperty("request_cnt") val requestCnt: Int, | ||
@field:JsonProperty("valid_cnt") val validCnt: Int, | ||
@field:JsonProperty("status_code") val statusCode: String, | ||
@field:JsonProperty("data") val data: List<Data> | ||
) { | ||
data class Data( | ||
@field:JsonProperty("b_no") val bNo: String, | ||
@field:JsonProperty("valid") val valid: String, | ||
@field:JsonProperty("request_param") val requestParam: BusinessNoValidateForm, | ||
@field:JsonProperty("status") val status: BusinessNoStatus? | ||
) | ||
} |