-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CurrencyAmountInput.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
@file:Suppress("ktlint:standard:max-line-length") | ||
|
||
package com.lightspark.sdk.model | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* | ||
*/ | ||
@Serializable | ||
@SerialName("CurrencyAmountInput") | ||
data class CurrencyAmountInput( | ||
val value: Long, | ||
val unit: CurrencyUnit, | ||
) { | ||
companion object { | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/PayTestModeInvoiceInput.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved | ||
@file:Suppress("ktlint:standard:max-line-length") | ||
|
||
package com.lightspark.sdk.model | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* | ||
* @param nodeId The node from where you want to send the payment. | ||
* @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 failureReason The failure reason to trigger for the payment. If not set, pay_invoice will be called. | ||
* @param amountMsats The amount you will pay for this invoice, expressed in msats. It should ONLY be set when the invoice amount is zero. | ||
* @param idempotencyKey The idempotency key of the request. The same result will be returned for the same idempotency key. | ||
*/ | ||
@Serializable | ||
@SerialName("PayTestModeInvoiceInput") | ||
data class PayTestModeInvoiceInput( | ||
val nodeId: String, | ||
val encodedInvoice: String, | ||
val timeoutSecs: Int, | ||
val maximumFeesMsats: Long, | ||
val failureReason: PaymentFailureReason? = null, | ||
val amountMsats: Long? = null, | ||
val idempotencyKey: String? = null, | ||
) { | ||
companion object { | ||
} | ||
} |