component-dbs-core
Version:
DTO objects shared among device backend
137 lines (136 loc) • 6.95 kB
TypeScript
import { TransactionType } from './types.d';
export declare class TransactionRequestEventDto {
readonly accessToken: string;
readonly idToken: string;
readonly userIdentityId: string;
readonly transactionId: string;
readonly stan: string;
readonly catid: string;
readonly caid: string;
readonly mcc: string;
readonly iso8583: string;
readonly iso8583Length: string;
readonly deviceUuid: string;
readonly siteUuid: string;
readonly entityUuid: string;
readonly timestamp: string;
readonly timestampEpoch: string;
readonly timestampUtc: string;
readonly ksn: string;
readonly type: TransactionType;
readonly isoMessageType: string;
readonly isoProcessingCode: string;
readonly isoPosEntryMode: string;
readonly isoPosConditionCode: string;
readonly isoCardAcceptorNameLocation: string;
readonly amount: string;
readonly tipAmount: string;
readonly taxAmounts: string;
readonly cashAmount: string;
readonly adjustAmount: string;
readonly surchargeAmount: string;
readonly lineItems: string;
readonly scheme: string;
readonly bin: string;
readonly panMasked: string;
readonly panToken: string;
readonly par: string;
readonly cardMedia: string;
readonly cardFallback: string;
readonly cardholderName: string;
readonly emvTerminalType: string;
readonly emvTerminalCapabilities: string;
readonly emvAdditionalTerminalCapabilities: string;
readonly emvTvrRequest: string;
readonly emvTsrRequest: string;
readonly emvAid: string;
readonly emvCid: string;
readonly emvCvmResult: string;
readonly emvAuthResponseCode: string;
readonly emvTranCurrencyCode: string;
readonly emvTerminalCountryCode: string;
readonly emvAppCurrencyCode: string;
readonly emvIssuerCurrencyCode: string;
readonly commsFallback: string;
readonly offlineApproved: string;
readonly location: string;
readonly locationTimestamp: string;
readonly locationAccuracy: string;
readonly altitude: string;
readonly bearing: string;
readonly speed: string;
readonly speedAccuracy: string;
readonly temperatureDevice: string;
readonly temperatureAmbient: string;
readonly humidity: string;
readonly pressure: string;
readonly light: string;
/**
* @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: string, idToken: string, userIdentityId: string, transactionId: string, stan: string, catid: string, caid: string, mcc: string, iso8583: string, iso8583Length: string, deviceUuid: string, siteUuid: string, entityUuid: string, timestamp: string, timestampEpoch: string, timestampUtc: string, ksn: string, type: TransactionType, isoMessageType: string, isoProcessingCode: string, isoPosEntryMode: string, isoPosConditionCode: string, isoCardAcceptorNameLocation: string, amount: string, tipAmount: string, taxAmounts: string, cashAmount: string, adjustAmount: string, surchargeAmount: string, lineItems: string, scheme: string, bin: string, panMasked: string, panToken: string, par: string, cardMedia: string, cardFallback: string, cardholderName: string, emvTerminalType: string, emvTerminalCapabilities: string, emvAdditionalTerminalCapabilities: string, emvTvrRequest: string, emvTsrRequest: string, emvAid: string, emvCid: string, emvCvmResult: string, emvAuthResponseCode: string, emvTranCurrencyCode: string, emvTerminalCountryCode: string, emvAppCurrencyCode: string, emvIssuerCurrencyCode: string, commsFallback: string, offlineApproved: string, location: string, locationTimestamp: string, locationAccuracy: string, altitude: string, bearing: string, speed: string, speedAccuracy: string, temperatureDevice: string, temperatureAmbient: string, humidity: string, pressure: string, light: string);
}