Abstract

ETSI OSA APIs Phase 4.   Based on ES 203 915 and the new requirements for OSA Phase 4, to produce ES 204 915 V1.1.1.  ETSI OSA Phase 4 incorporates 3GPP OSA Release 7 and is also known as Parlay 6.0.The present document is part 11 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA).
The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs.
The present document specifies the Account Management Service Capability Feature (SCF) aspects of the interface. All aspects of the Account Management SCF are defined here, these being:
• Sequence Diagrams.
• Class Diagrams.
• Interface specification plus detailed method descriptions.
• State Transition diagrams.
• Data Definitions.
• IDL Description of the interfaces.
• WSDL Description of the interfaces.
The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

Status
Published
Publication Date
02-Jul-2008
Current Stage
6060 - National Implementation/Publication (Adopted Project)
Start Date
11-Jun-2008
Due Date
16-Aug-2008
Completion Date
03-Jul-2008

Buy Documents

Standard

ETSI ES 204 915-11 V1.1.1 (2008-02) - Open Service Access (OSA); Application Programming Interface (API); Part 11: Account Management SCF (Parlay 6)

English language (45 pages)
sale 15% off
Preview
sale 15% off
Preview
Standard

ETSI ES 204 915-11 V1.1.1 (2008-05) - Open Service Access (OSA); Application Programming Interface (API); Part 11: Account Management SCF (Parlay 6)

English language (45 pages)
sale 15% off
Preview
sale 15% off
Preview
Standardization document

SIST ES 204 915-11 V1.1.1:2008

English language (45 pages)
Preview
Preview
e-Library read for
×1 day

SIST ES 204 915-11 V1.1.1:2008 is an ETSI Standard for Open Service Access (OSA) Application Programming Interface (API), Part 11: Account Management SCF (Parlay 6). It specifies how applications access account-management functions in the OSA architecture, including balance queries, transaction history, notifications, balance updates, and voucher handling. The document is written for implementers of the service side and the application callback side, using UML plus OMG IDL, W3C WSDL, and Java API descriptions.

What does SIST ES 204 915-11 V1.1.1:2008 specify?

SIST ES 204 915-11 V1.1.1:2008 specifies the Account Management Service Capability Feature (SCF) for the OSA API Stage 3 specification. It sits in OSA APIs Phase 4, which the foreword identifies as incorporating 3GPP OSA Release 7 and being known as Parlay 6.0.

The standard is organized as a UML-based interface specification. Its main clauses run from scope, references, and definitions through sequence diagrams, class diagrams, service interface specifications, interface classes, state transition diagrams, service properties, data definitions, and exception classes.

AnnexWhat it covers
Annex ANormative OMG IDL description of Account Management SCF
Annex BInformative W3C WSDL description of Account Management SCF
Annex CInformative Java API description of Account Management SCF
Annex DInformative contents of 3GPP OSA Rel-7 Account Management
Annex EInformative description for 3GPP2 cdma2000 networks
Annex FInformative record of changes

Clause 2 points to ES 204 915-1 for references, definitions, and abbreviations. Clause 11 also relies on common data definitions in ES 204 915-2 for types that are not redefined here.

What are the key requirements of SIST ES 204 915-11 V1.1.1:2008?

SIST ES 204 915-11 V1.1.1:2008 focuses on callback-based, partly asynchronous account-management operations. In practice, an implementation has to decide which methods it supports, how it reports results and errors, and how it keeps callback references aligned with sessions and notifications.

Interface support and callbacks

Clause 4.1 sets the baseline rule for implementations: if a method is supported, it must work for at least one valid set of parameter values. If a service interface method is not supported, the service returns P_METHOD_NOT_SUPPORTED. If an application interface method is not supported, the call must still be possible and no exception is returned.

Clause 7.4 defines the callback model through IpService. setCallback() registers a callback interface, while setCallbackWithSessionID() binds a callback interface to a specific TpSessionID. The text allows multiple callback references and says the most recent one is used first, with earlier references used if the latest one is no longer available. In practice, implementations need to manage callback lifetimes carefully so they can still deliver asynchronous responses.

Minimum service coverage

Clause 8.1 says the IpAccountManager interface is the service side of account management. The document states a minimum implementation requirement across the core operations: balance query, transaction history retrieval, and notification support through either application-created notifications or network-enabled notifications.

That matters because an implementation cannot claim account-management support while exposing none of the operational paths that applications use most often. The caller needs to know whether it can query balances, monitor events, or both.

Queries, responses, and errors

Clause 8.1.3 defines queryBalanceReq() and clause 8.2.2 / 8.2.3 define the paired result methods queryBalanceRes() and queryBalanceErr(). The request accepts one or more user addresses, and the response model separates valid user results from invalid-user or other errors. Clause 8.1.9 does the same for balance expiry date queries.

Clause 8.1.6 defines retrieveTransactionHistoryReq(), with retrieveTransactionHistoryRes() and retrieveTransactionHistoryErr() in clause 8.2.4 and 8.2.5. The history is returned as a set of detailed records for a subscriber account over a specified time interval. In practice, implementers have to preserve request IDs so responses can be matched to the original request.

Notifications and vouchers

Clause 8.1.1 through 8.1.8 define the notification path. createNotification(), changeNotification(), getNotification(), and destroyNotification() manage application-created charging notifications. enableNotifications() and disableNotifications() handle notifications provisioned from within the network. The sequence diagrams in clause 5 show both application-created and network-controlled notification flows, so developers can see when reportNotification() is used and which callbacks receive it.

Clause 8.1.10 through 8.1.14 define account updates and vouchers. updateBalanceReq() can add to or subtract from a balance, and the requested expiry period may be overridden by operator policy. createVoucherReq(), destroyVoucherReq(), queryVoucherReq(), and queryUserVouchersReq() support voucher lifecycle and lookup. That means the API covers both direct account updates and indirect value stored as vouchers.

Service properties, data, and exceptions

Clause 10 lists service properties such as supported event types, address plans, allowed notification address ranges, allowed currencies, allowed transaction-history interval, and the maximum number of addresses per balance query. These properties tell an application what the service instance will accept before it sends a request.

Clause 11 defines the main account-management data types, including balance information, charging event criteria, transaction history, balance expiry date, and voucher structures. Clause 12 defines the exception class P_UNAUTHORIZED_APPLICATION, with extra information carried as TpString. In practice, these definitions control the data shape that application and service implementations must exchange.

What terms does SIST ES 204 915-11 V1.1.1:2008 define?

  • OSA - Open Service Access, the architecture that exposes network functionality through a standardized interface for applications.
  • API - Application Programming Interface, the contract that defines methods, parameters, callbacks, and return behavior.
  • SCF - Service Capability Feature, a functional part of the OSA API such as Account Management.
  • UML - Unified Modelling Language, the object-modelling notation used for the diagrams and interface structure.
  • IDL - Interface description language used here in the OMG IDL annex to express the interfaces formally.
  • WSDL - W3C Web Services Description Language, used in the annex that presents the same interface set in WSDL form.

Who uses SIST ES 204 915-11 V1.1.1:2008?

SIST ES 204 915-11 V1.1.1:2008 is used by application developers and client application developers who need account queries, notifications, vouchers, or transaction history through OSA. It is also used by service implementers who build the service side of the IpAccountManager interface and the callback side of IpAppAccountManager.

Telecommunications platform teams use it when exposing prepaid or charging-related account functions through open interfaces. The document also speaks to developers working in 3GPP2 cdma2000 network environments, because Annex E explains how the OSA Account Management specification is interpreted there.

