status property

RequestStatus get status

Implementation

RequestStatus get status {
  if (request == null) {
    return RequestStatus.pending;
  }
  switch (request!.status) {
    case PaymentRequest_PaymentRequestStatus.CANCELED:
      return RequestStatus.canceled;
    case PaymentRequest_PaymentRequestStatus.DECLINED:
      return RequestStatus.declined;
    case PaymentRequest_PaymentRequestStatus.IN_PROGRESS:
      return RequestStatus.inProgress;
    case PaymentRequest_PaymentRequestStatus.PENDING:
      return RequestStatus.pending;
    default:
      return RequestStatus.pending;
  }
}