collectPayment abstract method

  1. @POST("${Api.paymentCollectionCart}/{cartId}")
Future<CollectPaymentModel> collectPayment({
  1. @Body() required CollectPaymentRequest body,
  2. @Path("cartId") required String cartId,
  3. @Header("X-User-Id") String xUserId = "",
  4. @Header("X-User-Name") String xUserName = "",
})

Implementation

@POST("${Api.paymentCollectionCart}/{cartId}")
Future<CollectPaymentModel> collectPayment({
  @Body() required CollectPaymentRequest body,
  @Path("cartId") required String cartId,
  @Header("X-User-Id") String xUserId = "",
  @Header("X-User-Name") String xUserName = "",
});