discountCart abstract method

  1. @PUT("${Api.addToCart}/{cartId}")
Future<CartModel> discountCart({
  1. @Body() required dynamic cartDiscountId,
  2. @Header("X-User-Id") String xUserId = "",
  3. @Header("Content-Type") String type = "application/json",
  4. @Header("X-Roles") String xRoles = "",
  5. @Path("cartId") required String cartId,
})

Implementation

@PUT("${Api.addToCart}/{cartId}")
Future<CartModel> discountCart(
    {@Body() required dynamic cartDiscountId,
    @Header("X-User-Id") String xUserId = "",
    @Header("Content-Type") String type = "application/json",
    @Header("X-Roles") String xRoles = "",
    @Path("cartId") required String cartId});