Abstract

Maintenance update of ES 202 915-12 V1.1.1 to produce ES 202 915-12 V1.2.1 Updated document will also be known as PARLAY 4.1. Only those parts requiring modification will be updated ( most parts require maintenance fixes )

Status
Published
Publication Date
31-Dec-2004
Current Stage
6060 - National Implementation/Publication (Adopted Project)
Start Date
01-Jan-2005
Due Date
01-Jan-2005
Completion Date
01-Jan-2005

Buy Documents

Standardization document

SIST ES 202 915-12 V1.2.1:2005

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

SIST ES 202 915-12 V1.2.1:2005 is the Slovenian adoption of ETSI ES 202 915-12 V1.2.1 for Open Service Access (OSA) Application Programming Interface (API), Part 12: Charging SCF (Parlay 4). It specifies the charging interface used by OSA applications to start charging sessions, reserve value, debit or credit user accounts, ask for rates, and receive callback results from the network side. The document is intended for application developers, service providers, and charging-system implementers who need the interface model and the associated data types.

What does SIST ES 202 915-12 V1.2.1:2005 specify?

SIST ES 202 915-12 V1.2.1:2005 specifies the Charging Service Capability Feature (SCF) part of the OSA API. It covers how an application interacts with charging functions through sessions, callbacks, state models, and data definitions.

The document is organized into clauses 1 to 12 and annexes A to E. Clause 4 explains the Charging SCF structure, clause 5 gives sequence diagrams, clause 6 shows class diagrams, clause 7 defines the service interfaces, clause 8 describes the charging interfaces, clause 9 gives state transition diagrams, clause 10 lists service properties, clause 11 defines charging data types, and clause 12 defines exception classes.

AnnexWhat it covers
Annex AOMG IDL description of Charging SCF
Annex BW3C WSDL description of Charging SCF
Annex CJava API description of Charging SCF
Annex DContents of 3GPP OSA R5 Charging
Annex ERecord of changes

What are the key requirements of SIST ES 202 915-12 V1.2.1:2005?

Session support and callbacks

SIST ES 202 915-12 V1.2.1:2005 requires a Charging SCF implementation to support at least one valid set of parameter values for any method it implements. That matters in practice because implementers can constrain the valid combinations, but they must still document and honor the supported ones.

Clause 7.4.1 defines the generic callback setup. setCallback() is used when an interface does not use session IDs, while setCallbackWithSessionID() is used for interactions tied to a specific session ID. This is important because the application must register the correct callback style before the network can return results or errors.

Charging session creation and minimum implementation

Clause 8 requires a Charging SCF to implement release() in IpChargingSession. The manager interface must implement at least one of createChargingSession() or createSplitChargingSession().

The reservation and direct-charging methods are grouped by capability. If reserveAmountReq() is implemented, at least one of debitAmountReq() or creditAmountReq() must also be present; the same rule applies to reserveUnitReq() with unit-based debit or credit. If neither reservation method is provided, the session must still support at least one direct debit or direct credit method for amounts or units. In practice, this means a product can support reservation-based charging, direct charging, or both, but not a half-built mix that cannot complete a transaction.

Request Number behavior and retry handling

Clause 8 explains that operations affecting the user account use a Request Number so retries can be done after application, service, or communication errors. Only one outstanding request is allowed per Charging Session, and the callback returns the next request number to use.

This matters operationally because charging requests are often asynchronous. The application must wait for the result or error before sending the next account-affecting request, and it must reuse the same Request Number when retrying the same operation. The document also requires request numbers to remain unique across the period in which delayed responses can still arrive.

Reservation, debit, and lifetime rules

Clause 8 distinguishes reservation-based methods from direct methods. reserveAmountReq() and reserveUnitReq() set aside money or usage volume, debitAmountReq() and debitUnitReq() consume part of the reservation, and creditAmountReq() and creditUnitReq() add value back to the reservation.

The extendLifeTimeReq(), getLifeTimeLeft(), getAmountLeft(), and getUnitLeft() methods let the application manage the remaining validity and balance of a reservation. In practice, a streaming, conferencing, or similar application can keep track of whether a session can continue before it sends more service to the user.

Unit handling and split charging

The document states that units in a TpVolumeSet are not consolidated by the Charging SCF. The application must use the same units when reserving and when debiting, so mixing units across the same transaction can lead to an error.

The document also defines split charging. createSplitChargingSession() allows multiple users to be specified for one session, and the implementation determines how later reserve and charge operations are split among them. The algorithm and parameter interpretation are vendor-specific and subject to service-level agreements, which matters for conferences, multi-user games, and sponsored charging scenarios.

