in English - Maksu- ja Tolliamet

in English - Maksu- ja Tolliamet in English - Maksu- ja Tolliamet

12.07.2015 Views

Estonian Tax and Customs BoardElectronic Gambling Reporting System (EHMA) X-road services specification

Estonian Tax and Customs BoardElectronic Gambl<strong>in</strong>g Report<strong>in</strong>g System (EHMA) X-road services specification


Version: 1.02 Date: 12.12.2011Document HistoryDate Version Description Author20.06.2011 0.80 Initial document Estonian Tax andCustoms Board16.09.2011 0.90 Changes <strong>in</strong> the data structure of services1. EHMAOMA: .2. EHMAOML: , .3. EHMAKAM1: .4. EHMATUR1: .5. EHMATUR2: , , ,.6. EHMATUR3 .7. EHMATUR4: , , .8. EHMAOMT1: .9. EHMAOMT2: , .10. EHMAATM1: , , ,.11. EHMAATM2: , , ,, .12. EHMAMLR: , , .Estonian Tax andCustoms Board10.10.2011 1.00 Additions and clarifications1. Compression format changed to Gzip.2. Data fields "use start time" and "use end time" are added toEHMA registries.3. EHMAAUDIT: "service code" parameter is moved to <strong>in</strong>put,service description clarified.4. Attachment rule changed - Content-Transfer-Encod<strong>in</strong>g: b<strong>in</strong>ary.5. Added examples for some queries.6. Security class S2K1T2.7. Po<strong>in</strong>ts 13, 14 and 15 are added to the chapter "Generalrequirements to the gambl<strong>in</strong>g operator’s EHMA IT solution".8. EHMAATM1 and EHMAMLR: added rule for ship-basedcas<strong>in</strong>o addresses.9. EHMAKAM1: .10. EHMAKAM2: , .11. EHMAATM2: .12. EHMATUR1: , , , .13. EHMATUR2: , .14. EHMATUR3: .15. EHMATUR411.11.2011 1.01 1. Error <strong>in</strong> example is fixed.2. Some disparities between EST and ENG version of thedocument are removed. Some other m<strong>in</strong>or clarifications.12.12.2011 1.02 1. EHMAOMT2 explanation is clarified.2. EHMAAUDIT <strong>in</strong>put’s value TURR is removed.3. EHMAKAM2 explanation of data fields is clarified.4. Appendix 4 (The process of EAKS – EHMA <strong>in</strong>tegration).Estonian Tax andCustoms BoardEstonian Tax andCustoms BoardEstonian Tax andCustoms Board2


Version: 1.02 Date: 12.12.2011Table of ContentsIntroduction .................................................................................................................... 4EHMA services .............................................................................................................. 4Reference Documents .................................................................................................... 4General requirements to the gambl<strong>in</strong>g operator’s IT solution ....................................... 51. EHMAOMA ......................................................................................................... 62. EHMAOML ......................................................................................................... 73. EHMAKAM1 ....................................................................................................... 84. EHMAKAM2 ....................................................................................................... 95. EHMATUR1 ...................................................................................................... 106. EHMATUR2 ...................................................................................................... 117. EHMATUR3 ...................................................................................................... 128. EHMAOMT1 ..................................................................................................... 129. EHMAOMT2 ..................................................................................................... 1310. EHMAATM1 ..................................................................................................... 1411. EHMAATM2 ..................................................................................................... 1512. EHMAATM3 ..................................................................................................... 1613. EHMAMLR ........................................................................................................ 1614. EHMAAUDIT .................................................................................................... 17APPENDIX 1. Examples of XML queries .................................................................. 18APPENDIX 2. Test<strong>in</strong>g of services with Estonian Tax and Customs Board ................ 20APPENDIX 3. The procedure for delivery of services ................................................ 21APPENDIX 4. The process of EAKS – EHMA <strong>in</strong>tegration ........................................ 223


Version: 1.02 Date: 12.12.2011IntroductionIn accordance with Gambl<strong>in</strong>g Act (HasMS § 58) gambl<strong>in</strong>g operator (here<strong>in</strong>afteroperator) start<strong>in</strong>g from 01.01.2012 is required to create a system that will allowEstonian Tax and Customs Board to make queries <strong>in</strong>to the Electronic Record-keep<strong>in</strong>gand Audit System (elektroonil<strong>in</strong>e arvestus- <strong>ja</strong> kontrollisüsteem, EAKS).Estonian Tax and Customs Board’s (here<strong>in</strong>after ETCB) Electronic Gambl<strong>in</strong>gReport<strong>in</strong>g System (elektroonil<strong>in</strong>e hasartmängu aruandluse süsteem, EHMA) grantsan access to operator’s EAKS and allows to query gambl<strong>in</strong>g data through the use ofX-road data exchange services.Figure 1. General design of the EHMA system architecture.For each gambl<strong>in</strong>g operator a database shall be registered <strong>in</strong> The Management Systemof State Information System (Riigi <strong>in</strong>fosüsteemi haldussüsteem, RIHA). Operator shall<strong>in</strong>troduce an IT solution which will allow ETCB to use X-road services described <strong>in</strong>this document.The name of database shall be <strong>in</strong> the form of: ehma-regkood („regkood“ is a codeissued by Central Commercial Register or a non-resident code, for example: „ehma-12345678“).EHMA servicesEHMA services enable to perform queries <strong>in</strong>to the EAKS database, therebyconnect<strong>in</strong>g gambler operator’s system with ETCB system. EHMA services thatoperator is required to create depend on games that are actually organized or will beorganized <strong>in</strong> the near future by this organized.Reference Documents1. Gambl<strong>in</strong>g Act (Hasartmänguseadus, HasMS):www.riigiteata<strong>ja</strong>.ee/akt/106012011011?leiaKehtiv2. HasMS regulation draft may be found at: http://eelnoud.valitsus.ee/3. EHMA services specifications and WSDL description 1 that is located on theETCB web page: www.emta.ee/<strong>in</strong>dex.php?id=30025.1 WSDL - Web Services Description Language (WSDL) 1.1 http://www.w3.org/TR/wsdl4


