project-koku / kokudaka

Rating and chargeback service
GNU Affero General Public License v3.0
3 stars 1 forks source link

Cost calculation (Simple) #2

Open chargio opened 6 years ago

chargio commented 6 years ago

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

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.~

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)

chambridge commented 6 years ago

Can you clarify what data, and context are? What rated data will be?

chargio commented 6 years ago

https://github.com/project-koku/kokudaka/wiki/Cost-calculation

chargio commented 6 years ago

https://github.com/project-koku/kokudaka/wiki/Context

Anyway, in this iteration can be empty.