UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

141 lines 7.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionRequestEventDto = void 0; class TransactionRequestEventDto { /** * @param accessToken JWT access_token granted to the user when they were authenticated to use the device * @param idToken JWT id_token for the user logged on the device - note that the id_token carries the customerUuid, hubspotId, merchantId (CAID) * @param userIdentityId Federated identity of the login end-user making the request. * @param transactionId Client generated uuid for referencing requested transaction. * @param stan STAN of the transaction. * @param catid <add description> * @param caid <add description> * @param mcc Merchant Category Code (aligned with Cucal/AS 2805 codes - for now) * @param iso8583 Base64 encoded of the DUKPT encrypted IS8583 financial message * @param iso8583Length Length of the unencrpyted ISO 8583 before possible padding for encryption * @param deviceUuid The UUID for the device * @param siteUuid siteUuid * @param entityUuid The UUID for the entity (Merchant) * @param timestamp Transaction date/time in device local time (UTC format - with time zone designator) * @param timestampEpoch Transaction date/time in device local time (Epoch seconds) * @param timestampUtc Transaction date/time in UTC time (UTC format - UTC/Zulu time) * @param ksn The KSN for the transaction * @param type PUR, REF, ADJ, etc. * @param isoMessageType MTI code - transaction type * @param isoProcessingCode * @param isoPosEntryMode * @param isoPosConditionCode * @param isoCardAcceptorNameLocation * @param amount Total transaction amount * @param tipAmount * @param taxAmounts Array of tax amounts applied * @param cashAmount Cashout amount if Purchase and Cash * @param adjustAmount Amount of adjustment for credit/debit adjustments * @param surchargeAmount Amount of surcharge added to base amount * @param lineItems Array or line item amounts * @param scheme String containing the scheme name (from RID or BIN) * @param bin Card BIN or IIN (6-8 digits) * @param panMasked Last 4 digits * @param panToken Tokenised PAN value if card does not have a PAR value encoded * @param par PAR value is encoded on card * @param cardMedia MSR, ICC, PICC/NFC * @param cardFallback ICC to MSR, PICC/NFC to ICC * @param cardholderName Name of cardholder * @param emvTerminalType * @param emvTerminalCapabilities * @param emvAdditionalTerminalCapabilities * @param emvTvrRequest * @param emvTsrRequest * @param emvAid * @param emvCid * @param emvCvmResult * @param emvAuthResponseCode * @param emvTranCurrencyCode * @param emvTerminalCountryCode * @param emvAppCurrencyCode * @param emvIssuerCurrencyCode * @param commsFallback * @param offlineApproved * @param location * @param locationTimestamp * @param locationAccuracy * @param altitude * @param bearing * @param speed * @param speedAccuracy * @param temperatureDevice * @param temperatureAmbient * @param humidity * @param pressure * @param light */ constructor(accessToken, idToken, userIdentityId, transactionId, stan, catid, caid, mcc, iso8583, iso8583Length, deviceUuid, siteUuid, entityUuid, timestamp, timestampEpoch, timestampUtc, ksn, type, isoMessageType, isoProcessingCode, isoPosEntryMode, isoPosConditionCode, isoCardAcceptorNameLocation, amount, tipAmount, taxAmounts, cashAmount, adjustAmount, surchargeAmount, lineItems, scheme, bin, panMasked, panToken, par, cardMedia, cardFallback, cardholderName, emvTerminalType, emvTerminalCapabilities, emvAdditionalTerminalCapabilities, emvTvrRequest, emvTsrRequest, emvAid, emvCid, emvCvmResult, emvAuthResponseCode, emvTranCurrencyCode, emvTerminalCountryCode, emvAppCurrencyCode, emvIssuerCurrencyCode, commsFallback, offlineApproved, location, locationTimestamp, locationAccuracy, altitude, bearing, speed, speedAccuracy, temperatureDevice, temperatureAmbient, humidity, pressure, light) { this.accessToken = accessToken; this.idToken = idToken; this.userIdentityId = userIdentityId; this.transactionId = transactionId; this.stan = stan; this.catid = catid; this.caid = caid; this.mcc = mcc; this.iso8583 = iso8583; this.iso8583Length = iso8583Length; this.deviceUuid = deviceUuid; this.siteUuid = siteUuid; this.entityUuid = entityUuid; this.timestamp = timestamp; this.timestampEpoch = timestampEpoch; this.timestampUtc = timestampUtc; this.ksn = ksn; this.type = type; this.isoMessageType = isoMessageType; this.isoProcessingCode = isoProcessingCode; this.isoPosEntryMode = isoPosEntryMode; this.isoPosConditionCode = isoPosConditionCode; this.isoCardAcceptorNameLocation = isoCardAcceptorNameLocation; this.amount = amount; this.tipAmount = tipAmount; this.taxAmounts = taxAmounts; this.cashAmount = cashAmount; this.adjustAmount = adjustAmount; this.surchargeAmount = surchargeAmount; this.lineItems = lineItems; this.scheme = scheme; this.bin = bin; this.panMasked = panMasked; this.panToken = panToken; this.par = par; this.cardMedia = cardMedia; this.cardFallback = cardFallback; this.cardholderName = cardholderName; this.emvTerminalType = emvTerminalType; this.emvTerminalCapabilities = emvTerminalCapabilities; this.emvAdditionalTerminalCapabilities = emvAdditionalTerminalCapabilities; this.emvTvrRequest = emvTvrRequest; this.emvTsrRequest = emvTsrRequest; this.emvAid = emvAid; this.emvCid = emvCid; this.emvCvmResult = emvCvmResult; this.emvAuthResponseCode = emvAuthResponseCode; this.emvTranCurrencyCode = emvTranCurrencyCode; this.emvTerminalCountryCode = emvTerminalCountryCode; this.emvAppCurrencyCode = emvAppCurrencyCode; this.emvIssuerCurrencyCode = emvIssuerCurrencyCode; this.commsFallback = commsFallback; this.offlineApproved = offlineApproved; this.location = location; this.locationTimestamp = locationTimestamp; this.locationAccuracy = locationAccuracy; this.altitude = altitude; this.bearing = bearing; this.speed = speed; this.speedAccuracy = speedAccuracy; this.temperatureDevice = temperatureDevice; this.temperatureAmbient = temperatureAmbient; this.humidity = humidity; this.pressure = pressure; this.light = light; } } exports.TransactionRequestEventDto = TransactionRequestEventDto; //# sourceMappingURL=transactionRequestEventDto.js.map