Version: 1.02 Date: 12.12.20114. Guide: EAKS registration <strong>in</strong> RIHA (<strong>in</strong> Estonian):http://ftp.ria.ee/pub/riha/EAKSi_kirjeldam<strong>in</strong>e_juhend.pdfGeneral requirements to the gambl<strong>in</strong>g operator’s IT solution1. The format of the service name is EHMAservice_code,e.g., the name of service for remote gambl<strong>in</strong>g data is EHMAKAM1.2. System corresponds to ISKE (www.ria.ee/iske) security class S2K1T2. Operatoris responsible for security, availability 2 and <strong>in</strong>tegrity of IT solution.3. The currency is euro and all sums are <strong>in</strong> euro, fractional numbers are rounded aftertwo decimal numbers. If currency other than euro is used dur<strong>in</strong>g gambl<strong>in</strong>g/betplac<strong>in</strong>g then operator makes a currency conversion <strong>in</strong> accordance with theexchange rate provided by Bank of Estonia at the date of gambl<strong>in</strong>g.4. The format of date and time is "aaaa-kk-ppTtt:mm:ss+00:00" (aaaa-year, kkmonth,pp-day, tt-hour, mm-m<strong>in</strong>ute, ss-second). GMT+0:00 is used. The format ofdate is "aaaa-kk-pp".5. All entries <strong>in</strong> EAKS buffer database should conta<strong>in</strong> <strong>in</strong>formation about whenorig<strong>in</strong>al entry has been created and <strong>in</strong> case of a later modification entry'smodification date. EAKS buffer database may be used only <strong>in</strong> case when it istechnically not feasible to allow direct queries to the primary database.6. Entity ID that is used <strong>in</strong> queries for EHMA registries should be the same as IDthat is used <strong>in</strong> EAKS <strong>in</strong>ternally. IDs are unique.7. Attachment Content-Transfer-Encod<strong>in</strong>g should be of b<strong>in</strong>ary type.8. All data fields should be filled unless specified otherwise.9. All numbers are positive.10. The name of PDF document identifies document. Each name is unique, casesensitive, may conta<strong>in</strong> (ISO/IEC 10646 basic Lat<strong>in</strong> alphabet) symbols, numbersand '_'. Spaces are not permitted. The name of the document beg<strong>in</strong>s with the dateof file creation (YYYYDDMM) and conta<strong>in</strong>s operator's regkood (a code issued byCentral Commercial Register or a non-resident code) and a file name extension'.pdf'. Example: '20121224_12345678_… .pdf'.11. In case when service uses XML attachments it is necessary to compressattachment <strong>in</strong> GZIP format. Compression of PDF attachments is not required.Nam<strong>in</strong>g convention of compressed file is the same as described <strong>in</strong> p.10. Example:'20121224_12345678_… .gz'.12. In case of a EHMA registries data field 'use start time' is the time when gambl<strong>in</strong>ghardware or software was connected to the EAKS network, data field 'use endtime' is the time when gambl<strong>in</strong>g hardware or software was disconnected from theEAKS network. A new database entry is created for each change.13. Ship name is an address of a ship-based cas<strong>in</strong>o.14. Estonian operator is a gambl<strong>in</strong>g operator that complies with Estonian Gambl<strong>in</strong>gAct (possesses Estonian operation permit).15. Gambler is a natural person who is participat<strong>in</strong>g <strong>in</strong> a gambl<strong>in</strong>g through the webpage or software of Estonian operator.2 Precise availability requirements are def<strong>in</strong>ed by the operator - ETCB Service Level Agreement.5


