As a user, I want to be able to request the cost for a service for a period of time
Impacts
API
Role
User
Assumptions
The data includes information needed to calculate the cost
The price plan includes all the costs that can be used to calculate the cost
API Details
API
Detail
Method
GET
Path
/api/v1/cost_calculation/
Body
data, price plan
Response
rated data
Data:
A JSON that defines the inventory of the account and the measurements of each element of the inventory for the period, including start_time and end_time. Each measurement includes a measurement unit.
~Context:~
~A JSON with variables and values needed for rating.~
Context right now is not used. It will be added in a follow up use case.
Acceptance Criteria
[ ] The user can send a request to calculate costs, providing an inventory and a price plan, and gets back a result with the data associated to a cost.
Comments
It is foreseeable that the price plan will be substituted in the future for a database request (identifying the user in the request)
User Story (TO BE DEFINED FURTHER)
As a user, I want to be able to request the cost for a service for a period of time
Impacts
API
Role
User
Assumptions
API Details
Data:
A JSON that defines the inventory of the account and the measurements of each element of the inventory for the period, including start_time and end_time. Each measurement includes a measurement unit.
~Context:~ ~A JSON with variables and values needed for rating.~
Price Plan:
See Price Plan definition in the wiki.
See wiki for more details on the definitions
Assumptions
Acceptance Criteria
Comments
It is foreseeable that the price plan will be substituted in the future for a database request (identifying the user in the request)