mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 10:06:24 +05:00
new structure
This commit is contained in:
33
rater/timestamps/timestamps.go
Normal file
33
rater/timestamps/timestamps.go
Normal file
@@ -0,0 +1,33 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type BilingUnit int
|
||||
|
||||
type RatingProfile struct {
|
||||
StartTime time.Time
|
||||
ConnectFee float32
|
||||
Price float32
|
||||
BillingUnit BilingUnit
|
||||
}
|
||||
|
||||
type ActivationPeriod struct {
|
||||
ActivationTime time.Time
|
||||
RatingProfiles []RatingProfile
|
||||
}
|
||||
|
||||
type Customer struct {
|
||||
Id string
|
||||
Prefix string
|
||||
ActivationPeriods []ActivationPeriod
|
||||
}
|
||||
|
||||
const (
|
||||
SECONDS =iota
|
||||
COUNT
|
||||
BYTES
|
||||
)
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,17 +0,0 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Rating struct {
|
||||
ConnectFeeIn time.Time
|
||||
PriceIn float32
|
||||
ConnectFeeOut time.Time
|
||||
PriceOut float32
|
||||
}
|
||||
|
||||
type Customer struct {
|
||||
Id string
|
||||
Prefix string
|
||||
}
|
||||
BIN
src/test/test
BIN
src/test/test
Binary file not shown.
Reference in New Issue
Block a user