Which standards are used with SIST ES 204 915-11 V1.1.1:2008?

  • ETSI ES 204 915-1 - provides the overview part of the OSA API series, plus the references, definitions, abbreviations, and Java realization rules that this part relies on.
  • ETSI ES 204 915-2 - supplies common data definitions for types that are referenced but not defined in this part.
  • 3GPP TS 29.198-11 V7.0.0 (Release 7) - is identified in the foreword as the equivalent 3GPP specification for this ETSI part.

What does the SIST ES 204 915-11 V1.1.1:2008 document contain?

SIST ES 204 915-11 V1.1.1:2008 contains sequence diagrams for standard voucher handling, transaction history retrieval, query handling, notification handling, and network-controlled notifications. It also contains UML class diagrams for the application and service interfaces, including IpAccountManager and IpAppAccountManager.

The document gives method-level descriptions for requests, responses, and error callbacks, together with parameter descriptions and state models where relevant. Clause 9 shows the state transition diagrams for IpAccountManager, including the active state and the notifications-created state.

Clause 11 defines the account-management data structures, including balance, balance expiry date, charging event, transaction history, and voucher types. The annexes then provide IDL, WSDL, and Java representations, plus Release 7 context, a cdma2000 interpretation, and a change record.

Buy Documents

Standard

ETSI ES 204 915-11 V1.1.1 (2008-02) - Open Service Access (OSA); Application Programming Interface (API); Part 11: Account Management SCF (Parlay 6)

English language (45 pages)
sale 15% off
Preview
sale 15% off
Preview
Standard

ETSI ES 204 915-11 V1.1.1 (2008-05) - Open Service Access (OSA); Application Programming Interface (API); Part 11: Account Management SCF (Parlay 6)

English language (45 pages)
sale 15% off
Preview
sale 15% off
Preview
Standardization document

SIST ES 204 915-11 V1.1.1:2008

English language (45 pages)
Preview
Preview
e-Library read for
×1 day

Get Certified

Connect with accredited certification bodies for this standard

BSI Group

BSI (British Standards Institution) is the business standards company that helps organizations make excellence a habit.

UKAS United Kingdom Verified

NYCE

Mexican standards and certification body.

EMA Mexico Verified

Sponsored listings

Frequently Asked Questions

SIST ES 204 915-11 V1.1.1:2008 is a standard published by the Slovenian Institute for Standardization (SIST). Its full title is "Open Service Access (OSA) - Application Programming Interface (API) - Part 11: Account Management SCF (Parlay 6)". This standard covers: ETSI OSA APIs Phase 4. Based on ES 203 915 and the new requirements for OSA Phase 4, to produce ES 204 915 V1.1.1. ETSI OSA Phase 4 incorporates 3GPP OSA Release 7 and is also known as Parlay 6.0.The present document is part 11 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA). The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs. The present document specifies the Account Management Service Capability Feature (SCF) aspects of the interface. All aspects of the Account Management SCF are defined here, these being: • Sequence Diagrams. • Class Diagrams. • Interface specification plus detailed method descriptions. • State Transition diagrams. • Data Definitions. • IDL Description of the interfaces. • WSDL Description of the interfaces. The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

ETSI OSA APIs Phase 4. Based on ES 203 915 and the new requirements for OSA Phase 4, to produce ES 204 915 V1.1.1. ETSI OSA Phase 4 incorporates 3GPP OSA Release 7 and is also known as Parlay 6.0.The present document is part 11 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA). The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs. The present document specifies the Account Management Service Capability Feature (SCF) aspects of the interface. All aspects of the Account Management SCF are defined here, these being: • Sequence Diagrams. • Class Diagrams. • Interface specification plus detailed method descriptions. • State Transition diagrams. • Data Definitions. • IDL Description of the interfaces. • WSDL Description of the interfaces. The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

SIST ES 204 915-11 V1.1.1:2008 is classified under the following ICS (International Classification for Standards) categories: 35.100.01 - Open systems interconnection in general. The ICS classification helps identify the subject area and facilitates finding related standards.

SIST ES 204 915-11 V1.1.1:2008 is available in PDF format for immediate download after purchase. The document can be added to your cart and obtained through the secure checkout process. Digital delivery ensures instant access to the complete standard document.

Standards Content (Sample)

Contents

  • 1 Scope
  • 2 References
  • 3 Definitions and abbreviations
  • 3.1 Definitions
  • 3.2 Abbreviations
  • 8 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 4 Account Management SCF
  • 4.1 General requirements on support of methods
  • 9 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 5 Sequence Diagrams
  • 5.1 Standard Voucher Handling
  • 10 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 5.2 Standard Transaction History Retrieval
  • 11 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 5.3 Standard Query Handling
  • 12 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 5.4 Standard Notification handling
  • 13 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 5.5 Network Controlled Notifications
  • 14 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 6 Class Diagrams
  • 15 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 7 The Service Interface Specifications
  • 7.1 Interface Specification Format
  • 16 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 7.2 Base Interface
  • 7.3 Service Interfaces
  • 7.4 Generic Service Interface
  • 17 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 18 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 8 Account Management Interface Classes
  • 8.1 Interface Class IpAccountManager
  • 19 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 20 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 21 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 22 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 23 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 24 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 8.2 Interface Class IpAppAccountManager
  • 25 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 26 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 27 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 28 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 29 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 9 State Transition Diagrams
  • 9.1 State Transition Diagrams for IpAccountManager
  • 30 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 10 Account Management Service Properties
  • 11 Data Definitions
  • 11.1 Account Management Data Definitions
  • 31 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 32 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 33 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 34 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 35 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 12 Exception Classes
  • 36 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 37 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 38 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 39 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 40 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 41 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 42 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 43 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 44 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)
  • 45 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

1 Scope

The present document is part 11 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA).

The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs.

The present document specifies the Account Management Service Capability Feature (SCF) aspects of the interface. All aspects of the Account Management SCF are defined here, these being:

  • Sequence Diagrams.
  • Class Diagrams.
  • Interface specification plus detailed method descriptions.
  • State Transition diagrams.
  • Data Definitions.
  • IDL Description of the interfaces.
  • WSDL Description of the interfaces.

The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

2 References

The references listed in clause 2 of ES 204 915-1 contain provisions which, through reference in this text, constitute provisions of the present document.

ETSI ES 204 915-1: "Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 6)".

3 Definitions and abbreviations

3.1 Definitions

For the purposes of the present document, the terms and definitions given in ES 204 915-1 apply.

3.2 Abbreviations

For the purposes of the present document, the abbreviations given in ES 204 915-1 apply. ETSI

8 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

4 Account Management SCF

The following clauses describe each aspect of the Account Management Service Capability Feature (SCF). The order is as follows:

  • The Sequence diagrams give the reader a practical idea of how each of the SCF is implemented.
  • The Class relationships clause shows how each of the interfaces applicable to the SCF, relate to one another.
  • The Interface specification clause describes in detail each of the interfaces shown within the Class diagram part.
  • The State Transition Diagrams (STD) show the transition between states in the SCF. The states and transitions are well-defined; either methods specified in the Interface specification or events occurring in the underlying networks cause state transitions.
  • The Data Definitions clause shows a detailed expansion of each of the data types associated with the methods within the classes. Note that some data types are used in other methods and classes and are therefore defined within the Common Data types part ES 204 915-2.

4.1 General requirements on support of methods

An implementation of this API which supports or implements a method described in the present document, shall support or implement the functionality described for that method, for at least one valid set of values for the parameters of that method.

Where a method is not supported by an implementation of a Service interface, the exception P_METHOD_NOT_SUPPORTED shall be returned to any call of that method. Where a method is not supported by an implementation of an Application interface, a call to that method shall be possible, and no exception shall be returned.

ETSI

9 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

5 Sequence Diagrams

