All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.lightspark.sdk.wallet.model.PayInvoiceInput.kt Maven / Gradle / Ivy

The newest version!
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
@file:Suppress("ktlint:standard:max-line-length")

package com.lightspark.sdk.wallet.model

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

/**
 *
 * @param encodedInvoice The invoice you want to pay (as defined by the BOLT11 standard).
 * @param timeoutSecs The timeout in seconds that we will try to make the payment.
 * @param maximumFeesMsats The maximum amount of fees that you want to pay for this payment to be sent, expressed in msats.
 * @param amountMsats The amount you will pay for this invoice, expressed in msats. It should ONLY be set when the invoice amount is zero.
 */
@Serializable
@SerialName("PayInvoiceInput")
data class PayInvoiceInput(
    val encodedInvoice: String,
    val timeoutSecs: Int,
    val maximumFeesMsats: Long,
    val amountMsats: Long? = null,
) {
    companion object {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy