core / com.schibsted.account.engine.integration.contract / SignUpContract

SignUpContract

interface SignUpContract : Contract<Identifier>, Credentials.Provider, Agreements.Provider, RequiredFields.Provider

Contract for creating accounts

Inherited Functions

onAgreementsRequested

abstract fun onAgreementsRequested(agreementsProvider: InputProvider<Agreements>, agreementLinks: AgreementLinksResponse): Unit

Called when a user has not agreed to the Schibsted account or platform agreements

onCredentialsRequested

abstract fun onCredentialsRequested(provider: InputProvider<Credentials>): Unit

Called when user credentials are required

onFlowReady

abstract fun onFlowReady(callbackProvider: CallbackProvider<T>): Unit

Called when the flow is ready to be completed. This is the last step of a flow and will return the result of the flow in the provided callback

onRequiredFieldsRequested

abstract fun onRequiredFieldsRequested(requiredFieldsProvider: InputProvider<RequiredFields>, fields: Set<String>): Unit

Called when additional fields are needed to log in the user