This method allows you get a new instance of NolPayUnlinkCardComponent
that can be used to unlink existing
Nol Pay cards.
1
fun provideNolPayUnlinkCardComponent(viewModelStoreOwner: ViewModelStoreOwner): NolPayUnlinkCardComponent
Parameters
The ViewModelStoreOwner to associate with the component.
Returns
An instance of NolPayUnlinkCardComponent
.
NolPayUnlinkCardComponent
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.
sealed interface NolPayUnlinkCollectableData
Data class representing Nol Pay card and phone data for unlinking.
Properties
The Nol Pay payment card to unlink is retrieved using NolPayLinkedCardsComponent.
The mobile number in E.164 format that was associated with the Nol Pay account.
Properties
Call submit
function in order to process collected data and move component to next state.
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.
sealed interface NolPayUnlinkCardStep
Object representing the step to collect card and phone data for unlinking Nol Pay card.
Properties
The unlinked Nol Pay card.
The PrimerValidationStatus
interface encompasses a range of validation statuses.
sealed interface PrimerValidationStatus
Properties
The data being validated.
Properties
The successfully validated data.
Properties
List of PrimerValidationError
objects that represent data validation errors emitted by this component.
Properties
The data that failed validation.
Properties
The specific PrimerError
that occurred during validation.
The data for which the error occurred.
Get a Flow of PrimerError objects that represent errors emitted by this component. Subscribers can observe and handle errors using this Flow.