Version: 1.02 Date: 12.12.2011EHMA SERVICES GROUPSEHMA services are divided <strong>in</strong>to groups <strong>in</strong> accordance with service’s designation:The summarized data about games played dur<strong>in</strong>g a queried period:- Gambl<strong>in</strong>g mach<strong>in</strong>e games (EHMAOMA)- Gambl<strong>in</strong>g table games (EHMAOML)- Remote gambl<strong>in</strong>g (EHMAKAM1)- Tournament games of chance (EHMATUR1)- Tournament games of chance (EHMATUR3, r<strong>in</strong>g games)- Additional game of chance (EHMAOMT1)The registry of gambl<strong>in</strong>g <strong>in</strong>ventory:- The registry of gambl<strong>in</strong>g mach<strong>in</strong>es (EHMAATM1)- The registry of software used <strong>in</strong> gambl<strong>in</strong>g mach<strong>in</strong>es (EHMAATM2)- Document (EHMAATM3)- The registry of gambl<strong>in</strong>g tables (EHMAMLR)The detailed data about games played dur<strong>in</strong>g a queried period:- Remote gambl<strong>in</strong>g funds transfers (EHMAKAM2)- Tournament games of chance (EHMATUR2)- Additional game of chance (EHMAOMT2)- Modified data (EHMAAUDIT)EHMA services description along with the data structure of <strong>in</strong>put and output queriesis presented <strong>in</strong> chapters below.1. EHMAOMAThe service „Gambl<strong>in</strong>g mach<strong>in</strong>e games“ (EHMAOMA) enables to query gambl<strong>in</strong>gmach<strong>in</strong>es data summarized for the query’s <strong>in</strong>put period.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00OutputData field XML tag Data type CommentAutomaadi ID /Slot ID str<strong>in</strong>gvarchar2 (25)Identifikaator e. korralda<strong>ja</strong> pooltmängu<strong>in</strong>ventarile määratudnumber.Mängitud mängude arv /Games playedAutomaati sisestatud summa /DropnonNegativeIntegernumber (10,0)decimalnumber (12,2)Mängitud mängude arv.Sisestatud raha või sedaasendavate vahendite (näiteksžetoonid, tšekid) kogusumma.Tehtud panuste summa /Co<strong>in</strong> <strong>in</strong>decimalnumber (12,2)Mängudes tehtud panuste (credits)kogusumma.Saadud võitude summa /Co<strong>in</strong> outdecimalnumber (12,2)Mängudes saadud võitudekogusumma.6


Version: 1.02 Date: 12.12.20112. EHMAOMLThe service „Gambl<strong>in</strong>g table games“ (EHMAOML) enables to query gambl<strong>in</strong>g tablesdata summarized for the query’s <strong>in</strong>put period.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00OutputData field XML tag Data type CommentLaua ID / str<strong>in</strong>gIdentifikaator e. korralda<strong>ja</strong> pooltGame table IDvarchar2 (25) mängu<strong>in</strong>ventarile määratudŽetoonide algväärtus /Open<strong>in</strong>g floatŽetoonide lõppväärtus /Clos<strong>in</strong>g floatŽetoonide suurenem<strong>in</strong>e /FillŽetoonide vähenem<strong>in</strong>e /CreditŽetoonide ostm<strong>in</strong>e kliendi poolt /DropSaadud võitude netosumma /Net w<strong>in</strong>decimalnumber (12,2)decimalnumber (12,2)decimalnumber (12,2)decimalnumber (12,2)decimalnumber (12,2)decimalnumber (12,2)number. 3Mängulaual kasutamiseks olevatežetoonide väärtus mängukohaavamisel (open<strong>in</strong>g float).Mängulaual kasutamiseks olevatežetoonide väärtus mängukohasulgemisel (clos<strong>in</strong>g float).Mängulaua andmed žetoonidekoguväärtuse suurendamise kohtamängukoha lahtiolekua<strong>ja</strong> jooksulkassas (fill).Mängulaua andmed žetoonidekoguväärtuse vähendamise kohtamängukoha lahtiolekua<strong>ja</strong> jooksulkassas (credit).Mängulaual sularahas võisularahata žetoonide ostukoondsumma (drop).Mängulaua mängudes saadudvõitude netosumma.3 The data of all gambl<strong>in</strong>g tables located at some address is considered as the data of a s<strong>in</strong>gle entity <strong>in</strong>case when cas<strong>in</strong>o chips are be<strong>in</strong>g exchanged <strong>in</strong> a centralized manner at the s<strong>in</strong>gle cash register or atable. The identifier of this cash register or a table shall conta<strong>in</strong> <strong>in</strong>formation about it's physical locationor address.7


Version: 1.02 Date: 12.12.20113. EHMAKAM1The service “Remote gambl<strong>in</strong>g” (EHMAKAM1) enables to query “versus the house”remote gambl<strong>in</strong>g games data. The result of the query is the summary of the <strong>in</strong>putperiod grouped by the game type. Additional games of chance are not part of thisservice.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00OutputData field XML tag Data type CommentLiik <strong>ja</strong> nimetus /Gam<strong>in</strong>g class and type str<strong>in</strong>gvarchar2 (10)Hasartmängu klassifikatsioon:1) KOMATM - õnnemängmänguautomaadil;2) KOMLAU - õnnemängmängulaual;3) KOMLOT - õnnemäng loterii;4) KTOKIV - toto kihlvedu;5) KTOTOS - toto totalisaator;6) KOSOVM - osavusmäng;7) KLOKLL - klassikal<strong>in</strong>e loterii;8) KLOKRL - kiirloterii.Tehtud panuste summa /Total bets decimalnumber (12,2)Mängudes tehtud panuste(credits) kogusumma.Saadud võitude summa / decimalMängudes saadud võitudeTotal w<strong>in</strong>sMängi<strong>ja</strong>te arv /Players numbernumber (12,2)nonNegativeIntegernumber (10,0)kogusumma.Mängi<strong>ja</strong>te arv.8


