Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert IssuingCardPinService to Kotlin #1863

Merged
merged 1 commit into from
Nov 22, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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