5.1 Standard Voucher Handling

IpAppAccountManager IpAccountManager The application queries the voucher amount 1: queryVoucherReq( ) 2: queryVoucherRes( ) The application updates the balance of the account 3: updateBalanceReq( ) 4: updateBalanceRes( ) 5: destroyVoucherReq( ) 6: destroyVoucherRes( )

1: This message is used to get a voucher for an amount.

2: This message used to return the amount requested.

ETSI

10 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

3: This message is used to update the balance of the account.

4: This message is used to return the confirmation of the update. 5: This message is used to remove the voucher.

6: This message is used to confirm that the voucher is removed.

5.2 Standard Transaction History Retrieval

IpAppAccountManager IpAccountManager 1: retrieveTransactionHistoryReq( ) 2: retrieveTransactionHistoryRes( )

1: This message is used by the application to retrieve a transaction history for a certain subscriber's account. 2: This method passes the result of the transaction history retrieval request for a specific user to its callback object. ETSI

11 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

5.3 Standard Query Handling

: IpAppAccountManager : IpAccountManager Application is re questing to query AAppplpliiccaattiioon in iss r ree qquuesesttiinngg t too qu queerryy the balance tthhe be baallaancncee 1: queryBalanceReq( ) 2: queryBalanceRes( ) Application is requesting to query the balance, but there is at least one error in the parameters that is detected by the IpAccountManager service.

3: queryBalanceReq( ) Application is requesting to query the balance, but a network error occurs 4: queryBalanceReq( ) 5: queryBalanceErr( )

1: This message is used to query the balance of the account of one or several users. 2: This message passes the result of the balance query for one or several users to its callback object. 3: This scenario shows the case where at least one error in the parameters of the message is detected by the IpAccountManager object. An exception will be thrown.

4: This scenario shows the case where a network error occurs.

5: This message passes the error of the balance query. No exception is thrown. ETSI

12 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

5.4 Standard Notification handling

: IpAppAccountManager : IpAccountManager 1: createNotification( ) 2: reportNotification( ) 3: getNotification( ) 4: changeNotification( ) 5: reportNotification( ) 6: destroyNotification( )

1: This message is used by the application to request notifications from the IpAccountManager service on certain criteria for one or several users.

2: This message is used by the IpAccountManager service to report a charging event that meets the criteria set in the createNotification message.

3: The application can request the current criteria set in the IpAccountManager service by invoking the getNotification method.

4: This message is used by the application to change the criteria initially created by createNotification, and previously obtained by getNotification.

5: This message is used by the IpAccountManager service to report a charging event that meets the new criteria. 6: This method is used by the application to disable the charging notifications. ETSI

13 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

5.5 Network Controlled Notifications

The following sequence diagram shows how an application can receive notifications that have not been created by the application, but are provisioned from within the network.

AppLogic : IpAppAccountManager : IpAccountManager 1: New() 2: enableNotifications( ) 3: reportNotification( ) 4: 'forward event' 5: reportNotification( ) 6: 'forward event' 7: disableNotifications( )

1: The application is started. The application creates a new IpAppAccountManager to handle callbacks. 2: The enableNotifications method is invoked on the IpAccountManager interface to indicate that the application is ready to receive notifications that are created in the network. For illustrative purposes we assume notifications of type "B" are created in the network.

3: When a network created trigger occurs the application is notified on the callback interface. 4: The event is forwarded to the application.

5: When a network created trigger occurs the application is notified on the callback interface. 6: The event is forwarded to the application.

7: When the application does not want to receive notifications created in the network anymore, it invokes disableNotifications on the IpMultiPartyCallConrolManager interface. From now on the gateway will not send any notifications to the application that are created in the network. The application will still receive notifications that it has created himself until the application removes them. ETSI

14 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

6 Class Diagrams

<<Interface>> IpInterface (from csapi ) <<Interface>> IpAppAccountManager reportNotification() queryBalanceRes() queryBalanceErr() retrieveTransactionHistoryRes() retrieveTransactionHistoryErr() queryBalanceExpiryDateRes() queryBalanceExpiryDateErr() updateBalanceRes() updateBalanceErr() createVoucherRes() createVoucherErr() destroyVoucherRes() destroyVoucherErr() queryVoucherRes() queryVoucherErr() queryUserVouchersRes() queryUserVouchersErr() <<uses>> <<Interface>> IpAccountManager createNotification() destroyNotification() queryBalanceReq() changeNotification() getNotification() retrieveTransactionHistoryReq() enableNotifications() disableNotifications() queryBalanceExpiryDateReq() updateBalanceReq() createVoucherReq() destroyVoucherReq() queryVoucherReq() queryUserVouchersReq()

Figure 1: Application Interfaces ETSI

15 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

IpService setCallback() setCallbackWithSessionID() <<Interface>> IpAccountManager (from am) createNotification() destroyNotification() queryBalanceReq() changeNotification() getNotification() retrieveTransactionHistoryReq() enableNotifications() disableNotifications() queryBalanceExpiryDateReq() updateBalanceReq() createVoucherReq() destroyVoucherReq() queryVoucherReq() queryUserVouchersReq()

Figure 2: Service Interfaces

7 The Service Interface Specifications

7.1 Interface Specification Format

This clause defines the interfaces, methods and parameters that form a part of the API specification. The Unified Modelling Language (UML) is used to specify the interface classes. The general format of an interface specification is described below.

7.1.1 Interface Class

This shows a UML interface class description of the methods supported by that interface, and the relevant parameters and types. The Service and Framework interfaces for enterprise-based client applications are denoted by classes with name Ip<name>. The callback interfaces to the applications are denoted by classes with name IpApp<name>. For the interfaces between a Service and the Framework, the Service interfaces are typically denoted by classes with name IpSvc<name>, while the Framework interfaces are denoted by classes with name IpFw<name>. ETSI

16 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

7.1.2 Method descriptions

Each method (API method “call”) is described. Both synchronous and asynchronous methods are used in the API. Asynchronous methods are identified by a 'Req' suffix for a method request, and, if applicable, are served by asynchronous methods identified by either a 'Res' or 'Err' suffix for method results and errors, respectively. To handle responses and reports, the application or service developer must implement the relevant IpApp<name> or IpSvc<name> interfaces to provide the callback mechanism.

7.1.3 Parameter descriptions

Each method parameter and its possible values are described. Parameters described as 'in' represent those that must have a value when the method is called. Those described as 'out' are those that contain the return result of the method when the method returns.

7.1.4 State Model

If relevant, a state model is shown to illustrate the states of the objects that implement the described interface.

7.2 Base Interface

7.2.1 Interface Class IpInterface

All application, framework and service interfaces inherit from the following interface. This API Base Interface does not provide any additional methods.

<<Interface>> IpInterface

7.3 Service Interfaces

7.3.1 Overview

The Service Interfaces provide the interfaces into the capabilities of the underlying network - such as call control, user interaction, messaging, mobility and connectivity management.

The interfaces that are implemented by the services are denoted as 'Service Interface'. The corresponding interfaces that must be implemented by the application (e.g. for API callbacks) are denoted as 'Application Interface'.

7.4 Generic Service Interface

7.4.1 Interface Class IpService

Inherits from: IpInterface; All service interfaces inherit from the following interface.

ETSI

17 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

<<Interface>> IpService

setCallback (appInterface : in IpInterfaceRef) : void setCallbackWithSessionID (appInterface : in IpInterfaceRef, sessionID : in TpSessionID) : void

7.4.1.1 Method setCallback()

This method specifies the reference address of the callback interface that a service uses to invoke methods on the application. It is not allowed to invoke this method on an interface that uses SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used. Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. Raises TpCommonExceptions, P_INVALID_INTERFACE_TYPE