Version: 1.02 Date: 12.12.20114. EHMAKAM2The service “Remote gambl<strong>in</strong>g funds transfers” (EHMAKAM2) enables to query thedata for funds transfers that has taken place between operator and gambler dur<strong>in</strong>g the<strong>in</strong>put period. The result is returned <strong>in</strong> the form of XML attachment and is sorted bydate and time. The result should conta<strong>in</strong> only data of successfully completedtransactions.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00Output as zipped XML attachmentData field XML tag Data type CommentKorralda<strong>ja</strong> arveldusarvele rahaliste datetime Ülekande aeg.vahendite laekumise aeg /Deposit timeKorralda<strong>ja</strong> arvele kantud summa /Deposit amount decimalnumber (12,2)Mängi<strong>ja</strong> poolthasartmängukorralda<strong>ja</strong>Mängi<strong>ja</strong> arveldusarvele korralda<strong>ja</strong>poolne ülekande teostamise aeg /Withdraw timeMängi<strong>ja</strong> arvele kantud summa /Withdraw amountarveldusarvele kantud summa. datetime Mängi<strong>ja</strong> taotlusel temaarveldusarvele tagasikantudülekande toimumise aeg.decimalnumber (12,2)Mängi<strong>ja</strong> taotlusel temaarveldusarvele tagasikantudsumma.9


Version: 1.02 Date: 12.12.20115. EHMATUR1The result of the “Tournament games of chance 1” (EHMATUR1) query is the datafor tournaments (player vs house) that were organized dur<strong>in</strong>g query’s <strong>in</strong>put period andsummarized for the said period.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00OutputData field XML tag Data type CommentOsalustasust võidufondi m<strong>in</strong>eva osasumma / Amount deposited <strong>in</strong>topool decimalnumber (12,2)Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>te käestkogutud kogusumma, mis lähebturniiri võidufondi.Osalustasust korralda<strong>ja</strong>teenustasuks m<strong>in</strong>eva osa summa /Total rakedecimalnumber (12,2)Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>te panustealusel kogutud korralda<strong>ja</strong>teenustasu summa.Väl<strong>ja</strong>makstud summa /Total payoutsdecimalnumber (12,2)Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>võitudena väl<strong>ja</strong>makstudkogusumma.10


Version: 1.02 Date: 12.12.20116. EHMATUR2The service “Tournament games of chance 2” (EHMATUR2) enables to query thedata for tournaments (player vs house) that ended dur<strong>in</strong>g query’s <strong>in</strong>put period. Thequery’s result is sorted by tournament end date, the output is provided as XMLattachment.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00Output as zipped XML attachmentData field XML tag Data type CommentTurniiri ID /Tournament ID str<strong>in</strong>gvarchar2 (25)Õnnemänguturniiri identifikaatorkorralda<strong>ja</strong> IS-s nt. “236300C”.Turniiri nimetus / str<strong>in</strong>gNimetus.Tournament namevarchar2 (250)Korraldamise viis /Form of organisation str<strong>in</strong>gvarchar2 (3)Korraldamise viis:a) klassikal<strong>in</strong>e (KLA),b) kaughasartmäng (KAM).Turniiri alguse aeg / datetime Alguse <strong>ja</strong> lõpu aeg.Tournament start timeTurniiri lõpu aeg / datetime Alguse <strong>ja</strong> lõpu aeg.Tournament end timeVõidu selgitamise koht /Tournament locationEesti korralda<strong>ja</strong> osavõt<strong>ja</strong>te arv /Participants numberOsalustasust võidufondi m<strong>in</strong>evaosa summa /Amount deposited <strong>in</strong>to poolstr<strong>in</strong>gvarchar2 (250)nonNegativeIntegernumber (10,0)decimalnumber (12,2)Võidu selgitamise koht.KLA puhul füüsil<strong>in</strong>e aadress,KAM puhul URL, mille kauduisik pääses mängima.Eesti korralda<strong>ja</strong> osavõt<strong>ja</strong>te arv.Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>te käestkogutud kogusumma, mis lähebturniiri võidufondi.Osalustasust korralda<strong>ja</strong>teenustasuks m<strong>in</strong>eva osa summa/ Total rakedecimalnumber (12,2)Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>tepanuste alusel kogutudkorralda<strong>ja</strong> teenustasu summa.Võidufondi summa /PricepoolVäl<strong>ja</strong>makstud summa /Total payoutsdecimalnumber (12,2)decimalnumber (12,2)Turniiri võidufondi kogusumma.Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>televõitudena väl<strong>ja</strong>makstud summa.11


