Adding API support for rounding functions at rate level

This commit is contained in:
DanB
2013-07-12 16:09:41 +02:00
parent 526b50ed12
commit 2be2bc97a0
4 changed files with 49 additions and 32 deletions

View File

@@ -31,6 +31,8 @@ type RateSlot struct {
Rate float64 // Rate applied
RatedUnits int // Number of billing units this rate applies to
RateIncrements int // This rate will apply in increments of duration
RoundingMethod string // Use this method to round the cost
RoundingDecimals int // Round the cost number of decimals
Weight float64 // Rate's priority when dealing with grouped rates
}