public class ActivationServiceSample extends Object
User: Kirill, Date: 11.09.13 16:16
.Modifier and Type | Class and Description |
---|---|
static class |
ActivationServiceSample.ActivationRegistrationDto
A DTO of Activation Registration.
|
Modifier and Type | Field and Description |
---|---|
private ActivationService |
activationService |
static String |
CASH_REGISTER_NAME |
private static String |
CONSTANT_COM_POS4MOBILE |
private static String |
CONSTANT_COM_SWESS |
static String |
CONTROL_UNIT_DEVICE_SERIAL_NUMBER |
static String |
CONTROL_UNIT_SERIAL_NUMBER |
private Credentials |
credentials |
static String |
DEVICE_ID |
private static GeolocationInfo |
GEOLOCATION_INFO |
static Charset |
SIGNATURE_CHARSET |
static String |
SIGNATURE_ENCODING |
private SignatureHelper |
signatureHelper |
static String |
THIN_KASSAN_CASH_REGISTER_NAME |
private String |
timezone |
Constructor and Description |
---|
ActivationServiceSample(URL url,
Credentials credentials,
Transport transport) |
Modifier and Type | Method and Description |
---|---|
static Date |
create(int year,
int month,
int day,
String timezone) |
static ActivationOrderInfo |
createActivationOrderInfo(String timezone,
InstallationOrderInfo installationOrderInfo,
String productionNumber,
ControlUnitLocation controlUnitLocation,
GeolocationInfo deviceLocation,
Set<Feature> features,
String country,
String corporateId,
String controlUnitSerialNumber,
String cashRegisterName) |
private static InstallationOrderInfo |
createInstallationInfo(String applicationPackage) |
static Date |
getDateValidFrom(String timezone) |
static Date |
getDateValidTo(String timezone) |
ActivationServiceSample.ActivationRegistrationDto |
test() |
private ActivationServiceSample.ActivationRegistrationDto |
testMobilkassan() |
private void |
testPos4mobile() |
private ActivationServiceSample.ActivationRegistrationDto |
testThinKassan() |
public static final String DEVICE_ID
public static final String CASH_REGISTER_NAME
public static final String THIN_KASSAN_CASH_REGISTER_NAME
public static final String CONTROL_UNIT_SERIAL_NUMBER
public static final String CONTROL_UNIT_DEVICE_SERIAL_NUMBER
private static final String CONSTANT_COM_POS4MOBILE
private static final String CONSTANT_COM_SWESS
private static final GeolocationInfo GEOLOCATION_INFO
private final SignatureHelper signatureHelper
private String timezone
private final ActivationService activationService
private final Credentials credentials
public static final String SIGNATURE_ENCODING
public static final Charset SIGNATURE_CHARSET
public ActivationServiceSample(URL url, Credentials credentials, Transport transport)
public ActivationServiceSample.ActivationRegistrationDto test() throws InvalidKeySpecException, IOException, NoSuchAlgorithmException, InvalidKeyException, SignatureException
private ActivationServiceSample.ActivationRegistrationDto testMobilkassan()
private ActivationServiceSample.ActivationRegistrationDto testThinKassan()
private void testPos4mobile() throws NoSuchAlgorithmException, InvalidKeySpecException, InvalidKeyException, SignatureException, IOException
private static InstallationOrderInfo createInstallationInfo(String applicationPackage)
public static ActivationOrderInfo createActivationOrderInfo(String timezone, InstallationOrderInfo installationOrderInfo, String productionNumber, ControlUnitLocation controlUnitLocation, GeolocationInfo deviceLocation, Set<Feature> features, String country, String corporateId, String controlUnitSerialNumber, String cashRegisterName)
Copyright © 2016. All rights reserved.