# Class DiscountApprovalService.ApprovalStats

java.lang.Object
com.university.bookstore.chain.DiscountApprovalService.ApprovalStats

Enclosing class:
  `DiscountApprovalService`

public static class DiscountApprovalService.ApprovalStats extends Object
Statistics class for approval analysis.

Since:
  2024-09-15
Version:
  3.0
Author:
  Navid Mohaghegh

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ApprovalStats(int totalRequests, int approvedRequests, int rejectedRequests, double approvalRate, double totalSavings)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `double`
  `getApprovalRate()`
  `int`
  `getApprovedRequests()`
  `int`
  `getRejectedRequests()`
  `int`
  `getTotalRequests()`
  `double`
  `getTotalSavings()`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### ApprovalStats

    public ApprovalStats(int totalRequests, int approvedRequests, int rejectedRequests, double approvalRate, double totalSavings)

- ## Method Details

  - ### getTotalRequests

    public int getTotalRequests()

  - ### getApprovedRequests

    public int getApprovedRequests()

  - ### getRejectedRequests

    public int getRejectedRequests()

  - ### getApprovalRate

    public double getApprovalRate()

  - ### getTotalSavings

    public double getTotalSavings()

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`