mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-22 07:38:45 +05:00
Add ApierV1.GetRatingProfile method
This commit is contained in:
committed by
Dan Christian Bogos
parent
6f55faf3e9
commit
ce76251554
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user