7.4.1.2 Method setCallbackWithSessionID()

This method specifies the reference address of the application's callback interface that a service uses for interactions associated with a specific session ID: e.g. a specific call, or call leg. It is not allowed to invoke this method on an interface that does not use SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. sessionID : in TpSessionID Specifies the session for which the service can invoke the application's callback interface. Raises TpCommonExceptions, P_INVALID_SESSION_ID, P_INVALID_INTERFACE_TYPE ETSI

18 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

8 Account Management Interface Classes

8.1 Interface Class IpAccountManager

Inherits from: IpService.

The account manager interface provides methods for managing accounts. Applications can use this interface to enable or disable charging-related event notifications and to manage account balances. Vouchers allow indirect references to amounts that can be applied to the account.

This interface shall be implemented by an Account Management SCF. The queryBalanceReq() method, or the retrieveTransactionHistoryReq() method, or both the createNotification() and destroyNotification methods, or both the enableNotifications and disableNotifications methods shall be implemented as a minimum requirement. <<Interface>> IpAccountManager

createNotification (appAccountManager : in IpAppAccountManagerRef, chargingEventCriteria : in TpChargingEventCriteria) : TpAssignmentID destroyNotification (assignmentId : in TpAssignmentID) : void queryBalanceReq (users : in TpAddressSet) : TpAssignmentID changeNotification (assignmentID : in TpAssignmentID, eventCriteria : in TpChargingEventCriteria) : void getNotification () : TpChargingEventCriteriaResultSet retrieveTransactionHistoryReq (user : in TpAddress, transactionInterval : in TpTimeInterval) :

TpAssignmentID enableNotifications (appAccountManager : in IpAppAccountManagerRef) : TpAssignmentID disableNotifications () : void queryBalanceExpiryDateReq (users : in TpAddressSet) : TpAssignmentID updateBalanceReq (user : in TpAddress, debit : in TpBoolean, amount : in TpBalanceInfo, period : in TpInt32) : TpAssignmentID createVoucherReq (user : in TpAddress, amount : in TpBalanceInfo) : TpAssignmentID destroyVoucherReq (voucherId : in TpAssignmentID) : TpAssignmentID queryVoucherReq (voucherId : in TpAssignmentID) : TpAssignmentID queryUserVouchersReq (user : in TpAddress) : TpAssignmentID

8.1.1 Method createNotification()

This method is used by the application to enable charging event notifications to be sent to the application. If the same application invokes this method multiple times with exactly the same criteria but with different callback references, then these shall be treated as additional callback references. Each such notification request shall share the same assignmentID. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

ETSI

19 Final draft ETSI ES 204 915-11 V1.1.1 (2008-02)

In case the createNotification contains no callback, at the moment the application needs to be informed the gateway will use as callback the callback that has been registered by setCallback(). Returns assignmentId : Specifies the ID assigned by the account management object for this newly enabled event notification.

Parameters appAccountManager : in IpAppAccountManagerRef If this parameter is set (i.e. not NULL) it specifies a reference to the application interface, which is used for callbacks. If set to NULL, the application interface defaults to the interface specified via the setCallback() method. chargingEventCriteria : in TpChargingEventCriteria Specifies the event specific criteria used by the application to define the charging event required. Individual addresses or address ranges may be specified for subscriber accounts. Example of events are "charging" and "recharging". Returns TpAssignmentID Raises TpCommonExceptions, P_INVALID_ADDRESS, P_INVALID_CRITERIA, P_INVALID_EVENT_TYPE, P_UNKNOWN_SUBSCRIBER

8.1.2 Method destroyNotification()

This method is used by the application to disable charging notifications. This method only applies to notifications created with createNotification().

Parameters assignmentId : in TpAssignmentID Specifies the assignment ID that was given by the account management object when the application enabled the charging notification.

Raises TpCommonExceptions, P_INVALID_ASSIGNMENT_ID

8.1.3 Method queryBalanceReq()

This method is used by the application to query the balance of an account for one or several users. A queryBalanceRes() will be sent for all valid users, and a queryBalanceErr() will be sent for all invalid users or other errors. Returns queryId : Specifies the ID of the balance query request. Parameters users : in TpAddressSet Specifies the user(s) for which the balance is queried.

Returns TpAssignmentID Raises TpCommonExceptions, P_UNKNOWN_SUBSCRIBER, P_UNAUTHORIZED_APPLICATION ETSI

...

Contents

  • 1 Scope
  • 2 References
  • 3 Definitions and abbreviations
  • 3.1 Definitions
  • 3.2 Abbreviations
  • 8 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 4 Account Management SCF
  • 4.1 General requirements on support of methods
  • 9 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5 Sequence Diagrams
  • 5.1 Standard Voucher Handling
  • 10 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5.2 Standard Transaction History Retrieval
  • 11 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5.3 Standard Query Handling
  • 12 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5.4 Standard Notification handling
  • 13 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5.5 Network Controlled Notifications
  • 14 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 6 Class Diagrams
  • 15 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 7 The Service Interface Specifications
  • 7.1 Interface Specification Format
  • 16 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 7.2 Base Interface
  • 7.3 Service Interfaces
  • 7.4 Generic Service Interface
  • 17 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 18 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 8 Account Management Interface Classes
  • 8.1 Interface Class IpAccountManager
  • 19 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 20 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 21 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 22 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 23 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 24 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 8.2 Interface Class IpAppAccountManager
  • 25 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 26 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 27 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 28 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 29 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 9 State Transition Diagrams
  • 9.1 State Transition Diagrams for IpAccountManager
  • 30 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 10 Account Management Service Properties
  • 11 Data Definitions
  • 11.1 Account Management Data Definitions
  • 31 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 32 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 33 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 34 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 35 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 12 Exception Classes
  • 36 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 37 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 38 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 39 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 40 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 41 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 42 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 43 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 44 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 45 ETSI ES 204 915-11 V1.1.1 (2008-05)

1 Scope

The present document is part 11 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA).

The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs.

The present document specifies the Account Management Service Capability Feature (SCF) aspects of the interface. All aspects of the Account Management SCF are defined here, these being:

  • Sequence Diagrams.
  • Class Diagrams.
  • Interface specification plus detailed method descriptions.
  • State Transition diagrams.
  • Data Definitions.
  • IDL Description of the interfaces.
  • WSDL Description of the interfaces.

The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

2 References

The references listed in clause 2 of ES 204 915-1 contain provisions which, through reference in this text, constitute provisions of the present document.

ETSI ES 204 915-1: "Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 6)".

3 Definitions and abbreviations

3.1 Definitions

For the purposes of the present document, the terms and definitions given in ES 204 915-1 apply.

3.2 Abbreviations

For the purposes of the present document, the abbreviations given in ES 204 915-1 apply. ETSI

8 ETSI ES 204 915-11 V1.1.1 (2008-05)

4 Account Management SCF

The following clauses describe each aspect of the Account Management Service Capability Feature (SCF). The order is as follows:

  • The Sequence diagrams give the reader a practical idea of how each of the SCF is implemented.
  • The Class relationships clause shows how each of the interfaces applicable to the SCF, relate to one another.
  • The Interface specification clause describes in detail each of the interfaces shown within the Class diagram part.
  • The State Transition Diagrams (STD) show the transition between states in the SCF. The states and transitions are well-defined; either methods specified in the Interface specification or events occurring in the underlying networks cause state transitions.
  • The Data Definitions clause shows a detailed expansion of each of the data types associated with the methods within the classes. Note that some data types are used in other methods and classes and are therefore defined within the Common Data types part ES 204 915-2.

4.1 General requirements on support of methods

