generated from pricelees/issue-pr-template
refactor: PaymentProperties에 API 기본 경로 추가 및 코틀린 마이그레이션
This commit is contained in:
parent
be79d7948c
commit
028185204e
@ -1,29 +1,11 @@
|
|||||||
package roomescape.payment.infrastructure.client;
|
package roomescape.payment.infrastructure.client
|
||||||
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties
|
||||||
|
|
||||||
@ConfigurationProperties(prefix = "payment")
|
@ConfigurationProperties(prefix = "payment")
|
||||||
public class PaymentProperties {
|
data class PaymentProperties(
|
||||||
|
@JvmField val apiBaseUrl: String,
|
||||||
private final String confirmSecretKey;
|
@JvmField val confirmSecretKey: String,
|
||||||
private final int readTimeout;
|
@JvmField val readTimeout: Int,
|
||||||
private final int connectTimeout;
|
@JvmField val connectTimeout: Int
|
||||||
|
)
|
||||||
public PaymentProperties(String confirmSecretKey, int readTimeout, int connectTimeout) {
|
|
||||||
this.confirmSecretKey = confirmSecretKey;
|
|
||||||
this.readTimeout = readTimeout;
|
|
||||||
this.connectTimeout = connectTimeout;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getConfirmSecretKey() {
|
|
||||||
return confirmSecretKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getReadTimeout() {
|
|
||||||
return readTimeout;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getConnectTimeout() {
|
|
||||||
return connectTimeout;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
@ -25,6 +25,7 @@ security:
|
|||||||
expire-length: 1800000 # 30 분
|
expire-length: 1800000 # 30 분
|
||||||
|
|
||||||
payment:
|
payment:
|
||||||
|
api-base-url: https://api.tosspayments.com
|
||||||
confirm-secret-key: test_gsk_docs_OaPz8L5KdmQXkzRz3y47BMw6
|
confirm-secret-key: test_gsk_docs_OaPz8L5KdmQXkzRz3y47BMw6
|
||||||
read-timeout: 3
|
read-timeout: 3
|
||||||
connect-timeout: 30
|
connect-timeout: 30
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user