From a31961b7681c664816a76a471e813287260d43d2 Mon Sep 17 00:00:00 2001 From: Gleb Date: Thu, 9 May 2024 17:03:46 -0700 Subject: [PATCH] Make some refund fields optional (#132) --- build.gradle.kts | 2 +- .../src/main/kotlin/org/stellar/walletsdk/anchor/Data.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 8b072e7..12528ba 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -12,7 +12,7 @@ val jvmVersion = JavaVersion.VERSION_11 allprojects { group = "org.stellar.wallet-sdk" - version = "1.5.0" + version = "1.5.1" } subprojects { diff --git a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/anchor/Data.kt b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/anchor/Data.kt index 8cb381b..8c837a3 100644 --- a/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/anchor/Data.kt +++ b/wallet-sdk/src/main/kotlin/org/stellar/walletsdk/anchor/Data.kt @@ -41,9 +41,9 @@ data class Refunds( @Serializable data class Payment( @SerialName("amount") val amount: String, - @SerialName("fee") val fee: String, + @SerialName("fee") val fee: String? = null, @SerialName("id") val id: String, - @SerialName("id_type") val idType: String + @SerialName("id_type") val idType: String? = null ) @Serializable