Version: 1.02 Date: 12.12.20117. EHMATUR3The result of the “Tournament games of chance 3” (EHMATUR3) query is the datafor tournaments (player vs player r<strong>in</strong>g game) that were organized dur<strong>in</strong>g query’s <strong>in</strong>putperiod and summarized for the said period.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00OutputData field XML tag Data type CommentKorraldamise viis /Form of organisation str<strong>in</strong>gvarchar2 (3)Õnnemänguturniiri korraldamiseviis:a) klassikal<strong>in</strong>e (KLA),Tehtud panuste summa /Total betsdecimalnumber (12,2)b) kaughasartmäng (KAM).Kaughasartmängu (KAM) korral:Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>te käestkogutud panuste bruto (panus +teenustasu) kogusumma.Osalustasust korralda<strong>ja</strong>teenustasuks m<strong>in</strong>eva osa summa /Total rakeVäl<strong>ja</strong>makstud summa /Total payoutsdecimalnumber (12,2)decimalnumber (12,2)KLA korral on täitmata.Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>te panustealusel kogutud korralda<strong>ja</strong>teenustasu summa.Kaughasartmängu (KAM) korral:Eesti korralda<strong>ja</strong> mängi<strong>ja</strong>televõitudena väl<strong>ja</strong>makstud summa.KLA korral on täitmata.8. EHMAOMT1The service “Additional game of chance 1” (EHMAOMT1) enables to queryadditional game of chance data summarized for the query’s <strong>in</strong>put period.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00OutputData field XML tag Data type CommentVäl<strong>ja</strong>makstud võidud / decimalTäiendavas õnnemängus saadudRaffle payoutsnumber (12,2) võitude kogusumma.12


Version: 1.02 Date: 12.12.20119. EHMAOMT2The service “Additional game of chance 2” (EHMAOMT2) enables to query the datafor additional games of chance that have been completed dur<strong>in</strong>g the <strong>in</strong>put period.Theresult is returned <strong>in</strong> the form of XML attachment and is sorted by the time and date ofthe w<strong>in</strong>n<strong>in</strong>gs. Additional game of chance allows gambler to w<strong>in</strong> two or more differentprizes simultaneously. It is possible that a pool for additional game of chance isgathered either from a s<strong>in</strong>gle source (i.e. gambl<strong>in</strong>g mach<strong>in</strong>e) or multiple sources. Thedata for remote additional game of chance shall be gathered if a gambler of Estonianoperator has won a prize.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00Output as zipped XML attachmentData field XML tag Data type CommentTäiendava õnnemängu ID /Raffle ID str<strong>in</strong>gvarchar2 (25)Täiendava õnnemänguidentifikaator korralda<strong>ja</strong> IS-s nt.“96312MY”.Täiendava õnnemängu nimetus / str<strong>in</strong>gTäiendava õnnemängu nimetus.Name of rafflevarchar2 (250)Mängitud õnnemängu nimetus /Name of played game str<strong>in</strong>gvarchar2 (250)Õnnemäng, mille mängim<strong>in</strong>etäiendava võidu kaasa tõi.Võidu selgumise aeg / datetime Täiendava õnnemängu võiduRaffle timeVäl<strong>ja</strong>makstud võidud /Raffle payoutsdecimalnumber (12,2)selgitamise kuupäev <strong>ja</strong> kellaaegTäiendavas õnnemängus saadudvõitude kogusumma.13


Version: 1.02 Date: 12.12.201110. EHMAATM1The service “The registry of gambl<strong>in</strong>g mach<strong>in</strong>es” (EHMAATM1) enables to retrievethe list of gambl<strong>in</strong>g mach<strong>in</strong>es that were <strong>in</strong> use <strong>in</strong> operator’s cas<strong>in</strong>o halls dur<strong>in</strong>g cas<strong>in</strong>obus<strong>in</strong>ess day specified by the <strong>in</strong>put query.InputData field XML tag Data type CommentKasi<strong>in</strong>opäev / date Korralda<strong>ja</strong> poolt def<strong>in</strong>eeritavCas<strong>in</strong>o bus<strong>in</strong>ess daykasi<strong>in</strong>opäev.OutputData field XML tag Data type CommentAutomaadi ID / str<strong>in</strong>gIdentifikaator.Slot IDvarchar2 (25)Automaadi seerianumber / str<strong>in</strong>gSeerianumber.Slot serial numbervarchar2 (100)Automaadi mudeli number / str<strong>in</strong>gMudeli number.Slot model numbervarchar2 (100)Automaadi valmistamise aeg / date Valmistamise aeg.Slot manufacture dateAutomaadi toot<strong>ja</strong> / str<strong>in</strong>gToot<strong>ja</strong> nimi.Slot manufacturervarchar2 (100)Automaadi dokumendi PDF fail<strong>in</strong>imi (ID) / str<strong>in</strong>gvarchar2 (100)Mänguautomaadi kasutusõigusttõendava dokumendi ärakiri.Evidence of slot ownership PDFfile name (ID)Automaadi aadress 4 – l<strong>in</strong>n / str<strong>in</strong>gAsukoha aadress.Slot address-cityvarchar2 (100)Automaadi aadress – tänav /Slot address-street str<strong>in</strong>gvarchar2 (100)Automaadi aadress – ma<strong>ja</strong> nr / str<strong>in</strong>gSlot address-nouse numberKasutuse alguse aeg /Use start timeKasutuse lõpu aeg 5 /Use end timevarchar2 (100) datetime Kasutuse alguse kuupäev <strong>ja</strong>kellaaeg.aaaa-kk-ppTtt:mm:ss+00:00 datetime Kasutuse lõpu kuupäev <strong>ja</strong>kellaaeg.aaaa-kk-ppTtt:mm:ss+00:004 A ship's name shall be the address of a mach<strong>in</strong>e case when it is physically located on a ship-basedcas<strong>in</strong>o. A ship's name is entered <strong>in</strong>stead of a city; street and house number should be left empty.5 "Use end time" data field is not required if mach<strong>in</strong>e is still <strong>in</strong> use.14


