bankReceiptUpload abstract method

  1. @POST("${Api.bankReceiptUpload}/{resourceType}/store/{storeType}")
  2. @MultiPart()
Future<BankReceiptUploadModel> bankReceiptUpload({
  1. @Header("X-User-Id") String xUserId = "",
  2. @Header("X-User-Name") String xUserName = "",
  3. @Header("Content-Type") String type = "application/json",
  4. @Path("resourceType") required String resourceType,
  5. @Path("storeType") required String storeType,
  6. @Part(name: "file") required File file,
  7. @Part(name: "sourceSystem") required String sourceSystem,
})

Implementation

@POST("${Api.bankReceiptUpload}/{resourceType}/store/{storeType}")
@MultiPart()
Future<BankReceiptUploadModel> bankReceiptUpload({
  @Header("X-User-Id") String xUserId = "",
  @Header("X-User-Name") String xUserName = "",
  @Header("Content-Type") String type = "application/json",
  @Path("resourceType") required String resourceType,
  @Path("storeType") required String storeType,
  @Part(name: "file") required File file,
  @Part(name: "sourceSystem") required String sourceSystem,
});