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

ActivationCreationInfo

class ActivationCreationInfo : Info

If current application does not have Activation the app uses this method to request (order) new one. Seller for the activation is identified by country and corporateId. Installation:

Registration will be found or created by seller and installation.

Constructors

<init>

ActivationCreationInfo()

If current application does not have Activation the app uses this method to request (order) new one. Seller for the activation is identified by country and corporateId. Installation:

Properties

applicationNameAndVersion

var applicationNameAndVersion: String?

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

applicationPackage

var applicationPackage: String?

A unique identifier of the software, but not it's version. For instance for Android it can be getPackageName()

cashRegisterName

lateinit var cashRegisterName: String

Described in swedish regulations as "cash register designation". See Terms for more info.

comment

var comment: String?

Any information which user would like to tell to sales at srv4pos.

connectionCode

var connectionCode: String?

You can create an activation without installation. This activation can be connected to a created installation, which is created after, via connection code.

contactInfo

var contactInfo: ContactInfo?

Information about person who orders an activation. So sales team can contact him with invoice.

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?

Where control unit is connected and how.

controlUnitSerial

var controlUnitSerial: String?

Serial number of control unit. It is null if .controlUnitLocation == ControlUnitLocation.REMOTE or application doesn't support control units

corporateId

lateinit var corporateId: String

country

lateinit var country: String

Country where seller with given .corporateId is registered.

features

var features: Set<Feature>

List of features. Set of features, see Feature for more info.

installationCreationInfo

var installationCreationInfo: InstallationCreationInfo?

At which device this activation should work.

productionNumber

var productionNumber: String?

May be null. See spec for more info about nullability of this field.

registrationGeolocation

var registrationGeolocation: GeolocationInfo?

Where cash register is located. This information is sent to taxation authority.

validFrom

var validFrom: Date?

When activation starts being active.

validTo

var validTo: Date?

When activation ends being active.

Extension Functions

toJson

fun Info.toJson(): String