Skip to content

Commit

Permalink
Convert IssuingCardPinService to Kotlin (#1863)
Browse files Browse the repository at this point in the history
This is the last Java file in the `stripe` module :)
  • Loading branch information
mshafrir-stripe authored Nov 22, 2019
1 parent a7075d8 commit 7fd735d
Show file tree
Hide file tree
Showing 6 changed files with 367 additions and 363 deletions.
18 changes: 1 addition & 17 deletions stripe/src/main/java/com/stripe/android/EphemeralKey.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import org.json.JSONObject
* for more details on ephemeral keys.
*/
@Parcelize
internal data class EphemeralKey internal constructor(
data class EphemeralKey internal constructor(
/**
* Represents a customer id or issuing card id, depending on the context
*/
Expand Down Expand Up @@ -66,21 +66,5 @@ internal data class EphemeralKey internal constructor(
type = type
)
}

@JvmSynthetic
internal fun create(
objectId: String,
created: Long,
expires: Long,
id: String,
isLiveMode: Boolean,
objectType: String,
secret: String,
type: String
): EphemeralKey {
return EphemeralKey(
objectId, created, expires, id, isLiveMode, objectType, secret, type
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ internal class EphemeralKeyManager(
arguments: Map<String, Any>?
)

fun onKeyError(operationId: String, errorCode: Int, errorMessage: String)
fun onKeyError(
operationId: String,
errorCode: Int,
errorMessage: String
)
}

private class ClientKeyUpdateListener internal constructor(
Expand Down
332 changes: 0 additions & 332 deletions stripe/src/main/java/com/stripe/android/IssuingCardPinService.java

This file was deleted.

Loading

0 comments on commit 7fd735d

Please sign in to comment.