Dokumentasjon for Buypass Payment
Player Activity Service
Wallet Transactions
Wallet transactions are captured in the Buypass payment stack and eventually stored and indexed in an Azure hosted Elasticsearch rig. Kibana serves as a graphical interface/dashboard to the index platform.
URLs and Credentials
Norsk Tipping credentials
System | User | Password |
---|---|---|
qa_cdc_es_customer_nt_read | On request | |
qa_cdc_es_customer-app_nt_read | On request |
Wallet Transaction documents are stored and indexed using the Elasticsearch Data stream concept.
Template
The following template underpins the WalletTransaction documents indexed in Elasticsearch:
{
"template": {
"mappings": {
"properties": {
"@timestamp": {
"type": "date",
"format": "date_optional_time"
},
"transaction_id": {
"type": "text",
"enabled": false
},
"amount": {
"type": "integer",
"enabled": false
},
"currency": {
"type": "keyword"
},
"account_reference": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"external_reference": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"external_timestamp": {
"type": "date",
"format": "date_optional_time"
},
"external_system_id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"transaction_attributes": {
"type": "nested",
"properties": {
"session_id": {
"keyword": "keyword"
},
"information": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"channel": {
"type": "keyword",
"fields": {
"text": {
"type": "text"
}
}
}
}
}
}
}
},
"_meta": {
"description": "Mapping of fields for NT wallet transactions"
}
}
Note the use of multi-fields in order for a field to be indexed as multiple types - text and keyword are relevant in the context if the WalletTransaction document.
“keyword” field documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html
“text” field documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/text.html
Multi-field documentation: https://www.elastic.co/guide/en/elasticsearch/reference/7.15/multi-fields.html
Elasticsearch Indices
The indeces have different names for different environments.
Environment | Index name | Comment |
---|---|---|
QA02 |
| Note that this adheres to an older template than the one listed above |
QA03 |
|
|