From 86e830e1a621e08f1d64acd148d785a9c4aee613 Mon Sep 17 00:00:00 2001 From: Jason Wang Date: Thu, 10 Oct 2024 09:13:13 -0700 Subject: [PATCH] Regenerating SDKs following introspection of schemas. --- .../kotlin/com/lightspark/sdk/model/CreateUmaInvoiceInput.kt | 5 +++++ .../kotlin/com/lightspark/sdk/model/CurrencyUnit.kt | 3 +++ .../kotlin/com/lightspark/sdk/wallet/model/CurrencyUnit.kt | 3 +++ 3 files changed, 11 insertions(+) diff --git a/lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CreateUmaInvoiceInput.kt b/lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CreateUmaInvoiceInput.kt index 2b131666..9f487dcb 100644 --- a/lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CreateUmaInvoiceInput.kt +++ b/lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CreateUmaInvoiceInput.kt @@ -8,6 +8,11 @@ import kotlinx.serialization.Serializable /** * + * @param nodeId The node from which to create the invoice. + * @param amountMsats The amount for which the invoice should be created, in millisatoshis. + * @param metadataHash The SHA256 hash of the UMA metadata payload. This will be present in the h-tag (SHA256 purpose of payment) of the resulting Bolt 11 invoice. + * @param expirySecs The expiry of the invoice in seconds. Default value is 86400 (1 day). + * @param receiverHash An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the payment. */ @Serializable @SerialName("CreateUmaInvoiceInput") diff --git a/lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CurrencyUnit.kt b/lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CurrencyUnit.kt index dd5aa5d9..84a55fe8 100644 --- a/lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CurrencyUnit.kt +++ b/lightspark-sdk/src/commonMain/kotlin/com/lightspark/sdk/model/CurrencyUnit.kt @@ -23,6 +23,9 @@ enum class CurrencyUnit( /** United States Dollar. **/ USD("USD"), + /** Mexican Peso. **/ + MXN("MXN"), + /** 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/ NANOBITCOIN("NANOBITCOIN"), diff --git a/wallet-sdk/src/commonMain/kotlin/com/lightspark/sdk/wallet/model/CurrencyUnit.kt b/wallet-sdk/src/commonMain/kotlin/com/lightspark/sdk/wallet/model/CurrencyUnit.kt index 804cba24..859ec663 100644 --- a/wallet-sdk/src/commonMain/kotlin/com/lightspark/sdk/wallet/model/CurrencyUnit.kt +++ b/wallet-sdk/src/commonMain/kotlin/com/lightspark/sdk/wallet/model/CurrencyUnit.kt @@ -23,6 +23,9 @@ enum class CurrencyUnit( /** United States Dollar. **/ USD("USD"), + /** Mexican Peso. **/ + MXN("MXN"), + /** 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit instead when possible. **/ NANOBITCOIN("NANOBITCOIN"),