An implementation of this API which supports or implements a method described in the present document, shall support or implement the functionality described for that method, for at least one valid set of values for the parameters of that method.

Where a method is not supported by an implementation of a Service interface, the exception P_METHOD_NOT_SUPPORTED shall be returned to any call of that method. Where a method is not supported by an implementation of an Application interface, a call to that method shall be possible, and no exception shall be returned.

ETSI

9 ETSI ES 204 915-11 V1.1.1 (2008-05)

5 Sequence Diagrams

5.1 Standard Voucher Handling

IpAppAccountManager IpAccountManager The application queries the voucher amount 1: queryVoucherReq( ) 2: queryVoucherRes( ) The application updates the balance of the account 3: updateBalanceReq( ) 4: updateBalanceRes( ) 5: destroyVoucherReq( ) 6: destroyVoucherRes( )

1: This message is used to get a voucher for an amount.

2: This message used to return the amount requested.

ETSI

10 ETSI ES 204 915-11 V1.1.1 (2008-05)

3: This message is used to update the balance of the account.

4: This message is used to return the confirmation of the update. 5: This message is used to remove the voucher.

6: This message is used to confirm that the voucher is removed.

5.2 Standard Transaction History Retrieval

IpAppAccountManager IpAccountManager 1: retrieveTransactionHistoryReq( ) 2: retrieveTransactionHistoryRes( )

1: This message is used by the application to retrieve a transaction history for a certain subscriber's account. 2: This method passes the result of the transaction history retrieval request for a specific user to its callback object. ETSI

11 ETSI ES 204 915-11 V1.1.1 (2008-05)

5.3 Standard Query Handling

: IpAppAccountManager : IpAccountManager Application is re questing to query AAppplpliiccaattiioon in iss r ree qquuesesttiinngg t too qu queerryy the balance tthhe be baallaancncee 1: queryBalanceReq( ) 2: queryBalanceRes( ) Application is requesting to query the balance, but there is at least one error in the parameters that is detected by the IpAccountManager service.

3: queryBalanceReq( ) Application is requesting to query the balance, but a network error occurs 4: queryBalanceReq( ) 5: queryBalanceErr( )

1: This message is used to query the balance of the account of one or several users. 2: This message passes the result of the balance query for one or several users to its callback object. 3: This scenario shows the case where at least one error in the parameters of the message is detected by the IpAccountManager object. An exception will be thrown.

4: This scenario shows the case where a network error occurs.

5: This message passes the error of the balance query. No exception is thrown. ETSI

12 ETSI ES 204 915-11 V1.1.1 (2008-05)

5.4 Standard Notification handling

: IpAppAccountManager : IpAccountManager 1: createNotification( ) 2: reportNotification( ) 3: getNotification( ) 4: changeNotification( ) 5: reportNotification( ) 6: destroyNotification( )

1: This message is used by the application to request notifications from the IpAccountManager service on certain criteria for one or several users.

2: This message is used by the IpAccountManager service to report a charging event that meets the criteria set in the createNotification message.

3: The application can request the current criteria set in the IpAccountManager service by invoking the getNotification method.

4: This message is used by the application to change the criteria initially created by createNotification, and previously obtained by getNotification.

5: This message is used by the IpAccountManager service to report a charging event that meets the new criteria. 6: This method is used by the application to disable the charging notifications. ETSI

13 ETSI ES 204 915-11 V1.1.1 (2008-05)

5.5 Network Controlled Notifications

The following sequence diagram shows how an application can receive notifications that have not been created by the application, but are provisioned from within the network.

AppLogic : IpAppAccountManager : IpAccountManager 1: New() 2: enableNotifications( ) 3: reportNotification( ) 4: 'forward event' 5: reportNotification( ) 6: 'forward event' 7: disableNotifications( )

1: The application is started. The application creates a new IpAppAccountManager to handle callbacks. 2: The enableNotifications method is invoked on the IpAccountManager interface to indicate that the application is ready to receive notifications that are created in the network. For illustrative purposes we assume notifications of type "B" are created in the network.

3: When a network created trigger occurs the application is notified on the callback interface. 4: The event is forwarded to the application.

5: When a network created trigger occurs the application is notified on the callback interface. 6: The event is forwarded to the application.

7: When the application does not want to receive notifications created in the network anymore, it invokes disableNotifications on the IpMultiPartyCallConrolManager interface. From now on the gateway will not send any notifications to the application that are created in the network. The application will still receive notifications that it has created himself until the application removes them. ETSI

14 ETSI ES 204 915-11 V1.1.1 (2008-05)

6 Class Diagrams

<<Interface>> IpInterface (from csapi ) <<Interface>> IpAppAccountManager reportNotification() queryBalanceRes() queryBalanceErr() retrieveTransactionHistoryRes() retrieveTransactionHistoryErr() queryBalanceExpiryDateRes() queryBalanceExpiryDateErr() updateBalanceRes() updateBalanceErr() createVoucherRes() createVoucherErr() destroyVoucherRes() destroyVoucherErr() queryVoucherRes() queryVoucherErr() queryUserVouchersRes() queryUserVouchersErr() <<uses>> <<Interface>> IpAccountManager createNotification() destroyNotification() queryBalanceReq() changeNotification() getNotification() retrieveTransactionHistoryReq() enableNotifications() disableNotifications() queryBalanceExpiryDateReq() updateBalanceReq() createVoucherReq() destroyVoucherReq() queryVoucherReq() queryUserVouchersReq()

Figure 1: Application Interfaces ETSI

15 ETSI ES 204 915-11 V1.1.1 (2008-05)

IpService setCallback() setCallbackWithSessionID() <<Interface>> IpAccountManager (from am) createNotification() destroyNotification() queryBalanceReq() changeNotification() getNotification() retrieveTransactionHistoryReq() enableNotifications() disableNotifications() queryBalanceExpiryDateReq() updateBalanceReq() createVoucherReq() destroyVoucherReq() queryVoucherReq() queryUserVouchersReq()

Figure 2: Service Interfaces

7 The Service Interface Specifications

7.1 Interface Specification Format

This clause defines the interfaces, methods and parameters that form a part of the API specification. The Unified Modelling Language (UML) is used to specify the interface classes. The general format of an interface specification is described below.

7.1.1 Interface Class

This shows a UML interface class description of the methods supported by that interface, and the relevant parameters and types. The Service and Framework interfaces for enterprise-based client applications are denoted by classes with name Ip<name>. The callback interfaces to the applications are denoted by classes with name IpApp<name>. For the interfaces between a Service and the Framework, the Service interfaces are typically denoted by classes with name IpSvc<name>, while the Framework interfaces are denoted by classes with name IpFw<name>. ETSI

16 ETSI ES 204 915-11 V1.1.1 (2008-05)

7.1.2 Method descriptions

Each method (API method “call”) is described. Both synchronous and asynchronous methods are used in the API. Asynchronous methods are identified by a 'Req' suffix for a method request, and, if applicable, are served by asynchronous methods identified by either a 'Res' or 'Err' suffix for method results and errors, respectively. To handle responses and reports, the application or service developer must implement the relevant IpApp<name> or IpSvc<name> interfaces to provide the callback mechanism.

7.1.3 Parameter descriptions

Each method parameter and its possible values are described. Parameters described as 'in' represent those that must have a value when the method is called. Those described as 'out' are those that contain the return result of the method when the method returns.

7.1.4 State Model

If relevant, a state model is shown to illustrate the states of the objects that implement the described interface.

7.2 Base Interface

7.2.1 Interface Class IpInterface

All application, framework and service interfaces inherit from the following interface. This API Base Interface does not provide any additional methods.

<<Interface>> IpInterface

7.3 Service Interfaces

7.3.1 Overview

