Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
rdlabo committed Dec 5, 2024
1 parent 596689d commit 9c55d7f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.getcapacitor.JSObject
import com.stripe.stripeterminal.external.models.DeviceType
import com.stripe.stripeterminal.external.models.Location
import com.stripe.stripeterminal.external.models.LocationStatus
import com.stripe.stripeterminal.external.models.NetworkStatus
import com.stripe.stripeterminal.external.models.Reader
import com.stripe.stripeterminal.external.models.ReaderSoftwareUpdate

Expand All @@ -29,7 +30,7 @@ class TerminalMappers {
.put("id", location.id)
.put("displayName", location.displayName)
.put("address", address)
.put("livemode", location.getLivemode())
.put("livemode", location.livemode)
}

fun mapFromReaderSoftwareUpdate(update: ReaderSoftwareUpdate?): JSObject {
Expand All @@ -56,9 +57,9 @@ class TerminalMappers {
}
}

fun mapFromNetworkStatus(status: NetworkStatus?): String {
fun mapFromNetworkStatus(status: Reader.NetworkStatus?): String {
if (status == null) {
return "unknown"
return "UNKNOWN"
}

return when (status) {
Expand Down

0 comments on commit 9c55d7f

Please sign in to comment.