mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-16 05:39:54 +05:00
RateS - adding V1CostForEvent API method
This commit is contained in:
@@ -173,6 +173,12 @@ type RateSIncrement struct {
|
||||
cost *utils.Decimal // unexported total increment cost
|
||||
}
|
||||
|
||||
type RateProfileCost struct {
|
||||
ID string // RateProfileID
|
||||
Cost float64
|
||||
RateSIntervals []*RateSInterval
|
||||
}
|
||||
|
||||
// Sort will sort the IntervalRates from each Rate based on IntervalStart
|
||||
func (rpp *RateProfile) Sort() {
|
||||
for _, rate := range rpp.Rates {
|
||||
|
||||
Reference in New Issue
Block a user