Version: 1.02 Date: 12.12.201111. EHMAATM2The service “The registry of software used <strong>in</strong> gambl<strong>in</strong>g mach<strong>in</strong>es” (EHMAATM2)enables to retrieve the list of software that was <strong>in</strong> use <strong>in</strong> operator’s cas<strong>in</strong>o halls dur<strong>in</strong>gcas<strong>in</strong>o bus<strong>in</strong>ess day specified by the <strong>in</strong>put query.InputData field XML tag Data type CommentKasi<strong>in</strong>opäev / date Korralda<strong>ja</strong> poolt def<strong>in</strong>eeritavCas<strong>in</strong>o bus<strong>in</strong>ess daykasi<strong>in</strong>opäev.OutputData field XML tag Data type CommentMängu ID / str<strong>in</strong>gIdentifikaator.Game IDvarchar2 (25)Mängu nimi /Game name str<strong>in</strong>gvarchar2 (100)Mängu nimi, mis sisaldab katarkvara numbrit.Mängu versiooni number / str<strong>in</strong>gVersiooni number.Game version / software numbervarchar2 (100)Mängu soetamise aeg 6 / date Mängu soetamise aeg.Game purchase dateMängu toot<strong>ja</strong> / str<strong>in</strong>gToot<strong>ja</strong> nimi.Game manufacturervarchar2 (100)Vastavussertifikaadi number /Certificate of compliance number str<strong>in</strong>gvarchar2 (100)Sõltumatu eksperdi h<strong>in</strong>nangunumber.Vastavussertifikaadi kuupäev /Certificate of compliance date date Sõltumatu eksperdi h<strong>in</strong>nanguväl<strong>ja</strong>stamise kuupäev.Sõltumatu eksperdi nimi / str<strong>in</strong>gSõltumatu eksperdi nimi.Name of <strong>in</strong>dependent expertvarchar2 (100)Vastavussertifikaadi PDF faili nimi(ID) /Assessment of <strong>in</strong>dependent expertPDF file name (ID) str<strong>in</strong>gvarchar2 (100)Sõltumatu eksperdih<strong>in</strong>nangu ärakiri.Mängu dokumendi PDF faili nimi(ID) /Evidence of game ownership PDFfile name (ID)Kasutuse alguse aeg /Use start timeKasutuse lõpu aeg 7 /Use end timestr<strong>in</strong>gvarchar2 (100)Kasutusõigust tõendavadokumendi ärakiri. datetime Kasutuse alguse kuupäev <strong>ja</strong>kellaaeg.aaaa-kk-ppTtt:mm:ss+00:00 datetime Kasutuse lõpu kuupäev <strong>ja</strong>kellaaeg.aaaa-kk-ppTtt:mm:ss+00:006 The data field was known as "Manufacture date" <strong>in</strong> the previous version of HasMS draft law.7 "Use end time" data field is not required if software is still <strong>in</strong> use.15


