mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-21 23:28:44 +05:00
TP Renames
This commit is contained in:
@@ -71,17 +71,6 @@ func (pgnt *Paginator) PaginateStringSlice(in []string) (out []string) {
|
||||
return
|
||||
}
|
||||
|
||||
// Deprecated version of TPDestination
|
||||
type V1TPDestination struct {
|
||||
TPid string // Tariff plan id
|
||||
ID string // Destination id
|
||||
Prefixes []string // Prefixes attached to this destination
|
||||
}
|
||||
|
||||
func (v1TPDst *V1TPDestination) AsTPDestination() *TPDestination {
|
||||
return &TPDestination{TPid: v1TPDst.TPid, ID: v1TPDst.ID, Prefixes: v1TPDst.Prefixes}
|
||||
}
|
||||
|
||||
// TPDestination represents one destination in storDB
|
||||
type TPDestination struct {
|
||||
TPid string // Tariff plan id
|
||||
@@ -89,6 +78,10 @@ type TPDestination struct {
|
||||
Prefixes []string // Prefixes attached to this destination
|
||||
}
|
||||
|
||||
func (v1TPDst *TPDestination) AsTPDestination() *TPDestination {
|
||||
return &TPDestination{TPid: v1TPDst.TPid, ID: v1TPDst.ID, Prefixes: v1TPDst.Prefixes}
|
||||
}
|
||||
|
||||
// This file deals with tp_* data definition
|
||||
|
||||
type TPRate struct {
|
||||
|
||||
Reference in New Issue
Block a user