2. Security
2.1. oauth2_password
Type : oauth2
Flow : password
Token URL : https://localhost:9002/authorizationserver/oauth/token
| Name |
|---|
basic |
2.2. oauth2_client_credentials
Type : oauth2
Flow : application
Token URL : https://localhost:9002/authorizationserver/oauth/token
| Name |
|---|
extended |
3. Resources
3.1. Query Usage Consumption
Uc Query Usage Consumption Controller
3.1.1. Creates a QueryUsageConsumption
POST /queryUsageConsumption
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Body |
queryUsageConsumption |
The query usage consumption to be created |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Success |
|
201 |
Created |
No Content |
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
No Content |
405 |
Method Not allowed |
|
409 |
Conflict |
|
500 |
Internal Server Error |
3.2. Usage Consumption Report
Uc Usage Consumption Report Controller
3.2.1. List or find UsageConsumptionReport objects
GET /usageConsumptionReport
Parameters
| Type | Name | Description | Schema |
|---|---|---|---|
Query |
fields |
Comma-separated properties to be provided in response |
string |
Query |
limit |
Requested number of resources to be provided in response |
integer(int32) |
Query |
offset |
Requested index for start of resources to be provided in response |
integer(int32) |
Query |
product.id |
Network product id value |
string |
Query |
publicIdentifier |
Public identifier value |
string |
Query |
relatedParty.id |
Related party id value |
string |
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
Success |
< UsageConsumptionReport > array |
206 |
Partial Content |
< UsageConsumptionReport > array |
400 |
Bad Request |
|
401 |
Unauthorized |
|
403 |
Forbidden |
|
404 |
Not Found |
|
405 |
Method Not allowed |
|
409 |
Conflict |
|
500 |
Internal Server Error |
4. Definitions
4.1. BucketRefOrValue
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
bucketCounter |
< ConsumptionSummary > array |
|
bucketRelationship |
< BucketRelationship > array |
|
description |
Bucket name |
string |
href |
Hyperlink reference of the bucket |
string |
id |
Unique identifier of the bucket |
string |
isShared |
True if the bucket is shared between several devices or users |
boolean |
logicalResource |
< UsageConsumptionLogicalResourceRef > array |
|
name |
Bucket name |
string |
partyAccount |
< PartyAccountRef > array |
|
product |
< UsageConsumptionProductRef > array |
|
relatedParty |
< RelatedParty > array |
|
remainingValue |
Numeric remaining value for the bucket given in the unit (for example 1.9). This numeric value could be used for calculation for example |
|
remainingValueName |
Remaining value in a formatted string for the bucket given in the balance unit (for example 1.9 Gb). This formatted string could be used for display needs for example |
string |
reserveBalance |
The ReserveBalance resource allows adjustments to be made to the original BalanceTopup eg increment the amount, alter the recharge periodicity. |
|
reservedValue |
Indicate the amount on the bucket. |
|
service |
Service reference, for when Service is used by other entities. |
< UsageConsumptionServiceRef > array |
status |
status for the bucket. active, expired, suspended. |
string |
usageType |
defines the type of the underlying Balance eg data,voice, any currency eg EUR, USD etc. |
string |
validPeriod |
Remaining value in a formatted string for the bucket given in the balance unit (for example 1.9 Gb). This formatted string could be used for display needs for example |
4.2. BucketRelationship
Linked bucket to the one instantiate, such as [isAggregated] if the bucket is a part of other or [aggregator] is the bucket holds others .
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
bucketRefOrValue |
< BucketRefOrValue > array |
|
relationshipType |
Type of the bucket relationship, such as [isAggregated] if the bucket is a part of other or [aggregator] is the bucket holds others. |
string |
4.3. ConsumptionSummary
The consumption counters (called ConsumptionSummary in the SID model) detail for example the different kind of consumption done on the bucket.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
consumptionPeriod |
Consumption counter period between a start date time and an end date time. For prepaid bucket, the period of counters is between the start date of the bucket and the effective date of the usage consumption report generation. For postpaid bucket, the period of counters is between the last bill date and the effective date of the usage consumption report generation. |
|
counterType |
Type of the consumption counter. We can give for example a counter of the used value for a bucket (counterType=used for example) or the value of the consumption done out of the bucket(s) (counterType=outOfBucket for example) |
string |
level |
Counter level. The counter can be given globally for the bucket or detailed by user or by network product for example in case of shared bucket |
string |
product |
Public identifier associated to the product for which the consumption counter is detailed. If the level of the counter is global (i.e. concerning all the network products), the list of them is not specified. It can be found through the network products listed in the bucket sub-resource |
|
user |
Reference of the user for which the consumption counter is detailed. If the level of the counter is global (i.e. concerning all the users), the list of them is not specified. It can be found through the users listed in the network products of the bucket sub-resource |
|
value |
Numeric value of the bucket counter in a given unit |
|
valueName |
Value of the counter in a formatted string used for display needs for example |
string |
4.4. Error
| Name | Schema |
|---|---|
cause |
|
localizedMessage |
string |
message |
string |
stackTrace |
< StackTraceElement > array |
suppressed |
< Throwable > array |
4.5. NetworkProduct
An instantiated network product (specialization of a product) subscribed by a customer.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference to the network product |
string |
id |
Unique identifier of the network product |
string |
name |
Network product name |
string |
outOfBucketCounter |
Counters detailing usage consumption out of the buckets |
< ConsumptionSummary > array |
publicIdentifier |
Public number associated to the network product (msisdn number for mobile line for example) |
string |
user |
References of the users of the network product |
< RelatedParty > array |
4.6. NetworkProductRef
Reference of a product
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
Generic attribute indicating the name of the class type of the referred resource entity |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference to the network product |
string |
id |
Unique identifier of the network product |
string |
name |
Network product name |
string |
publicIdentifier |
Public number associated to the product (msisdn number for mobile line for example) |
string |
4.7. PartyAccountRef
PartyAccount reference. A party account is an arrangement that a party has with an enterprise that provides products to the party.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
description |
Detailed description of the party account. |
string |
href |
Reference of the party account. |
string |
id |
Unique identifier of a party account |
string |
name |
Name of the party account |
string |
status |
The condition of the account, such as due, paid, in arrears. |
string |
4.8. Quantity
An amount in a given unit
| Name | Description | Schema |
|---|---|---|
amount |
Numeric value in a given unit |
number(float) |
units |
Unit |
string |
4.9. RelatedParty
Related Entity reference. A related party defines party or party role linked to a specific entity.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Reference of the related entity. |
string |
id |
Unique identifier of a related entity. |
string |
name |
Name of the related entity. |
string |
role |
Role played by the related party |
string |
4.10. ReserveBalanceRef
The ReserveBalance resource allows adjustments to be made to the original BalanceTopup eg increment the amount, alter the recharge periodicity.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Hyperlink reference of the related entity. |
string |
id |
Unique identifier of the related entity. |
string |
name |
Name of the related entity. |
string |
4.11. StackTraceElement
| Name | Schema |
|---|---|
classLoaderName |
string |
className |
string |
fileName |
string |
lineNumber |
integer(int32) |
methodName |
string |
moduleName |
string |
moduleVersion |
string |
nativeMethod |
boolean |
4.12. Throwable
| Name | Schema |
|---|---|
cause |
|
localizedMessage |
string |
message |
string |
stackTrace |
< StackTraceElement > array |
suppressed |
< Throwable > array |
4.13. TimePeriod
A period of time, either as a deadline (endDateTime only) a startDateTime only, or both
| Name | Description | Schema |
|---|---|---|
endDateTime |
End of the time period, using IETC-RFC-3339 format |
string(date-time) |
startDateTime |
Start of the time period, using IETC-RFC-3339 format. If you define a start, you must also define an end |
string(date-time) |
4.14. TuaQueryUsageConsumption
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
href |
Hyperlink reference of the bucket. |
string |
id |
Unique identifier of the bucket. |
string |
partyAccount |
< PartyAccountRef > array |
|
queryUsageConsumptionDate |
Date and time of the last update. |
string(date-time) |
relatedParty |
< RelatedParty > array |
|
searchCriteria |
||
usageConsumption |
< UsageConsumption > array |
4.15. UsageConsumption
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
bucketRefOrValue |
< BucketRefOrValue > array |
|
creationDate |
Date and time of the request creation. |
string(date-time) |
description |
Description |
string |
href |
Hyperlink reference of the bucket. |
string |
id |
Unique identifier of the bucket. |
string |
lastUpdate |
Date and time of the last update. |
string(date-time) |
logicalResource |
< UsageConsumptionLogicalResourceRef > array |
|
name |
Usage consumption name. |
string |
product |
< UsageConsumptionProductRef > array |
|
relatedParty |
Reference and role of the related parties for which the usage consumption is requested. |
< RelatedParty > array |
service |
< UsageConsumptionServiceRef > array |
|
state |
State of the report report defined in the state engine. |
string |
validPeriod |
Validity period. |
4.16. UsageConsumptionLogicalResourceRef
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
consumptionSummary |
< ConsumptionSummary > array |
|
href |
Hyperlink reference of a Logical resource |
string |
id |
Unique identifier of a Logical resource |
string |
name |
Name of a Logical resource |
string |
4.17. UsageConsumptionProductRef
Reference to the product, e.g., 5GB Shared Data Package.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
consumptionSummary |
< ConsumptionSummary > array |
|
href |
Hyperlink reference of the related entity. |
string |
id |
Unique identifier of the related entity. |
string |
name |
Name of the related entity. |
string |
4.18. UsageConsumptionReport
An usage consumption report enables to know at a given point the balances and the consumption counters related to various buckets (SMS, Voice, Data for example). It could be calculated for a device identified by a public key (msisdn number for a mobile device for example or PSTN or VOIP number for a fix device), for a subscribed offer or option or for an user.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
bucket |
Bucket(s) included in the offer or option subscribed. |
< UsageVolumeProduct > array |
description |
Free short text describing the usage consumption report content |
string |
effectiveDate |
Date and time when the usage consumption report was calculated and generated |
string(date-time) |
href |
Hyperlink to access the usage consumption report. The report is calculated at the time of the request by the server. Generally, this report is not recorded by the server. If it is, an unique identifier of the usage consumption report is given by the server |
string |
id |
The report is calculated at the time of the request by the server. Generally, this report is not recorded by the server. If it is, an unique identifier of the usage consumption report is given by the server |
string |
name |
Usage consumption report name |
string |
relatedParty |
4.19. UsageConsumptionServiceRef
Service reference, for when Service is used by other entities.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@referredType |
The actual type of the target instance when needed for disambiguation. |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
consumptionSummary |
< ConsumptionSummary > array |
|
href |
Hyperlink reference of the related entity. |
string |
id |
Unique identifier of the related entity. |
string |
name |
Name of the related entity. |
string |
4.20. UsageVolumeBalance
The balance (called UsageVolumeBalance in the SID model) defines the remaining allowed product usage quantity in terms of volume, time, currency or events. It corresponds to the initial allowed usage quantity minus the usage consumed on the bucket.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
remainingValue |
Numeric remaining value for the bucket given in the unit (for example 1.9). This numeric value could be used for calculation for example |
|
remainingValueName |
Remaining value in a formatted string for the bucket given in the balance unit (for example 1.9 Gb). This formatted string could be used for display needs for example |
string |
validFor |
Balance period between a start date time and an end date time. For prepaid bucket, the period of the balance is between the effective date of the usage consumption report generation and the end date of the bucket. For postpaid bucket, the period of the balance is between the effective date of the usage consumption report generation and the next bill date. |
4.21. UsageVolumeProduct
A bucket (called UsageVolumeProduct in the SID model) represents a quantity of usage, as 2 hours national calls or 50 sms for example. It could be either a quantity or an amount in a currency (i.e. It could represent a fixed number of SMS, MMS, minutes of calls, quantity of data, number of events as well as a specific amount in a given currency). It requires one or more network products from which usages will debit the bucket.
| Name | Description | Schema |
|---|---|---|
@baseType |
When sub-classing, this defines the super-class |
string |
@schemaLocation |
A URI to a JSON-Schema file that defines additional attributes and relationships |
string |
@type |
When sub-classing, this defines the sub-class entity name |
string |
bucketBalance |
< UsageVolumeBalance > array |
|
bucketCounter |
< ConsumptionSummary > array |
|
id |
Unique identifier of the bucket |
string |
isShared |
True if the bucket is shared between several devices or users |
boolean |
name |
Bucket name |
string |
product |
< NetworkProduct > array |
|
usageType |
Type of usage concerned by the bucket, such as voice, sms, data |
string |