invoiceReceipt abstract method

  1. @POST("${Api.invoiceReceipt}/{orderId}/invoice-receipt:{status}")
Future<InvoiceReceiptModel> invoiceReceipt({
  1. @Body() required dynamic body,
  2. @Header("X-User-Name") String xUserName = "",
  3. @Header("X-User-Id") String xUserId = "",
  4. @Header("content-type") String contentType = "application/json",
  5. @Path("status") required String status,
  6. @Path("orderId") required String orderId,
})

Implementation

@POST("${Api.invoiceReceipt}/{orderId}/invoice-receipt:{status}")
Future<InvoiceReceiptModel> invoiceReceipt({
  @Body() required dynamic body,
  @Header("X-User-Name") String xUserName = "",
  @Header("X-User-Id") String xUserId = "",
  @Header("content-type") String contentType = "application/json",
  @Path("status") required String status,
  @Path("orderId") required String orderId,
});