State model and service properties

Clause 9 shows three relevant states for IpChargingSession: Session Created, Amount Reserved, and Volume Reserved. Each state defines which methods can be used and how the session can move between direct charging, reservation, and release.

Clause 10 lists service properties that describe supported address plans, units, currencies, amount charging, unit charging, split charging, debiting, crediting, default and maximum lifetimes, and session limits. For a buyer or integrator, these properties tell you what the Charging SCF can be configured to do before you design the application flow.

What terms does SIST ES 202 915-12 V1.2.1:2005 define?

  • Open Service Access (OSA) - An architecture that lets application developers use network functionality through an open standardized interface.
  • Application Programming Interface (API) - The interface specification that applications use to call charging functions and receive callbacks.
  • Charging Service Capability Feature (SCF) - The OSA capability that supports charging, reservation, debit, credit, and rating functions.
  • IpChargingManager - The service manager interface used to create charging sessions.
  • IpChargingSession - The service interface used to reserve, debit, credit, rate, extend, and release a charging session.
  • TpChargingPrice - A price value made from a currency string and an amount expressed as an integer/exponent pair.
  • TpVolumeSet - A numbered set of usage volumes, each carrying an amount and a unit.
  • Request Number - The number used to make retries safe and to keep one outstanding request per charging session.

Who uses SIST ES 202 915-12 V1.2.1:2005?

SIST ES 202 915-12 V1.2.1:2005 is used by application developers, charging-platform vendors, network operators, and system integrators who need a standardized charging interface. It is relevant to merchant applications that charge end users, to gateway applications that debit on each transaction, and to services that must support reservations before delivery.

Quality managers and buyers use it to check whether a charging product supports reservation-based charging, direct charging, split charging, the required callbacks, and the supported data types. It also helps teams that map the API to OMG IDL, W3C WSDL, or Java interfaces.

What changed in SIST ES 202 915-12 V1.2.1:2005 from the previous edition?

SIST ES 202 915-12 V1.2.1:2005 is a maintenance update of ES 202 915-12 V1.1.1 and is part of the Parlay 4.1 set. The change record identifies IpChargingManager.createSplitChargingSession() as the split-charging addition and records updates to TpChargingParameterID, TpChargingParameterValue, TpChargingParameterValueType, and TpChargingError to support confirmation ID, contract, octetset, and confirmation-required handling.

Which standards are used with SIST ES 202 915-12 V1.2.1:2005?

  • ETSI ES 202 915-1: Open Service Access (OSA); Application Programming Interface (API); Part 1: Overview (Parlay 4) - Provides the shared terms, definitions, abbreviations, and reference provisions used by this part.
  • ETSI ES 202 915-2: Open Service Access (OSA); Application Programming Interface (API); Part 2: Common Data Definitions (Parlay 4) - Supplies common data types that are referenced but not defined in the charging part.

The foreword also states that the document is equivalent to 3GPP TS 29.198-12 V5.2.0 (Release 5), which is useful when matching ETSI OSA and 3GPP OSA charging specifications.

What does the SIST ES 202 915-12 V1.2.1:2005 document contain?

SIST ES 202 915-12 V1.2.1:2005 contains sequence diagrams for reservation-based charging and immediate charging, so readers can see the order of calls and callbacks. It contains class diagrams for the application and service interfaces, including IpChargingManager, IpChargingSession, IpAppChargingManager, and IpAppChargingSession.

The document also contains detailed method descriptions, state transition diagrams, charging-specific data definitions, and exception classes. Annexes A, B, and C provide IDL, WSDL, and Java API representations, which help implementers map the same charging model into different technical environments.

Buy Documents

Standardization document

SIST ES 202 915-12 V1.2.1:2005

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

Get Certified

Connect with accredited certification bodies for this standard

ANCE

Mexican certification and testing association.

EMA Mexico Verified

Intertek Slovenia

Intertek testing, inspection, and certification services in Slovenia.

UKAS Slovenia Verified