The Service Interfaces provide the interfaces into the capabilities of the underlying network - such as call control, user interaction, messaging, mobility and connectivity management.

The interfaces that are implemented by the services are denoted as 'Service Interface'. The corresponding interfaces that must be implemented by the application (e.g. for API callbacks) are denoted as 'Application Interface'.

7.4 Generic Service Interface

7.4.1 Interface Class IpService

Inherits from: IpInterface; All service interfaces inherit from the following interface.

ETSI

17 ETSI ES 204 915-11 V1.1.1 (2008-05)

<<Interface>> IpService

setCallback (appInterface : in IpInterfaceRef) : void setCallbackWithSessionID (appInterface : in IpInterfaceRef, sessionID : in TpSessionID) : void

7.4.1.1 Method setCallback()

This method specifies the reference address of the callback interface that a service uses to invoke methods on the application. It is not allowed to invoke this method on an interface that uses SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used. Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. Raises TpCommonExceptions, P_INVALID_INTERFACE_TYPE

7.4.1.2 Method setCallbackWithSessionID()

This method specifies the reference address of the application's callback interface that a service uses for interactions associated with a specific session ID: e.g. a specific call, or call leg. It is not allowed to invoke this method on an interface that does not use SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. sessionID : in TpSessionID Specifies the session for which the service can invoke the application's callback interface. Raises TpCommonExceptions, P_INVALID_SESSION_ID, P_INVALID_INTERFACE_TYPE ETSI

18 ETSI ES 204 915-11 V1.1.1 (2008-05)

8 Account Management Interface Classes

8.1 Interface Class IpAccountManager

Inherits from: IpService.

The account manager interface provides methods for managing accounts. Applications can use this interface to enable or disable charging-related event notifications and to manage account balances. Vouchers allow indirect references to amounts that can be applied to the account.

This interface shall be implemented by an Account Management SCF. The queryBalanceReq() method, or the retrieveTransactionHistoryReq() method, or both the createNotification() and destroyNotification methods, or both the enableNotifications and disableNotifications methods shall be implemented as a minimum requirement. <<Interface>> IpAccountManager

createNotification (appAccountManager : in IpAppAccountManagerRef, chargingEventCriteria : in TpChargingEventCriteria) : TpAssignmentID destroyNotification (assignmentId : in TpAssignmentID) : void queryBalanceReq (users : in TpAddressSet) : TpAssignmentID changeNotification (assignmentID : in TpAssignmentID, eventCriteria : in TpChargingEventCriteria) : void getNotification () : TpChargingEventCriteriaResultSet retrieveTransactionHistoryReq (user : in TpAddress, transactionInterval : in TpTimeInterval) :

TpAssignmentID enableNotifications (appAccountManager : in IpAppAccountManagerRef) : TpAssignmentID disableNotifications () : void queryBalanceExpiryDateReq (users : in TpAddressSet) : TpAssignmentID updateBalanceReq (user : in TpAddress, debit : in TpBoolean, amount : in TpBalanceInfo, period : in TpInt32) : TpAssignmentID createVoucherReq (user : in TpAddress, amount : in TpBalanceInfo) : TpAssignmentID destroyVoucherReq (voucherId : in TpAssignmentID) : TpAssignmentID queryVoucherReq (voucherId : in TpAssignmentID) : TpAssignmentID queryUserVouchersReq (user : in TpAddress) : TpAssignmentID

8.1.1 Method createNotification()

This method is used by the application to enable charging event notifications to be sent to the application. If the same application invokes this method multiple times with exactly the same criteria but with different callback references, then these shall be treated as additional callback references. Each such notification request shall share the same assignmentID. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

ETSI

19 ETSI ES 204 915-11 V1.1.1 (2008-05)

In case the createNotification contains no callback, at the moment the application needs to be informed the gateway will use as callback the callback that has been registered by setCallback(). Returns assignmentId : Specifies the ID assigned by the account management object for this newly enabled event notification.

Parameters appAccountManager : in IpAppAccountManagerRef If this parameter is set (i.e. not NULL) it specifies a reference to the application interface, which is used for callbacks. If set to NULL, the application interface defaults to the interface specified via the setCallback() method. chargingEventCriteria : in TpChargingEventCriteria Specifies the event specific criteria used by the application to define the charging event required. Individual addresses or address ranges may be specified for subscriber accounts. Example of events are "charging" and "recharging". Returns TpAssignmentID Raises TpCommonExceptions, P_INVALID_ADDRESS, P_INVALID_CRITERIA, P_INVALID_EVENT_TYPE, P_UNKNOWN_SUBSCRIBER

8.1.2 Method destroyNotification()

This method is used by the application to disable charging notifications. This method only applies to notifications created with createNotification().

Parameters assignmentId : in TpAssignmentID Specifies the assignment ID that was given by the account management object when the application enabled the charging notification.

Raises TpCommonExceptions, P_INVALID_ASSIGNMENT_ID

8.1.3 Method queryBalanceReq()

This method is used by the application to query the balance of an account for one or several users. A queryBalanceRes() will be sent for all valid users, and a queryBalanceErr() will be sent for all invalid users or other errors. Returns queryId : Specifies the ID of the balance query request. Parameters users : in TpAddressSet Specifies the user(s) for which the balance is queried.

Returns TpAssignmentID Raises TpCommonExceptions, P_UNKNOWN_SUBSCRIBER, P_UNAUTHORIZED_APPLICATION ETSI

...

Contents

  • 1 Scope
  • 2 References
  • 3 Definitions and abbreviations
  • 3.1 Definitions
  • 3.2 Abbreviations
  • 8 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 4 Account Management SCF
  • 4.1 General requirements on support of methods
  • 9 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5 Sequence Diagrams
  • 5.1 Standard Voucher Handling
  • 10 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5.2 Standard Transaction History Retrieval
  • 11 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5.3 Standard Query Handling
  • 12 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5.4 Standard Notification handling
  • 13 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 5.5 Network Controlled Notifications
  • 14 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 6 Class Diagrams
  • 15 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 7 The Service Interface Specifications
  • 7.1 Interface Specification Format
  • 16 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 7.2 Base Interface
  • 7.3 Service Interfaces
  • 7.4 Generic Service Interface
  • 17 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 18 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 8 Account Management Interface Classes
  • 8.1 Interface Class IpAccountManager
  • 19 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 20 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 21 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 22 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 23 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 24 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 8.2 Interface Class IpAppAccountManager
  • 25 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 26 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 27 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 28 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 29 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 9 State Transition Diagrams
  • 9.1 State Transition Diagrams for IpAccountManager
  • 30 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 10 Account Management Service Properties
  • 11 Data Definitions
  • 11.1 Account Management Data Definitions
  • 31 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 32 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 33 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 34 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 35 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 12 Exception Classes
  • 36 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 37 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 38 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 39 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 40 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 41 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 42 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 43 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 44 ETSI ES 204 915-11 V1.1.1 (2008-05)
  • 45 ETSI ES 204 915-11 V1.1.1 (2008-05)

1 Scope

The present document is part 11 of the Stage 3 specification for an Application Programming Interface (API) for Open Service Access (OSA).

The OSA specifications define an architecture that enables application developers to make use of network functionality through an open standardised interface, i.e. the OSA APIs.

The present document specifies the Account Management Service Capability Feature (SCF) aspects of the interface. All aspects of the Account Management SCF are defined here, these being:

  • Sequence Diagrams.
  • Class Diagrams.
  • Interface specification plus detailed method descriptions.
  • State Transition diagrams.
  • Data Definitions.
  • IDL Description of the interfaces.
  • WSDL Description of the interfaces.

The process by which this task is accomplished is through the use of object modelling techniques described by the Unified Modelling Language (UML).

