ApiClient class abstract

Annotations
  • @RestApi()

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 = "", String xUserName = "", String type = "application/json", required String resourceType, required String storeType, required File file, required String sourceSystem}) Future<BankReceiptUploadModel>
collectPayment({required CollectPaymentRequest body, required String cartId, String xUserId = "", String xUserName = ""}) Future<CollectPaymentModel>
cpmDropDown({required int dropDownMasterId, int page = 1, int size = 10, String sort = "dropDownValue", String order = "desc"}) Future<CpmDropDown>
creditLimitValidation({required String cartId, String xUserId = "", String type = "application/json", String xRoles = ""}) Future<CreditLimitValidationModel>
deleteAssetById({required String cartId, String? assetId, String? startRange, String? endRange, String? productCode, String xUserId = "", String type = "application/json", String xRoles = ""}) Future<CartModel>
deleteProductById({required String cartId, required String productId, String xUserId = "", String type = "application/json", String xRoles = ""}) Future<CartModel>
discountCart({required dynamic cartDiscountId, String xUserId = "", String type = "application/json", String xRoles = "", required String cartId}) Future<CartModel>
discountDeleteCart({required dynamic cartDiscountId, required String cartId, String xUserId = "", String type = "application/json", String xRoles = ""}) Future<CartModel>
docUpload({String type = "image/png", File? file}) Future<GenericUploadResponse>
getAccessToken({required String userName}) Future<LoginResponseModel>
getAssetDetails({int pageNo = 1, int perPageCount = 10, required String filterRetailerNumber, required String filterProductCode, required String filterStatusId, String? filterSerialNumberLike, String orderBy = "DESC", String sort = "updatedAt", String xUserId = "", String type = "application/json"}) Future<StockDealerAssetModel>
getAvailableStocks({required dynamic body, String xUserId = "", String type = "application/json"}) Future<StockDealerProductModel>
getBillDetails({String xUserId = "", String type = "application/json", String xRoles = "", required String orderId, int offset = 0, int limit = 1}) Future<InvoiceModel>
getCollectHistoryAssets({String? search, required String type, int limit = 10, int? offset, required String productCode, required String assetsTransactionId}) Future<CollectHistoryAssetsModel>
getCollectStockHistoryProducts({required String assetsTransactionId, required String offset, required String limit, required String type, String xUserId = "", String contentType = "application/json"}) Future<CollectStockHistoryDetailsModel>
getCollectStockHistoryTransactions({String? toPartyId, String? fromPartyId, required String transactionByParty, required String offset, required String limit, String? status, String? search, String? fromDate, String? toDate, required String type, String xUserId = "", String contentType = "application/json"}) Future<CollectStockHistoryModel>
getCollectStockTransactionsAsset({int pageNo = 0, int perPageCount = 10, required String filterStatus, required String productCode, required String scanInOrderId, String orderBy = "ASC", String sort = "id", String xUserId = "", String type = "application/json"}) Future<CheckStockAssetModel>
getCreditLimitDetails(String userId) Future<CreditLimitdetailsModel>
getDealerOnboardingCount({required String userId, required String fromDate, required String toDate, int size = 1, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<DealerOnboardingModel>
getDroDistributerList({int? userType, int? size, int? page, String? partnerId, String? sort, String order = "asc", bool? softDelete, int? status, bool? isSalesForce, String? keyword}) Future<DroDustributerListModel>
getGrnTransactions({required String filterStatus, required String filterPartnerId, String? filterExternalReferenceId, String xUserId = "", String type = "applicatin/json", required String sort, required String orderBy, required int pageNo, required int perPageCount}) Future<GrnTransactionResponse>
getLevelDetails({required int levelId, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<DistributerLevelModel>
getLocation({int page = 1, int size = 100, String sort = "createdDate", String order = "desc", bool softDelete = false, int locationType = 2, String? parentId}) Future<GenericLocationResponse>
getMoreInfo({required String dealerId, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<DealerDetailsModel>
getNextVisit({required String partnerId}) Future<List<NextVisit>>
getNotificationList({required String sort, String? userId, String? fromDate, String? toDate, String? keyword, String order = "dsc", int? page, int? size, String xUserId = "", String type = "applicatin/json"}) Future<NotificationModel>
getoutlettypeGrade({required String dropDownMasterId}) Future<OutletGradeTypeModel>
getPartnerIds({String order = "desc", required String positionId, String? fromDate, String? toDate, String? sort}) Future<PartnerIdModel>
getProductOrder({required dynamic body, String sortBy = "ASC", String fieldName = "", int? offset, int? limit, String xUserId = "", String type = "application/json"}) Future
getScanInTransactions({required String filterStatus, String? filterPogId, required String userId, String xUserId = "", String type = "application/json"}) Future<CheckStockProductModel>
getScanInTransactionsAsset({int pageNo = 1, int perPageCount = 10, required String filterStatus, required String productCode, required String userId, String orderBy = "ASC", String sort = "id", String xUserId = "", String type = "application/json"}) Future<CheckStockAssetModel>
getSchedules({int page = 1, int size = 10, String order = "desc", required String positionId, String? coordinates, String? fromDate, String? toDate, bool? visitStatus}) Future<ScheduleResponse>
getSellThruHistoryAssets({required String userId, int perPageCount = 2000, String? id, String order = "ASC", String? fromDate, String? toDate, required String productCode, required String filterTransferOrderId, required String filterPartnerID}) Future<StockDeliveryHistoryAssetModel>
getSellThruHistoryDetails({required String userId, int perPageCount = 10, required String filterPartnerID, String? id, String order = "ASC", required String fromDate, required String toDate}) Future<StockDeliveryHistoryModel>
getStockOrderHistoryDetailsJc({required String mainSaleOrderId}) Future<StockHistoryResponse>
getSurvey({int page = 1, int size = 10, String order = "desc", String fromDate = "", String xUserId = ""}) Future<SurveyResponse>
getSurveyDetails({required String id}) Future<SurveyDetailsResponse>
getSurveyHistory({required String partnerId, int page = 1, int size = 10, String order = "desc", String fromDate = "submitDate"}) Future<SurveyHistoryResponse>
getUserInfo({String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<UserInfoResponse>
getUserList() Future<UserList>
getVisitSurveyCount({required String userId, String xUserId = "", String type = "application/x-www-form-urlencoded"}) Future<VisitsModel>
getWarehouseList({String xUserId = "", int? size, int? page, required String partnerId, String sort = "createdDate", String order = "asc", int status = 1, String? keyword}) Future<WarehouseModel>
grnSubmit({required dynamic body, String xUserName = "", String xUserId = "", String contentType = "application/json", required String status, required String transferOrderId}) Future<GrnSubmitModel>
invoiceReceipt({required dynamic body, String xUserName = "", String xUserId = "", String contentType = "application/json", required String status, required String orderId}) Future<InvoiceReceiptModel>
logCrash({required dynamic body, String contentType = "application/json"}) Future<AnalyticsResponse>
newsDetail({required dynamic body, String xUserId = "", String xAuthToken = "", String athorization = ""}) Future<NewsDetailsModel>
newsLikeDislike({required dynamic body, String xUserId = "", String xAuthToken = "", String athorization = ""}) Future<NewsLikeDislikeModel>
newsList({required dynamic body, String xUserId = "", String xAuthToken = "", String athorization = ""}) Future<NewsModel>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notificationUpdate({required String userId, required String deviceId}) Future<GenericResponse>
onboarding({String type = "application/json", String xUserId = "", required dynamic body}) Future<GenericResponse>
onboardingHistory({int serviceId = 6, String createdBy = "", String? keyword, int? approvalStatus, String? fromDate, String? toDate, String? locationId4, String? dealerType, String? dealerGrade, int page = 1, int size = 100, String sort = "transactionDate", String order = "desc"}) Future<OnboardingHistory>
onboardingHistoryDetail({required int id}) Future<OnboardingDetail>
onboardingUpdate({required int id, String xUserId = "", required dynamic body, String type = "application/json"}) Future<GenericResponse>
ownershipTransferForAssets({required CollectStockSubmitRequest body, String contentType = "application/json", String xUserToken = "", required String type, required String cartId}) Future<OwnershipChangeModel>
paymentCollectionFetch({String xUserId = "", String xUserName = "", required String invoiceId}) Future<PaymentDetailsModel>
pendingProductsApproval({String xUserName = "", required String type, required String assetsTransactionId, required String status, String? remarks}) Future<ScanInHistoryApprovalResponse>
settledUnsettledAmount({required String soldThroughParty, required String status, required String type, required String category, String? date, String xUserId = "", String xUserName = "", String contentType = "applicatin/json"}) Future<SettledUnsettledModel>
spotSellthruSubmit({required SpotSellThruSubmitRequest body, required String transactionType, String xUserId = "", String type = "application/json", String xUserName = "", required String cartId}) Future<SpotSellThruSubmitModel>
stockDeliverySellthruSubmit({required PaymentCollectionRequest body, required String cartId, String xUserId = "", String type = "application/json", String xUserName = "", String xRoles = ""}) Future<SellThruStockDeliverySubmitModel>
submitSurvey({required dynamic body, String xUserId = "", String type = "application/json"}) Future<GenericResponse>
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>
validateAssets({String? assetStartRange, String? assetEndRange, String? assetIds, required String action, String? fromPartnerId, String? transferOrderId, String xUserId = "", String type = "application/json"}) Future<StockDeliveryScanModel>
validateAssetsV2({String? assetStartRange, String? assetEndRange, int perPageCount = 10, int pageNo = 1, String sort = "id", String? keyword, String? assetIds, required String action, required String fromPartnerId, String? transferOrderId, String xUserId = "", String type = "application/json"}) Future<StockDeliveryScanModel>

Operators

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