PaymentDetails constructor
PaymentDetails({ - String route = '',
- String bookingId = '',
- String tripType = 'One way',
- double totalOnlinePrice = 0.0,
- double totalDiscountedPrice = 0.0,
- String discountPercentage = '',
- FromAirport? fromAirport,
- FromAirport? toAirport,
- int totalPassengers = 0,
- int? totalMilesEarned,
- String? email,
- double? donationAmount,
- bool isNonDiscounted = false,
- List<BookingTrips> bookingTrips = const [],
- OfferModel? offer,
- TripModel? departureTrip,
- TripModel? returnTrip,
- double milesUsed = 0,
- int adults = 0,
- int children = 0,
- int infantsInLap = 0,
- int infantsInSeat = 0,
- int searchCreditEarned = 0,
- int searchCreditUsed = 0,
- double totalTax = 0,
- double totalDiscountedPriceBTC = 0,
- List<Passengers>? passengers,
- DateTime? rateConfirmedAt,
- int? availabilityCheckedAt,
- bool? isStillAvailable,
- int? availabilityCheckCounter,
- int? approvedAt,
- String? createdAt,
- 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 = '',
});