Skip to content

Commit

Permalink
Change beacon input type to String instead of Int
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasvettefors committed Sep 11, 2024
1 parent 998b662 commit 66b9c91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.swedbankpay.mobilesdk.paymentsession.api.model.request.Service
@Keep
internal data class BeaconInput(
@SerializedName("type")
val type: Int,
val type: String,
@SerializedName("service")
val service: Service,
@SerializedName("client")
Expand All @@ -25,15 +25,15 @@ internal data class BeaconInput(
)

@Keep
enum class BeaconType(val identifier: Int) {
enum class BeaconType(val identifier: String) {
@SerializedName("ClientEvent")
CLIENT_EVENT(0),
CLIENT_EVENT("ClientEvent"),

@SerializedName("ClientSla")
CLIENT_SLA(1),
CLIENT_SLA("ClientSla"),

@SerializedName("RemoteSla")
REMOTE_SLA(2),
REMOTE_SLA("RemoteSla"),
}

@Keep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,6 @@ class PaymentSession(private var orderInfo: ViewPaymentOrderInfo? = null) {

}


private fun onSdkProblemOccurred(paymentSessionProblem: PaymentSessionProblem) {
// We can't recover from these two problems and because of that we clear the state
if (paymentSessionProblem is PaymentSessionProblem.PaymentSessionEndReached
Expand Down

0 comments on commit 66b9c91

Please sign in to comment.