TPCSVImporter Actions, store refactoring, small API params changes

This commit is contained in:
DanB
2013-07-29 21:18:02 +02:00
parent ddc2240c67
commit d4017890ec
23 changed files with 323 additions and 247 deletions

View File

@@ -16,16 +16,16 @@ Creates a new Actions profile within a tariff plan.
type Action struct {
Identifier string // Identifier mapped in the code
BalanceId string // Type of balance the action will operate on
BalanceType string // Type of balance the action will operate on
Direction string // Balance direction
Units float64 // Number of units to add/deduct
ExpirationTime int64 // Time when the units will expire
ExpiryTime int64 // Time when the units will expire
DestinationId string // Destination profile id
RateType string // Type of price <ABSOLUTE|PERCENT>
RateType string // Type of rate <*absolute|*percent>
Rate float64 // Price value
MinutesWeight float64 // Minutes weight
Weight float64 // Action's weight
}
}
Mandatory parameters: ``[]string{"TPid", "ActionsId", "Actions", "Identifier", "Weight"}``
@@ -39,14 +39,14 @@ Creates a new Actions profile within a tariff plan.
{
"Actions": [
{
"BalanceId": "MONEY",
"BalanceType": "*monetary",
"DestinationId": "CGRATES_NET",
"Direction": "OUT",
"ExpirationTime": 1374082259,
"Direction": "*out",
"ExpiryTime": 1374082259,
"Identifier": "TOPUP_RESET",
"MinutesWeight": 10,
"Rate": 0.12,
"RateType": "ABSOLUTE",
"RateType": "*absolute",
"Units": 10,
"Weight": 10
}
@@ -129,10 +129,10 @@ Queries specific Actions profile on tariff plan.
type Action struct {
Identifier string // Identifier mapped in the code
BalanceId string // Type of balance the action will operate on
BalanceType string // Type of balance the action will operate on
Direction string // Balance direction
Units float64 // Number of units to add/deduct
ExpirationTime int64 // Time when the units will expire
ExpiryTime int64 // Time when the units will expire
DestinationId string // Destination profile id
RateType string // Type of price <ABSOLUTE|PERCENT>
Rate float64 // Price value
@@ -149,14 +149,14 @@ Queries specific Actions profile on tariff plan.
"result": {
"Actions": [
{
"BalanceId": "MONEY",
"BalanceType": "*monetary",
"DestinationId": "CGRATES_NET",
"Direction": "OUT",
"ExpirationTime": 1374082259,
"Direction": "*out",
"ExpiryTime": 1374082259,
"Identifier": "TOPUP_RESET",
"MinutesWeight": 10,
"Rate": 0.12,
"RateType": "ABSOLUTE",
"RateType": "*absolute",
"Units": 10,
"Weight": 10
}