Version: 1.02 Date: 12.12.201112. EHMAATM3The service “Document” (EHMAATM3) by provid<strong>in</strong>g document name <strong>in</strong> <strong>in</strong>put queryenables to retrieve said PDF document from “The registry of gambl<strong>in</strong>g mach<strong>in</strong>es” or“The registry of software used <strong>in</strong> gambl<strong>in</strong>g mach<strong>in</strong>es”.InputData field XML tag Data type CommentDokumendi PDF faili nimi (ID) /Document PDF file name (ID) str<strong>in</strong>gvarchar2 (100)Dokumendi PDF faili nimi /identifikaator (;; )OutputData field XML tag Data type CommentDokument /Document MIME 8 Manusena edastatav fail võib ollamänguautomaadi soetamist võirentimist tõendava dokumendi ärakirivõi mängu dokument võivastavussertufikaat. Fail peab olemaPDF vorm<strong>in</strong>gus. Faili suurus ei tohiületada 10 MB, samas tuleb tagadadokumendi loetavus.Content-Type: application/pdfContent-Transfer-Encod<strong>in</strong>g: b<strong>in</strong>ary13. EHMAMLRThe service “The registry of gambl<strong>in</strong>g tables” (EHMAMLR) enables to retrieve thelist of mechanical gambl<strong>in</strong>g tables that were <strong>in</strong> use <strong>in</strong> operator’s cas<strong>in</strong>o halls dur<strong>in</strong>gcas<strong>in</strong>o bus<strong>in</strong>ess day specified by <strong>in</strong>put query.InputData field XML tag Data type CommentKasi<strong>in</strong>opäev / date Korralda<strong>ja</strong> poolt def<strong>in</strong>eeritavCas<strong>in</strong>o Bus<strong>in</strong>ess Daykasi<strong>in</strong>opäev.OutputData field XML tag Data type CommentLaua ID / str<strong>in</strong>gIdentifikaator.Game table IDvarchar2 (25)Laua aadress 9 – l<strong>in</strong>n / str<strong>in</strong>gMängulaua asukoha aadress.Game table address-Cityvarchar2 (100)Laua aadress – tänav /Game table address-Street str<strong>in</strong>gvarchar2 (100)Laua aadress – ma<strong>ja</strong> nr /Game table address-House No str<strong>in</strong>gvarchar2 (100)Kasutuse alguse aeg /Use start time datetime Kasutuse alguse kuupäev <strong>ja</strong>kellaaeg.Kasutuse lõpu aeg 10 /Use end timeaaaa-kk-ppTtt:mm:ss+00:00 datetime Kasutuse lõpu kuupäev <strong>ja</strong>kellaaeg.aaaa-kk-ppTtt:mm:ss+00:008 Multipart Internet Mail Extensions9 A ship's name shall be the address of a game table <strong>in</strong> case when it is physically located on a shipbasedcas<strong>in</strong>o. A ship's name is entered <strong>in</strong>stead of a city; street and house number should be left empty.10 "Use end time" data field is not required if game table is still <strong>in</strong> use.16


Version: 1.02 Date: 12.12.201114. EHMAAUDITThe service “Modified data” (EHMAAUDIT) enables to retrieve <strong>in</strong>formation aboutdata modifications that have taken place <strong>in</strong> EAKS buffer database after <strong>in</strong>itial creationof the data. The <strong>in</strong>put query parameters are period and service code.Operator may use EAKS buffer database <strong>in</strong> case when it is technically not feasible orrisky to allow a direct communication between EHMA and EAKS "<strong>in</strong> production"database. All entries <strong>in</strong> buffer database should conta<strong>in</strong> <strong>in</strong>formation about whenorig<strong>in</strong>al entry has been created and <strong>in</strong> case of a later modification entry's modificationdate.InputData field XML tag Data type CommentPerioodi alguse kuupäev /Start date of the period Date Alates kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>staaaa-kk-ppT00:00:00+00:00Perioodi lõpu kuupäev /End date of the period Date Kuni kasi<strong>in</strong>opäeva kellaa<strong>ja</strong>niaaaa-kk-ppT23:59:59+00:00Teenuse kood /Sevice code Str<strong>in</strong>gvarchar2 (10)Teenuse kood viitab teenusele, mis kasutabEAKS puhvrit. Teenuste koodid on:OMA - “Mängud automaatidel”,OML - “Mängud laudadel”,TURT - “Õnnemänguturniirid”,OMT - “Täiendavad õnnemängud”,KAM - “Kaughasartmängud”.Output as zipped XML attachmentData field XML tag Data type CommentKasi<strong>in</strong>opäev / Date Korralda<strong>ja</strong> poolt def<strong>in</strong>eeritav kasi<strong>in</strong>opäev.Cas<strong>in</strong>o Bus<strong>in</strong>ess DayObjekti ID /Object ID Str<strong>in</strong>gvarchar2 (250)Andmed, mille järgi on võimalik objektiüheselt identifitseerida.1. TUR puhul ühe kaupa nende kirjete osasmida on muudetud, objekti ID on 2. OMA puhul ühe automaadi kaupa,objekti ID on 3. OML puhul ühe automaadi kaupa,objekti ID on 4. OMT puhul ühe mängu kaupa, objektiID on 5. KAM puhul objekti ID on Andmete loomise aeg / datetime Kuupäev <strong>ja</strong> kellaaeg.Created timeAndmete muutmise aeg /Modified timeaaaa-kk-ppTtt:mm:ss+00:00 datetime Kuupäev <strong>ja</strong> kellaaeg.aaaa-kk-ppTtt:mm:ss+00:0017


