Skip to content

Commit

Permalink
Merge pull request #77 from iamport/feat/add-naverpay-parameters
Browse files Browse the repository at this point in the history
누락된 네이버페이 파라미터들 추가
  • Loading branch information
anymate98 authored Jan 24, 2024
2 parents d12fc5f + cf5954a commit 882f60c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// 디펜던시 업데이트 확인 ./gradlew dependencyUpdates

object Versions {
const val versionCode = 240115000 // yymmdd000
const val versionName = "1.4.2" // https://www.notion.so/chaifinance/QA-Process-d1a4be396337493b81c6e85fff2d5cd6
const val versionCode = 240124000 // yymmdd000
const val versionName = "1.4.3" // https://www.notion.so/chaifinance/QA-Process-d1a4be396337493b81c6e85fff2d5cd6

const val multidex = "2.0.1"
const val kotlin_stdlib_jdk = "1.9.10"
Expand Down
31 changes: 29 additions & 2 deletions sdk/src/main/java/com/iamport/sdk/data/sdk/IamPortRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ data class IamPortRequest(
val customer_uid: String? = null, // 정기결제용
val name: String? = null,
val amount: String,
@Transient
val custom_data: String? = null,
@Transient val custom_data: String? = null,
val tax_free: Float? = null,
val currency: String? = null, // default KRW, 페이팔은 USD 이어야 함
val language: String? = null, // default "ko", en, zh, jp => TODO validator 에 추가
Expand All @@ -46,6 +45,10 @@ data class IamPortRequest(
val naverCultureBenefit: Boolean? = null,
val naverProductCode: String? = null,
val naverActionType: String? = null,
val naverPurchaserName: String? = null,
val naverPurchaserBirthday: String? = null,
val naverChainId: String? = null,
val naverMerchantUserKey: String? = null,

val cultureBenefit: Boolean? = null,
val naverInterface: NaverInterface? = null,
Expand Down Expand Up @@ -127,6 +130,10 @@ data class IamPortRequest(
var naverCultureBenefit: Boolean? = null
var naverProductCode: String? = null
var naverActionType: String? = null
var naverPurchaserName: String? = null
var naverPurchaserBirthday: String? = null
var naverChainId: String? = null
var naverMerchantUserKey: String? = null

var cultureBenefit: Boolean? = null
var naverInterface: NaverInterface? = null
Expand Down Expand Up @@ -255,6 +262,22 @@ data class IamPortRequest(
this.naverActionType = naverActionType
}

fun naverPurchaserName(naverPurchaserName: String) = apply {
this.naverPurchaserName = naverPurchaserName
}

fun naverPurchaserBirthday(naverPurchaserBirthday: String) = apply {
this.naverPurchaserBirthday = naverPurchaserBirthday
}

fun naverChainId(naverChainId: String) = apply {
this.naverChainId = naverChainId
}

fun naverMerchantUserKey(naverMerchantUserKey: String) = apply {
this.naverMerchantUserKey = naverMerchantUserKey
}

fun cultureBenefit(cultureBenefit: Boolean) = apply {
this.cultureBenefit = cultureBenefit
}
Expand Down Expand Up @@ -306,6 +329,10 @@ data class IamPortRequest(
naverCultureBenefit = naverCultureBenefit,
naverProductCode = naverProductCode,
naverActionType = naverActionType,
naverPurchaserName = naverPurchaserName,
naverPurchaserBirthday = naverPurchaserBirthday,
naverChainId = naverChainId,
naverMerchantUserKey = naverMerchantUserKey,
cultureBenefit = cultureBenefit,
naverInterface = naverInterface,
confirm_url = confirm_url,
Expand Down

0 comments on commit 882f60c

Please sign in to comment.