SendPaymentRequest

data class SendPaymentRequest(account: String, address: JsonAddress, payment: Payment, when: Long?) : SignaldRequestBodyV1<SendPayment, SendResponse>

send a mobilecoin payment

Constructors

SendPaymentRequest
Link copied to clipboard
common
fun SendPaymentRequest(account: String, address: JsonAddress, payment: Payment, when: Long? = null)

Functions

getTypedResponseOrNull
Link copied to clipboard
common
open override fun getTypedResponseOrNull(responseWrapper: JsonMessageWrapper<*>): SendResponse?
A function to resolve the response body by verifying the type of the response and returning a non-null value iff the wrapper and data is the right type.
submit
Link copied to clipboard
common
fun submit(socketCommunicator: SocketCommunicator): SendResponse

Properties

account
Link copied to clipboard
common
val account: String
the account to use Example: "+12024561414"
address
Link copied to clipboard
common
val address: JsonAddress
the address to send the payment message to
id
Link copied to clipboard
common
val id: String
The id to include in the request.
payment
Link copied to clipboard
common
val payment: Payment
version
Link copied to clipboard
common
val version: String
The version to include in the request.
when
Link copied to clipboard
common
val when: Long? = null