NolPayUnlinkCardComponent
that can be used to unlink existing
nol Pay cards.
KOTLIN
Copy
Ask AI
fun provideNolPayUnlinkCardComponent(viewModelStoreOwner: ViewModelStoreOwner): NolPayUnlinkCardComponent
Parameters
Hide Parameters
Hide Parameters
The ViewModelStoreOwner
to associate with the component.
Returns
An instance ofNolPayUnlinkCardComponent
.
Hide NolPayUnlinkCardComponent
Hide NolPayUnlinkCardComponent
start()
Initialize the component by calling the start function. This method should be called only once.
updateCollectedData(collectableData: NolPayUnlinkCollectableData)
Update component with collected data by passing implementations of sealed interface representing collectable data for unlinking a nol Pay card.
This method can be called at any point, even if you have only partially collected data.
To validate the partially collected data, you can refer to the
componentValidationStatus
and receive the validation status when it’s updated.
Show sealed interface NolPayUnlinkCollectableData
Show sealed interface NolPayUnlinkCollectableData
NolPayCardAndPhoneData
Data class representing nol Pay card and phone data for unlinking.
Hide Properties
Hide Properties
The nol Pay payment card to unlink is retrieved using NolPayLinkedCardsComponent.
submit()
Call
submit
function in order to process collected data and move component to next state.componentStep: Flow<NolPayUnlinkCardStep>
NolPayUnlinkCardStep
is a class holding different output data for specific steps. Whenever
start or submit methods are
called,
componentStep
will trigger the next step in case the call to the mentioned method was successful.
Show sealed interface NolPayUnlinkCardStep
Show sealed interface NolPayUnlinkCardStep
CollectCardAndPhoneData
Object representing the step to collect card and phone data for unlinking nol Pay card.
CollectOtpData
Object representing the step of collecting OTP (One-Time Password) data for nol Pay card unlinking.
componentValidationStatus: Flow<PrimerValidationStatus<NolPayUnlinkCollectableData>>
The
PrimerValidationStatus
interface encompasses a range of validation statuses.Show sealed interface PrimerValidationStatus
Show sealed interface PrimerValidationStatus
Validating<NolPayUnlinkCollectableData>
Indicates that data is currently in the process of being validated.
Hide Properties
Hide Properties
The data being validated.
Valid<NolPayUnlinkCollectableData>
Indicates that the data has successfully been validated.
Hide Properties
Hide Properties
The successfully validated data.
Invalid<NolPayUnlinkCollectableData>
Indicates that the data has been considered invalid after validation.
Hide Properties
Hide Properties
List of
PrimerValidationError
objects that represent data validation errors emitted by this component.The data that failed validation.
Error<NolPayUnlinkCollectableData>
Represents the status when an error occurred during the validation process.
Hide Properties
Hide Properties
The specific
PrimerError
that occurred during validation.Show PrimerValidationError
Show PrimerValidationError
A unique error identifier.
A unique error code.
A error description.
A recovery suggestion for the given error. In case it’s present, use it to try
to recover from error.
A unique diagnostics id for the given error.
The data for which the error occurred.
componentError: Flow<PrimerError>
Get a Flow
of PrimerError objects that represent errors emitted by this component.
Subscribers can observe and handle errors using this Flow.