[#46] 더미 데이터 생성 및 1개의 슬로우쿼리 개선 #47

Merged
pricelees merged 15 commits from feat/#46 into main 2025-09-27 06:38:44 +00:00
Showing only changes of commit eb301207d6 - Show all commits

View File

@ -251,29 +251,29 @@ object PaymentFixture {
fun cardDetail(
amount: Int,
issuerCode: CardIssuerCode = CardIssuerCode.SHINHAN,
cardType: CardType = CardType.CREDIT,
ownerType: CardOwnerType = CardOwnerType.PERSONAL,
issuerCode: CardIssuerCode = CardIssuerCode.entries.random(),
cardType: CardType = CardType.entries.random(),
ownerType: CardOwnerType = CardOwnerType.entries.random(),
installmentPlanMonths: Int = 0,
): CardDetail = CardDetail(
issuerCode = issuerCode,
number = "429335*********",
number = "${(400000..500000).random()}*********",
amount = amount,
cardType = cardType,
ownerType = ownerType,
isInterestFree = false,
approveNo = "1828382",
approveNo = "${(1000000..9999999).random()}",
installmentPlanMonths = installmentPlanMonths
)
fun easypayDetail(
amount: Int,
provider: EasyPayCompanyCode = EasyPayCompanyCode.TOSSPAY,
provider: EasyPayCompanyCode = EasyPayCompanyCode.entries.random(),
discountAmount: Int = 0
): EasyPayDetail = EasyPayDetail(provider, amount, discountAmount)
fun transferDetail(
bankCode: BankCode = BankCode.SHINHAN,
bankCode: BankCode = BankCode.entries.random(),
settlementStatus: String = "COMPLETED"
): TransferDetail = TransferDetail(
bankCode = bankCode,