LNE (Laboratoire National de Métrologie et d'Essais)

French national laboratory for metrology and testing.

COFRAC France Verified

Sponsored listings

Frequently Asked Questions

SIST ES 202 915-12 V1.2.1:2005 is a standardization document published by the Slovenian Institute for Standardization (SIST). Its full title is "Open Service Access (OSA); Application Programming Interface (API); Part 12: Charging SCF (Parlay 4)". This standard covers: Maintenance update of ES 202 915-12 V1.1.1 to produce ES 202 915-12 V1.2.1 Updated document will also be known as PARLAY 4.1. Only those parts requiring modification will be updated ( most parts require maintenance fixes )

Maintenance update of ES 202 915-12 V1.1.1 to produce ES 202 915-12 V1.2.1 Updated document will also be known as PARLAY 4.1. Only those parts requiring modification will be updated ( most parts require maintenance fixes )

SIST ES 202 915-12 V1.2.1:2005 is classified under the following ICS (International Classification for Standards) categories: 33.040.01 - Telecommunication systems in general. The ICS classification helps identify the subject area and facilitates finding related standards.

SIST ES 202 915-12 V1.2.1:2005 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 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 4 Charging SCF
  • 4.1 General requirements on support of methods
  • 5 Sequence Diagrams
  • 5.1 Reservation / payment in parts
  • 9 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 10 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 5.2 Immediate Charge
  • 11 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 12 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 6 Class Diagrams
  • 13 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 14 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 7 The Service Interface Specifications
  • 7.1 Interface Specification Format
  • 7.2 Base Interface
  • 15 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 7.3 Service Interfaces
  • 7.4 Generic Service Interface
  • 16 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 8 Charging Interface Classes
  • 8.1 Interface Class IpChargingManager
  • 17 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 18 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 8.2 Interface Class IpAppChargingManager
  • 19 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 8.3 Interface Class IpChargingSession
  • 20 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 21 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 22 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 23 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 24 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 25 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 26 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 27 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 28 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 29 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 8.4 Interface Class IpAppChargingSession
  • 30 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 31 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 32 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 33 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 34 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 35 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 36 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 37 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 38 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 39 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 40 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 9 State Transition Diagrams
  • 9.1 State Transition Diagrams for IpChargingSession
  • 41 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 10 Content Based Charging Service Properties
  • 42 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 11 Data Definitions
  • 11.1 Charging Data Definitions
  • 43 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 44 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 45 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 46 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 47 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 12 Exception Classes
  • 48 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 49 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 50 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 51 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 52 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 53 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 54 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 55 ETSI ES 202 915-12 V1.2.1 (2003-08)
  • 56 ETSI ES 202 915-12 V1.2.1 (2003-08)

1 Scope

The present document is part 12 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 Charging Service Capability Feature (SCF) aspects of the interface. All aspects of the Charging 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
  • Reference to the Java API 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 202 915-1 contain provisions which, through reference in this text, constitute provisions of the present document.

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

ETSI ES 202 915-2: "Open Service Access (OSA); Application Programming Interface (API); Part 2: Common Data Definitions (Parlay 4)".

3 Definitions and abbreviations

3.1 Definitions

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

3.2 Abbreviations

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

SIST ES 202 915-12 V1.2.1:2005

8 ETSI ES 202 915-12 V1.2.1 (2003-08)

4 Charging SCF

The following clauses describe each aspect of the Charging 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 show 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 show 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 202 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.

5 Sequence Diagrams

5.1 Reservation / payment in parts

The sequence diagram illustrates how to request a reservation and how to charge a user from the reserved amount, for instance to charge a user for a streamed video which lasts 10 minutes and costs a total of $2.00. The operations and interfaces that do not provide rating are employed throughout this sequence diagram. We assume the application has already discovered the Charging SCF. As a result, the application received an object reference pointing to an object that implements the IpChargingManager interface. The operations which handle units are used exactly the same, except that the amount of application usage is indicated instead of a price.

ETSI

SIST ES 202 915-12 V1.2.1:2005

9 ETSI ES 202 915-12 V1.2.1 (2003-08)

Application : IpAppChargingSession : IpChargingManager : IpChargingSession 1: new() 2: createChargingSes sion( ) 3: new() 4: reserveAmountReq( ) 5: reserveAmountRes( ) 6: forward event() 7: debitAmountReq( ) 8: debitAmountRes( ) 9: forward event() 10: getLifeTimeLeft( ) 11: extendLifeTimeReq( ) 12: extendLifeTimeRes( ) 13: forward event() 14: debitAmountReq( ) 15: debitAmountRes( ) 16: forward event() 17: release( )

1: The application creates a local object implementing the IpAppChargingSession interface. This object will receive response messages from the IpChargingSession object.

2: The application opens a charging session, a reference to a new or existing object implementing IpChargingSession is returned together with a unique session ID.

3: In this case a new object is used.

4: The application requests the reservation of $2.00.

5: Assuming the criteria for requesting a reservation are met (the application provider has permission to charge the requested amount, the charged user has agreed to pay the requested amount), the amount is reserved in the session. At this point, the application provider knows that the network operator will accept later debit requests up to the reserved amount. So, the application may start serving the user, for instance by sending the video stream. ETSI

SIST ES 202 915-12 V1.2.1:2005

10 ETSI ES 202 915-12 V1.2.1 (2003-08)

6: The successful reservation is reported back to the application. After half of the video has been sent to the user, the application may choose to capture half of the price already:

7: The application requests to debit $1.00 from the reservation. 8: The successful debit is reported back to the application.

9: The acknowledge is forwarded to the application.

10: The application checks if the remaining lifetime of the reservation will cover the remaining 5 minutes of video. Let us assume, it does not.

11: The application asks the IpChargingSession object to extend the lifetime of the reservation. 12: Assuming that the application provider is allowed to keep reservations open for longer than 10 minutes, the extendLifeTimeReq() will be honoured and confirmed properly.

13: The confirmation is forwarded to the application.

14: When the complete video has been transmitted to the user without errors, the application charges another $1.00. 15: The IpChargingSession object acknowledges the successful debit at the IpAppChargingSession callback object. 16: The IpAppChargingSession object forwards the acknowledge to the application. 17: Since the service is complete, the application frees all resources associated with the reservation and session.

5.2 Immediate Charge

This sequence diagram illustrates how immediate charging is used. Assume a WAP gateway that charges the user $0.01 per requested URL. Since it is acceptable to loose one tick worth $0.01, no prior reservations are made. The WAP gateway sends an immediate debit for each requested URL, and should a payment have as result failure, the user is disconnected.

The operations which handle units are used exactly the same, except that the amount of application usage is indicated instead of a price.

ETSI

SIST ES 202 915-12 V1.2.1:2005

11 ETSI ES 202 915-12 V1.2.1 (2003-08)

Application : IpAppChargingSession : IpChargingManager : IpChargingSession 1: new() 2: createChargingSession( ) 3: directDebitAmountReq( ) 4: directDebitAmountRes( ) 5: forward notification 6: directDebitAmountReq( ) 7: directDebitAmountErr( ) 8: forward notification 9: release( )

1: The application creates a local object implementing the IpAppChargingSession interface. This object will receive response messages from the IpChargingSession object.

2: The application orders the creation of a session. No new object is created for the charging session handling in this example implementation.

3: The application requests to charge the user $0.01.

4: The payment is acknowledged.

5: The acknowledgement is forwarded in the application.

6: The application requests to charge the user $0.01.

7: The payment is reported to fail.

8: The failure report is forwarded in the application.

(repeat steps 3 - 5 and 6 - 8 as long as you want to in any order you want to) 9: The application releases the session.

ETSI

SIST ES 202 915-12 V1.2.1:2005

12 ETSI ES 202 915-12 V1.2.1 (2003-08)

6 Class Diagrams

This class diagram shows the application interfaces for charging and their relations to the service interfaces. IpInterface (from csapi) IpAppChargingSession (from cs) creditAmountErr() creditAmountRes() IpChargingSession creditUnitErr() (from cs) creditUnitRes() debitAmountErr() creditAmountReq() debitAmountRes() creditUnitReq() debitUnitErr() debitAmountReq() debitUnitRes() debitUnitReq() directCreditAmountErr() directCreditAmountReq() directCreditAmountRes() directCreditUnitReq() <<uses>> directCreditUnitErr() directDebitAmountReq() directCreditUnitRes() directDebitUnitReq() directDebitAmountErr() extendLifeTimeReq() directDebitAmountRes() getAmountLeft() directDebitUnitErr() getLifeTimeLeft() directDebitUnitRes() getUnitLeft() extendLifeTimeErr() rateReq() extendLifeTimeRes() release() rateErr() reserveAmountReq() rateRes() reserveUnitReq() reserveAmountErr() reserveAmountRes() 0..n reserveUnitErr() reserveUnitRes() sessionEnded() 0..n

IpChargingManager IpAppChargingManager (from cs) (from cs) <<uses>> createChargingSession() sessionAborted() <<new>> createSplitChargingSession()

Figure 1: Application Interfaces ETSI

SIST ES 202 915-12 V1.2.1:2005

13 ETSI ES 202 915-12 V1.2.1 (2003-08)

This class diagram shows the interfaces of the charging SCF.

<<Interface>> IpService (f rom c sap i) setCallback() setCallbackWithSessionID() <<Interface>> <<Interface>> IpChargingManager IpChargingSession (from cs) (from cs) createChargingSession() creditAmountReq() createSplitChargingSession() creditUnitReq() debitAmountReq() debitUnitReq() directCreditAmountReq() directCreditUnitReq() directDebitAmountReq() directDebitUnitReq() extendLifeTimeReq() getAmountLeft() getLifeTimeLeft() getUnitLeft() rateReq() release() reserveAmountReq() reserveUnitReq()

Figure 2: Service Interfaces ETSI

SIST ES 202 915-12 V1.2.1:2005

14 ETSI ES 202 915-12 V1.2.1 (2003-08)

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>

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

ETSI

SIST ES 202 915-12 V1.2.1:2005

15 ETSI ES 202 915-12 V1.2.1 (2003-08)

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.

<<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. 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.

Parameters appInterface : in IpInterfaceRef Specifies a reference to the application interface, which is used for callbacks. ETSI

SIST ES 202 915-12 V1.2.1:2005

16 ETSI ES 202 915-12 V1.2.1 (2003-08)

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

8 Charging Interface Classes

The Charging SCF is used by applications to charge for the usage of the applications. The charged user can be the same user as that uses the application. It is also possible that another user will pay the charge. In the interfaces of the Charging SCF a "Request Number" is used when invoking operations that operate on the user's account (directly or indirectly via reservations) in order to make retries possible after application, service, or communication errors. A retry of these operations can be done by invoking the same operation with the same Request Number.

In the callback to the application, the Request Number to be used for the next request operation is returned. This is the only Request Number besides the one in the last request operation that can be used. This mechanism ensures that an application retries an operation when it does not receive an answer. The use of the Request Number ensures that there can only be one outstanding request per Charging Session. Only after an answer is received (result or error), the next request can be made. Note however that only asynchronous operations that could lead to over or under charging of the user require a request number. Because responses from the Charging SCF can be delayed in the network the Charging SCF shall guarantee that Request Numbers are unique in a timespan where delayed responses can arrive. Suppose, for example, that the response from a retried request is received indicating the next request number to use is 1 000. During the period that the response to the original request (which also carries the next request number to use equal to 1 000) can arrive, this request number may not be used again.

The units (of different types) that are used in a TpVolumeSet are NOT consolidated by the charging SCF. The application must use the same units when making the reservation and when debiting the amount. For example, when after a reservation of 10 minutes a debit request for 5 seconds is done, an error will be returned. Split Charging Functionality.

There are cases where a single instance of the merchant application may serve more than a one service user. Examples are multi-user games or conferences. Typically, the costs for the resources consumed by the single service instance will be split among all service users.

On the other hand, a merchant application may show advertisements within its application, and in turn the company that is advertised may subside a certain percentage of the application cost. A consumer connecting to the merchant application pays only part of the costs, while the remainder is paid by the advertised company. To support this kind of application, multiple users can be specified when a charging session is created. The charging session interface itself is the same no matter if the split charging feature is used or not. It is subject to service level agreements that are negotiated between the OSA client provider and the network operator how the charge is split between the users.

8.1 Interface Class IpChargingManager

Inherits from: IpService.

This interface is the 'service manager' interface for the Charging Service. The Charging manager interface provides management functions to the charging service. The application programmer can use this interface to start charging sessions.

This interface shall be implemented by a Charging SCF. As a minimum requirement, at least one of createChargingSession() or createSplitChargingSession() shall be implemented. ETSI

SIST ES 202 915-12 V1.2.1:2005

17 ETSI ES 202 915-12 V1.2.1 (2003-08)

<<Interface>> IpChargingManager

createChargingSession (appChargingSession : in IpAppChargingSessionRef, sessionDescription : in TpString, merchantAccount : in TpMerchantAccountID, user : in TpAddress, correlationID : in TpCorrelationID) : TpChargingSessionID <<new>> createSplitChargingSession (appChargingSession : in IpAppChargingSessionRef, sessionDescription : in TpString, merchantAccount : in TpMerchantAccountID, users : in TpAddressSet, correlationID : in TpCorrelationID) : TpChargingSessionID

8.1.1 Method createChargingSession()

This method creates an instance of the IpChargingSession interface to handle the charging events related to the specified user and to the application invoking this method. An IpAppChargingManager should already have been passed to the IpChargingManager, otherwise the charging manager will not be able to report a sessionAborted() to the application (the application should invoke setCallback() if it wishes to ensure this). Returns chargingSession: Defines the session.

Parameters appChargingSession : in IpAppChargingSessionRef Callback interface for the session in the application.

sessionDescription : in TpString Descriptive text for informational purposes.

...