public final class ChangeTransactionInteractionId extends UpdateActionImpl<Payment>
See also PaymentUpdateCommand.
withPaymentTransaction(client(), (Payment payment, Transaction transaction) -> { final String newInteractionId = RandomStringUtils.randomAlphanumeric(32); final Payment updatedPayment = client().executeBlocking(PaymentUpdateCommand.of(payment, ChangeTransactionInteractionId.of(newInteractionId, transaction.getId()))); final Transaction updatedTransaction = updatedPayment.getTransactions().get(0); assertThat(updatedTransaction.getInteractionId()).isEqualTo(newInteractionId); return updatedPayment; });
See the test code.
Modifier and Type | Method and Description |
---|---|
String |
getInteractionId() |
String |
getTransactionId() |
static ChangeTransactionInteractionId |
of(String interactionId,
String transactionId) |
getAction
public static ChangeTransactionInteractionId of(String interactionId, String transactionId)
public String getInteractionId()
public String getTransactionId()