discountCart abstract method
- @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,
})
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});