TransactionApi class
A class to handle API interactions related to transactions.
Constructors
- TransactionApi({required Dio dio, required String baseUrl, required String apiKey})
-
Constructs a TransactionApi instance.
const
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
-
check(
{required String id}) → Future< ApiResponseModel< TransactionModel?> > - Checks the status of a transaction.
-
create(
{required String offerId, required PaymentMethod paymentMethod, String? companyId}) → Future< ApiResponseModel< TransactionModel?> > - Creates a new transaction for credit purchase.
-
list(
{int? count, int? page, String? companyId}) → Future< ApiResponseModel< List< >TransactionModel> > - Lists transactions for the current user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{required String id, required TransactionStatus status}) → Future< ApiResponseModel< TransactionModel?> > - Updates the status of a transaction.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited