getCollectStockHistoryTransactions abstract method

  1. @GET("${Api.getCollectStockHistoryTransactions}/{type}")
Future<CollectStockHistoryModel> getCollectStockHistoryTransactions({
  1. @Query("toPartyId") String? toPartyId,
  2. @Query("fromPartyId") String? fromPartyId,
  3. @Query("transactionByParty") required String transactionByParty,
  4. @Query("offset") required String offset,
  5. @Query("limit") required String limit,
  6. @Query("status") String? status,
  7. @Query("search") String? search,
  8. @Query("fromDate") String? fromDate,
  9. @Query("toDate") String? toDate,
  10. @Path("type") required String type,
  11. @Header("X-UserId") String xUserId = "",
  12. @Header("content-type") String contentType = "application/json",
})

Implementation

@GET("${Api.getCollectStockHistoryTransactions}/{type}")
Future<CollectStockHistoryModel> getCollectStockHistoryTransactions({
  @Query("toPartyId") String? toPartyId,
  @Query("fromPartyId") String? fromPartyId,
  @Query("transactionByParty") required String transactionByParty,
  @Query("offset") required String offset,
  @Query("limit") required String limit,
  @Query("status") String? status,
  @Query("search") String? search,
  @Query("fromDate") String? fromDate,
  @Query("toDate") String? toDate,
  @Path("type") required String type,
  @Header("X-UserId") String xUserId = "",
  @Header("content-type") String contentType = "application/json",
});