PluginExtension class

DigetSposPlugin.Extension — advanced methods for custom integrations. Matches: DigetSposPlugin.Extension in native SDK.

Constructors

PluginExtension.create()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateOnlineReceipt({required ReceiptType type, required String id, required void onSuccess(String url), required OnErrorCallBack onError}) Future<void>
Fetches the online-receipt token for id and builds the full receipt URL. type selects the receipt (reconciliation vs transaction). onSuccess returns the receipt URL string.
getAvailableTerminal({required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
getInitialKey({required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
getTerminalConfig({bool forceDownload = false, FunctionCode configurationType = FunctionCode.FULL_TERMINAL_CONFIGURATION, required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
getUserInfo({required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
init({required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
initKernels({required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
loginWithCredentials({required String email, required String password, required Location location, required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
loginWithPhone({required String phoneNumber, required Location location, required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
Start a phone-number login. onSuccess returns the session id and OTP expiry; follow up with verifyOtp (and, for multi-profile accounts, selectUser).
loginWithToken({required String token, required Location location, required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openOnlineReceipt({required ReceiptType type, required String id, OnErrorCallBack? onError}) Future<void>
Generates and opens the online receipt for id in the device browser. type selects the receipt (reconciliation vs transaction).
prepareTerminalWithToken({required String token, required Location location, required OnTerminalBindingTask onTerminalBindingTask, required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
registerTerminal({required String trsm, required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
renewSessionIfRequiredAndPossible({required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
resendOtp({required String sessionId, required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
selectUser({required String sessionId, required String userId, required String otp, required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
Complete a multi-profile login: after verifyOtp returns profiles via onProfileSelection, call this with the chosen userId plus the same sessionId and otp. onSuccess returns the authenticated session.
toString() String
A string representation of this object.
inherited
unbindTerminal({required OnSuccessCallback onSuccess, required OnErrorCallBack onError}) Future<void>
Unbind the currently bound terminal from this device.
verifyOtp({required String sessionId, required String otp, required OnSuccessCallback onSuccess, required OnErrorCallBack onError, OnProfileSelection? onProfileSelection}) Future<void>
Verify the OTP for sessionId.

Operators

operator ==(Object other) bool
The equality operator.
inherited