addAndReceivePayment

open suspend override fun addAndReceivePayment(preimage: ByteVector32, origin: IncomingPayment.Origin, receivedWith: Set<IncomingPayment.ReceivedWith>, createdAt: Long, receivedAt: Long)

Simultaneously add and receive a payment. Use this method when receiving a spontaneous payment, for example a swap-in payment.