2 References

The references listed in clause 2 of ES 204 915-1 contain provisions which, through reference in this text, constitute provisions of the present document.

ETSI ES 204 915-1: "Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 6)".

3 Definitions and abbreviations

3.1 Definitions

For the purposes of the present document, the terms and definitions given in ES 204 915-1 apply.

3.2 Abbreviations

For the purposes of the present document, the abbreviations given in ES 204 915-1 apply. ETSI

SIST ES 204 915-11 V1.1.1:2008

8 ETSI ES 204 915-11 V1.1.1 (2008-05)

4 Account Management SCF

The following clauses describe each aspect of the Account Management Service Capability Feature (SCF). The order is as follows:

  • The Sequence diagrams give the reader a practical idea of how each of the SCF is implemented.
  • The Class relationships clause shows how each of the interfaces applicable to the SCF, relate to one another.
  • The Interface specification clause describes in detail each of the interfaces shown within the Class diagram part.
  • The State Transition Diagrams (STD) show the transition between states in the SCF. The states and transitions are well-defined; either methods specified in the Interface specification or events occurring in the underlying networks cause state transitions.
  • The Data Definitions clause shows a detailed expansion of each of the data types associated with the methods within the classes. Note that some data types are used in other methods and classes and are therefore defined within the Common Data types part ES 204 915-2.

4.1 General requirements on support of methods

An implementation of this API which supports or implements a method described in the present document, shall support or implement the functionality described for that method, for at least one valid set of values for the parameters of that method.

Where a method is not supported by an implementation of a Service interface, the exception P_METHOD_NOT_SUPPORTED shall be returned to any call of that method. Where a method is not supported by an implementation of an Application interface, a call to that method shall be possible, and no exception shall be returned.

ETSI

SIST ES 204 915-11 V1.1.1:2008

9 ETSI ES 204 915-11 V1.1.1 (2008-05)

5 Sequence Diagrams

5.1 Standard Voucher Handling

IpAppAccountManager IpAccountManager The application queries the voucher amount 1: queryVoucherReq( ) 2: queryVoucherRes( ) The application updates the balance of the account 3: updateBalanceReq( ) 4: updateBalanceRes( ) 5: destroyVoucherReq( ) 6: destroyVoucherRes( )

1: This message is used to get a voucher for an amount.

2: This message used to return the amount requested.

ETSI

SIST ES 204 915-11 V1.1.1:2008

10 ETSI ES 204 915-11 V1.1.1 (2008-05)

3: This message is used to update the balance of the account.

4: This message is used to return the confirmation of the update. 5: This message is used to remove the voucher.

6: This message is used to confirm that the voucher is removed.

5.2 Standard Transaction History Retrieval

IpAppAccountManager IpAccountManager 1: retrieveTransactionHistoryReq( ) 2: retrieveTransactionHistoryRes( )

1: This message is used by the application to retrieve a transaction history for a certain subscriber's account. 2: This method passes the result of the transaction history retrieval request for a specific user to its callback object. ETSI

SIST ES 204 915-11 V1.1.1:2008

11 ETSI ES 204 915-11 V1.1.1 (2008-05)

5.3 Standard Query Handling

: IpAppAccountManager : IpAccountManager Application is re questing to query AAppplpliiccaattiioon in iss r ree qquuesesttiinngg t too qu queerryy the balance tthhe be baallaancncee 1: queryBalanceReq( ) 2: queryBalanceRes( ) Application is requesting to query the balance, but there is at least one error in the parameters that is detected by the IpAccountManager service.

3: queryBalanceReq( ) Application is requesting to query the balance, but a network error occurs 4: queryBalanceReq( ) 5: queryBalanceErr( )

1: This message is used to query the balance of the account of one or several users. 2: This message passes the result of the balance query for one or several users to its callback object. 3: This scenario shows the case where at least one error in the parameters of the message is detected by the IpAccountManager object. An exception will be thrown.

4: This scenario shows the case where a network error occurs.

5: This message passes the error of the balance query. No exception is thrown. ETSI

SIST ES 204 915-11 V1.1.1:2008

12 ETSI ES 204 915-11 V1.1.1 (2008-05)

5.4 Standard Notification handling

: IpAppAccountManager : IpAccountManager 1: createNotification( ) 2: reportNotification( ) 3: getNotification( ) 4: changeNotification( ) 5: reportNotification( ) 6: destroyNotification( )

1: This message is used by the application to request notifications from the IpAccountManager service on certain criteria for one or several users.

2: This message is used by the IpAccountManager service to report a charging event that meets the criteria set in the createNotification message.

3: The application can request the current criteria set in the IpAccountManager service by invoking the getNotification method.

4: This message is used by the application to change the criteria initially created by createNotification, and previously obtained by getNotification.

5: This message is used by the IpAccountManager service to report a charging event that meets the new criteria. 6: This method is used by the application to disable the charging notifications. ETSI

SIST ES 204 915-11 V1.1.1:2008

13 ETSI ES 204 915-11 V1.1.1 (2008-05)

5.5 Network Controlled Notifications

The following sequence diagram shows how an application can receive notifications that have not been created by the application, but are provisioned from within the network.

AppLogic : IpAppAccountManager : IpAccountManager 1: New() 2: enableNotifications( ) 3: reportNotification( ) 4: 'forward event' 5: reportNotification( ) 6: 'forward event' 7: disableNotifications( )

1: The application is started. The application creates a new IpAppAccountManager to handle callbacks. 2: The enableNotifications method is invoked on the IpAccountManager interface to indicate that the application is ready to receive notifications that are created in the network. For illustrative purposes we assume notifications of type "B" are created in the network.

3: When a network created trigger occurs the application is notified on the callback interface. 4: The event is forwarded to the application.

5: When a network created trigger occurs the application is notified on the callback interface. 6: The event is forwarded to the application.

7: When the application does not want to receive notifications created in the network anymore, it invokes disableNotifications on the IpMultiPartyCallConrolManager interface. From now on the gateway will not send any notifications to the application that are created in the network. The application will still receive notifications that it has created himself until the application removes them. ETSI

SIST ES 204 915-11 V1.1.1:2008

14 ETSI ES 204 915-11 V1.1.1 (2008-05)

6 Class Diagrams

<<Interface>> IpInterface (from csapi ) <<Interface>> IpAppAccountManager reportNotification() queryBalanceRes() queryBalanceErr() retrieveTransactionHistoryRes() retrieveTransactionHistoryErr() queryBalanceExpiryDateRes() queryBalanceExpiryDateErr() updateBalanceRes() updateBalanceErr() createVoucherRes() createVoucherErr() destroyVoucherRes() destroyVoucherErr() queryVoucherRes() queryVoucherErr() queryUserVouchersRes() queryUserVouchersErr() <<uses>> <<Interface>> IpAccountManager createNotification() destroyNotification() queryBalanceReq() changeNotification() getNotification() retrieveTransactionHistoryReq() enableNotifications() disableNotifications() queryBalanceExpiryDateReq() updateBalanceReq() createVoucherReq() destroyVoucherReq() queryVoucherReq() queryUserVouchersReq()

Figure 1: Application Interfaces ETSI

SIST ES 204 915-11 V1.1.1:2008

15 ETSI ES 204 915-11 V1.1.1 (2008-05)

IpService setCallback() setCallbackWithSessionID() <<Interface>> IpAccountManager (from am) createNotification() destroyNotification() queryBalanceReq() changeNotification() getNotification() retrieveTransactionHistoryReq() enableNotifications() disableNotifications() queryBalanceExpiryDateReq() updateBalanceReq() createVoucherReq() destroyVoucherReq() queryVoucherReq() queryUserVouchersReq()

