Type: "Session"

Introduction

A session type represents an active charging session in the OCS that is in progress against an account.

API Methods

.id

Returns the session ID. This method has no parameters.

The session ID as a string is returned.

.valid_until

Returns a floating point number representing the instant in time this session is valid until. The number returns represents the seconds and milliseconds since the unix epoch.

This method may return nil if the session does not have a validity period.