SaleByCardManualCubit class

Inheritance
Mixed-in types
Implementers

Constructors

SaleByCardManualCubit(IUseCase<PurchaseResponse, PurchaseRequest> _purchaseUseCase, IUseCase<PurchaseResponse, PurchaseRequest> _purchaseOtpStepOneUseCase, IUseCase<PurchaseResponse, PurchaseRequest> _purchaseOtpStepTwoUseCase, IUseCase<PurchaseResponse, PurchaseRequest> _purchaseWithToken, IUseCase<CustomerTokenResponse, CustomerTokenRequest>? _getCustomerTokensUseCase)

Properties

cardHolderName String?
getter/setter pair
cardNo String?
getter/setter pair
customerToken CustomerToken?
getter/setter pair
cvV2 String?
getter/setter pair
email String?
getter/setter pair
expirationDateMonth String?
getter/setter pair
expirationDateYear String?
getter/setter pair
formKey GlobalKey<FormBuilderState>
final
hashCode int
The hash code for this object.
no setterinherited
isClosed bool
Whether the bloc is closed.
no setterinherited
isTokenized bool
getter/setter pair
originalTransactionId String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state ICubitState<PurchaseResponse>
The current state.
no setterinherited
stream Stream<ICubitState<PurchaseResponse>>
The current stream of states.
no setterinherited

Methods

addError(Object error, [StackTrace? stackTrace]) → void
Reports an error which triggers onError with an optional StackTrace.
inherited
clearFormFields() → void
Clears all form fields to ensure a clean state when the SDK is reopened
close() Future<void>
Closes the instance. This method should be called when the instance is no longer needed. Once close is called, the instance can no longer be used.
inherited
emit(ICubitState<PurchaseResponse> state) → void
Updates the state to the provided state. emit does nothing if the state being emitted is equal to the current state.
inherited
getCustomerTokens(BuildContext context, void setContext(void (BuildContext)), OnPayCallback onPay, EventCallback? log, void customerCallback(String?)?, void onResponse(String?)?, PaymentArguments args, String? customerId) Future<void>
initial() → void
mapNetworkState(NetworkState<PurchaseResponse> networkState) ICubitState<PurchaseResponse>
Maps a NetworkState to an ICubitState for UI consumption.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChange(Change<ICubitState<PurchaseResponse>> change) → void
Handles automatic UI updates based on state changes.
inherited
onError(Object error, StackTrace stackTrace) → void
Called whenever an error occurs and notifies BlocObserver.onError.
inherited
payWithToken(String amount, String terminalId, int currencyId, int merchantId, String? transactionId, BuildContext? context, {bool isTokenized = false, String? customerId, String? customerTokenId, String? cvv, void dismissLoaderTrigger(void ())?}) Future<PurchaseData?>
purchase(String amount, String terminalId, int currencyId, int merchantId, String? transactionId, BuildContext? context) Future<PurchaseData?>
purchaseOtpStepOne(String amount, String terminalId, int currencyId, int merchantId, String? transactionId, BuildContext? context, {bool isTokenized = false, void dismissLoaderTrigger(void ())?}) Future<PurchaseData?>
purchaseOtpStepTwo(String amount, String terminalId, int currencyId, int merchantId, String? transactionId, String otp, String originTransactionId, bool isTokenized) Future<Either<Map<String, dynamic>, PurchaseData>>
showLoader() → void
toString() String
A string representation of this object.
inherited

Operators

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