Add ApierV1.GetRatingProfile method

This commit is contained in:
TeoV
2018-08-31 07:35:05 -04:00
committed by Dan Christian Bogos
parent 6f55faf3e9
commit ce76251554
4 changed files with 90 additions and 1 deletions

View File

@@ -263,6 +263,17 @@ type AttrSetRatingProfile struct {
RatingPlanActivations []*TPRatingActivation // Activate rating plans at specific time
}
type AttrGetRatingProfile struct {
Tenant string // Tenant's Id
Category string // TypeOfRecord
Direction string // Traffic direction, OUT is the only one supported for now
Subject string // Rating subject, usually the same as account
}
func (self *AttrGetRatingProfile) GetID() string {
return ConcatenatedKey(self.Direction, self.Tenant, self.Category, self.Subject)
}
type TPRatingActivation struct {
ActivationTime string // Time when this profile will become active, defined as unix epoch time
RatingPlanId string // Id of RatingPlan profile

View File

@@ -352,7 +352,6 @@ func ConcatenatedKey(keyVals ...string) string {
func LCRKey(direction, tenant, category, account, subject string) string {
return ConcatenatedKey(direction, tenant, category, account, subject)
}
func RatingSubjectAliasKey(tenant, subject string) string {