VasrReportProviderImpl Resource

An API to pull reports from TRAMS and Agresso using the AccountingCore, as well as from the Vasr DB. Added exclude a method so that it will not be exposed as a Web method.

POST /vasrReport/sendEmail/{recipientList}

Send an email with the report to a list of recipients

Request Parameters
name type description multivalued
recipientList path The recipients to send the report to. yes
Request Body
media type data type description
application/json ValueLogicAgentReport (JSON) The report to send
application/xml valueLogicAgentReport (XML)

Example

Request
POST /vasrReport/sendEmail/{recipientList}
Content-Type: application/json

                
{
  "agentInfo" : [ {
    "airSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "carSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "hotelSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "agentName" : "...",
    "agentOfficeId" : 12345,
    "agentCode" : "...",
    "totalSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "agentId" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  }, {
    "airSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "carSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "hotelSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "agentName" : "...",
    "agentOfficeId" : 12345,
    "agentCode" : "...",
    "totalSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "agentId" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  } ],
  "officeTitle" : "...",
  "savingsInfo" : {
    "numBookings" : 12345,
    "savingsAmount" : 12345.0,
    "savingsAverage" : 12345.0,
    "bookingsWithHardSavings" : 12345,
    "softSavings" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "date" : 12345,
  "monthString" : "..."
}
                
              
Response
HTTP/1.1 201 Created

              

POST /vasrReport/sendReport/{beginTime}/{endTime}

Request Parameters
name type description
beginTime path
endTime path

Example

Request
POST /vasrReport/sendReport/{beginTime}/{endTime}
Content-Type: */*

                
...
                
              
Response
HTTP/1.1 201 Created

              

POST /vasrReport/generateAgentReport/{beginTime}/{endTime}/{employeeTypeCode}

Generate a new valuelogic agent report

Request Parameters
name type description
beginTime path The start time of the report
employeeTypeCode path The employee type to generate the report for
endTime path The end time of the report
Response Body
media type data type description
application/json ValueLogicAgentReport (JSON) The valuelogic agent report
application/xml valueLogicAgentReport (XML)

Example

Request
POST /vasrReport/generateAgentReport/{beginTime}/{endTime}/{employeeTypeCode}
Content-Type: */*
Accept: application/json

                
...
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "agentInfo" : [ {
    "airSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "carSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "hotelSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "agentName" : "...",
    "agentOfficeId" : 12345,
    "agentCode" : "...",
    "totalSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "agentId" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  }, {
    "airSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "carSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "hotelSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "agentName" : "...",
    "agentOfficeId" : 12345,
    "agentCode" : "...",
    "totalSavings" : {
      "numBookings" : 12345,
      "savingsAmount" : 12345.0,
      "savingsAverage" : 12345.0,
      "bookingsWithHardSavings" : 12345,
      "softSavings" : 12345,
      "violations" : [ { }, { } ]
    },
    "agentId" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  } ],
  "officeTitle" : "...",
  "savingsInfo" : {
    "numBookings" : 12345,
    "savingsAmount" : 12345.0,
    "savingsAverage" : 12345.0,
    "bookingsWithHardSavings" : 12345,
    "softSavings" : 12345,
    "violations" : [ {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    }, {
      "propertyName" : "...",
      "failureMessage" : "...",
      "stackTrace" : "..."
    } ]
  },
  "date" : 12345,
  "monthString" : "..."
}