@achyutlabsau/vue-payment-gateway 0.17.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1076 -1076
- package/dist/index.js +2 -2
- package/dist/linkly.d.ts +1076 -1076
- package/dist/mx51.d.ts +1076 -1076
- package/dist/smartpay.d.ts +1076 -1076
- package/dist/till-payment.d.ts +1077 -1076
- package/dist/tyro.d.ts +1076 -1076
- package/dist/{valpay-Co5GhIks.js → valpay-CsDcnngV.js} +5 -2
- package/dist/valpay.d.ts +1079 -1076
- package/dist/valpay.js +1 -1
- package/dist/{worldline-nQDVuEak.js → worldline-RBwkTsH3.js} +7 -3
- package/dist/worldline.d.ts +1088 -1081
- package/dist/worldline.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -144,1079 +144,1079 @@ declare global {
|
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
// oxlint-disable-next-line unicorn/no-abusive-eslint-disable
|
|
148
|
-
// oxlint-disable
|
|
149
|
-
declare global {
|
|
150
|
-
namespace timapi {
|
|
151
|
-
class Enumeration {
|
|
152
|
-
constructor(names: string[], startValue: EnumValue);
|
|
153
|
-
values(): any[];
|
|
154
|
-
toString(): string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
class EnumValue {
|
|
158
|
-
name: string;
|
|
159
|
-
_value: any;
|
|
160
|
-
constructor(name: string, value: any);
|
|
161
|
-
toString(): string;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// interface EnumValue {
|
|
165
|
-
// name: string;
|
|
166
|
-
// _value: number;
|
|
167
|
-
// toString(): string;
|
|
168
|
-
// }
|
|
169
|
-
type TransactionTypeKeys =
|
|
170
|
-
| "purchase"
|
|
171
|
-
| "credit"
|
|
172
|
-
| "reversal"
|
|
173
|
-
| "preAuthorization"
|
|
174
|
-
| "finalizePurchase"
|
|
175
|
-
| "debtRecovery"
|
|
176
|
-
| "cashAdvance"
|
|
177
|
-
| "purchaseForcedAcceptance"
|
|
178
|
-
| "purchaseWithCashback"
|
|
179
|
-
| "purchasePhoneAuthorized"
|
|
180
|
-
| "purchasePhoneOrdered"
|
|
181
|
-
| "purchaseMailOrdered"
|
|
182
|
-
| "accountVerification"
|
|
183
|
-
| "giro"
|
|
184
|
-
| "combined"
|
|
185
|
-
| "authorizeCredit"
|
|
186
|
-
| "authorizeDeposit"
|
|
187
|
-
| "reservation"
|
|
188
|
-
| "adjustReservation"
|
|
189
|
-
| "cancelReservation"
|
|
190
|
-
| "purchaseReservation"
|
|
191
|
-
| "purchaseReservationPhoneAuthorized"
|
|
192
|
-
| "loadVoucher"
|
|
193
|
-
| "collectPoints"
|
|
194
|
-
| "funding"
|
|
195
|
-
| "refunding"
|
|
196
|
-
| "load"
|
|
197
|
-
| "unload"
|
|
198
|
-
| "activateCard";
|
|
199
|
-
|
|
200
|
-
interface Currency {
|
|
201
|
-
readonly code: string;
|
|
202
|
-
readonly name: string;
|
|
203
|
-
readonly exponent: number;
|
|
204
|
-
readonly _wav: number;
|
|
205
|
-
toString(): string;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
type CurrencyKeys =
|
|
209
|
-
| "AED"
|
|
210
|
-
| "AFN"
|
|
211
|
-
| "ALL"
|
|
212
|
-
| "AMD"
|
|
213
|
-
| "ANG"
|
|
214
|
-
| "AOA"
|
|
215
|
-
| "ARS"
|
|
216
|
-
| "AUD"
|
|
217
|
-
| "AWG"
|
|
218
|
-
| "AZN"
|
|
219
|
-
| "BAM"
|
|
220
|
-
| "BBD"
|
|
221
|
-
| "BDT"
|
|
222
|
-
| "BGN"
|
|
223
|
-
| "BHD"
|
|
224
|
-
| "BIF"
|
|
225
|
-
| "BMD"
|
|
226
|
-
| "BND"
|
|
227
|
-
| "BOB"
|
|
228
|
-
| "BOV"
|
|
229
|
-
| "BRL"
|
|
230
|
-
| "BSD"
|
|
231
|
-
| "BTN"
|
|
232
|
-
| "BWP"
|
|
233
|
-
| "BYN"
|
|
234
|
-
| "BYR"
|
|
235
|
-
| "BZD"
|
|
236
|
-
| "CAD"
|
|
237
|
-
| "CDF"
|
|
238
|
-
| "CHE"
|
|
239
|
-
| "CHF"
|
|
240
|
-
| "CHW"
|
|
241
|
-
| "CLF"
|
|
242
|
-
| "CLP"
|
|
243
|
-
| "CNY"
|
|
244
|
-
| "COP"
|
|
245
|
-
| "COU"
|
|
246
|
-
| "CRC"
|
|
247
|
-
| "CUC"
|
|
248
|
-
| "CUP"
|
|
249
|
-
| "CVE"
|
|
250
|
-
| "CZK"
|
|
251
|
-
| "DJF"
|
|
252
|
-
| "DKK"
|
|
253
|
-
| "DOP"
|
|
254
|
-
| "DZD"
|
|
255
|
-
| "EGP"
|
|
256
|
-
| "ERN"
|
|
257
|
-
| "ETB"
|
|
258
|
-
| "EUR"
|
|
259
|
-
| "FJD"
|
|
260
|
-
| "FKP"
|
|
261
|
-
| "GBP"
|
|
262
|
-
| "GEL"
|
|
263
|
-
| "GHS"
|
|
264
|
-
| "GIP"
|
|
265
|
-
| "GMD"
|
|
266
|
-
| "GNF"
|
|
267
|
-
| "GTQ"
|
|
268
|
-
| "GYD"
|
|
269
|
-
| "HKD"
|
|
270
|
-
| "HNL"
|
|
271
|
-
| "HRK"
|
|
272
|
-
| "HTG"
|
|
273
|
-
| "HUF"
|
|
274
|
-
| "IDR"
|
|
275
|
-
| "ILS"
|
|
276
|
-
| "INR"
|
|
277
|
-
| "IQD"
|
|
278
|
-
| "IRR"
|
|
279
|
-
| "ISK";
|
|
280
|
-
|
|
281
|
-
/* =========================Request Types ====================== */
|
|
282
|
-
|
|
283
|
-
type RequestTypeKeys =
|
|
284
|
-
| "connect"
|
|
285
|
-
| "activate"
|
|
286
|
-
| "applicationInformation"
|
|
287
|
-
| "balance"
|
|
288
|
-
| "changeSettings"
|
|
289
|
-
| "commit"
|
|
290
|
-
| "counterRequest"
|
|
291
|
-
| "deactivate"
|
|
292
|
-
| "dccRates"
|
|
293
|
-
| "hardwareInformation"
|
|
294
|
-
| "initTransaction"
|
|
295
|
-
| "initTransactionWithDialog"
|
|
296
|
-
| "login"
|
|
297
|
-
| "logout"
|
|
298
|
-
| "reboot"
|
|
299
|
-
| "reconciliation"
|
|
300
|
-
| "receiptRequest"
|
|
301
|
-
| "reconfig"
|
|
302
|
-
| "rollback"
|
|
303
|
-
| "systemInformation"
|
|
304
|
-
| "softwareUpdate"
|
|
305
|
-
| "transaction"
|
|
306
|
-
| "closeReader"
|
|
307
|
-
| "openReader"
|
|
308
|
-
| "ejectCard"
|
|
309
|
-
| "openMaintenanceWindow"
|
|
310
|
-
| "closeMaintenanceWindow"
|
|
311
|
-
| "activateServiceMenu"
|
|
312
|
-
| "openDialogMode"
|
|
313
|
-
| "closeDialogMode"
|
|
314
|
-
| "showSignatureCapture"
|
|
315
|
-
| "showDialog"
|
|
316
|
-
| "sendCardCommand"
|
|
317
|
-
| "printOnTerminal"
|
|
318
|
-
| "loyaltyData"
|
|
319
|
-
| "startCheckout"
|
|
320
|
-
| "finishCheckout"
|
|
321
|
-
| "provideLoyaltyBasket"
|
|
322
|
-
| "provideVasResult"
|
|
323
|
-
| "mobileTopupIssuerInfo"
|
|
324
|
-
| "mobileTopup"
|
|
325
|
-
| "balanceInquiry"
|
|
326
|
-
| "requestAlias"
|
|
327
|
-
| "deviceMaintenance"
|
|
328
|
-
| "clientIdentification"
|
|
329
|
-
| "transactionInfoRequest"
|
|
330
|
-
| "ageCheck";
|
|
331
|
-
|
|
332
|
-
type SettingTypeKeys =
|
|
333
|
-
| "displayBrightness"
|
|
334
|
-
| "displayContrast"
|
|
335
|
-
| "keypadTones"
|
|
336
|
-
| "alertTones"
|
|
337
|
-
| "language"
|
|
338
|
-
| "powerManagementMode";
|
|
339
|
-
|
|
340
|
-
type EcrInfoKeys = "ecrApplication" | "eftApi" | "eftModule" | "os";
|
|
341
|
-
|
|
342
|
-
type GuidesKeys =
|
|
343
|
-
| "retail"
|
|
344
|
-
| "unattended"
|
|
345
|
-
| "advancedRetail"
|
|
346
|
-
| "banking"
|
|
347
|
-
| "petrol"
|
|
348
|
-
| "dialog"
|
|
349
|
-
| "remote"
|
|
350
|
-
| "gastro"
|
|
351
|
-
| "hospitality"
|
|
352
|
-
| "valueAddedServices"
|
|
353
|
-
| "austrianUseCases"
|
|
354
|
-
| "certification";
|
|
355
|
-
|
|
356
|
-
type ManagementStatusKeys = "closed" | "open" | "dialog";
|
|
357
|
-
type ReceiptRequestTypeKeys = "reprint" | "list";
|
|
358
|
-
type RecipientKeys = "merchant" | "cardholder" | "both";
|
|
359
|
-
type ThemeKeys = "six" | "swissPost";
|
|
360
|
-
type AdditionalInfoItemKeys =
|
|
361
|
-
| "mileage"
|
|
362
|
-
| "carNumber"
|
|
363
|
-
| "driverCode"
|
|
364
|
-
| "fleetId"
|
|
365
|
-
| "additionalInformation"
|
|
366
|
-
| "employeeNo"
|
|
367
|
-
| "costCenter"
|
|
368
|
-
| "projectNo"
|
|
369
|
-
| "licensePlate"
|
|
370
|
-
| "reference";
|
|
371
|
-
type BrandBarBrandKeys =
|
|
372
|
-
| "alipay"
|
|
373
|
-
| "amex"
|
|
374
|
-
| "aralRoutex"
|
|
375
|
-
| "aurora"
|
|
376
|
-
| "austroCard"
|
|
377
|
-
| "bancomat"
|
|
378
|
-
| "bcmc"
|
|
379
|
-
| "boncardPay"
|
|
380
|
-
| "boncardPoints"
|
|
381
|
-
| "bonus"
|
|
382
|
-
| "bonuscard"
|
|
383
|
-
| "bpRoutex"
|
|
384
|
-
| "brunschwig"
|
|
385
|
-
| "businessCard"
|
|
386
|
-
| "cash"
|
|
387
|
-
| "co2neutralCard"
|
|
388
|
-
| "conforama"
|
|
389
|
-
| "coopEkz"
|
|
390
|
-
| "coopMobile"
|
|
391
|
-
| "coopProntoCard"
|
|
392
|
-
| "cosyCard"
|
|
393
|
-
| "cup"
|
|
394
|
-
| "diners"
|
|
395
|
-
| "dinerClub"
|
|
396
|
-
| "diplomatkarte"
|
|
397
|
-
| "dkv"
|
|
398
|
-
| "eniRoutex"
|
|
399
|
-
| "eshellPrepaid"
|
|
400
|
-
| "esso"
|
|
401
|
-
| "euroShell"
|
|
402
|
-
| "fnac"
|
|
403
|
-
| "freiUndFlott"
|
|
404
|
-
| "giftc"
|
|
405
|
-
| "giftCard"
|
|
406
|
-
| "groupCard"
|
|
407
|
-
| "ipRoutex"
|
|
408
|
-
| "iq"
|
|
409
|
-
| "jcb"
|
|
410
|
-
| "jelmoliPaycard"
|
|
411
|
-
| "jet"
|
|
412
|
-
| "jgeschenkkarte"
|
|
413
|
-
| "jubinCardPetrol"
|
|
414
|
-
| "lebara"
|
|
415
|
-
| "loeb"
|
|
416
|
-
| "logPay"
|
|
417
|
-
| "lunchCheckCard"
|
|
418
|
-
| "lycaMobile"
|
|
419
|
-
| "maestro"
|
|
420
|
-
| "maestroCh"
|
|
421
|
-
| "masterCard"
|
|
422
|
-
| "mbudgetMc"
|
|
423
|
-
| "mcard"
|
|
424
|
-
| "mediaMarkt"
|
|
425
|
-
| "mergerCard"
|
|
426
|
-
| "migrolcard"
|
|
427
|
-
| "migros"
|
|
428
|
-
| "moveri"
|
|
429
|
-
| "mscompanyCard"
|
|
430
|
-
| "myOne"
|
|
431
|
-
| "novofleet"
|
|
432
|
-
| "omvRoutex"
|
|
433
|
-
| "paycard"
|
|
434
|
-
| "paycardF"
|
|
435
|
-
| "paycardApp"
|
|
436
|
-
| "payPal"
|
|
437
|
-
| "paySysGiftcard"
|
|
438
|
-
| "pharmacard"
|
|
439
|
-
| "phonecard"
|
|
440
|
-
| "postCard"
|
|
441
|
-
| "powerCard"
|
|
442
|
-
| "reka"
|
|
443
|
-
| "rekaLunch"
|
|
444
|
-
| "rekaRail"
|
|
445
|
-
| "salt"
|
|
446
|
-
| "sbbkarte"
|
|
447
|
-
| "shellMca"
|
|
448
|
-
| "staedtekarte"
|
|
449
|
-
| "statoilRoutex"
|
|
450
|
-
| "sunrise"
|
|
451
|
-
| "supercardPlus"
|
|
452
|
-
| "supercardVisa"
|
|
453
|
-
| "swissBonusCard"
|
|
454
|
-
| "swisscom"
|
|
455
|
-
| "twint"
|
|
456
|
-
| "utaFullService"
|
|
457
|
-
| "utaSelectCard"
|
|
458
|
-
| "valuemaster"
|
|
459
|
-
| "visa"
|
|
460
|
-
| "visaElectron"
|
|
461
|
-
| "vorteilsCard"
|
|
462
|
-
| "vpay"
|
|
463
|
-
| "weChat"
|
|
464
|
-
| "wirCard"
|
|
465
|
-
| "yallo"
|
|
466
|
-
| "postMobile";
|
|
467
|
-
type ProcessingDispositionKeys = "onEcr" | "onEft";
|
|
468
|
-
type HardwareTypeKeys =
|
|
469
|
-
| "terminal"
|
|
470
|
-
| "eftApplication"
|
|
471
|
-
| "pinPad"
|
|
472
|
-
| "contactReader"
|
|
473
|
-
| "contactlessReader"
|
|
474
|
-
| "magStripeReader"
|
|
475
|
-
| "wifiAdapter"
|
|
476
|
-
| "lanAdapter"
|
|
477
|
-
| "bluetoothAdapter"
|
|
478
|
-
| "mobileAdapter";
|
|
479
|
-
type CardProductTypeKeys = "debit" | "credit" | "commercial" | "prepaid" | "other";
|
|
480
|
-
type SecurityStatusKeys = "disabled" | "active" | "tampered";
|
|
481
|
-
type ThirdPartyAppIdKeys = "linklySlaveApp";
|
|
482
|
-
type TransactionReasonKeys = "installment" | "recurring" | "unscheduled" | "recurringFixed";
|
|
483
|
-
type NgvModeKeys = "mandatory" | "allowedWithFallback" | "notAllowed";
|
|
484
|
-
type CounterTypeKeys = "shift" | "balance";
|
|
485
|
-
type AccountTypeKeys = "cheque" | "savings" | "credit";
|
|
486
|
-
type ProtocolLevelKeys = "sixml2_2";
|
|
487
|
-
type ReceiptItemTypeKeys =
|
|
488
|
-
| "actId"
|
|
489
|
-
| "accPer"
|
|
490
|
-
| "acqId"
|
|
491
|
-
| "aid"
|
|
492
|
-
| "amount"
|
|
493
|
-
| "amountDcc"
|
|
494
|
-
| "amountOther"
|
|
495
|
-
| "amountReservation"
|
|
496
|
-
| "amountSaldo"
|
|
497
|
-
| "amountTip"
|
|
498
|
-
| "authCode"
|
|
499
|
-
| "authReslt"
|
|
500
|
-
| "authRespC"
|
|
501
|
-
| "authRespTextC"
|
|
502
|
-
| "brandName"
|
|
503
|
-
| "currency"
|
|
504
|
-
| "currencyDcc"
|
|
505
|
-
| "dccDisclaimer"
|
|
506
|
-
| "disclaimer"
|
|
507
|
-
| "exponent"
|
|
508
|
-
| "exponentDcc"
|
|
509
|
-
| "markupDcc"
|
|
510
|
-
| "markupExponentDcc"
|
|
511
|
-
| "cardNumberPrintableMerchant"
|
|
512
|
-
| "cardNumberPrintableCardholder"
|
|
513
|
-
| "rateDcc"
|
|
514
|
-
| "rateExponentDcc"
|
|
515
|
-
| "timeStampDate"
|
|
516
|
-
| "timeStampTime"
|
|
517
|
-
| "trmId"
|
|
518
|
-
| "trxRefNum"
|
|
519
|
-
| "trxSeqCnt"
|
|
520
|
-
| "posEntryMode"
|
|
521
|
-
| "cardExpiryDate"
|
|
522
|
-
| "cardNumberEnc"
|
|
523
|
-
| "ecrSeqCounter"
|
|
524
|
-
| "panReceiptDol"
|
|
525
|
-
| "panReceiptDolIndex"
|
|
526
|
-
| "preAuthorizationExpDate"
|
|
527
|
-
| "tenderName"
|
|
528
|
-
| "numberOfInstallments"
|
|
529
|
-
| "installmentDisclaimer"
|
|
530
|
-
| "originalAid"
|
|
531
|
-
| "originalCardNumberPrintable"
|
|
532
|
-
| "originalBrandName"
|
|
533
|
-
| "originalCardCountryCode"
|
|
534
|
-
| "originalTenderName"
|
|
535
|
-
| "originalTransRef"
|
|
536
|
-
| "amountInstallmentFee"
|
|
537
|
-
| "amountInstallmentTotal"
|
|
538
|
-
| "amountInstallmentFirst"
|
|
539
|
-
| "amountInstallmentOne"
|
|
540
|
-
| "interestInstallment"
|
|
541
|
-
| "markupDccRegulated"
|
|
542
|
-
| "markupExponentDccRegulated"
|
|
543
|
-
| "rateDccRegulated"
|
|
544
|
-
| "rateExponentDccRegulated"
|
|
545
|
-
| "keyPanReceiptIndex"
|
|
546
|
-
| "additionalMerchantData"
|
|
547
|
-
| "multiAccountIndex"
|
|
548
|
-
| "multiContractIndex"
|
|
549
|
-
| "merchantTid"
|
|
550
|
-
| "clerkIdentifier"
|
|
551
|
-
| "fuelDispenserNumber"
|
|
552
|
-
| "posdnumber"
|
|
553
|
-
| "receiptNumber"
|
|
554
|
-
| "shiftNumber"
|
|
555
|
-
| "cardProductType"
|
|
556
|
-
| "accountType"
|
|
557
|
-
| "surchargeAmount"
|
|
558
|
-
| "originalTrxRefNum"
|
|
559
|
-
| "signatureLine"
|
|
560
|
-
| "originalTransSeq"
|
|
561
|
-
| "balanceExpDate"
|
|
562
|
-
| "amountOfGoods"
|
|
563
|
-
| "amountDue"
|
|
564
|
-
| "amountTotal"
|
|
565
|
-
| "hostCardholderText"
|
|
566
|
-
| "hostMerchantText";
|
|
567
|
-
type ImageFileFormatKeys = "jpeg" | "png" | "bmp";
|
|
568
|
-
type PrintFormatKeys =
|
|
569
|
-
| "noPrint"
|
|
570
|
-
| "normal"
|
|
571
|
-
| "onDevice"
|
|
572
|
-
| "fieldsOnly"
|
|
573
|
-
| "onDeviceWithReceipt"
|
|
574
|
-
| "onDeviceWithFields";
|
|
575
|
-
type CustomerDataTypeKeys = "customerId" | "loyaltyBrandId" | "furtherInfo";
|
|
576
|
-
type LoyaltyFunctionTypeKeys = "init" | "update" | "deinit" | "query";
|
|
577
|
-
type ConnectionStatusKeys = "disconnected" | "loggedOut" | "loggedIn";
|
|
578
|
-
type AllowedAccountsKeys = "cheque" | "savings" | "credit";
|
|
579
|
-
type MobileTopupTypeKeys = "purchase" | "reversal";
|
|
580
|
-
type MerchantOptionTypeKeys =
|
|
581
|
-
| "additionalMerchantData"
|
|
582
|
-
| "multiAccountIndex"
|
|
583
|
-
| "multiContractIndex"
|
|
584
|
-
| "merchantTid"
|
|
585
|
-
| "clerkIdentifier"
|
|
586
|
-
| "fuelDispenserNumber"
|
|
587
|
-
| "posdnumber"
|
|
588
|
-
| "receiptNumber"
|
|
589
|
-
| "shiftNumber"
|
|
590
|
-
| "accountingDepartment"
|
|
591
|
-
| "accountingPeriod"
|
|
592
|
-
| "deviceType"
|
|
593
|
-
| "ktucode"
|
|
594
|
-
| "stationCode"
|
|
595
|
-
| "wsnumber"
|
|
596
|
-
| "voucherId"
|
|
597
|
-
| "dspMsgSuppressFlag";
|
|
598
|
-
type ProtocolTypeKeys = "sixml";
|
|
599
|
-
type OutcomeKeys = "successful" | "failed" | "partial";
|
|
600
|
-
type AdminFunctionsKeys =
|
|
601
|
-
| "login"
|
|
602
|
-
| "logout"
|
|
603
|
-
| "reconfig"
|
|
604
|
-
| "reboot"
|
|
605
|
-
| "softwareUpdate"
|
|
606
|
-
| "activate"
|
|
607
|
-
| "deactivate"
|
|
608
|
-
| "counterRequest"
|
|
609
|
-
| "reconciliation"
|
|
610
|
-
| "balance"
|
|
611
|
-
| "openDialogMode"
|
|
612
|
-
| "closeDialogMode"
|
|
613
|
-
| "transmitLog"
|
|
614
|
-
| "startReaderCleaning"
|
|
615
|
-
| "dccRates"
|
|
616
|
-
| "changeSettings"
|
|
617
|
-
| "receiptRequest"
|
|
618
|
-
| "closeReader"
|
|
619
|
-
| "openReader"
|
|
620
|
-
| "ejectCard"
|
|
621
|
-
| "openMaintenanceWindow"
|
|
622
|
-
| "closeMaintenanceWindow"
|
|
623
|
-
| "activateServiceMenu"
|
|
624
|
-
| "mobileTopupIssuerInfo";
|
|
625
|
-
type AgeCheckResultKeys = "ok" | "nok" | "noAgeCheckPerformed" | "notSupportedByBank";
|
|
626
|
-
type CvmKeys = "pin" | "pinSignature" | "signature" | "onDevice" | "noCvm" | "other";
|
|
627
|
-
type PrintFlagKeys =
|
|
628
|
-
| "suppressHeader"
|
|
629
|
-
| "suppressSignature"
|
|
630
|
-
| "suppressEcrInfo"
|
|
631
|
-
| "suppressEftInfo"
|
|
632
|
-
| "suppressFooter";
|
|
633
|
-
type RemoteFunctionsKeys = "screenshot" | "deviceMaintenance";
|
|
634
|
-
type MerchantActionKeys = "signature" | "none";
|
|
635
|
-
type AdjustmentResultKeys = "ok" | "failRequestToLate" | "failAmountToHigh";
|
|
636
|
-
type UpdateStatusKeys = "upToDate" | "runningNoReboot" | "runningReboot";
|
|
637
|
-
type ResponseTypeKeys = "positive" | "negative" | "cardRemoval" | "timeout";
|
|
638
|
-
type NonFinancialTransactionsKeys =
|
|
639
|
-
| "cancel"
|
|
640
|
-
| "balanceInquiry"
|
|
641
|
-
| "clientIdentification"
|
|
642
|
-
| "initTransaction"
|
|
643
|
-
| "holdCommit"
|
|
644
|
-
| "reservation"
|
|
645
|
-
| "adjustReservation"
|
|
646
|
-
| "cancelReservation"
|
|
647
|
-
| "loyaltyData"
|
|
648
|
-
| "startCheckout"
|
|
649
|
-
| "finishCheckout"
|
|
650
|
-
| "provideLoyaltyBasket"
|
|
651
|
-
| "provideVasResult"
|
|
652
|
-
| "accountVerification"
|
|
653
|
-
| "thirdPartyAppData"
|
|
654
|
-
| "ageCheck";
|
|
655
|
-
type ResourceParameterTypeKeys =
|
|
656
|
-
| "codeCheckType"
|
|
657
|
-
| "codeCheckKeyId"
|
|
658
|
-
| "codeCheckData"
|
|
659
|
-
| "regularDataQueryType"
|
|
660
|
-
| "regularData"
|
|
661
|
-
| "petrolCardData1"
|
|
662
|
-
| "petrolCardData2"
|
|
663
|
-
| "petrolCardData3"
|
|
664
|
-
| "activeReaders"
|
|
665
|
-
| "exponent"
|
|
666
|
-
| "keyModeF1"
|
|
667
|
-
| "keyModeF2"
|
|
668
|
-
| "keyModeF3"
|
|
669
|
-
| "pinRetryCounter"
|
|
670
|
-
| "aid";
|
|
671
|
-
type SleepModeStatusKeys = "enteringSleep" | "wakingUp";
|
|
672
|
-
type KernelTypeKeys =
|
|
673
|
-
| "kernelPure"
|
|
674
|
-
| "emvContact"
|
|
675
|
-
| "entryPoint"
|
|
676
|
-
| "kernel1"
|
|
677
|
-
| "kernel2"
|
|
678
|
-
| "kernel3"
|
|
679
|
-
| "kernel4"
|
|
680
|
-
| "kernel5"
|
|
681
|
-
| "kernel6"
|
|
682
|
-
| "kernel7"
|
|
683
|
-
| "kernel8";
|
|
684
|
-
type VasInfoTypeKeys =
|
|
685
|
-
| "altId"
|
|
686
|
-
| "trxMatch"
|
|
687
|
-
| "trxId"
|
|
688
|
-
| "trxIdentTime"
|
|
689
|
-
| "userAlias"
|
|
690
|
-
| "cardAlias"
|
|
691
|
-
| "agrDataToEcrindicator"
|
|
692
|
-
| "agrReqAddVasdataIndicator"
|
|
693
|
-
| "agrResDataToHstIndicator"
|
|
694
|
-
| "amtVasprg"
|
|
695
|
-
| "vasprgCtnr"
|
|
696
|
-
| "vasprgId"
|
|
697
|
-
| "vasprgName"
|
|
698
|
-
| "vasprgMtchId"
|
|
699
|
-
| "vasspecId"
|
|
700
|
-
| "dataToEcrind"
|
|
701
|
-
| "reqAddVasdataInd"
|
|
702
|
-
| "addVasdataComMd"
|
|
703
|
-
| "resDataToHstInd"
|
|
704
|
-
| "addVasdata"
|
|
705
|
-
| "supportVer";
|
|
706
|
-
type BrandModeKeys = "all" | "selected" | "off";
|
|
707
|
-
type CouponRejectionReasonKeys =
|
|
708
|
-
| "alreadyRedeemed"
|
|
709
|
-
| "articleDelisted"
|
|
710
|
-
| "campaignExpired"
|
|
711
|
-
| "campaignCancelled"
|
|
712
|
-
| "other";
|
|
713
|
-
type ThirdPartyAppsKeys = "linklySlaveApp";
|
|
714
|
-
type VasInfoListTypeKeys = "wolMatch" | "wolProgram" | "twint";
|
|
715
|
-
type ReasonKeys =
|
|
716
|
-
| "ok"
|
|
717
|
-
| "corr"
|
|
718
|
-
| "stop"
|
|
719
|
-
| "cardReader"
|
|
720
|
-
| "autoConfirm"
|
|
721
|
-
| "timeout"
|
|
722
|
-
| "codeOk"
|
|
723
|
-
| "codeNok"
|
|
724
|
-
| "pinOk"
|
|
725
|
-
| "pinNok"
|
|
726
|
-
| "f1"
|
|
727
|
-
| "f2"
|
|
728
|
-
| "f3"
|
|
729
|
-
| "otherKey";
|
|
730
|
-
type ReceiptTypeKeys =
|
|
731
|
-
| "activateCard"
|
|
732
|
-
| "adjustReservation"
|
|
733
|
-
| "balanceInquiry"
|
|
734
|
-
| "cashAdvance"
|
|
735
|
-
| "cancelReservation"
|
|
736
|
-
| "credit"
|
|
737
|
-
| "confirmReservation"
|
|
738
|
-
| "finalizePurchase"
|
|
739
|
-
| "load"
|
|
740
|
-
| "preAuthorization"
|
|
741
|
-
| "purchase"
|
|
742
|
-
| "purchaseForcedAcceptance"
|
|
743
|
-
| "purchaseMailOrdered"
|
|
744
|
-
| "purchasePhoneAuthorized"
|
|
745
|
-
| "purchasePhoneOrdered"
|
|
746
|
-
| "purchaseReservation"
|
|
747
|
-
| "purchaseWithCashback"
|
|
748
|
-
| "reservation"
|
|
749
|
-
| "reversal"
|
|
750
|
-
| "giro"
|
|
751
|
-
| "combined"
|
|
752
|
-
| "authorizeCredit"
|
|
753
|
-
| "authorizeDeposit"
|
|
754
|
-
| "clientIdRequest"
|
|
755
|
-
| "accountVerification"
|
|
756
|
-
| "funding"
|
|
757
|
-
| "refunding"
|
|
758
|
-
| "unload";
|
|
759
|
-
type TokenPanTypeKeys = "gts" | "bnr2" | "other";
|
|
760
|
-
type CardReaderStatusKeys =
|
|
761
|
-
| "cardReaderClosed"
|
|
762
|
-
| "cardManuallyEntered"
|
|
763
|
-
| "cardSwiped"
|
|
764
|
-
| "cardNotRemoved"
|
|
765
|
-
| "cardPresented"
|
|
766
|
-
| "cardReaderEmpty"
|
|
767
|
-
| "cardInserted"
|
|
768
|
-
| "cardEjected";
|
|
769
|
-
type ConnectionModeKeys = "broadcast" | "onFixIp";
|
|
770
|
-
type MaintenanceTypeKeys = "cleanReaders" | "calibrateTouchScreen" | "transmitTeld";
|
|
771
|
-
type CardReaderKeys = "icc" | "cl" | "ms";
|
|
772
|
-
type FinancialTransactionsKeys =
|
|
773
|
-
| "purchase"
|
|
774
|
-
| "credit"
|
|
775
|
-
| "reversal"
|
|
776
|
-
| "commit"
|
|
777
|
-
| "rollback"
|
|
778
|
-
| "preAuthorization"
|
|
779
|
-
| "finalizePurchase"
|
|
780
|
-
| "amtAdjustment"
|
|
781
|
-
| "debtRecovery"
|
|
782
|
-
| "cashAdvance"
|
|
783
|
-
| "purchaseForcedAcceptance"
|
|
784
|
-
| "purchaseWithCashback"
|
|
785
|
-
| "purchasePhoneAuthorized"
|
|
786
|
-
| "purchasePhoneOrdered"
|
|
787
|
-
| "purchaseMailOrdered"
|
|
788
|
-
| "giro"
|
|
789
|
-
| "combined"
|
|
790
|
-
| "authorizeCredit"
|
|
791
|
-
| "authorizeDeposit"
|
|
792
|
-
| "purchaseReservation"
|
|
793
|
-
| "purchaseReservationPhoneAuthorized"
|
|
794
|
-
| "loadVoucher"
|
|
795
|
-
| "collectPoints"
|
|
796
|
-
| "activateCard"
|
|
797
|
-
| "load"
|
|
798
|
-
| "unload"
|
|
799
|
-
| "funding"
|
|
800
|
-
| "refunding"
|
|
801
|
-
| "mobileTopupPurchase"
|
|
802
|
-
| "mobileTopupReversal";
|
|
803
|
-
type StatusFunctionsKeys =
|
|
804
|
-
| "featureRequest"
|
|
805
|
-
| "terminalStatus"
|
|
806
|
-
| "systemInformation"
|
|
807
|
-
| "applicationInformation"
|
|
808
|
-
| "hardwareInformation"
|
|
809
|
-
| "keepAlive"
|
|
810
|
-
| "licenseChanged"
|
|
811
|
-
| "vasInfo"
|
|
812
|
-
| "error"
|
|
813
|
-
| "changeLanguage"
|
|
814
|
-
| "keyPress"
|
|
815
|
-
| "configurationChanged"
|
|
816
|
-
| "wakeUp"
|
|
817
|
-
| "transactionInfoRequest";
|
|
818
|
-
type DialogFunctionsKeys = "showSignatureCapture" | "showDialog" | "sendCardCommand" | "printOnTerminal";
|
|
819
|
-
type PaymentProtocolKeys = "ep2" | "ev" | "vm" | "v3cxml" | "ctap" | "other";
|
|
820
|
-
type TransactionStatusKeys =
|
|
821
|
-
| "busy"
|
|
822
|
-
| "idle"
|
|
823
|
-
| "waitForCard"
|
|
824
|
-
| "readingCard"
|
|
825
|
-
| "applicationSelection"
|
|
826
|
-
| "waitForProceed"
|
|
827
|
-
| "dccSelection"
|
|
828
|
-
| "enterTip"
|
|
829
|
-
| "pinEntry"
|
|
830
|
-
| "signatureCapture"
|
|
831
|
-
| "processing"
|
|
832
|
-
| "waitForCommit"
|
|
833
|
-
| "accountSelection";
|
|
834
|
-
type FunctionHintKeys =
|
|
835
|
-
| "purchase"
|
|
836
|
-
| "credit"
|
|
837
|
-
| "reversal"
|
|
838
|
-
| "preAuthorization"
|
|
839
|
-
| "finalizePurchase"
|
|
840
|
-
| "cashAdvance"
|
|
841
|
-
| "purchaseForcedAcceptance"
|
|
842
|
-
| "purchaseWithCashback"
|
|
843
|
-
| "purchasePhoneAuthorized"
|
|
844
|
-
| "purchasePhoneOrdered"
|
|
845
|
-
| "purchaseMailOrdered"
|
|
846
|
-
| "accountVerification"
|
|
847
|
-
| "giro"
|
|
848
|
-
| "combined"
|
|
849
|
-
| "authorizeCredit"
|
|
850
|
-
| "authorizeDeposit"
|
|
851
|
-
| "reservation"
|
|
852
|
-
| "loadVoucher"
|
|
853
|
-
| "collectPoints"
|
|
854
|
-
| "load";
|
|
855
|
-
type CurrencyTypeKeys = "local" | "foreign" | "dcc";
|
|
856
|
-
type PosEntryModeKeys =
|
|
857
|
-
| "unspecified"
|
|
858
|
-
| "manual"
|
|
859
|
-
| "magStripeIncomplete"
|
|
860
|
-
| "barCode"
|
|
861
|
-
| "ocr"
|
|
862
|
-
| "icc"
|
|
863
|
-
| "iccPan"
|
|
864
|
-
| "referenceBased"
|
|
865
|
-
| "bluetoothLowEnergy"
|
|
866
|
-
| "qrcOnTerminal"
|
|
867
|
-
| "qrcOnMobile"
|
|
868
|
-
| "tokenBasedEcommerce"
|
|
869
|
-
| "magStripe"
|
|
870
|
-
| "magStripeFallback"
|
|
871
|
-
| "magStripeFallbackAgain"
|
|
872
|
-
| "magStripeFallbackIccFail"
|
|
873
|
-
| "emergencyDataEntry"
|
|
874
|
-
| "ecommerce"
|
|
875
|
-
| "ctlessIcc"
|
|
876
|
-
| "ctlessMagStrige"
|
|
877
|
-
| "ctlessIccPan";
|
|
878
|
-
|
|
879
|
-
interface Constants {
|
|
880
|
-
TransactionType: Record<TransactionTypeKeys, EnumValue>;
|
|
881
|
-
Currency: Record<CurrencyKeys, Currency>;
|
|
882
|
-
RequestType: Record<RequestTypeKeys, EnumValue>;
|
|
883
|
-
SettingType: Record<SettingTypeKeys, EnumValue>;
|
|
884
|
-
EcrInfoType: Record<EcrInfoKeys, EnumValue>;
|
|
885
|
-
Guides: Record<GuidesKeys, EnumValue>;
|
|
886
|
-
ManagementStatus: Record<ManagementStatusKeys, EnumValue>;
|
|
887
|
-
ReceiptRequestType: Record<ReceiptRequestTypeKeys, EnumValue>;
|
|
888
|
-
Recipient: Record<RecipientKeys, EnumValue>;
|
|
889
|
-
Theme: Record<ThemeKeys, EnumValue>;
|
|
890
|
-
AdditionalInfoItem: Record<AdditionalInfoItemKeys, EnumValue>;
|
|
891
|
-
BrandBarBrand: Record<BrandBarBrandKeys, EnumValue>;
|
|
892
|
-
ProcessingDisposition: Record<ProcessingDispositionKeys, EnumValue>;
|
|
893
|
-
HardwareType: Record<HardwareTypeKeys, EnumValue>;
|
|
894
|
-
CardProductType: Record<CardProductTypeKeys, EnumValue>;
|
|
895
|
-
SecurityStatus: Record<SecurityStatusKeys, EnumValue>;
|
|
896
|
-
ThirdPartyAppId: Record<ThirdPartyAppIdKeys, EnumValue>;
|
|
897
|
-
TransactionReason: Record<TransactionReasonKeys, EnumValue>;
|
|
898
|
-
NgvMode: Record<NgvModeKeys, EnumValue>;
|
|
899
|
-
CounterType: Record<CounterTypeKeys, EnumValue>;
|
|
900
|
-
AccountType: Record<AccountTypeKeys, EnumValue>;
|
|
901
|
-
ProtocolLevel: Record<ProtocolLevelKeys, EnumValue>;
|
|
902
|
-
ReceiptItemType: Record<ReceiptItemTypeKeys, EnumValue>;
|
|
903
|
-
ImageFileFormat: Record<ImageFileFormatKeys, EnumValue>;
|
|
904
|
-
PrintFormat: Record<PrintFormatKeys, EnumValue>;
|
|
905
|
-
CustomerDataType: Record<CustomerDataTypeKeys, EnumValue>;
|
|
906
|
-
LoyaltyFunctionType: Record<LoyaltyFunctionTypeKeys, EnumValue>;
|
|
907
|
-
ConnectionStatus: Record<ConnectionStatusKeys, EnumValue>;
|
|
908
|
-
AllowedAccounts: Record<AllowedAccountsKeys, EnumValue>;
|
|
909
|
-
MobileTopupType: Record<MobileTopupTypeKeys, EnumValue>;
|
|
910
|
-
MerchantOptionType: Record<MerchantOptionTypeKeys, EnumValue>;
|
|
911
|
-
ProtocolType: Record<ProtocolTypeKeys, EnumValue>;
|
|
912
|
-
Outcome: Record<OutcomeKeys, EnumValue>;
|
|
913
|
-
AdminFunctions: Record<AdminFunctionsKeys, EnumValue>;
|
|
914
|
-
AgeCheckResult: Record<AgeCheckResultKeys, EnumValue>;
|
|
915
|
-
Cvm: Record<CvmKeys, EnumValue>;
|
|
916
|
-
PrintFlag: Record<PrintFlagKeys, EnumValue>;
|
|
917
|
-
RemoteFunctions: Record<RemoteFunctionsKeys, EnumValue>;
|
|
918
|
-
MerchantAction: Record<MerchantActionKeys, EnumValue>;
|
|
919
|
-
AdjustmentResult: Record<AdjustmentResultKeys, EnumValue>;
|
|
920
|
-
UpdateStatus: Record<UpdateStatusKeys, EnumValue>;
|
|
921
|
-
ResponseType: Record<ResponseTypeKeys, EnumValue>;
|
|
922
|
-
NonFinancialTransactions: Record<NonFinancialTransactionsKeys, EnumValue>;
|
|
923
|
-
ResourceParameterType: Record<ResourceParameterTypeKeys, EnumValue>;
|
|
924
|
-
SleepModeStatus: Record<SleepModeStatusKeys, EnumValue>;
|
|
925
|
-
KernelType: Record<KernelTypeKeys, EnumValue>;
|
|
926
|
-
VasInfoType: Record<VasInfoTypeKeys, EnumValue>;
|
|
927
|
-
BrandMode: Record<BrandModeKeys, EnumValue>;
|
|
928
|
-
CouponRejectionReason: Record<CouponRejectionReasonKeys, EnumValue>;
|
|
929
|
-
ThirdPartyApps: Record<ThirdPartyAppsKeys, EnumValue>;
|
|
930
|
-
VasInfoListType: Record<VasInfoListTypeKeys, EnumValue>;
|
|
931
|
-
Reason: Record<ReasonKeys, EnumValue>;
|
|
932
|
-
ReceiptType: Record<ReceiptTypeKeys, EnumValue>;
|
|
933
|
-
TokenPanType: Record<TokenPanTypeKeys, EnumValue>;
|
|
934
|
-
CardReaderStatus: Record<CardReaderStatusKeys, EnumValue>;
|
|
935
|
-
ConnectionMode: Record<ConnectionModeKeys, EnumValue>;
|
|
936
|
-
MaintenanceType: Record<MaintenanceTypeKeys, EnumValue>;
|
|
937
|
-
CardReader: Record<CardReaderKeys, EnumValue>;
|
|
938
|
-
FinancialTransactions: Record<FinancialTransactionsKeys, EnumValue>;
|
|
939
|
-
ResultCode: Enumeration;
|
|
940
|
-
StatusFunctions: Record<StatusFunctionsKeys, EnumValue>;
|
|
941
|
-
DialogFunctions: Record<DialogFunctionsKeys, EnumValue>;
|
|
942
|
-
PaymentProtocol: Record<PaymentProtocolKeys, EnumValue>;
|
|
943
|
-
TransactionStatus: Record<TransactionStatusKeys, EnumValue>;
|
|
944
|
-
FunctionHint: Record<FunctionHintKeys, EnumValue>;
|
|
945
|
-
CurrencyType: Record<CurrencyTypeKeys, EnumValue>;
|
|
946
|
-
PosEntryMode: Record<PosEntryModeKeys, EnumValue>;
|
|
947
|
-
ResourceId: Enumeration;
|
|
948
|
-
}
|
|
949
|
-
/* ========================= Terminal Status =============================== */
|
|
950
|
-
|
|
951
|
-
export interface TerminalStatus {
|
|
952
|
-
displayContent: string[];
|
|
953
|
-
connectionStatus: EnumValue;
|
|
954
|
-
managementStatus: EnumValue;
|
|
955
|
-
cardReaderStatus: EnumValue;
|
|
956
|
-
transactionStatus: EnumValue;
|
|
957
|
-
receiptInformation: boolean;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
const constants: Constants;
|
|
961
|
-
|
|
962
|
-
class TimException extends Error {
|
|
963
|
-
additionalErrorInfo: string | undefined;
|
|
964
|
-
errorMessage: string;
|
|
965
|
-
errorText: string;
|
|
966
|
-
localizedMessage: string;
|
|
967
|
-
nativeError: string | undefined;
|
|
968
|
-
ppInfo: string | undefined;
|
|
969
|
-
printData: string | undefined;
|
|
970
|
-
rejectedBasket: string | undefined;
|
|
971
|
-
resultCode: EnumValue;
|
|
972
|
-
constructor();
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
class Receipt {
|
|
976
|
-
recipient: EnumValue;
|
|
977
|
-
value: string;
|
|
978
|
-
constructor();
|
|
979
|
-
}
|
|
980
|
-
|
|
981
|
-
class PrintData {
|
|
982
|
-
receiptItems: string[];
|
|
983
|
-
receipts: Receipt[];
|
|
984
|
-
constructor();
|
|
985
|
-
}
|
|
986
|
-
|
|
987
|
-
interface TimEvent {
|
|
988
|
-
requestType: string;
|
|
989
|
-
exception?: TimException;
|
|
990
|
-
terminal: Terminal;
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
interface TransactionResponse {
|
|
994
|
-
additionalInfo: undefined;
|
|
995
|
-
amount: Amount;
|
|
996
|
-
amountDcc: undefined;
|
|
997
|
-
amountDue: undefined;
|
|
998
|
-
amountLoyaltyCashback: undefined;
|
|
999
|
-
amountOther: undefined;
|
|
1000
|
-
amountSaldo: undefined;
|
|
1001
|
-
amountSurcharge: undefined;
|
|
1002
|
-
amountTip: undefined;
|
|
1003
|
-
basket: undefined;
|
|
1004
|
-
printData: PrintData;
|
|
1005
|
-
transactionInformation: any;
|
|
1006
|
-
transactionType: EnumValue;
|
|
1007
|
-
}
|
|
1008
|
-
|
|
1009
|
-
class DefaultTerminalListener {
|
|
1010
|
-
constructor();
|
|
1011
|
-
terminalStatusChanged(terminal: any): void;
|
|
1012
|
-
requestCompleted(event: TimEvent, data: any): void;
|
|
1013
|
-
connectCompleted(event: TimEvent): void;
|
|
1014
|
-
transactionCompleted(event: TimEvent, data: TransactionResponse): void;
|
|
1015
|
-
balanceCompleted(event: TimEvent, data: BalanceResponse): void;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
class Counters {
|
|
1019
|
-
toString(): string;
|
|
1020
|
-
constructor();
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
class BalanceResponse {
|
|
1024
|
-
counters: timapi.Counters;
|
|
1025
|
-
printData: timapi.PrintData;
|
|
1026
|
-
toString(): string;
|
|
1027
|
-
constructor();
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
class Amount {
|
|
1031
|
-
currency: Currency;
|
|
1032
|
-
exponent: number;
|
|
1033
|
-
value: number;
|
|
1034
|
-
constructor(amount: number, currency: Currency);
|
|
1035
|
-
}
|
|
1036
|
-
class EcrInfo {
|
|
1037
|
-
type: EnumValue;
|
|
1038
|
-
name: string;
|
|
1039
|
-
manufacturerName: string;
|
|
1040
|
-
version: string;
|
|
1041
|
-
constructor();
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
class Guides {
|
|
1045
|
-
constructor();
|
|
1046
|
-
add(key: EnumValue): void;
|
|
1047
|
-
}
|
|
1048
|
-
class Terminal {
|
|
1049
|
-
_listenersLocked: boolean;
|
|
1050
|
-
_listeners: DefaultTerminalListener[];
|
|
1051
|
-
_terminalStatus: TerminalStatus | undefined;
|
|
1052
|
-
|
|
1053
|
-
constructor(settings: any);
|
|
1054
|
-
setPosId(id: string): void;
|
|
1055
|
-
getTerminalStatus(): TerminalStatus;
|
|
1056
|
-
setUserId(id: number | string): void;
|
|
1057
|
-
addListener(listener: DefaultTerminalListener): void;
|
|
1058
|
-
addEcrData(info: EcrInfo): void;
|
|
1059
|
-
|
|
1060
|
-
disconnectAsync(): void;
|
|
1061
|
-
connectAsync(): void;
|
|
1062
|
-
loginAsync(): void;
|
|
1063
|
-
logoutAsync(): void;
|
|
1064
|
-
activateAsync(): void;
|
|
1065
|
-
deactivateAsync(): void;
|
|
1066
|
-
commitAsync(): void;
|
|
1067
|
-
rollbackAsync(): void;
|
|
1068
|
-
balanceAsync(): void;
|
|
1069
|
-
reconfigAsync(): void;
|
|
1070
|
-
systemInformationAsync(): void;
|
|
1071
|
-
hardwareInformationAsync(): void;
|
|
1072
|
-
receiptRequestAsync(requestType: string): void;
|
|
1073
|
-
softwareUpdateAsync(): void;
|
|
1074
|
-
reconciliationAsync(): void;
|
|
1075
|
-
changeSettingsAsync(settings: Map<timapi.EnumValue, string>): void;
|
|
1076
|
-
applicationInformationAsync(): void;
|
|
1077
|
-
cancel(): void;
|
|
1078
|
-
// TODO:
|
|
1079
|
-
setTransactionData(trxData: TransactionData): void;
|
|
1080
|
-
transactionAsync(txnType: EnumValue, amount: Amount): void;
|
|
1081
|
-
transactionTipAsync(txnType: EnumValue, amount: Amount, amountTip?: Amount): void;
|
|
1082
|
-
dispose(): void;
|
|
1083
|
-
getTransactionData(): TransactionData | undefined;
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
class TerminalSettings {
|
|
1087
|
-
/**
|
|
1088
|
-
* IP address of the EFT terminal.
|
|
1089
|
-
*/
|
|
1090
|
-
connectionIPString: string;
|
|
1091
|
-
/**
|
|
1092
|
-
* Listening Port of the EFT terminal.
|
|
1093
|
-
*/
|
|
1094
|
-
connectionIPPort: number;
|
|
1095
|
-
fetchBrands: boolean;
|
|
1096
|
-
autoCommit: boolean | undefined;
|
|
1097
|
-
enableKeepAlive: boolean;
|
|
1098
|
-
partialCommit: boolean | undefined;
|
|
1099
|
-
dcc: boolean;
|
|
1100
|
-
tipAllowed: boolean;
|
|
1101
|
-
partialApproval: boolean;
|
|
1102
|
-
integratorId: string;
|
|
1103
|
-
/**
|
|
1104
|
-
* Enable persistent state if supported. Default is false.
|
|
1105
|
-
*/
|
|
1106
|
-
persistentState: boolean;
|
|
1107
|
-
guides: Guides;
|
|
1108
|
-
constructor();
|
|
1109
|
-
}
|
|
1110
|
-
|
|
1111
|
-
class TransactionData {
|
|
1112
|
-
/** Whether Dynamic Currency Conversion is allowed for the transaction. */
|
|
1113
|
-
dccAllowed?: boolean;
|
|
1114
|
-
/** Date of the original transaction (used for referenced/follow-up transactions). */
|
|
1115
|
-
trxOriginalDate?: TimeDate;
|
|
1116
|
-
/** ECR sequence counter. */
|
|
1117
|
-
ecrSeqCounter?: number;
|
|
1118
|
-
/** Whether partial approval is allowed. */
|
|
1119
|
-
partialApprovalAllowed?: boolean;
|
|
1120
|
-
/** ECR transaction reference. */
|
|
1121
|
-
transRef?: string;
|
|
1122
|
-
/** Terminal transaction sequence number — references the original sale for a reversal. */
|
|
1123
|
-
transSeq?: string;
|
|
1124
|
-
/** Card reference token. */
|
|
1125
|
-
cardRef?: string;
|
|
1126
|
-
/** Acquirer id. */
|
|
1127
|
-
acqId?: number;
|
|
1128
|
-
/** Acquirer transaction reference. Prefer {@link setAcqTransRef}. */
|
|
1129
|
-
acqTransRef?: string;
|
|
1130
|
-
/** Terminal transaction reference. */
|
|
1131
|
-
trmTransRef?: string;
|
|
1132
|
-
/** Whether tipping is allowed for the transaction. */
|
|
1133
|
-
tipAllowed?: boolean;
|
|
1134
|
-
/** Phone authorization code. */
|
|
1135
|
-
phoneAuthCode?: string;
|
|
1136
|
-
/** Cardholder/terminal language. */
|
|
1137
|
-
language?: string;
|
|
1138
|
-
/** Multi-currency flag. */
|
|
1139
|
-
multiCurrencyFlag?: boolean;
|
|
1140
|
-
/** NGV mode. One of the `Constants.NgvMode` enum values. */
|
|
1141
|
-
ngvMode?: EnumValue;
|
|
1142
|
-
/** NGV clearing delay. */
|
|
1143
|
-
ngvClearingDelay?: number;
|
|
1144
|
-
/** Card verification code (CVC2/CVV2). */
|
|
1145
|
-
cvc2?: string;
|
|
1146
|
-
/** Application expiration date. */
|
|
1147
|
-
appExpirationDate?: TimeDate;
|
|
1148
|
-
/** SIX transaction reference number. Prefer {@link setSixTrxRefNum}. */
|
|
1149
|
-
sixTrxRefNum?: string;
|
|
1150
|
-
/** Whether installment payment is allowed. */
|
|
1151
|
-
installmentAllowed?: boolean;
|
|
1152
|
-
/** Deferred authorization indicator. */
|
|
1153
|
-
deferredAuthInd?: boolean;
|
|
1154
|
-
/** Sub-transactions making up this transaction. */
|
|
1155
|
-
subTransactions: SubTransaction[];
|
|
1156
|
-
/** Allowed account types. Each is a `Constants.AllowedAccounts` enum value. */
|
|
1157
|
-
allowedAccounts?: EnumValue[];
|
|
1158
|
-
/** Tokenized PAN. */
|
|
1159
|
-
tokenPan?: string;
|
|
1160
|
-
/** Token PAN type. One of the `Constants.TokenPanType` enum values. */
|
|
1161
|
-
tokenPanType?: EnumValue;
|
|
1162
|
-
/** Age to verify for age-restricted goods. */
|
|
1163
|
-
ageToCheck?: number;
|
|
1164
|
-
/** Authorization code. */
|
|
1165
|
-
authCode?: string;
|
|
1166
|
-
/** Forced POS entry modes. */
|
|
1167
|
-
forcePosEntryModes?: EnumValue[];
|
|
1168
|
-
/** Allowed application (brand) list. */
|
|
1169
|
-
allowedAppList?: EnumValue[];
|
|
1170
|
-
constructor(copyTrxData?: TransactionData);
|
|
1171
|
-
/** Build {@link acqTransRef} from an acquirer id and transaction reference number. */
|
|
1172
|
-
setAcqTransRef(acqId: number, trxRefNo: number): void;
|
|
1173
|
-
/** Build {@link sixTrxRefNum} from an acquirer id and transaction reference number. */
|
|
1174
|
-
setSixTrxRefNum(acqId: number, trxRefNum: number): void;
|
|
1175
|
-
toString(): string;
|
|
1176
|
-
}
|
|
1177
|
-
|
|
1178
|
-
/** Sub-transaction entry within {@link TransactionData.subTransactions}. */
|
|
1179
|
-
class SubTransaction {
|
|
1180
|
-
constructor();
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
|
-
/** Terminal date/time value used across the API. */
|
|
1184
|
-
class TimeDate {
|
|
1185
|
-
year: number;
|
|
1186
|
-
month: number;
|
|
1187
|
-
day: number;
|
|
1188
|
-
hour: number;
|
|
1189
|
-
minute: number;
|
|
1190
|
-
second: number;
|
|
1191
|
-
constructor();
|
|
1192
|
-
toDate(): Date;
|
|
1193
|
-
toStringRegular(): string;
|
|
1194
|
-
toStringReceiptDate(): string;
|
|
1195
|
-
toStringReceiptTime(): string;
|
|
1196
|
-
toString(): string;
|
|
1197
|
-
static fromDate(date: Date): TimeDate;
|
|
1198
|
-
static fromNow(): TimeDate;
|
|
1199
|
-
static copy(timeDate: TimeDate): TimeDate;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
class LogRecord {
|
|
1203
|
-
file: string;
|
|
1204
|
-
level: { name: string; _value: number };
|
|
1205
|
-
line: 16;
|
|
1206
|
-
message: string;
|
|
1207
|
-
method: string;
|
|
1208
|
-
parameters: string[];
|
|
1209
|
-
stackTrace: string[];
|
|
1210
|
-
thread: string;
|
|
1211
|
-
timestamp: string;
|
|
1212
|
-
constructor();
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
/**
|
|
1217
|
-
* this function "onTimApiReady" will be called as soon as the TimApi is ready
|
|
1218
|
-
*/
|
|
1219
|
-
let onTimApiReady: (() => void) | undefined;
|
|
1220
|
-
let onTimApiLog: (message: string) => void;
|
|
1221
|
-
let onTimApiPublishLogRecord: (record: timapi.LogRecord) => void;
|
|
1222
|
-
}
|
|
147
|
+
// oxlint-disable-next-line unicorn/no-abusive-eslint-disable
|
|
148
|
+
// oxlint-disable
|
|
149
|
+
declare global {
|
|
150
|
+
namespace timapi {
|
|
151
|
+
class Enumeration {
|
|
152
|
+
constructor(names: string[], startValue: EnumValue);
|
|
153
|
+
values(): any[];
|
|
154
|
+
toString(): string;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
class EnumValue {
|
|
158
|
+
name: string;
|
|
159
|
+
_value: any;
|
|
160
|
+
constructor(name: string, value: any);
|
|
161
|
+
toString(): string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// interface EnumValue {
|
|
165
|
+
// name: string;
|
|
166
|
+
// _value: number;
|
|
167
|
+
// toString(): string;
|
|
168
|
+
// }
|
|
169
|
+
type TransactionTypeKeys =
|
|
170
|
+
| "purchase"
|
|
171
|
+
| "credit"
|
|
172
|
+
| "reversal"
|
|
173
|
+
| "preAuthorization"
|
|
174
|
+
| "finalizePurchase"
|
|
175
|
+
| "debtRecovery"
|
|
176
|
+
| "cashAdvance"
|
|
177
|
+
| "purchaseForcedAcceptance"
|
|
178
|
+
| "purchaseWithCashback"
|
|
179
|
+
| "purchasePhoneAuthorized"
|
|
180
|
+
| "purchasePhoneOrdered"
|
|
181
|
+
| "purchaseMailOrdered"
|
|
182
|
+
| "accountVerification"
|
|
183
|
+
| "giro"
|
|
184
|
+
| "combined"
|
|
185
|
+
| "authorizeCredit"
|
|
186
|
+
| "authorizeDeposit"
|
|
187
|
+
| "reservation"
|
|
188
|
+
| "adjustReservation"
|
|
189
|
+
| "cancelReservation"
|
|
190
|
+
| "purchaseReservation"
|
|
191
|
+
| "purchaseReservationPhoneAuthorized"
|
|
192
|
+
| "loadVoucher"
|
|
193
|
+
| "collectPoints"
|
|
194
|
+
| "funding"
|
|
195
|
+
| "refunding"
|
|
196
|
+
| "load"
|
|
197
|
+
| "unload"
|
|
198
|
+
| "activateCard";
|
|
199
|
+
|
|
200
|
+
interface Currency {
|
|
201
|
+
readonly code: string;
|
|
202
|
+
readonly name: string;
|
|
203
|
+
readonly exponent: number;
|
|
204
|
+
readonly _wav: number;
|
|
205
|
+
toString(): string;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
type CurrencyKeys =
|
|
209
|
+
| "AED"
|
|
210
|
+
| "AFN"
|
|
211
|
+
| "ALL"
|
|
212
|
+
| "AMD"
|
|
213
|
+
| "ANG"
|
|
214
|
+
| "AOA"
|
|
215
|
+
| "ARS"
|
|
216
|
+
| "AUD"
|
|
217
|
+
| "AWG"
|
|
218
|
+
| "AZN"
|
|
219
|
+
| "BAM"
|
|
220
|
+
| "BBD"
|
|
221
|
+
| "BDT"
|
|
222
|
+
| "BGN"
|
|
223
|
+
| "BHD"
|
|
224
|
+
| "BIF"
|
|
225
|
+
| "BMD"
|
|
226
|
+
| "BND"
|
|
227
|
+
| "BOB"
|
|
228
|
+
| "BOV"
|
|
229
|
+
| "BRL"
|
|
230
|
+
| "BSD"
|
|
231
|
+
| "BTN"
|
|
232
|
+
| "BWP"
|
|
233
|
+
| "BYN"
|
|
234
|
+
| "BYR"
|
|
235
|
+
| "BZD"
|
|
236
|
+
| "CAD"
|
|
237
|
+
| "CDF"
|
|
238
|
+
| "CHE"
|
|
239
|
+
| "CHF"
|
|
240
|
+
| "CHW"
|
|
241
|
+
| "CLF"
|
|
242
|
+
| "CLP"
|
|
243
|
+
| "CNY"
|
|
244
|
+
| "COP"
|
|
245
|
+
| "COU"
|
|
246
|
+
| "CRC"
|
|
247
|
+
| "CUC"
|
|
248
|
+
| "CUP"
|
|
249
|
+
| "CVE"
|
|
250
|
+
| "CZK"
|
|
251
|
+
| "DJF"
|
|
252
|
+
| "DKK"
|
|
253
|
+
| "DOP"
|
|
254
|
+
| "DZD"
|
|
255
|
+
| "EGP"
|
|
256
|
+
| "ERN"
|
|
257
|
+
| "ETB"
|
|
258
|
+
| "EUR"
|
|
259
|
+
| "FJD"
|
|
260
|
+
| "FKP"
|
|
261
|
+
| "GBP"
|
|
262
|
+
| "GEL"
|
|
263
|
+
| "GHS"
|
|
264
|
+
| "GIP"
|
|
265
|
+
| "GMD"
|
|
266
|
+
| "GNF"
|
|
267
|
+
| "GTQ"
|
|
268
|
+
| "GYD"
|
|
269
|
+
| "HKD"
|
|
270
|
+
| "HNL"
|
|
271
|
+
| "HRK"
|
|
272
|
+
| "HTG"
|
|
273
|
+
| "HUF"
|
|
274
|
+
| "IDR"
|
|
275
|
+
| "ILS"
|
|
276
|
+
| "INR"
|
|
277
|
+
| "IQD"
|
|
278
|
+
| "IRR"
|
|
279
|
+
| "ISK";
|
|
280
|
+
|
|
281
|
+
/* =========================Request Types ====================== */
|
|
282
|
+
|
|
283
|
+
type RequestTypeKeys =
|
|
284
|
+
| "connect"
|
|
285
|
+
| "activate"
|
|
286
|
+
| "applicationInformation"
|
|
287
|
+
| "balance"
|
|
288
|
+
| "changeSettings"
|
|
289
|
+
| "commit"
|
|
290
|
+
| "counterRequest"
|
|
291
|
+
| "deactivate"
|
|
292
|
+
| "dccRates"
|
|
293
|
+
| "hardwareInformation"
|
|
294
|
+
| "initTransaction"
|
|
295
|
+
| "initTransactionWithDialog"
|
|
296
|
+
| "login"
|
|
297
|
+
| "logout"
|
|
298
|
+
| "reboot"
|
|
299
|
+
| "reconciliation"
|
|
300
|
+
| "receiptRequest"
|
|
301
|
+
| "reconfig"
|
|
302
|
+
| "rollback"
|
|
303
|
+
| "systemInformation"
|
|
304
|
+
| "softwareUpdate"
|
|
305
|
+
| "transaction"
|
|
306
|
+
| "closeReader"
|
|
307
|
+
| "openReader"
|
|
308
|
+
| "ejectCard"
|
|
309
|
+
| "openMaintenanceWindow"
|
|
310
|
+
| "closeMaintenanceWindow"
|
|
311
|
+
| "activateServiceMenu"
|
|
312
|
+
| "openDialogMode"
|
|
313
|
+
| "closeDialogMode"
|
|
314
|
+
| "showSignatureCapture"
|
|
315
|
+
| "showDialog"
|
|
316
|
+
| "sendCardCommand"
|
|
317
|
+
| "printOnTerminal"
|
|
318
|
+
| "loyaltyData"
|
|
319
|
+
| "startCheckout"
|
|
320
|
+
| "finishCheckout"
|
|
321
|
+
| "provideLoyaltyBasket"
|
|
322
|
+
| "provideVasResult"
|
|
323
|
+
| "mobileTopupIssuerInfo"
|
|
324
|
+
| "mobileTopup"
|
|
325
|
+
| "balanceInquiry"
|
|
326
|
+
| "requestAlias"
|
|
327
|
+
| "deviceMaintenance"
|
|
328
|
+
| "clientIdentification"
|
|
329
|
+
| "transactionInfoRequest"
|
|
330
|
+
| "ageCheck";
|
|
331
|
+
|
|
332
|
+
type SettingTypeKeys =
|
|
333
|
+
| "displayBrightness"
|
|
334
|
+
| "displayContrast"
|
|
335
|
+
| "keypadTones"
|
|
336
|
+
| "alertTones"
|
|
337
|
+
| "language"
|
|
338
|
+
| "powerManagementMode";
|
|
339
|
+
|
|
340
|
+
type EcrInfoKeys = "ecrApplication" | "eftApi" | "eftModule" | "os";
|
|
341
|
+
|
|
342
|
+
type GuidesKeys =
|
|
343
|
+
| "retail"
|
|
344
|
+
| "unattended"
|
|
345
|
+
| "advancedRetail"
|
|
346
|
+
| "banking"
|
|
347
|
+
| "petrol"
|
|
348
|
+
| "dialog"
|
|
349
|
+
| "remote"
|
|
350
|
+
| "gastro"
|
|
351
|
+
| "hospitality"
|
|
352
|
+
| "valueAddedServices"
|
|
353
|
+
| "austrianUseCases"
|
|
354
|
+
| "certification";
|
|
355
|
+
|
|
356
|
+
type ManagementStatusKeys = "closed" | "open" | "dialog";
|
|
357
|
+
type ReceiptRequestTypeKeys = "reprint" | "list";
|
|
358
|
+
type RecipientKeys = "merchant" | "cardholder" | "both";
|
|
359
|
+
type ThemeKeys = "six" | "swissPost";
|
|
360
|
+
type AdditionalInfoItemKeys =
|
|
361
|
+
| "mileage"
|
|
362
|
+
| "carNumber"
|
|
363
|
+
| "driverCode"
|
|
364
|
+
| "fleetId"
|
|
365
|
+
| "additionalInformation"
|
|
366
|
+
| "employeeNo"
|
|
367
|
+
| "costCenter"
|
|
368
|
+
| "projectNo"
|
|
369
|
+
| "licensePlate"
|
|
370
|
+
| "reference";
|
|
371
|
+
type BrandBarBrandKeys =
|
|
372
|
+
| "alipay"
|
|
373
|
+
| "amex"
|
|
374
|
+
| "aralRoutex"
|
|
375
|
+
| "aurora"
|
|
376
|
+
| "austroCard"
|
|
377
|
+
| "bancomat"
|
|
378
|
+
| "bcmc"
|
|
379
|
+
| "boncardPay"
|
|
380
|
+
| "boncardPoints"
|
|
381
|
+
| "bonus"
|
|
382
|
+
| "bonuscard"
|
|
383
|
+
| "bpRoutex"
|
|
384
|
+
| "brunschwig"
|
|
385
|
+
| "businessCard"
|
|
386
|
+
| "cash"
|
|
387
|
+
| "co2neutralCard"
|
|
388
|
+
| "conforama"
|
|
389
|
+
| "coopEkz"
|
|
390
|
+
| "coopMobile"
|
|
391
|
+
| "coopProntoCard"
|
|
392
|
+
| "cosyCard"
|
|
393
|
+
| "cup"
|
|
394
|
+
| "diners"
|
|
395
|
+
| "dinerClub"
|
|
396
|
+
| "diplomatkarte"
|
|
397
|
+
| "dkv"
|
|
398
|
+
| "eniRoutex"
|
|
399
|
+
| "eshellPrepaid"
|
|
400
|
+
| "esso"
|
|
401
|
+
| "euroShell"
|
|
402
|
+
| "fnac"
|
|
403
|
+
| "freiUndFlott"
|
|
404
|
+
| "giftc"
|
|
405
|
+
| "giftCard"
|
|
406
|
+
| "groupCard"
|
|
407
|
+
| "ipRoutex"
|
|
408
|
+
| "iq"
|
|
409
|
+
| "jcb"
|
|
410
|
+
| "jelmoliPaycard"
|
|
411
|
+
| "jet"
|
|
412
|
+
| "jgeschenkkarte"
|
|
413
|
+
| "jubinCardPetrol"
|
|
414
|
+
| "lebara"
|
|
415
|
+
| "loeb"
|
|
416
|
+
| "logPay"
|
|
417
|
+
| "lunchCheckCard"
|
|
418
|
+
| "lycaMobile"
|
|
419
|
+
| "maestro"
|
|
420
|
+
| "maestroCh"
|
|
421
|
+
| "masterCard"
|
|
422
|
+
| "mbudgetMc"
|
|
423
|
+
| "mcard"
|
|
424
|
+
| "mediaMarkt"
|
|
425
|
+
| "mergerCard"
|
|
426
|
+
| "migrolcard"
|
|
427
|
+
| "migros"
|
|
428
|
+
| "moveri"
|
|
429
|
+
| "mscompanyCard"
|
|
430
|
+
| "myOne"
|
|
431
|
+
| "novofleet"
|
|
432
|
+
| "omvRoutex"
|
|
433
|
+
| "paycard"
|
|
434
|
+
| "paycardF"
|
|
435
|
+
| "paycardApp"
|
|
436
|
+
| "payPal"
|
|
437
|
+
| "paySysGiftcard"
|
|
438
|
+
| "pharmacard"
|
|
439
|
+
| "phonecard"
|
|
440
|
+
| "postCard"
|
|
441
|
+
| "powerCard"
|
|
442
|
+
| "reka"
|
|
443
|
+
| "rekaLunch"
|
|
444
|
+
| "rekaRail"
|
|
445
|
+
| "salt"
|
|
446
|
+
| "sbbkarte"
|
|
447
|
+
| "shellMca"
|
|
448
|
+
| "staedtekarte"
|
|
449
|
+
| "statoilRoutex"
|
|
450
|
+
| "sunrise"
|
|
451
|
+
| "supercardPlus"
|
|
452
|
+
| "supercardVisa"
|
|
453
|
+
| "swissBonusCard"
|
|
454
|
+
| "swisscom"
|
|
455
|
+
| "twint"
|
|
456
|
+
| "utaFullService"
|
|
457
|
+
| "utaSelectCard"
|
|
458
|
+
| "valuemaster"
|
|
459
|
+
| "visa"
|
|
460
|
+
| "visaElectron"
|
|
461
|
+
| "vorteilsCard"
|
|
462
|
+
| "vpay"
|
|
463
|
+
| "weChat"
|
|
464
|
+
| "wirCard"
|
|
465
|
+
| "yallo"
|
|
466
|
+
| "postMobile";
|
|
467
|
+
type ProcessingDispositionKeys = "onEcr" | "onEft";
|
|
468
|
+
type HardwareTypeKeys =
|
|
469
|
+
| "terminal"
|
|
470
|
+
| "eftApplication"
|
|
471
|
+
| "pinPad"
|
|
472
|
+
| "contactReader"
|
|
473
|
+
| "contactlessReader"
|
|
474
|
+
| "magStripeReader"
|
|
475
|
+
| "wifiAdapter"
|
|
476
|
+
| "lanAdapter"
|
|
477
|
+
| "bluetoothAdapter"
|
|
478
|
+
| "mobileAdapter";
|
|
479
|
+
type CardProductTypeKeys = "debit" | "credit" | "commercial" | "prepaid" | "other";
|
|
480
|
+
type SecurityStatusKeys = "disabled" | "active" | "tampered";
|
|
481
|
+
type ThirdPartyAppIdKeys = "linklySlaveApp";
|
|
482
|
+
type TransactionReasonKeys = "installment" | "recurring" | "unscheduled" | "recurringFixed";
|
|
483
|
+
type NgvModeKeys = "mandatory" | "allowedWithFallback" | "notAllowed";
|
|
484
|
+
type CounterTypeKeys = "shift" | "balance";
|
|
485
|
+
type AccountTypeKeys = "cheque" | "savings" | "credit";
|
|
486
|
+
type ProtocolLevelKeys = "sixml2_2";
|
|
487
|
+
type ReceiptItemTypeKeys =
|
|
488
|
+
| "actId"
|
|
489
|
+
| "accPer"
|
|
490
|
+
| "acqId"
|
|
491
|
+
| "aid"
|
|
492
|
+
| "amount"
|
|
493
|
+
| "amountDcc"
|
|
494
|
+
| "amountOther"
|
|
495
|
+
| "amountReservation"
|
|
496
|
+
| "amountSaldo"
|
|
497
|
+
| "amountTip"
|
|
498
|
+
| "authCode"
|
|
499
|
+
| "authReslt"
|
|
500
|
+
| "authRespC"
|
|
501
|
+
| "authRespTextC"
|
|
502
|
+
| "brandName"
|
|
503
|
+
| "currency"
|
|
504
|
+
| "currencyDcc"
|
|
505
|
+
| "dccDisclaimer"
|
|
506
|
+
| "disclaimer"
|
|
507
|
+
| "exponent"
|
|
508
|
+
| "exponentDcc"
|
|
509
|
+
| "markupDcc"
|
|
510
|
+
| "markupExponentDcc"
|
|
511
|
+
| "cardNumberPrintableMerchant"
|
|
512
|
+
| "cardNumberPrintableCardholder"
|
|
513
|
+
| "rateDcc"
|
|
514
|
+
| "rateExponentDcc"
|
|
515
|
+
| "timeStampDate"
|
|
516
|
+
| "timeStampTime"
|
|
517
|
+
| "trmId"
|
|
518
|
+
| "trxRefNum"
|
|
519
|
+
| "trxSeqCnt"
|
|
520
|
+
| "posEntryMode"
|
|
521
|
+
| "cardExpiryDate"
|
|
522
|
+
| "cardNumberEnc"
|
|
523
|
+
| "ecrSeqCounter"
|
|
524
|
+
| "panReceiptDol"
|
|
525
|
+
| "panReceiptDolIndex"
|
|
526
|
+
| "preAuthorizationExpDate"
|
|
527
|
+
| "tenderName"
|
|
528
|
+
| "numberOfInstallments"
|
|
529
|
+
| "installmentDisclaimer"
|
|
530
|
+
| "originalAid"
|
|
531
|
+
| "originalCardNumberPrintable"
|
|
532
|
+
| "originalBrandName"
|
|
533
|
+
| "originalCardCountryCode"
|
|
534
|
+
| "originalTenderName"
|
|
535
|
+
| "originalTransRef"
|
|
536
|
+
| "amountInstallmentFee"
|
|
537
|
+
| "amountInstallmentTotal"
|
|
538
|
+
| "amountInstallmentFirst"
|
|
539
|
+
| "amountInstallmentOne"
|
|
540
|
+
| "interestInstallment"
|
|
541
|
+
| "markupDccRegulated"
|
|
542
|
+
| "markupExponentDccRegulated"
|
|
543
|
+
| "rateDccRegulated"
|
|
544
|
+
| "rateExponentDccRegulated"
|
|
545
|
+
| "keyPanReceiptIndex"
|
|
546
|
+
| "additionalMerchantData"
|
|
547
|
+
| "multiAccountIndex"
|
|
548
|
+
| "multiContractIndex"
|
|
549
|
+
| "merchantTid"
|
|
550
|
+
| "clerkIdentifier"
|
|
551
|
+
| "fuelDispenserNumber"
|
|
552
|
+
| "posdnumber"
|
|
553
|
+
| "receiptNumber"
|
|
554
|
+
| "shiftNumber"
|
|
555
|
+
| "cardProductType"
|
|
556
|
+
| "accountType"
|
|
557
|
+
| "surchargeAmount"
|
|
558
|
+
| "originalTrxRefNum"
|
|
559
|
+
| "signatureLine"
|
|
560
|
+
| "originalTransSeq"
|
|
561
|
+
| "balanceExpDate"
|
|
562
|
+
| "amountOfGoods"
|
|
563
|
+
| "amountDue"
|
|
564
|
+
| "amountTotal"
|
|
565
|
+
| "hostCardholderText"
|
|
566
|
+
| "hostMerchantText";
|
|
567
|
+
type ImageFileFormatKeys = "jpeg" | "png" | "bmp";
|
|
568
|
+
type PrintFormatKeys =
|
|
569
|
+
| "noPrint"
|
|
570
|
+
| "normal"
|
|
571
|
+
| "onDevice"
|
|
572
|
+
| "fieldsOnly"
|
|
573
|
+
| "onDeviceWithReceipt"
|
|
574
|
+
| "onDeviceWithFields";
|
|
575
|
+
type CustomerDataTypeKeys = "customerId" | "loyaltyBrandId" | "furtherInfo";
|
|
576
|
+
type LoyaltyFunctionTypeKeys = "init" | "update" | "deinit" | "query";
|
|
577
|
+
type ConnectionStatusKeys = "disconnected" | "loggedOut" | "loggedIn";
|
|
578
|
+
type AllowedAccountsKeys = "cheque" | "savings" | "credit";
|
|
579
|
+
type MobileTopupTypeKeys = "purchase" | "reversal";
|
|
580
|
+
type MerchantOptionTypeKeys =
|
|
581
|
+
| "additionalMerchantData"
|
|
582
|
+
| "multiAccountIndex"
|
|
583
|
+
| "multiContractIndex"
|
|
584
|
+
| "merchantTid"
|
|
585
|
+
| "clerkIdentifier"
|
|
586
|
+
| "fuelDispenserNumber"
|
|
587
|
+
| "posdnumber"
|
|
588
|
+
| "receiptNumber"
|
|
589
|
+
| "shiftNumber"
|
|
590
|
+
| "accountingDepartment"
|
|
591
|
+
| "accountingPeriod"
|
|
592
|
+
| "deviceType"
|
|
593
|
+
| "ktucode"
|
|
594
|
+
| "stationCode"
|
|
595
|
+
| "wsnumber"
|
|
596
|
+
| "voucherId"
|
|
597
|
+
| "dspMsgSuppressFlag";
|
|
598
|
+
type ProtocolTypeKeys = "sixml";
|
|
599
|
+
type OutcomeKeys = "successful" | "failed" | "partial";
|
|
600
|
+
type AdminFunctionsKeys =
|
|
601
|
+
| "login"
|
|
602
|
+
| "logout"
|
|
603
|
+
| "reconfig"
|
|
604
|
+
| "reboot"
|
|
605
|
+
| "softwareUpdate"
|
|
606
|
+
| "activate"
|
|
607
|
+
| "deactivate"
|
|
608
|
+
| "counterRequest"
|
|
609
|
+
| "reconciliation"
|
|
610
|
+
| "balance"
|
|
611
|
+
| "openDialogMode"
|
|
612
|
+
| "closeDialogMode"
|
|
613
|
+
| "transmitLog"
|
|
614
|
+
| "startReaderCleaning"
|
|
615
|
+
| "dccRates"
|
|
616
|
+
| "changeSettings"
|
|
617
|
+
| "receiptRequest"
|
|
618
|
+
| "closeReader"
|
|
619
|
+
| "openReader"
|
|
620
|
+
| "ejectCard"
|
|
621
|
+
| "openMaintenanceWindow"
|
|
622
|
+
| "closeMaintenanceWindow"
|
|
623
|
+
| "activateServiceMenu"
|
|
624
|
+
| "mobileTopupIssuerInfo";
|
|
625
|
+
type AgeCheckResultKeys = "ok" | "nok" | "noAgeCheckPerformed" | "notSupportedByBank";
|
|
626
|
+
type CvmKeys = "pin" | "pinSignature" | "signature" | "onDevice" | "noCvm" | "other";
|
|
627
|
+
type PrintFlagKeys =
|
|
628
|
+
| "suppressHeader"
|
|
629
|
+
| "suppressSignature"
|
|
630
|
+
| "suppressEcrInfo"
|
|
631
|
+
| "suppressEftInfo"
|
|
632
|
+
| "suppressFooter";
|
|
633
|
+
type RemoteFunctionsKeys = "screenshot" | "deviceMaintenance";
|
|
634
|
+
type MerchantActionKeys = "signature" | "none";
|
|
635
|
+
type AdjustmentResultKeys = "ok" | "failRequestToLate" | "failAmountToHigh";
|
|
636
|
+
type UpdateStatusKeys = "upToDate" | "runningNoReboot" | "runningReboot";
|
|
637
|
+
type ResponseTypeKeys = "positive" | "negative" | "cardRemoval" | "timeout";
|
|
638
|
+
type NonFinancialTransactionsKeys =
|
|
639
|
+
| "cancel"
|
|
640
|
+
| "balanceInquiry"
|
|
641
|
+
| "clientIdentification"
|
|
642
|
+
| "initTransaction"
|
|
643
|
+
| "holdCommit"
|
|
644
|
+
| "reservation"
|
|
645
|
+
| "adjustReservation"
|
|
646
|
+
| "cancelReservation"
|
|
647
|
+
| "loyaltyData"
|
|
648
|
+
| "startCheckout"
|
|
649
|
+
| "finishCheckout"
|
|
650
|
+
| "provideLoyaltyBasket"
|
|
651
|
+
| "provideVasResult"
|
|
652
|
+
| "accountVerification"
|
|
653
|
+
| "thirdPartyAppData"
|
|
654
|
+
| "ageCheck";
|
|
655
|
+
type ResourceParameterTypeKeys =
|
|
656
|
+
| "codeCheckType"
|
|
657
|
+
| "codeCheckKeyId"
|
|
658
|
+
| "codeCheckData"
|
|
659
|
+
| "regularDataQueryType"
|
|
660
|
+
| "regularData"
|
|
661
|
+
| "petrolCardData1"
|
|
662
|
+
| "petrolCardData2"
|
|
663
|
+
| "petrolCardData3"
|
|
664
|
+
| "activeReaders"
|
|
665
|
+
| "exponent"
|
|
666
|
+
| "keyModeF1"
|
|
667
|
+
| "keyModeF2"
|
|
668
|
+
| "keyModeF3"
|
|
669
|
+
| "pinRetryCounter"
|
|
670
|
+
| "aid";
|
|
671
|
+
type SleepModeStatusKeys = "enteringSleep" | "wakingUp";
|
|
672
|
+
type KernelTypeKeys =
|
|
673
|
+
| "kernelPure"
|
|
674
|
+
| "emvContact"
|
|
675
|
+
| "entryPoint"
|
|
676
|
+
| "kernel1"
|
|
677
|
+
| "kernel2"
|
|
678
|
+
| "kernel3"
|
|
679
|
+
| "kernel4"
|
|
680
|
+
| "kernel5"
|
|
681
|
+
| "kernel6"
|
|
682
|
+
| "kernel7"
|
|
683
|
+
| "kernel8";
|
|
684
|
+
type VasInfoTypeKeys =
|
|
685
|
+
| "altId"
|
|
686
|
+
| "trxMatch"
|
|
687
|
+
| "trxId"
|
|
688
|
+
| "trxIdentTime"
|
|
689
|
+
| "userAlias"
|
|
690
|
+
| "cardAlias"
|
|
691
|
+
| "agrDataToEcrindicator"
|
|
692
|
+
| "agrReqAddVasdataIndicator"
|
|
693
|
+
| "agrResDataToHstIndicator"
|
|
694
|
+
| "amtVasprg"
|
|
695
|
+
| "vasprgCtnr"
|
|
696
|
+
| "vasprgId"
|
|
697
|
+
| "vasprgName"
|
|
698
|
+
| "vasprgMtchId"
|
|
699
|
+
| "vasspecId"
|
|
700
|
+
| "dataToEcrind"
|
|
701
|
+
| "reqAddVasdataInd"
|
|
702
|
+
| "addVasdataComMd"
|
|
703
|
+
| "resDataToHstInd"
|
|
704
|
+
| "addVasdata"
|
|
705
|
+
| "supportVer";
|
|
706
|
+
type BrandModeKeys = "all" | "selected" | "off";
|
|
707
|
+
type CouponRejectionReasonKeys =
|
|
708
|
+
| "alreadyRedeemed"
|
|
709
|
+
| "articleDelisted"
|
|
710
|
+
| "campaignExpired"
|
|
711
|
+
| "campaignCancelled"
|
|
712
|
+
| "other";
|
|
713
|
+
type ThirdPartyAppsKeys = "linklySlaveApp";
|
|
714
|
+
type VasInfoListTypeKeys = "wolMatch" | "wolProgram" | "twint";
|
|
715
|
+
type ReasonKeys =
|
|
716
|
+
| "ok"
|
|
717
|
+
| "corr"
|
|
718
|
+
| "stop"
|
|
719
|
+
| "cardReader"
|
|
720
|
+
| "autoConfirm"
|
|
721
|
+
| "timeout"
|
|
722
|
+
| "codeOk"
|
|
723
|
+
| "codeNok"
|
|
724
|
+
| "pinOk"
|
|
725
|
+
| "pinNok"
|
|
726
|
+
| "f1"
|
|
727
|
+
| "f2"
|
|
728
|
+
| "f3"
|
|
729
|
+
| "otherKey";
|
|
730
|
+
type ReceiptTypeKeys =
|
|
731
|
+
| "activateCard"
|
|
732
|
+
| "adjustReservation"
|
|
733
|
+
| "balanceInquiry"
|
|
734
|
+
| "cashAdvance"
|
|
735
|
+
| "cancelReservation"
|
|
736
|
+
| "credit"
|
|
737
|
+
| "confirmReservation"
|
|
738
|
+
| "finalizePurchase"
|
|
739
|
+
| "load"
|
|
740
|
+
| "preAuthorization"
|
|
741
|
+
| "purchase"
|
|
742
|
+
| "purchaseForcedAcceptance"
|
|
743
|
+
| "purchaseMailOrdered"
|
|
744
|
+
| "purchasePhoneAuthorized"
|
|
745
|
+
| "purchasePhoneOrdered"
|
|
746
|
+
| "purchaseReservation"
|
|
747
|
+
| "purchaseWithCashback"
|
|
748
|
+
| "reservation"
|
|
749
|
+
| "reversal"
|
|
750
|
+
| "giro"
|
|
751
|
+
| "combined"
|
|
752
|
+
| "authorizeCredit"
|
|
753
|
+
| "authorizeDeposit"
|
|
754
|
+
| "clientIdRequest"
|
|
755
|
+
| "accountVerification"
|
|
756
|
+
| "funding"
|
|
757
|
+
| "refunding"
|
|
758
|
+
| "unload";
|
|
759
|
+
type TokenPanTypeKeys = "gts" | "bnr2" | "other";
|
|
760
|
+
type CardReaderStatusKeys =
|
|
761
|
+
| "cardReaderClosed"
|
|
762
|
+
| "cardManuallyEntered"
|
|
763
|
+
| "cardSwiped"
|
|
764
|
+
| "cardNotRemoved"
|
|
765
|
+
| "cardPresented"
|
|
766
|
+
| "cardReaderEmpty"
|
|
767
|
+
| "cardInserted"
|
|
768
|
+
| "cardEjected";
|
|
769
|
+
type ConnectionModeKeys = "broadcast" | "onFixIp";
|
|
770
|
+
type MaintenanceTypeKeys = "cleanReaders" | "calibrateTouchScreen" | "transmitTeld";
|
|
771
|
+
type CardReaderKeys = "icc" | "cl" | "ms";
|
|
772
|
+
type FinancialTransactionsKeys =
|
|
773
|
+
| "purchase"
|
|
774
|
+
| "credit"
|
|
775
|
+
| "reversal"
|
|
776
|
+
| "commit"
|
|
777
|
+
| "rollback"
|
|
778
|
+
| "preAuthorization"
|
|
779
|
+
| "finalizePurchase"
|
|
780
|
+
| "amtAdjustment"
|
|
781
|
+
| "debtRecovery"
|
|
782
|
+
| "cashAdvance"
|
|
783
|
+
| "purchaseForcedAcceptance"
|
|
784
|
+
| "purchaseWithCashback"
|
|
785
|
+
| "purchasePhoneAuthorized"
|
|
786
|
+
| "purchasePhoneOrdered"
|
|
787
|
+
| "purchaseMailOrdered"
|
|
788
|
+
| "giro"
|
|
789
|
+
| "combined"
|
|
790
|
+
| "authorizeCredit"
|
|
791
|
+
| "authorizeDeposit"
|
|
792
|
+
| "purchaseReservation"
|
|
793
|
+
| "purchaseReservationPhoneAuthorized"
|
|
794
|
+
| "loadVoucher"
|
|
795
|
+
| "collectPoints"
|
|
796
|
+
| "activateCard"
|
|
797
|
+
| "load"
|
|
798
|
+
| "unload"
|
|
799
|
+
| "funding"
|
|
800
|
+
| "refunding"
|
|
801
|
+
| "mobileTopupPurchase"
|
|
802
|
+
| "mobileTopupReversal";
|
|
803
|
+
type StatusFunctionsKeys =
|
|
804
|
+
| "featureRequest"
|
|
805
|
+
| "terminalStatus"
|
|
806
|
+
| "systemInformation"
|
|
807
|
+
| "applicationInformation"
|
|
808
|
+
| "hardwareInformation"
|
|
809
|
+
| "keepAlive"
|
|
810
|
+
| "licenseChanged"
|
|
811
|
+
| "vasInfo"
|
|
812
|
+
| "error"
|
|
813
|
+
| "changeLanguage"
|
|
814
|
+
| "keyPress"
|
|
815
|
+
| "configurationChanged"
|
|
816
|
+
| "wakeUp"
|
|
817
|
+
| "transactionInfoRequest";
|
|
818
|
+
type DialogFunctionsKeys = "showSignatureCapture" | "showDialog" | "sendCardCommand" | "printOnTerminal";
|
|
819
|
+
type PaymentProtocolKeys = "ep2" | "ev" | "vm" | "v3cxml" | "ctap" | "other";
|
|
820
|
+
type TransactionStatusKeys =
|
|
821
|
+
| "busy"
|
|
822
|
+
| "idle"
|
|
823
|
+
| "waitForCard"
|
|
824
|
+
| "readingCard"
|
|
825
|
+
| "applicationSelection"
|
|
826
|
+
| "waitForProceed"
|
|
827
|
+
| "dccSelection"
|
|
828
|
+
| "enterTip"
|
|
829
|
+
| "pinEntry"
|
|
830
|
+
| "signatureCapture"
|
|
831
|
+
| "processing"
|
|
832
|
+
| "waitForCommit"
|
|
833
|
+
| "accountSelection";
|
|
834
|
+
type FunctionHintKeys =
|
|
835
|
+
| "purchase"
|
|
836
|
+
| "credit"
|
|
837
|
+
| "reversal"
|
|
838
|
+
| "preAuthorization"
|
|
839
|
+
| "finalizePurchase"
|
|
840
|
+
| "cashAdvance"
|
|
841
|
+
| "purchaseForcedAcceptance"
|
|
842
|
+
| "purchaseWithCashback"
|
|
843
|
+
| "purchasePhoneAuthorized"
|
|
844
|
+
| "purchasePhoneOrdered"
|
|
845
|
+
| "purchaseMailOrdered"
|
|
846
|
+
| "accountVerification"
|
|
847
|
+
| "giro"
|
|
848
|
+
| "combined"
|
|
849
|
+
| "authorizeCredit"
|
|
850
|
+
| "authorizeDeposit"
|
|
851
|
+
| "reservation"
|
|
852
|
+
| "loadVoucher"
|
|
853
|
+
| "collectPoints"
|
|
854
|
+
| "load";
|
|
855
|
+
type CurrencyTypeKeys = "local" | "foreign" | "dcc";
|
|
856
|
+
type PosEntryModeKeys =
|
|
857
|
+
| "unspecified"
|
|
858
|
+
| "manual"
|
|
859
|
+
| "magStripeIncomplete"
|
|
860
|
+
| "barCode"
|
|
861
|
+
| "ocr"
|
|
862
|
+
| "icc"
|
|
863
|
+
| "iccPan"
|
|
864
|
+
| "referenceBased"
|
|
865
|
+
| "bluetoothLowEnergy"
|
|
866
|
+
| "qrcOnTerminal"
|
|
867
|
+
| "qrcOnMobile"
|
|
868
|
+
| "tokenBasedEcommerce"
|
|
869
|
+
| "magStripe"
|
|
870
|
+
| "magStripeFallback"
|
|
871
|
+
| "magStripeFallbackAgain"
|
|
872
|
+
| "magStripeFallbackIccFail"
|
|
873
|
+
| "emergencyDataEntry"
|
|
874
|
+
| "ecommerce"
|
|
875
|
+
| "ctlessIcc"
|
|
876
|
+
| "ctlessMagStrige"
|
|
877
|
+
| "ctlessIccPan";
|
|
878
|
+
|
|
879
|
+
interface Constants {
|
|
880
|
+
TransactionType: Record<TransactionTypeKeys, EnumValue>;
|
|
881
|
+
Currency: Record<CurrencyKeys, Currency>;
|
|
882
|
+
RequestType: Record<RequestTypeKeys, EnumValue>;
|
|
883
|
+
SettingType: Record<SettingTypeKeys, EnumValue>;
|
|
884
|
+
EcrInfoType: Record<EcrInfoKeys, EnumValue>;
|
|
885
|
+
Guides: Record<GuidesKeys, EnumValue>;
|
|
886
|
+
ManagementStatus: Record<ManagementStatusKeys, EnumValue>;
|
|
887
|
+
ReceiptRequestType: Record<ReceiptRequestTypeKeys, EnumValue>;
|
|
888
|
+
Recipient: Record<RecipientKeys, EnumValue>;
|
|
889
|
+
Theme: Record<ThemeKeys, EnumValue>;
|
|
890
|
+
AdditionalInfoItem: Record<AdditionalInfoItemKeys, EnumValue>;
|
|
891
|
+
BrandBarBrand: Record<BrandBarBrandKeys, EnumValue>;
|
|
892
|
+
ProcessingDisposition: Record<ProcessingDispositionKeys, EnumValue>;
|
|
893
|
+
HardwareType: Record<HardwareTypeKeys, EnumValue>;
|
|
894
|
+
CardProductType: Record<CardProductTypeKeys, EnumValue>;
|
|
895
|
+
SecurityStatus: Record<SecurityStatusKeys, EnumValue>;
|
|
896
|
+
ThirdPartyAppId: Record<ThirdPartyAppIdKeys, EnumValue>;
|
|
897
|
+
TransactionReason: Record<TransactionReasonKeys, EnumValue>;
|
|
898
|
+
NgvMode: Record<NgvModeKeys, EnumValue>;
|
|
899
|
+
CounterType: Record<CounterTypeKeys, EnumValue>;
|
|
900
|
+
AccountType: Record<AccountTypeKeys, EnumValue>;
|
|
901
|
+
ProtocolLevel: Record<ProtocolLevelKeys, EnumValue>;
|
|
902
|
+
ReceiptItemType: Record<ReceiptItemTypeKeys, EnumValue>;
|
|
903
|
+
ImageFileFormat: Record<ImageFileFormatKeys, EnumValue>;
|
|
904
|
+
PrintFormat: Record<PrintFormatKeys, EnumValue>;
|
|
905
|
+
CustomerDataType: Record<CustomerDataTypeKeys, EnumValue>;
|
|
906
|
+
LoyaltyFunctionType: Record<LoyaltyFunctionTypeKeys, EnumValue>;
|
|
907
|
+
ConnectionStatus: Record<ConnectionStatusKeys, EnumValue>;
|
|
908
|
+
AllowedAccounts: Record<AllowedAccountsKeys, EnumValue>;
|
|
909
|
+
MobileTopupType: Record<MobileTopupTypeKeys, EnumValue>;
|
|
910
|
+
MerchantOptionType: Record<MerchantOptionTypeKeys, EnumValue>;
|
|
911
|
+
ProtocolType: Record<ProtocolTypeKeys, EnumValue>;
|
|
912
|
+
Outcome: Record<OutcomeKeys, EnumValue>;
|
|
913
|
+
AdminFunctions: Record<AdminFunctionsKeys, EnumValue>;
|
|
914
|
+
AgeCheckResult: Record<AgeCheckResultKeys, EnumValue>;
|
|
915
|
+
Cvm: Record<CvmKeys, EnumValue>;
|
|
916
|
+
PrintFlag: Record<PrintFlagKeys, EnumValue>;
|
|
917
|
+
RemoteFunctions: Record<RemoteFunctionsKeys, EnumValue>;
|
|
918
|
+
MerchantAction: Record<MerchantActionKeys, EnumValue>;
|
|
919
|
+
AdjustmentResult: Record<AdjustmentResultKeys, EnumValue>;
|
|
920
|
+
UpdateStatus: Record<UpdateStatusKeys, EnumValue>;
|
|
921
|
+
ResponseType: Record<ResponseTypeKeys, EnumValue>;
|
|
922
|
+
NonFinancialTransactions: Record<NonFinancialTransactionsKeys, EnumValue>;
|
|
923
|
+
ResourceParameterType: Record<ResourceParameterTypeKeys, EnumValue>;
|
|
924
|
+
SleepModeStatus: Record<SleepModeStatusKeys, EnumValue>;
|
|
925
|
+
KernelType: Record<KernelTypeKeys, EnumValue>;
|
|
926
|
+
VasInfoType: Record<VasInfoTypeKeys, EnumValue>;
|
|
927
|
+
BrandMode: Record<BrandModeKeys, EnumValue>;
|
|
928
|
+
CouponRejectionReason: Record<CouponRejectionReasonKeys, EnumValue>;
|
|
929
|
+
ThirdPartyApps: Record<ThirdPartyAppsKeys, EnumValue>;
|
|
930
|
+
VasInfoListType: Record<VasInfoListTypeKeys, EnumValue>;
|
|
931
|
+
Reason: Record<ReasonKeys, EnumValue>;
|
|
932
|
+
ReceiptType: Record<ReceiptTypeKeys, EnumValue>;
|
|
933
|
+
TokenPanType: Record<TokenPanTypeKeys, EnumValue>;
|
|
934
|
+
CardReaderStatus: Record<CardReaderStatusKeys, EnumValue>;
|
|
935
|
+
ConnectionMode: Record<ConnectionModeKeys, EnumValue>;
|
|
936
|
+
MaintenanceType: Record<MaintenanceTypeKeys, EnumValue>;
|
|
937
|
+
CardReader: Record<CardReaderKeys, EnumValue>;
|
|
938
|
+
FinancialTransactions: Record<FinancialTransactionsKeys, EnumValue>;
|
|
939
|
+
ResultCode: Enumeration;
|
|
940
|
+
StatusFunctions: Record<StatusFunctionsKeys, EnumValue>;
|
|
941
|
+
DialogFunctions: Record<DialogFunctionsKeys, EnumValue>;
|
|
942
|
+
PaymentProtocol: Record<PaymentProtocolKeys, EnumValue>;
|
|
943
|
+
TransactionStatus: Record<TransactionStatusKeys, EnumValue>;
|
|
944
|
+
FunctionHint: Record<FunctionHintKeys, EnumValue>;
|
|
945
|
+
CurrencyType: Record<CurrencyTypeKeys, EnumValue>;
|
|
946
|
+
PosEntryMode: Record<PosEntryModeKeys, EnumValue>;
|
|
947
|
+
ResourceId: Enumeration;
|
|
948
|
+
}
|
|
949
|
+
/* ========================= Terminal Status =============================== */
|
|
950
|
+
|
|
951
|
+
export interface TerminalStatus {
|
|
952
|
+
displayContent: string[];
|
|
953
|
+
connectionStatus: EnumValue;
|
|
954
|
+
managementStatus: EnumValue;
|
|
955
|
+
cardReaderStatus: EnumValue;
|
|
956
|
+
transactionStatus: EnumValue;
|
|
957
|
+
receiptInformation: boolean;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
const constants: Constants;
|
|
961
|
+
|
|
962
|
+
class TimException extends Error {
|
|
963
|
+
additionalErrorInfo: string | undefined;
|
|
964
|
+
errorMessage: string;
|
|
965
|
+
errorText: string;
|
|
966
|
+
localizedMessage: string;
|
|
967
|
+
nativeError: string | undefined;
|
|
968
|
+
ppInfo: string | undefined;
|
|
969
|
+
printData: string | undefined;
|
|
970
|
+
rejectedBasket: string | undefined;
|
|
971
|
+
resultCode: EnumValue;
|
|
972
|
+
constructor();
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
class Receipt {
|
|
976
|
+
recipient: EnumValue;
|
|
977
|
+
value: string;
|
|
978
|
+
constructor();
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
class PrintData {
|
|
982
|
+
receiptItems: string[];
|
|
983
|
+
receipts: Receipt[];
|
|
984
|
+
constructor();
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
interface TimEvent {
|
|
988
|
+
requestType: string;
|
|
989
|
+
exception?: TimException;
|
|
990
|
+
terminal: Terminal;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
interface TransactionResponse {
|
|
994
|
+
additionalInfo: undefined;
|
|
995
|
+
amount: Amount;
|
|
996
|
+
amountDcc: undefined;
|
|
997
|
+
amountDue: undefined;
|
|
998
|
+
amountLoyaltyCashback: undefined;
|
|
999
|
+
amountOther: undefined;
|
|
1000
|
+
amountSaldo: undefined;
|
|
1001
|
+
amountSurcharge: undefined;
|
|
1002
|
+
amountTip: undefined;
|
|
1003
|
+
basket: undefined;
|
|
1004
|
+
printData: PrintData;
|
|
1005
|
+
transactionInformation: any;
|
|
1006
|
+
transactionType: EnumValue;
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
class DefaultTerminalListener {
|
|
1010
|
+
constructor();
|
|
1011
|
+
terminalStatusChanged(terminal: any): void;
|
|
1012
|
+
requestCompleted(event: TimEvent, data: any): void;
|
|
1013
|
+
connectCompleted(event: TimEvent): void;
|
|
1014
|
+
transactionCompleted(event: TimEvent, data: TransactionResponse): void;
|
|
1015
|
+
balanceCompleted(event: TimEvent, data: BalanceResponse): void;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
class Counters {
|
|
1019
|
+
toString(): string;
|
|
1020
|
+
constructor();
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
class BalanceResponse {
|
|
1024
|
+
counters: timapi.Counters;
|
|
1025
|
+
printData: timapi.PrintData;
|
|
1026
|
+
toString(): string;
|
|
1027
|
+
constructor();
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
class Amount {
|
|
1031
|
+
currency: Currency;
|
|
1032
|
+
exponent: number;
|
|
1033
|
+
value: number;
|
|
1034
|
+
constructor(amount: number, currency: Currency);
|
|
1035
|
+
}
|
|
1036
|
+
class EcrInfo {
|
|
1037
|
+
type: EnumValue;
|
|
1038
|
+
name: string;
|
|
1039
|
+
manufacturerName: string;
|
|
1040
|
+
version: string;
|
|
1041
|
+
constructor();
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
class Guides {
|
|
1045
|
+
constructor();
|
|
1046
|
+
add(key: EnumValue): void;
|
|
1047
|
+
}
|
|
1048
|
+
class Terminal {
|
|
1049
|
+
_listenersLocked: boolean;
|
|
1050
|
+
_listeners: DefaultTerminalListener[];
|
|
1051
|
+
_terminalStatus: TerminalStatus | undefined;
|
|
1052
|
+
|
|
1053
|
+
constructor(settings: any);
|
|
1054
|
+
setPosId(id: string): void;
|
|
1055
|
+
getTerminalStatus(): TerminalStatus;
|
|
1056
|
+
setUserId(id: number | string): void;
|
|
1057
|
+
addListener(listener: DefaultTerminalListener): void;
|
|
1058
|
+
addEcrData(info: EcrInfo): void;
|
|
1059
|
+
|
|
1060
|
+
disconnectAsync(): void;
|
|
1061
|
+
connectAsync(): void;
|
|
1062
|
+
loginAsync(): void;
|
|
1063
|
+
logoutAsync(): void;
|
|
1064
|
+
activateAsync(): void;
|
|
1065
|
+
deactivateAsync(): void;
|
|
1066
|
+
commitAsync(): void;
|
|
1067
|
+
rollbackAsync(): void;
|
|
1068
|
+
balanceAsync(): void;
|
|
1069
|
+
reconfigAsync(): void;
|
|
1070
|
+
systemInformationAsync(): void;
|
|
1071
|
+
hardwareInformationAsync(): void;
|
|
1072
|
+
receiptRequestAsync(requestType: string): void;
|
|
1073
|
+
softwareUpdateAsync(): void;
|
|
1074
|
+
reconciliationAsync(): void;
|
|
1075
|
+
changeSettingsAsync(settings: Map<timapi.EnumValue, string>): void;
|
|
1076
|
+
applicationInformationAsync(): void;
|
|
1077
|
+
cancel(): void;
|
|
1078
|
+
// TODO:
|
|
1079
|
+
setTransactionData(trxData: TransactionData): void;
|
|
1080
|
+
transactionAsync(txnType: EnumValue, amount: Amount): void;
|
|
1081
|
+
transactionTipAsync(txnType: EnumValue, amount: Amount, amountTip?: Amount): void;
|
|
1082
|
+
dispose(): void;
|
|
1083
|
+
getTransactionData(): TransactionData | undefined;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
class TerminalSettings {
|
|
1087
|
+
/**
|
|
1088
|
+
* IP address of the EFT terminal.
|
|
1089
|
+
*/
|
|
1090
|
+
connectionIPString: string;
|
|
1091
|
+
/**
|
|
1092
|
+
* Listening Port of the EFT terminal.
|
|
1093
|
+
*/
|
|
1094
|
+
connectionIPPort: number;
|
|
1095
|
+
fetchBrands: boolean;
|
|
1096
|
+
autoCommit: boolean | undefined;
|
|
1097
|
+
enableKeepAlive: boolean;
|
|
1098
|
+
partialCommit: boolean | undefined;
|
|
1099
|
+
dcc: boolean;
|
|
1100
|
+
tipAllowed: boolean;
|
|
1101
|
+
partialApproval: boolean;
|
|
1102
|
+
integratorId: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* Enable persistent state if supported. Default is false.
|
|
1105
|
+
*/
|
|
1106
|
+
persistentState: boolean;
|
|
1107
|
+
guides: Guides;
|
|
1108
|
+
constructor();
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
class TransactionData {
|
|
1112
|
+
/** Whether Dynamic Currency Conversion is allowed for the transaction. */
|
|
1113
|
+
dccAllowed?: boolean;
|
|
1114
|
+
/** Date of the original transaction (used for referenced/follow-up transactions). */
|
|
1115
|
+
trxOriginalDate?: TimeDate;
|
|
1116
|
+
/** ECR sequence counter. */
|
|
1117
|
+
ecrSeqCounter?: number;
|
|
1118
|
+
/** Whether partial approval is allowed. */
|
|
1119
|
+
partialApprovalAllowed?: boolean;
|
|
1120
|
+
/** ECR transaction reference. */
|
|
1121
|
+
transRef?: string;
|
|
1122
|
+
/** Terminal transaction sequence number — references the original sale for a reversal. */
|
|
1123
|
+
transSeq?: string;
|
|
1124
|
+
/** Card reference token. */
|
|
1125
|
+
cardRef?: string;
|
|
1126
|
+
/** Acquirer id. */
|
|
1127
|
+
acqId?: number;
|
|
1128
|
+
/** Acquirer transaction reference. Prefer {@link setAcqTransRef}. */
|
|
1129
|
+
acqTransRef?: string;
|
|
1130
|
+
/** Terminal transaction reference. */
|
|
1131
|
+
trmTransRef?: string;
|
|
1132
|
+
/** Whether tipping is allowed for the transaction. */
|
|
1133
|
+
tipAllowed?: boolean;
|
|
1134
|
+
/** Phone authorization code. */
|
|
1135
|
+
phoneAuthCode?: string;
|
|
1136
|
+
/** Cardholder/terminal language. */
|
|
1137
|
+
language?: string;
|
|
1138
|
+
/** Multi-currency flag. */
|
|
1139
|
+
multiCurrencyFlag?: boolean;
|
|
1140
|
+
/** NGV mode. One of the `Constants.NgvMode` enum values. */
|
|
1141
|
+
ngvMode?: EnumValue;
|
|
1142
|
+
/** NGV clearing delay. */
|
|
1143
|
+
ngvClearingDelay?: number;
|
|
1144
|
+
/** Card verification code (CVC2/CVV2). */
|
|
1145
|
+
cvc2?: string;
|
|
1146
|
+
/** Application expiration date. */
|
|
1147
|
+
appExpirationDate?: TimeDate;
|
|
1148
|
+
/** SIX transaction reference number. Prefer {@link setSixTrxRefNum}. */
|
|
1149
|
+
sixTrxRefNum?: string;
|
|
1150
|
+
/** Whether installment payment is allowed. */
|
|
1151
|
+
installmentAllowed?: boolean;
|
|
1152
|
+
/** Deferred authorization indicator. */
|
|
1153
|
+
deferredAuthInd?: boolean;
|
|
1154
|
+
/** Sub-transactions making up this transaction. */
|
|
1155
|
+
subTransactions: SubTransaction[];
|
|
1156
|
+
/** Allowed account types. Each is a `Constants.AllowedAccounts` enum value. */
|
|
1157
|
+
allowedAccounts?: EnumValue[];
|
|
1158
|
+
/** Tokenized PAN. */
|
|
1159
|
+
tokenPan?: string;
|
|
1160
|
+
/** Token PAN type. One of the `Constants.TokenPanType` enum values. */
|
|
1161
|
+
tokenPanType?: EnumValue;
|
|
1162
|
+
/** Age to verify for age-restricted goods. */
|
|
1163
|
+
ageToCheck?: number;
|
|
1164
|
+
/** Authorization code. */
|
|
1165
|
+
authCode?: string;
|
|
1166
|
+
/** Forced POS entry modes. */
|
|
1167
|
+
forcePosEntryModes?: EnumValue[];
|
|
1168
|
+
/** Allowed application (brand) list. */
|
|
1169
|
+
allowedAppList?: EnumValue[];
|
|
1170
|
+
constructor(copyTrxData?: TransactionData);
|
|
1171
|
+
/** Build {@link acqTransRef} from an acquirer id and transaction reference number. */
|
|
1172
|
+
setAcqTransRef(acqId: number, trxRefNo: number): void;
|
|
1173
|
+
/** Build {@link sixTrxRefNum} from an acquirer id and transaction reference number. */
|
|
1174
|
+
setSixTrxRefNum(acqId: number, trxRefNum: number): void;
|
|
1175
|
+
toString(): string;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
/** Sub-transaction entry within {@link TransactionData.subTransactions}. */
|
|
1179
|
+
class SubTransaction {
|
|
1180
|
+
constructor();
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
/** Terminal date/time value used across the API. */
|
|
1184
|
+
class TimeDate {
|
|
1185
|
+
year: number;
|
|
1186
|
+
month: number;
|
|
1187
|
+
day: number;
|
|
1188
|
+
hour: number;
|
|
1189
|
+
minute: number;
|
|
1190
|
+
second: number;
|
|
1191
|
+
constructor();
|
|
1192
|
+
toDate(): Date;
|
|
1193
|
+
toStringRegular(): string;
|
|
1194
|
+
toStringReceiptDate(): string;
|
|
1195
|
+
toStringReceiptTime(): string;
|
|
1196
|
+
toString(): string;
|
|
1197
|
+
static fromDate(date: Date): TimeDate;
|
|
1198
|
+
static fromNow(): TimeDate;
|
|
1199
|
+
static copy(timeDate: TimeDate): TimeDate;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
class LogRecord {
|
|
1203
|
+
file: string;
|
|
1204
|
+
level: { name: string; _value: number };
|
|
1205
|
+
line: 16;
|
|
1206
|
+
message: string;
|
|
1207
|
+
method: string;
|
|
1208
|
+
parameters: string[];
|
|
1209
|
+
stackTrace: string[];
|
|
1210
|
+
thread: string;
|
|
1211
|
+
timestamp: string;
|
|
1212
|
+
constructor();
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
|
|
1216
|
+
/**
|
|
1217
|
+
* this function "onTimApiReady" will be called as soon as the TimApi is ready
|
|
1218
|
+
*/
|
|
1219
|
+
let onTimApiReady: (() => void) | undefined;
|
|
1220
|
+
let onTimApiLog: (message: string) => void;
|
|
1221
|
+
let onTimApiPublishLogRecord: (record: timapi.LogRecord) => void;
|
|
1222
|
+
}
|