Figure 2: Service Interfaces

7 The Service Interface Specifications

7.1 Interface Specification Format

This clause defines the interfaces, methods and parameters that form a part of the API specification. The Unified Modelling Language (UML) is used to specify the interface classes. The general format of an interface specification is described below.

7.1.1 Interface Class

This shows a UML interface class description of the methods supported by that interface, and the relevant parameters and types. The Service and Framework interfaces for enterprise-based client applications are denoted by classes with name Ip<name>. The callback interfaces to the applications are denoted by classes with name IpApp<name>. For the interfaces between a Service and the Framework, the Service interfaces are typically denoted by classes with name IpSvc<name>, while the Framework interfaces are denoted by classes with name IpFw<name>. ETSI

SIST ES 204 915-11 V1.1.1:2008

16 ETSI ES 204 915-11 V1.1.1 (2008-05)

7.1.2 Method descriptions

Each method (API method “call”) is described. Both synchronous and asynchronous methods are used in the API. Asynchronous methods are identified by a 'Req' suffix for a method request, and, if applicable, are served by asynchronous methods identified by either a 'Res' or 'Err' suffix for method results and errors, respectively. To handle responses and reports, the application or service developer must implement the relevant IpApp<name> or IpSvc<name> interfaces to provide the callback mechanism.

7.1.3 Parameter descriptions

Each method parameter and its possible values are described. Parameters described as 'in' represent those that must have a value when the method is called. Those described as 'out' are those that contain the return result of the method when the method returns.

7.1.4 State Model

If relevant, a state model is shown to illustrate the states of the objects that implement the described interface.

7.2 Base Interface

7.2.1 Interface Class IpInterface

All application, framework and service interfaces inherit from the following interface. This API Base Interface does not provide any additional methods.

<<Interface>> IpInterface

7.3 Service Interfaces

7.3.1 Overview

The Service Interfaces provide the interfaces into the capabilities of the underlying network - such as call control, user interaction, messaging, mobility and connectivity management.

The interfaces that are implemented by the services are denoted as 'Service Interface'. The corresponding interfaces that must be implemented by the application (e.g. for API callbacks) are denoted as 'Application Interface'.

7.4 Generic Service Interface

7.4.1 Interface Class IpService

Inherits from: IpInterface; All service interfaces inherit from the following interface.

ETSI

SIST ES 204 915-11 V1.1.1:2008

17 ETSI ES 204 915-11 V1.1.1 (2008-05)

<<Interface>> IpService

setCallback (appInterface : in IpInterfaceRef) : void setCallbackWithSessionID (appInterface : in IpInterfaceRef, sessionID : in TpSessionID) : void

7.4.1.1 Method setCallback()

This method specifies the reference address of the callback interface that a service uses to invoke methods on the application. It is not allowed to invoke this method on an interface that uses SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used. Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. Raises TpCommonExceptions, P_INVALID_INTERFACE_TYPE

7.4.1.2 Method setCallbackWithSessionID()

This method specifies the reference address of the application's callback interface that a service uses for interactions associated with a specific session ID: e.g. a specific call, or call leg. It is not allowed to invoke this method on an interface that does not use SessionIDs. Multiple invocations of this method on an interface shall result in multiple callback references being specified. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. sessionID : in TpSessionID Specifies the session for which the service can invoke the application's callback interface. Raises TpCommonExceptions, P_INVALID_SESSION_ID, P_INVALID_INTERFACE_TYPE ETSI

SIST ES 204 915-11 V1.1.1:2008

18 ETSI ES 204 915-11 V1.1.1 (2008-05)

8 Account Management Interface Classes

8.1 Interface Class IpAccountManager

Inherits from: IpService.

The account manager interface provides methods for managing accounts. Applications can use this interface to enable or disable charging-related event notifications and to manage account balances. Vouchers allow indirect references to amounts that can be applied to the account.

This interface shall be implemented by an Account Management SCF. The queryBalanceReq() method, or the retrieveTransactionHistoryReq() method, or both the createNotification() and destroyNotification methods, or both the enableNotifications and disableNotifications methods shall be implemented as a minimum requirement. <<Interface>> IpAccountManager

createNotification (appAccountManager : in IpAppAccountManagerRef, chargingEventCriteria : in TpChargingEventCriteria) : TpAssignmentID destroyNotification (assignmentId : in TpAssignmentID) : void queryBalanceReq (users : in TpAddressSet) : TpAssignmentID changeNotification (assignmentID : in TpAssignmentID, eventCriteria : in TpChargingEventCriteria) : void getNotification () : TpChargingEventCriteriaResultSet retrieveTransactionHistoryReq (user : in TpAddress, transactionInterval : in TpTimeInterval) :

TpAssignmentID enableNotifications (appAccountManager : in IpAppAccountManagerRef) : TpAssignmentID disableNotifications () : void queryBalanceExpiryDateReq (users : in TpAddressSet) : TpAssignmentID updateBalanceReq (user : in TpAddress, debit : in TpBoolean, amount : in TpBalanceInfo, period : in TpInt32) : TpAssignmentID createVoucherReq (user : in TpAddress, amount : in TpBalanceInfo) : TpAssignmentID destroyVoucherReq (voucherId : in TpAssignmentID) : TpAssignmentID queryVoucherReq (voucherId : in TpAssignmentID) : TpAssignmentID queryUserVouchersReq (user : in TpAddress) : TpAssignmentID

8.1.1 Method createNotification()

This method is used by the application to enable charging event notifications to be sent to the application. If the same application invokes this method multiple times with exactly the same criteria but with different callback references, then these shall be treated as additional callback references. Each such notification request shall share the same assignmentID. The SCS shall use the most recent callback interface provided by the application using this method. In the event that a callback reference fails or is no longer available, the next most recent callback reference available shall be used.

ETSI

SIST ES 204 915-11 V1.1.1:2008

19 ETSI ES 204 915-11 V1.1.1 (2008-05)

In case the createNotification contains no callback, at the moment the application needs to be informed the gateway will use as callback the callback that has been registered by setCallback(). Returns assignmentId : Specifies the ID assigned by the account management object for this newly enabled event notification.

Parameters appAccountManager : in IpAppAccountManagerRef If this parameter is set (i.e. not NULL) it specifies a reference to the application interface, which is used for callbacks. If set to NULL, the application interface defaults to the interface specified via the setCallback() method. chargingEventCriteria : in TpChargingEventCriteria Specifies the event specific criteria used by the application to define the charging event required. Individual addresses or address ranges may be specified for subscriber accounts. Example of events are "charging" and "recharging". Returns TpAssignmentID Raises TpCommonExceptions, P_INVALID_ADDRESS, P_INVALID_CRITERIA, P_INVALID_EVENT_TYPE, P_UNKNOWN_SUBSCRIBER

8.1.2 Method destroyNotification()

This method is used by the application to disable charging notifications. This method only applies to notifications created with createNotification().

Parameters assignmentId : in TpAssignmentID Specifies the assignment ID that was given by the account management object when the application enabled the charging notification.

Raises TpCommonExceptions, P_INVALID_ASSIGNMENT_ID

8.1.3 Method queryBalanceReq()

This method is used by the application to query the balance of an account for one or several users. A queryBalanceRes() will be sent for all valid users, and a queryBalanceErr() will be sent for all invalid users or other errors. Returns queryId : Specifies the ID of the balance query request. Parameters users : in TpAddressSet Specifies the user(s) for which the balance is queried.

Returns TpAssignmentID Raises TpCommonExceptions, P_UNKNOWN_SUBSCRIBER, P_UNAUTHORIZED_APPLICATION ETSI

SIST ES 204 915-11 V1.1.1:2008

...