InlineSignupViewState

data class InlineSignupViewState @VisibleForTesting(otherwise = 4) constructor(val userInput: UserInput?, val merchantName: String, val signupMode: LinkSignupMode?, val fields: List<LinkSignupField>, val prefillEligibleFields: Set<LinkSignupField>, isExpanded: Boolean = false, apiFailed: Boolean = false, signUpState: SignUpState = SignUpState.InputtingPrimaryField)

The LinkInlineSignup view state.

Parameters

userInput

The collected input from the user, always valid unless null.

isExpanded

Whether the checkbox is selected and the view is expanded.

apiFailed

Whether an API call has failed. In such cases, we want to continue the payment flow without Link.

signUpState

The stage of the sign in or sign up flow.

Constructors

Link copied to clipboard
@VisibleForTesting(otherwise = 4)
constructor(userInput: UserInput?, merchantName: String, signupMode: LinkSignupMode?, fields: List<LinkSignupField>, prefillEligibleFields: Set<LinkSignupField>, isExpanded: Boolean = false, apiFailed: Boolean = false, signUpState: SignUpState = SignUpState.InputtingPrimaryField)

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether the view is active and the payment should be processed through Link.

Link copied to clipboard