Failure
data class Failure(val code: POFailure.Code, val message: String? = null) : ProcessOutActivityResult<Nothing>
Provides detailed information about an error that occurred.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
inline fun <T : Parcelable, R> ProcessOutActivityResult<T>.fold(onSuccess: (value: T) -> R, onFailure: (failure: ProcessOutActivityResult.Failure) -> R): R
Link copied to clipboard
Link copied to clipboard
inline fun <T : Parcelable> ProcessOutActivityResult<T>.onFailure(action: (failure: ProcessOutActivityResult.Failure) -> Unit): ProcessOutActivityResult<T>
Performs the given action on the encapsulated failure if this instance represents Failure. Returns the original ProcessOutActivityResult unchanged.
Link copied to clipboard
inline fun <T : Parcelable> ProcessOutActivityResult<T>.onSuccess(action: (value: T) -> Unit): ProcessOutActivityResult<T>
Performs the given action on the encapsulated value if this instance represents Success. Returns the original ProcessOutActivityResult unchanged.
Link copied to clipboard