PaymentDetails constructor

PaymentDetails({
  1. String route = '',
  2. String bookingId = '',
  3. String tripType = 'One way',
  4. double totalOnlinePrice = 0.0,
  5. double totalDiscountedPrice = 0.0,
  6. String discountPercentage = '',
  7. FromAirport? fromAirport,
  8. FromAirport? toAirport,
  9. int totalPassengers = 0,
  10. int? totalMilesEarned,
  11. String? email,
  12. double? donationAmount,
  13. bool isNonDiscounted = false,
  14. List<BookingTrips> bookingTrips = const [],
  15. OfferModel? offer,
  16. TripModel? departureTrip,
  17. TripModel? returnTrip,
  18. double milesUsed = 0,
  19. int adults = 0,
  20. int children = 0,
  21. int infantsInLap = 0,
  22. int infantsInSeat = 0,
  23. int searchCreditEarned = 0,
  24. int searchCreditUsed = 0,
  25. double totalTax = 0,
  26. double totalDiscountedPriceBTC = 0,
  27. List<Passengers>? passengers,
  28. DateTime? rateConfirmedAt,
  29. int? availabilityCheckedAt,
  30. bool? isStillAvailable,
  31. int? availabilityCheckCounter,
  32. int? approvedAt,
  33. String? createdAt,
  34. String status = '',
})

Implementation

PaymentDetails({
  this.route = '',
  this.bookingId = '',
  this.tripType = 'One way',
  this.totalOnlinePrice = 0.0,
  this.totalDiscountedPrice = 0.0,
  this.discountPercentage = '',
  this.fromAirport,
  this.toAirport,
  this.totalPassengers = 0,
  this.totalMilesEarned,
  this.email,
  this.donationAmount,
  this.isNonDiscounted = false,
  this.bookingTrips = const [],
  this.offer,
  this.departureTrip,
  this.returnTrip,
  this.milesUsed = 0,
  this.adults = 0,
  this.children = 0,
  this.infantsInLap = 0,
  this.infantsInSeat = 0,
  this.searchCreditEarned = 0,
  this.searchCreditUsed = 0,
  this.totalTax = 0,
  this.totalDiscountedPriceBTC = 0,
  this.passengers,
  this.rateConfirmedAt,
  this.availabilityCheckedAt,
  this.isStillAvailable,
  this.availabilityCheckCounter,
  this.approvedAt,
  this.createdAt,
  this.status = '',
});