public abstract class RidePayment extends Object implements Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
RidePayment.PaymentStatus
The PayMethod status
|
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
RidePayment() |
Modifier and Type | Method and Description |
---|---|
static RidePayment |
create(Fare fare,
Price finalPrice,
PayMethod payMethod,
String rideId,
RidePayment.PaymentStatus paymentStatus)
Create a new RidePayment
|
abstract Fare |
getFare()
Optional Here mobility fare.
|
abstract Price |
getFinalPrice()
Optional final price.
|
abstract RidePayment.PaymentStatus |
getPaymentStatus()
The payment status
|
abstract PayMethod |
getPayMethod()
Optional pay method
|
abstract String |
getRideId()
The ride id
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
describeContents, writeToParcel
public abstract Fare getFare()
RidePayment.PaymentStatus
is RidePayment.PaymentStatus.COMPLETED
Required for generating receipts and invoices.public abstract Price getFinalPrice()
RidePayment.PaymentStatus
is RidePayment.PaymentStatus.COMPLETED
public abstract PayMethod getPayMethod()
public abstract String getRideId()
public abstract RidePayment.PaymentStatus getPaymentStatus()
public static RidePayment create(Fare fare, Price finalPrice, PayMethod payMethod, String rideId, RidePayment.PaymentStatus paymentStatus)