ApiService class
Mirrors AuthApi.kt — all active (non-payment) endpoints
Constructors
- ApiService(Dio _dio)
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
-
activateDevice(
DeviceActivateRequest request) → Future< NetworkResponse< DeviceSession> > -
addProductToCart(
String cartId, AddProductToCartRequest request) → Future< NetworkResponse< ShoppingCartDetails> > -
applySpecialPromo(
String cartId, SpecialPromoRequest request) → Future< NetworkResponse< ShoppingCartDetails> > -
applyVoucher(
String cartId, String voucherCode) → Future< NetworkResponse< ShoppingCartDetails> > -
checkout(
CheckoutRequest request) → Future< NetworkResponse< CheckoutResponse> > -
createCart(
CreateCartRequest request) → Future< NetworkResponse< CreateCartResponse> > -
deleteProductFromCart(
String cartId, DeleteProductInCartRequest request) → Future< NetworkResponse< ShoppingCartDetails> > -
editProductQuantity(
String cartId, EditProductRequest request) → Future< NetworkResponse< ShoppingCartDetails> > -
employeeLogin(
EmployeeLoginRequest request) → Future< NetworkResponse< EmployeeLoginResponse> > -
getCartDetails(
String cartId) → Future< NetworkResponse< ShoppingCartDetails> > -
getDeviceDetails(
String deviceId) → Future< NetworkResponse< DeviceDetailsResponse> > -
getInvoicePdf(
{required String orderNo, required String merchantId, required String outletId}) → Future< NetworkResponse< InvoiceResponse> > -
getInvoicePdfLegacy(
String referenceNo) → Future< NetworkResponse< InvoiceResponse> > - Legacy invoice URL — kept for compatibility.
-
getPaymentSummary(
String cartId) → Future< NetworkResponse< ShoppingCartDetails> > -
makePayment(
PayRequest request) → Future< NetworkResponse< PaymentResponse> > -
makePaymentLegacy(
PaymentRequest request) → Future< NetworkResponse< PaymentResponse> > - Legacy payment endpoint — kept for compatibility.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyPayment(
UpdatePaymentRequest request) → Future< NetworkResponse< PaymentStatusResponse> > - Legacy payment notify — kept for compatibility.
-
refreshDeviceToken(
DeviceTokenRequest request) → Future< NetworkResponse< DeviceSession> > -
removeVoucher(
String cartId) → Future< NetworkResponse< ShoppingCartDetails> > -
scanProduct(
String barcode) → Future< NetworkResponse< ProductScanResult> > - Combined scan preview — replaces separate product + price calls.
-
searchPrice(
String barcode, {required String merchantId, required String outletId}) → Future< NetworkResponse< ProductPriceInfo> > - Legacy price endpoint — kept for compatibility.
-
searchProduct(
String barcode, {required String merchantId, required String outletId}) → Future< NetworkResponse< ProductInfo> > - Legacy product info endpoint — kept for compatibility.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited