Update with newBuilder.

This commit is contained in:
Alex Hart
2025-03-19 09:53:47 -03:00
committed by Cody Henthorne
parent 0efccf67b8
commit 6f52851222

View File

@@ -259,16 +259,11 @@ class InAppPaymentRedemptionJob private constructor(
inAppPayment = inAppPayment.copy(
notified = !jobData.isFromAuthCheck,
state = InAppPaymentTable.State.END,
data = inAppPayment.data.copy(
waitForAuth = null,
stripeActionComplete = null,
payPalActionComplete = null,
payPalRequiresAction = null,
stripeRequiresAction = null,
data = inAppPayment.data.newBuilder().redemption(
redemption = inAppPayment.data.redemption.copy(
stage = InAppPaymentData.RedemptionState.Stage.REDEEMED
)
)
).build()
)
)