PaymentDetails class

Constructors

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 = ''})
PaymentDetails.fromJson(Map<String, dynamic> json)
factory

Properties

adults → int
final
approvedAt ↔ int?
getter/setter pair
availabilityCheckCounter ↔ int?
getter/setter pair
availabilityCheckedAt ↔ int?
getter/setter pair
bookingDepartureDiscountPercentage → String
no setter
bookingDepartureTrip → TripModel?
no setter
bookingId → String
final
bookingReturnDiscountPercentage → String
no setter
bookingReturnTrip → TripModel?
no setter
bookingStatus → BookingStatus
no setter
bookingTotalDiscountedPrice → double
no setter
bookingTotalOnlinePrice → double
no setter
bookingTrips → List<BookingTrips>
final
children → int
final
createdAt ↔ String?
getter/setter pair
departureDate → String?
no setter
departureDiscountedPrice → double
no setter
departureOnlinePrice → double
no setter
departureSavedPrice → double
no setter
departureTime → String?
no setter
departureTotalDiscountedPrice → double
no setter
departureTotalOnlinePrice → double
no setter
departureTotalPrice → double
no setter
departureTotalTaxAmount → double
no setter
departureTrip → TripModel?
final
discountPercentage → String
final
donationAmount → double?
final
email → String?
final
finalAmount → double
no setter
fromAirport → FromAirport?
final
hasDiscountedFlight → bool
no setter
hashCode → int
The hash code for this object.
no setterinherited
infantsInLap → int
final
infantsInSeat → int
final
isDepartureDiscounted → bool
no setter
isHistory → bool
no setter
isNonDiscounted → bool
final
isOffer → bool
no setter
isOfferDiscounted → bool
no setter
isReturnDiscounted → bool
no setter
isRoundTrip → bool
no setter
isStillAvailable ↔ bool?
getter/setter pair
milesUsed → double
final
offer → OfferModel?
final
offerDiscountedPrice → double
no setter
offerOnlinePrice → double
no setter
offerSavedPrice → double
no setter
offerTotalDiscountedPrice → double
no setter
offerTotalOnlinePrice → double
no setter
offerTotalPrice → double
no setter
passengers ↔ List<Passengers>?
getter/setter pair
rateConfirmedAt ↔ DateTime?
getter/setter pair
returnDiscountedPrice → double
no setter
returnOnlinePrice → double
no setter
returnSavedPrice → double
no setter
returnTotalDiscountedPrice → double
no setter
returnTotalOnlinePrice → double
no setter
returnTotalPrice → double
no setter
returnTotalTaxAmount → double
no setter
returnTrip → TripModel?
final
route → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
savedAmount → double
no setter
searchCreditEarned → int
final
searchCreditUsed → int
final
status → String
final
taxAmount → double
no setter
toAirport → FromAirport?
final
totalAmount → double
no setter
totalDepartureAdultDiscountAmount → double
no setter
totalDepartureChildrenDiscountAmount → double
no setter
totalDepartureInfantOnLapsDiscountAmount → double
no setter
totalDepartureInfantOnSeatsDiscountAmount → double
no setter
totalDiscountedPrice → double
final
totalDiscountedPriceBTC → double
final
totalMilesEarned → int?
final
totalOnlinePrice → double
final
totalPassengers → int
final
totalReceivedMiles → int
no setter
totalReturnAdultDiscountAmount → double
no setter
totalReturnChildrenDiscountAmount → double
no setter
totalReturnInfantOnLapsDiscountAmount → double
no setter
totalReturnInfantOnSeatsDiscountAmount → double
no setter
totalSpendAmount → double
no setter
totalTax → double
final
totalTaxAmount → double
no setter
tripType → String
final
type → TripType
no setter

Methods

adultsPriceOf(double amount) → double
childrenPriceOf(double amount) → double
copyWith({String? route, String? bookingId, String? tripType, double? totalOnlinePrice, double? totalDiscountedPrice, String? discountPercentage, double? totalTax, FromAirport? fromAirport, FromAirport? toAirport, int? totalPassengers, int? totalMilesEarned, String? email, double? donationAmount, bool? isNonDiscounted, int? searchCreditEarned, int? searchCreditUsed, List<BookingTrips>? bookingTrips, OfferModel? offer, TripModel? departureTrip, TripModel? returnTrip, double? milesUsed, int? adults, int? children, int? infantsInLap, int? infantsInSeat, double? totalDiscountedPriceBTC, List<Passengers>? passengers, DateTime? rateConfirmedAt, int? availabilityCheckedAt, bool? isStillAvailable, int? availabilityCheckCounter, int? approvedAt, String? createdAt, String? status}) → PaymentDetails
getStringAsDouble(String? num) → double
historyOffer() → OfferModel
infantsLapPriceOf(double amount) → double
infantsSeatPriceOf(double amount) → double
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited