Cleanup, fix typos (#299)

* Fix typo in PaymentSucceeded event name

* Remove fixed todo

* Organize imports

* Fix log typos

* Re-generate flutter bindings

* Re-generate RN bindings

* Fix "Unhandled msg" logs for WS pings

* Hide ureq debug logs, showing raw HTTP headers for Boltz calls
This commit is contained in:
ok300
2024-06-07 04:53:14 +00:00
committed by GitHub
parent 2928e0fa58
commit 7276346a5f
23 changed files with 100 additions and 93 deletions

View File

@@ -701,8 +701,8 @@ fun asLiquidSdkEvent(liquidSdkEvent: ReadableMap): LiquidSdkEvent? {
if (type == "paymentRefundPending") {
return LiquidSdkEvent.PaymentRefundPending(liquidSdkEvent.getMap("details")?.let { asPayment(it) }!!)
}
if (type == "paymentSucceed") {
return LiquidSdkEvent.PaymentSucceed(liquidSdkEvent.getMap("details")?.let { asPayment(it) }!!)
if (type == "paymentSucceeded") {
return LiquidSdkEvent.PaymentSucceeded(liquidSdkEvent.getMap("details")?.let { asPayment(it) }!!)
}
if (type == "paymentWaitingConfirmation") {
return LiquidSdkEvent.PaymentWaitingConfirmation(liquidSdkEvent.getMap("details")?.let { asPayment(it) }!!)
@@ -732,8 +732,8 @@ fun readableMapOf(liquidSdkEvent: LiquidSdkEvent): ReadableMap? {
pushToMap(map, "type", "paymentRefundPending")
pushToMap(map, "details", readableMapOf(liquidSdkEvent.details))
}
is LiquidSdkEvent.PaymentSucceed -> {
pushToMap(map, "type", "paymentSucceed")
is LiquidSdkEvent.PaymentSucceeded -> {
pushToMap(map, "type", "paymentSucceeded")
pushToMap(map, "details", readableMapOf(liquidSdkEvent.details))
}
is LiquidSdkEvent.PaymentWaitingConfirmation -> {