-
- All Implemented Interfaces:
-
io.primer.android.components.manager.raw.PrimerHeadlessUniversalCheckoutRawDataManagerInterface,io.primer.android.di.DIAppComponent,org.koin.core.component.KoinComponent
public final class PrimerHeadlessUniversalCheckoutRawDataManager implements PrimerHeadlessUniversalCheckoutRawDataManagerInterface, DIAppComponent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPrimerHeadlessUniversalCheckoutRawDataManager.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StringpaymentMethodType
-
Method Summary
Modifier and Type Method Description final StringgetPaymentMethodType()UnitsetManagerListener(PrimerHeadlessUniversalCheckoutRawDataManagerListener listener)Configures the PrimerHeadlessUniversalCheckoutRawDataManager with PrimerHeadlessUniversalCheckoutRawDataManagerListener. Unitsubmit()Submits the PrimerRawData previously set by setRawData. UnitsetRawData(PrimerRawData rawData)Sets the current PrimerRawData. List<PrimerInputElementType>getRequiredInputElementTypes()Lists the PrimerInputElementType required by PrimerHeadlessUniversalCheckoutRawDataManager Unitcleanup()This method should be called when disposing the listener in order to free Primer SDK resource. Unitconfigure(Function2<PrimerInitializationData, PrimerError, Unit> completion)This method should be called when payment method require to preload additional data, like retail outlets or banks list. -
-
Method Detail
-
getPaymentMethodType
final String getPaymentMethodType()
-
setManagerListener
Unit setManagerListener(PrimerHeadlessUniversalCheckoutRawDataManagerListener listener)
Configures the PrimerHeadlessUniversalCheckoutRawDataManager with PrimerHeadlessUniversalCheckoutRawDataManagerListener.
-
submit
Unit submit()
Submits the PrimerRawData previously set by setRawData.
-
setRawData
Unit setRawData(PrimerRawData rawData)
Sets the current PrimerRawData. This method will invoke validation and metadata checks on each change. These will invoke PrimerHeadlessUniversalCheckoutRawDataManagerListener callbacks.
-
getRequiredInputElementTypes
List<PrimerInputElementType> getRequiredInputElementTypes()
Lists the PrimerInputElementType required by PrimerHeadlessUniversalCheckoutRawDataManager
-
cleanup
Unit cleanup()
This method should be called when disposing the listener in order to free Primer SDK resource. Once instance of PrimerHeadlessUniversalCheckoutRawDataManager has freed up the used resources, it is in the same state as newly created PrimerHeadlessUniversalCheckoutRawDataManager and can be used once again, but should go through setManagerListener once again.
-
configure
Unit configure(Function2<PrimerInitializationData, PrimerError, Unit> completion)
This method should be called when payment method require to preload additional data, like retail outlets or banks list.
-
-
-
-