apidocs / com.srv4pos.server.api.activation / ActivationInfo

ActivationInfo

class ActivationInfo : Info

Represents server-side entity available.

User: Kirill, Date: 05.08.13 17:59

Constructors

<init>

ActivationInfo()

Represents server-side entity available.

Properties

apiVersion

var apiVersion: Int

applicationNameAndVersion

var applicationNameAndVersion: String?

We use this field to request info about application name and version from clients and sending data to the tax authority

comment

var comment: String?

This field is set when customer makes an order to send a custom message to sales person. For instance "I've broken my device with already activated license. Please reactivate this new device for free".

contact

var contact: ContactInfo?

This field is set when customer to tell sales person his contact data.

controlUnitGeolocation

var controlUnitGeolocation: GeolocationInfo?

Where device (with control unit) is located. This information is sent to taxation authority This field is set when customer makes an order and ActivationDetailsInfo.controlUnitLocation == ControlUnitLocation.DEVICE. If this field is set and sales person makes an activation, he must check it's validity because it's content will be copied to controlUnit.geolocation and will be applied for all the sellers connected to this control unit.

controlUnitLocation

var controlUnitLocation: ControlUnitLocation?

This field is set by customer when ordering.

controlUnitSerial

var controlUnitSerial: String?

This field is set when customer makes an order:

features

var features: Set<Feature>

Set of features, see Feature for more info.

id

var id: Long?

issued

var issued: Date?

It's read-only field.

registrationLocation

var registrationLocation: GeolocationInfo?

skvNumber

var skvNumber: String?

skvRegistration

var skvRegistration: String?

skvRegistrationDate

var skvRegistrationDate: Date?

skvStatus

var skvStatus: ActivationSkvStatus

status

var status: ActivationStatus

This field is set by activation server internal logic every time we do an action with the activation, so it's read-only field, any input will be ignored.

validFrom

var validFrom: Date?

This field is set a) when customer makes an order and suggest the date he wish; b) when sales person approves an activation he is able to change it.

validTo

var validTo: Date?

This field is set a) when customer makes an order and suggest the date he wish; b) when sales person approves an activation he is able to change it.

Extension Functions

toJson

fun Info.toJson(): String