ApiClient class abstract

Annotations
  • @RestApi.new()

Constructors

ApiClient({String? baseUrl, int? receiveTimeout, int? connectTimeout, String? screenName, String? buttonName, String? transactionId, dynamic onFetchRequestTime(String time)?, dynamic onFetchResponseTime(String time)?, bool isLogRequired = true})
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

addToCart({required AddToCartRequest body, String xUserId = "", String type = "application/json", String xRoles = ""}) Future<CartModel>
bankReceiptUpload({String xUserId = "", required String resourceType, required String storeType, required File file, required String sourceSystem}) Future<BankReceiptUploadModel>
cancelOrderRequest({required dynamic body, String xUserId = "", String type = "application/json"}) Future<CancelOrderModel>
cpmDropDown({String xUserId = "", required int dropDownMasterId, int? page, int? size, String sort = "dropDownValue", String order = "desc", String? parentId, int? status, bool? includeBasicInfo}) Future<CpmDropDown>
createCustomer({String xUserId = "", required dynamic body}) Future<CreateCustomerResponse>
createEVDOrder({String xUserId = "", required dynamic body}) Future<CreateOrderResponseModel>
createOrder({String xUserId = "", required dynamic body}) Future<CreateOrderResponseModel>
createPosSaleOrder({String xUserId = "", required dynamic body}) Future<CreateOrderResponseModel>
customerList({int? page, int? size, String? sort = "createdDate", String? order = "desc", String? keyword}) Future<CustomerListResponse>
customerUpdate({required int id, String xUserId = "", required dynamic body, String type = "application/json"}) Future<GenericResponse>
deleteDoc({required String fileName, String xUserId = "", String type = "application/json"}) Future<GenericResponse>
fetchBalance({String xUserId = "", required dynamic body}) Future<FetchBalanceModel>
fetchEVDProducts({required int pogId, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<EVDProductDetails>
getAccessToken({required dynamic body, String contentType = "application/json"}) Future<SecondLoginModel>
getCustomersList({int? page, int? size, int? status, int? levelId, bool? isLoginRequired, String sort = "createdDate", String? order, String? keyword, String xUserId = "", String type = "application/json"}) Future<CustomerModel>
getDestinationAddressList({String? partnerId, int? page, int? size, String? keyword}) Future<DestinationAddressResponseModel>
getLocations({int page = 1, int size = 100, String sort = "createdDate", String order = "asc", bool? softDelete, int? locationType, int channelId = 1, String? parentId}) Future<GenericLocationResponse>
getLocationTypes({String sort = "type", String order = "asc"}) Future<List<LocationTypeModel>>
getManageApprovals({required dynamic body, required String taskId, required bool approved, bool? isCancelled, required String message, String xUserId = "", String type = "application/json"}) Future<GenericResponse>
getMoreInfo({required String dealerId, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<PartnerDetailsModel>
getOrderRulesServiceRequest({required dynamic body, String xUserId = "", String type = "application/json"}) Future<GenericResponse>
getPartnerList({int? levelId, int? page, int? size, String? status = "1", String? sort = "partnerName", String? order = "asc", String? keyword}) Future<PartnerResponseModel>
getServiceParent({required String dealerId, String xUserId = "", String type = "application/json"}) Future<ServiceParentResponseModel>
getSourceAddressList({String? warehouseCategory, int? page, int? size, String? keyword}) Future<SourceAddressResponseModel>
getTaskList({required dynamic body, String xUserId = "", String type = "application/json"}) Future<TaskModel>
getUserInfo({String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<UserInfoResponse>
getWarehousesList({int? page, int? size, int? status, String? partnerId, String? warehouseCategory, String? sort, String? order, String? keyword, String xUserId = "", String type = "application/json"}) Future<WarehouseModel>
grnSubmit({required dynamic body, String xUserId = "", String contentType = "application/json"}) Future<GrnSubmitResponse>
historyMoreInfo({required int dealerId, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<HistoryMoreInfoModel>
logCrash({required dynamic body, String contentType = "application/json"}) Future<AnalyticsResponse>
modifyOrder({String xUserId = "", required dynamic body}) Future<CreateOrderResponseModel>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
orderCreation({required OrderCreationRequest body, required String cartId, String xUserId = "", String type = "application/json", String xRoles = ""}) Future<CartModel>
orderDraftOrder({String xUserId = "", required dynamic body}) Future<DraftOrderDetailsResponseModel>
orderList({int? page, int? size, String? sort = "orderDate", String? order = "desc", String? keyword, String? orderCompletionStatus, String? buyerPartnerId}) Future<OrderListResponseModel>
partnerList({int? page, int? size, String? sort = "createdDate", String? order = "desc", String? keyword}) Future<PartnerListResponse>
paymentRecieptSubmit({String xUserId = "", required dynamic body}) Future<GenericResponse>
posSaleHistory({int? page, int? size, String? sort = "orderDate", String? order = "desc", String? keyword, String? status, String? orderType, String? orderType1, String? fromDate, String? toDate}) Future<PosSaleHistoryModel>
posSaleSerialNumber({required String xRequestID, String? sort = "id", String? orderBy = "ASC", int? pageNo, int? perPageCount, String? keyword, String? filterPosOrderId, String? filterProductCode}) Future<PosSaleSerialNumberListModel>
priceSegmentDropdown({required String id, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<List<PricingSegmentModel>>
productDetailsList({required int pogId, int? customerSegment, String? searchText, String? subGroupId, String? order = "desc", String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<ProductDetailsResponseModel>
productList({required String pogId, required String subGroupId}) Future<OrderRulesProductModel>
productTypeList({required String partnerId, String sort = "name", String order = "asc"}) Future<ProductTypeResponseModel>
queueList({required String id}) Future<QueueListModel>
queuePopout({required String cartId}) Future<CartResponseModel>
queuePush({String xUserId = "", required dynamic body}) Future<QueuePushModel>
taskDetails({required String taskId, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<TaskdetailsModel>
toString() String
A string representation of this object.
inherited
updateCart({required AddToCartRequest body, required String cartId, String xUserId = "", String type = "application/json", String xRoles = ""}) Future<CartModel>
ventasReport({required String reportName, String? startDate, String? endDate, int? page, int? size, String? buyerPartnerId, String? partnerId, String? shopId, String? sellerPartnerId, String? warehouseId}) Future<PrimaryOrderModel>

Operators

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