Version: 1.02 Date: 12.12.2011APPENDIX 1. Examples of XML queriesBelow are some examples of XML query <strong>in</strong>puts and outputs. 12345678 is a code ofservice provider, 33333333333 is a personal identification number (isikukood) of aperson who has performed a query.1. Example of EHMAOMA service query70000349ehma-1234567833333333333EE33333333333411d673578411773365ad8aa77210be07613daehma-12345678.EHMAOMA.v12011-09-012011-09-192. Example of EHMAOMA service outputThe output is located <strong>in</strong> SOAP body.70000349ehma-1234567833333333333EE33333333333411d673578411773365ad8aa77210be07613daehma-12345678.EHMAOMA.v12011-09-012011-09-191003124980.00239.002257.0010363114305.001190.00412.0010383424784.001041.00644.0010491323938.001527.002922.0010592389394.002678.004944.0010603374175.001190.002586.0010721972128.001596.002834.001083


Version: 1.02 Date: 12.12.2011xsi:type="xsd:nonNegativeInteger">7856450.001886.004455.002103006718436.002344.004368.003. Example of EHMAKAM2 service outputThe output is compressed XML attachment.--=_133927a23f0000013e74fabcb9cbbd24Content-Type: text/xml; charset=UTF-8Content-Transfer-Encod<strong>in</strong>g: 8bit70000349ehma-1234567833333333333EE33333333333411d673578411773365ad8aa77210be07613daehma-12345678.EHMAKAM2.v1toimik1112011-11-012011-11-10171691--=_133927a23f0000013e74fabcb9cbbd24Content-Type: application/octet-streamContent-Disposition: attachment; filename="20111111_ehma-12345678_EHMAKAM2.xml.gz"Content-ID: Content-Transfer-Encod<strong>in</strong>g: b<strong>in</strong>ary[...attatchment...]--=_133927a23f0000013e74fabcb9cbbd24--4. Example of EHMAATM3 service outputThe output is PDF attachment.--=_1339289663000001715a4c354fb7e3caContent-Type: text/xml; charset=UTF-8Content-Transfer-Encod<strong>in</strong>g: 8bit70000349ehma-1234567833333333333EE33333333333411d673578411773365ad8aa77210be07613daehma-12345678.EHMAATM3.v1toimik111c1.pdfc1.pdf--=_1339289663000001715a4c354fb7e3caContent-Type: application/pdfContent-Disposition: attachment; filename="c1.pdf"Content-ID: Content-Transfer-Encod<strong>in</strong>g: b<strong>in</strong>ary[...attatchment...]--=_1339289663000001715a4c354fb7e3ca--19


Version: 1.02 Date: 12.12.2011APPENDIX 2. Test<strong>in</strong>g of services with Estonian Tax andCustoms Board1. Gambl<strong>in</strong>g operator submits an electronic free form application to ehma@emta.ee e-mail. Application shall conta<strong>in</strong> the follow<strong>in</strong>g <strong>in</strong>formation:a. Confirmation that operator has tested it’s system and that operator’sservices are opened to MTA (https://testmisp.mta/x/devmta/<strong>in</strong>dex.php).b. Period, when operator is ready to perform a bilateral test<strong>in</strong>g sessionwith ETCB.c. The surname, the family name, the position, telephone and e-mail of aperson responsible for bilateral test<strong>in</strong>g.d. The list of services to be tested.e. The <strong>in</strong>itial data of EAKS that will be forwarded by the means of X-road services dur<strong>in</strong>g a test session (as an attachment to e-mail, either as.csv or .xls).f. Any other <strong>in</strong>formation that might be relevant to the planned test<strong>in</strong>g.2. ETCB electronically answers with<strong>in</strong> five work<strong>in</strong>g days count<strong>in</strong>g from the day ofapplication. ETCB marks <strong>in</strong> a reply a test<strong>in</strong>g period of a bilateral test<strong>in</strong>g tak<strong>in</strong>g <strong>in</strong>toaccount, if possible, a period that was marked <strong>in</strong> operator’s application.3. In case when serious defects <strong>in</strong> X-road services, EAKS or EAKS data are found(<strong>in</strong>cl. X-road services, EAKS or data is not <strong>in</strong> accordance with specifications) and it isnot feasible to fix and re-test the system with<strong>in</strong> the previously agreed test<strong>in</strong>g period,then operator will need to submit a new test<strong>in</strong>g application after defects are fixed.4. If tests concluded <strong>in</strong> test environment confirm that the data exchange betweenEAKS and EHMA is performed properly and stably then operator has a right tosubmit an application request<strong>in</strong>g an <strong>in</strong>tegration of EAKS and EHMA systems(application form is located at www.emta.ee, under “organization of gambl<strong>in</strong>g”column). Application shall be signed by a person with the right to represent gambl<strong>in</strong>goperator. Digitally signed application must be sent to ehma@emta.ee. Non-digitallysigned application shall be sent by post to: <strong>Maksu</strong>- <strong>ja</strong> <strong>Tolliamet</strong>, Narva mnt 9j, 15176Tall<strong>in</strong>n.20


Version: 1.02 Date: 12.12.2011APPENDIX 3. The procedure for delivery of servicestäiendatakse21


Version: 1.02 Date: 12.12.2011APPENDIX 4. The process of EAKS – EHMA <strong>in</strong>tegration22

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!