Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 | 9x 9x 9x | import Constants from "../../constants"; import TransactionType from "../../core/enums/transactionType"; import CardOperation from "../../core/types/cardOperation"; import CrossBorderTransfer from "../../core/types/crossBorderTransfer"; import CrossBorderTransferFee from "../../core/types/crossBorderTransferFee"; import DeskWithdrawal from "../../core/types/deskWithdrawal"; import PaymentDetails from "../../core/types/paymentDetails"; import StandardFee from "../../core/types/standardFee"; import StandardTransfer from "../../core/types/standardTransfer"; import TransactionData from '../../core/types/transactionData'; import { PaymentDetailsTestCase, PaymentDetailsTestCaseData } from "../../core/types/paymentDetailsTestCase"; export interface GmailPaymentDetailsTestCaseData extends PaymentDetailsTestCaseData { attachmentDataBody: string; expectedTransactionDataBody: Partial<TransactionData>; expectedPaymentDetails: PaymentDetails; }; export const gmailPaymentDetailsTestCases: PaymentDetailsTestCase<GmailPaymentDetailsTestCaseData> = { 'UNKNOWN': { attachmentDataBody: ` <td nowrap="" align="left">xxx<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">4591TATB0</td> </tr> <tr> <td align="right" nowrap=""></td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.UNKNOWN, paymentDetailsRaw: [ 'xxx' ], additionalDetailsRaw: ['4591TATB0'] }, expectedPaymentDetails: Constants.defaultPaymentDetails }, 'CARD_OPERATION > ПОС': { attachmentDataBody: ` <td nowrap="" align="left">Операция с карта<br><br>ПОС 4.48 BGN авт.код:833023-GLOBAL RETAIL HOLDING EOO/VARNA/PAN:4402****5296/CT:<wbr>01<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">4591TATB0</td> </tr> <tr> <td align="right" nowrap=""></td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.CARD_OPERATION, paymentDetailsRaw: ['ПОС 4.48 BGN авт.код:833023-GLOBAL RETAIL HOLDING EOO/VARNA/PAN:4402****5296/CT:01'], additionalDetailsRaw: ['4591TATB0'], }, expectedPaymentDetails: { recipient: 'GLOBAL RETAIL HOLDING EOO', instrument: 'ПОС', sum: '4.48', currency: 'BGN' } as CardOperation }, 'CARD_OPERATION > Плащане /импринтер/ + multiline txn type at EOL': { attachmentDataBody: ` <td nowrap="" align="left">та<br>Плащане /импринтер/ 4.92 BGN авт.код:931226 - EATALYS / SOFIA/PAN:5169****6113/CT:08 /Операция с кар<br>Плащане /импринтер/ 4.92 BGN авт.код:931226 - EATALYS / SOFIA/PAN:5169****6113/CT:08<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">4591TATB0</td> </tr> <tr> <td align="right" nowrap=""></td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.CARD_OPERATION, paymentDetailsRaw: [ 'Плащане /импринтер/ 4.92 BGN авт.код:931226 - EATALYS / SOFIA/PAN:5169****6113/CT:08', 'Плащане /импринтер/ 4.92 BGN авт.код:931226 - EATALYS / SOFIA/PAN:5169****6113/CT:08' ], additionalDetailsRaw: ['4591TATB0'] }, expectedPaymentDetails: { recipient: 'EATALYS', instrument: 'Плащане /импринтер/', sum: '4.92', currency: 'BGN' } as CardOperation }, 'CARD_OPERATION > Invalid body': { attachmentDataBody: ` <td nowrap="" align="left">Операция с карта<br><br>xxx<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">4591TATB0</td> </tr> <tr> <td align="right" nowrap=""></td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.CARD_OPERATION, paymentDetailsRaw: ['xxx'], additionalDetailsRaw: ['4591TATB0'], }, expectedPaymentDetails: Constants.defaultPaymentDetails }, 'CROSS_BORDER_TRANSFER': { attachmentDataBody: ` <td nowrap="" align="left">, BUNQNL2AXXX , NL48BUNQ4950396806, , ,/Издаване на превод във валута<br>AZV-Treehouse Distribution, Ord.Ref: NOTPROVIDED, HEDG, , T-535685 , GPP Ref.: 2243120123, , 1.9585<br><br></td> <td align="center"></td>`, expectedTransactionDataBody: { transactionType: TransactionType.CROSS_BORDER_TRANSFER, paymentDetailsRaw: ['AZV-Treehouse Distribution, Ord.Ref: NOTPROVIDED, HEDG, , T-535685 , GPP Ref.: 2243120123, , 1.9585, BUNQNL2AXXX , NL48BUNQ4950396806, , ,'], additionalDetailsRaw: [] }, expectedPaymentDetails: { recipient: 'Treehouse Distribution', recipientIban: 'NL48BUNQ4950396806', description: 'Ord.Ref: NOTPROVIDED, HEDG, T-535685, GPP Ref.: 2243120123, 1.9585' } as CrossBorderTransfer }, 'CROSS_BORDER_TRANSFER > Invalid body': { attachmentDataBody: ` <td nowrap="" align="left">/Издаване на превод във валута<br><br><br></td> <td align="center"></td>`, expectedTransactionDataBody: { transactionType: TransactionType.CROSS_BORDER_TRANSFER, paymentDetailsRaw: [], additionalDetailsRaw: [] }, expectedPaymentDetails: Constants.defaultPaymentDetails }, 'CROSS_BORDER_TRANSFER_FEE': { attachmentDataBody: ` <td nowrap="" align="left"><br>AZV-Commission for GPP transaction Ref.: 2283100163/Такси издадени валутни преводи<br><br></td> <td align="center"></td>`, expectedTransactionDataBody: { transactionType: TransactionType.CROSS_BORDER_TRANSFER_FEE, paymentDetailsRaw: ['AZV-Commission for GPP transaction Ref.: 2283100163'], additionalDetailsRaw: [] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'N/A', description: 'Commission for GPP transaction Ref.: 2283100163', } as CrossBorderTransferFee }, 'DESK_WITHDRAWAL': { attachmentDataBody: ` <td nowrap="nowrap" align="left"><br />ТЕГЛ.НА КАСА /Теглене на пари на каса от клнт с-к<br />ТЕГЛ.НА КАСА ИВАН ИВАНОВ ИВАНОВ<br /></td> <td align="center"> <table width="100%"> <tr> <td align="right" nowrap="nowrap">501149563</td> </tr> <tr> <td align="right" nowrap="nowrap"></td> </tr> </table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.DESK_WITHDRAWAL, paymentDetailsRaw: [ 'ТЕГЛ.НА КАСА', 'ТЕГЛ.НА КАСА ИВАН ИВАНОВ ИВАНОВ' ], additionalDetailsRaw: ['501149563'] }, expectedPaymentDetails: { recipient: 'ИВАН ИВАНОВ ИВАНОВ', recipientIban: 'N/A', description: 'ТЕГЛ.НА КАСА' } as DeskWithdrawal }, // Standard Fees 'PERIODIC_FEE': { attachmentDataBody: ` <td nowrap="" align="left">Периодична такса<br><br><br></td> <td align="center"></td>`, expectedTransactionDataBody: { transactionType: TransactionType.PERIODIC_FEE, paymentDetailsRaw: [], additionalDetailsRaw: [] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'N/A', description: 'N/A', } as StandardFee }, 'INTERBANK_TRANSFER_FEE': { attachmentDataBody: ` <td nowrap="" align="left">Такса за междубанков превод<br><br><br></td> <td align="center"></td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTERBANK_TRANSFER_FEE, paymentDetailsRaw: [], additionalDetailsRaw: [] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'N/A', description: 'N/A', } as StandardFee }, 'TRANSFER_FEE': { attachmentDataBody: ` <td nowrap="" align="left">Такса за превод<br><br><br></td> <td align="center"></td>`, expectedTransactionDataBody: { transactionType: TransactionType.TRANSFER_FEE, paymentDetailsRaw: [], additionalDetailsRaw: [] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'N/A', description: 'N/A', } as StandardFee }, 'INTERNAL_TRANSFER_FEE': { attachmentDataBody: ` <td nowrap="" align="left">Такса за вътрешнобанков превод<br><br><br></td> <td align="center"></td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTERNAL_TRANSFER_FEE, paymentDetailsRaw: [], additionalDetailsRaw: [] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'N/A', description: 'N/A', } as StandardFee }, 'WITHDRAWAL_FEE': { attachmentDataBody: ` <td nowrap="" align="left"><br>ТЕГЛ.НА КАСА /Такса за теглене над определена сума<br><br></td> <td align="center"></td>`, expectedTransactionDataBody: { transactionType: TransactionType.WITHDRAWAL_FEE, paymentDetailsRaw: ['ТЕГЛ.НА КАСА'], additionalDetailsRaw: [] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'N/A', description: 'ТЕГЛ.НА КАСА', } as StandardFee }, // Standard Transfers 'INTEREST_PAYMENT': { attachmentDataBody: ` <td nowrap="" align="left">Плащане на лихва<br><br>Плащане на лихва 70001234567820 BGN 1234.56<br></td> <td align="center"> <table> <tbody><tr> <td align="right" nowrap="">NA</td> </tr> <tr> <td align="right" nowrap="">UNICREDIT BULBANK</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTEREST_PAYMENT, paymentDetailsRaw: ['70001234567820 BGN 1234.56'], additionalDetailsRaw: [ 'NA', 'UNICREDIT BULBANK' ] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'NA', description: '70001234567820 BGN 1234.56', } as StandardTransfer }, 'INTEREST_TAX': { attachmentDataBody: ` <td nowrap="" align="left">Удържане на данък в/у лихва<br><br>Удържане на данък в/у лихва 70001234567820 BGN 1234.56<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">NA</td> </tr> <tr> <td align="right" nowrap="">UNICREDIT BULBANK</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTEREST_TAX, paymentDetailsRaw: ['70001234567820 BGN 1234.56'], additionalDetailsRaw: [ 'NA', 'UNICREDIT BULBANK' ] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'NA', description: '70001234567820 BGN 1234.56' } as StandardTransfer }, 'PRINCIPAL_REPAYMENT': { attachmentDataBody: ` <td nowrap="" align="left">Погасяване на главница<br><br>Погасяване на главница 70001234567820 BGN 1234.56<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">NA</td> </tr> <tr> <td align="right" nowrap="">UNICREDIT BULBANK</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.PRINCIPAL_REPAYMENT, paymentDetailsRaw: ['70001234567820 BGN 1234.56'], additionalDetailsRaw: [ 'NA', 'UNICREDIT BULBANK' ] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'NA', description: '70001234567820 BGN 1234.56' } as StandardTransfer }, 'INSURANCE_PREMIUM': { attachmentDataBody: ` <td nowrap="" align="left">Застрахователна премия<br><br>Застрахователна премия 70001234567820 BGN 1234.56<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">NA</td> </tr> <tr> <td align="right" nowrap="">UNICREDIT BULBANK</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INSURANCE_PREMIUM, paymentDetailsRaw: ['70001234567820 BGN 1234.56'], additionalDetailsRaw: [ 'NA', 'UNICREDIT BULBANK' ] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'NA', description: '70001234567820 BGN 1234.56' } as StandardTransfer }, 'INTEREST_REPAYMENT': { attachmentDataBody: ` <td nowrap="" align="left">Погасяв.на л-ва за редовна главница<br><br>Погасяв.на л-ва за редовна главница 70001234567820 BGN 1234.56<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">NA</td> </tr> <tr> <td align="right" nowrap="">UNICREDIT BULBANK</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTEREST_REPAYMENT, paymentDetailsRaw: ['70001234567820 BGN 1234.56'], additionalDetailsRaw: [ 'NA', 'UNICREDIT BULBANK' ] }, expectedPaymentDetails: { recipient: 'UNICREDIT BULBANK', recipientIban: 'NA', description: '70001234567820 BGN 1234.56' } as StandardTransfer }, 'INTERNAL_TRANSFER > Вътрешно банков превод Payroll': { attachmentDataBody: ` <td nowrap="" align="left">Вътрешно банков превод Payroll<br><br>Example description<br></td> <td align="center"> <table> <tbody><tr> <td align="right" nowrap="">BG69UNCR70001512345693</td> </tr> <tr> <td align="right" nowrap="">Example account name</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTERNAL_TRANSFER, paymentDetailsRaw: ['Example description'], additionalDetailsRaw: [ 'BG69UNCR70001512345693', 'Example account name' ] }, expectedPaymentDetails: { recipient: 'Example account name', recipientIban: 'BG69UNCR70001512345693', description: 'Example description', } as StandardTransfer }, 'INTERNAL_TRANSFER > Вътрешнобанков превод FC': { attachmentDataBody: ` <td nowrap="" align="left">Вътрешнобанков превод FC<br><br>savings transfer<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">BG52UNCR70001234567892</td> </tr> <tr> <td align="right" nowrap="">ИВАН ИВАНОВ ИВАНОВ</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTERNAL_TRANSFER, paymentDetailsRaw: ['savings transfer'], additionalDetailsRaw: [ 'BG52UNCR70001234567892', 'ИВАН ИВАНОВ ИВАНОВ' ] }, expectedPaymentDetails: { recipient: 'ИВАН ИВАНОВ ИВАНОВ', recipientIban: 'BG52UNCR70001234567892', description: 'savings transfer' } as StandardTransfer }, 'INTERNAL_TRANSFER > Вътрешнобанков превод': { attachmentDataBody: ` <td nowrap="" align="left">Вътрешнобанков превод<br><br><br></td> <td align="center"> <table> <tbody><tr> <td align="right" nowrap="">BG52UNCR70001234567892</td> </tr> <tr> <td align="right" nowrap="">ИВАН ИВАНОВ ИВАНОВ</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTERNAL_TRANSFER, paymentDetailsRaw: [], additionalDetailsRaw: [ 'BG52UNCR70001234567892', 'ИВАН ИВАНОВ ИВАНОВ' ] }, expectedPaymentDetails: { recipient: 'ИВАН ИВАНОВ ИВАНОВ', recipientIban: 'BG52UNCR70001234567892', description: '' } as StandardTransfer }, 'INTERNAL_TRANSFER > Издаден вътр.банков превод': { attachmentDataBody: ` <td nowrap="" align="left">Издаден вътр.банков превод<br><br>Задължения на Иван Иванов към дата: 1.12.2022 г.<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">BG81UNCR70001234567820</td> </tr> <tr> <td align="right" nowrap="">Example account name</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTERNAL_TRANSFER, paymentDetailsRaw: ['Задължения на Иван Иванов към дата: 1.12.2022 г.'], additionalDetailsRaw: [ 'BG81UNCR70001234567820', 'Example account name' ] }, expectedPaymentDetails: { recipient: 'Example account name', recipientIban: 'BG81UNCR70001234567820', description: 'Задължения на Иван Иванов към дата: 1.12.2022 г.' } as StandardTransfer }, 'INTERBANK_TRANSFER': { attachmentDataBody: ` <td nowrap="" align="left">Платежно нареждане извън банката<br><br>Example description</td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">BG87ESPY40041234567810</td> </tr> <tr> <td align="right" nowrap="">Example account name</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.INTERBANK_TRANSFER, paymentDetailsRaw: ['Example description'], additionalDetailsRaw: [ 'BG87ESPY40041234567810', 'Example account name' ] }, expectedPaymentDetails: { recipient: 'Example account name', recipientIban: 'BG87ESPY40041234567810', description: 'Example description' } as StandardTransfer }, 'UTILITY_PAYMENT > Комунално плащане mBanking': { attachmentDataBody: ` <td nowrap="" align="left">Комунално плащане mBanking<br><br>ЧЕЗ единични плащания 310123456795 271234596/09.04.2020/09.04.<wbr>2020<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">BG81UNCR763044444CEZEL</td> </tr> <tr> <td align="right" nowrap="">ЧЕЗ ЕЛЕКТРО БЪЛГАРИЯ АД</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.UTILITY_PAYMENT, paymentDetailsRaw: ['ЧЕЗ единични плащания 310123456795 271234596/09.04.2020/09.04.2020'], additionalDetailsRaw: [ 'BG81UNCR763044444CEZEL', 'ЧЕЗ ЕЛЕКТРО БЪЛГАРИЯ АД' ] }, expectedPaymentDetails: { recipient: 'ЧЕЗ ЕЛЕКТРО БЪЛГАРИЯ АД', recipientIban: 'BG81UNCR763044444CEZEL', description: 'ЧЕЗ единични плащания 310123456795 271234596/09.04.2020/09.04.2020' } as StandardTransfer }, 'UTILITY_PAYMENT > Комунално плащане': { attachmentDataBody: ` <td nowrap="" align="left">Комунално плaщане<br><br>Софийска Вода АД аб.номер 1001234588,2000123493<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">BG29UNCR76301005587757</td> </tr> <tr> <td align="right" nowrap="">УНИКРЕДИТ БУЛБАНК СВЕТА НЕДЕЛЯ</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.UTILITY_PAYMENT, paymentDetailsRaw: ['Софийска Вода АД аб.номер 1001234588,2000123493'], additionalDetailsRaw: [ 'BG29UNCR76301005587757', 'УНИКРЕДИТ БУЛБАНК СВЕТА НЕДЕЛЯ' ] }, expectedPaymentDetails: { recipient: 'УНИКРЕДИТ БУЛБАНК СВЕТА НЕДЕЛЯ', recipientIban: 'BG29UNCR76301005587757', description: 'Софийска Вода АД аб.номер 1001234588,2000123493', } as StandardTransfer }, 'UTILITY_PAYMENT > Комунално плащане BBO': { attachmentDataBody: ` <td nowrap="" align="left">Комунално плащане BBO<br><br>ЧЕЗ единични плащания 310123456795 271234596/09.07.2021/09.07.<wbr>2021<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">BG81UNCR763044444CEZEL</td> </tr> <tr> <td align="right" nowrap="">ЧЕЗ ЕЛЕКТРО БЪЛГАРИЯ АД</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.UTILITY_PAYMENT, paymentDetailsRaw: [ 'ЧЕЗ единични плащания 310123456795 271234596/09.07.2021/09.07.2021' ], additionalDetailsRaw: [ 'BG81UNCR763044444CEZEL', 'ЧЕЗ ЕЛЕКТРО БЪЛГАРИЯ АД' ] }, expectedPaymentDetails: { recipient: 'ЧЕЗ ЕЛЕКТРО БЪЛГАРИЯ АД', recipientIban: 'BG81UNCR763044444CEZEL', description: 'ЧЕЗ единични плащания 310123456795 271234596/09.07.2021/09.07.2021' } as StandardTransfer }, 'RECEIVED_INTERBANK_TRANSFER': { attachmentDataBody: ` <td nowrap="" align="left">Получен междубанков превод<br><br>BGCOD RETURN 213123442 .<br></td> <td align="center"> <table> <tbody><tr> <td align="right" nowrap="">BG95INGB91451000000815</td> </tr> <tr> <td align="right" nowrap="">ABOUT YOU SE . CO. KG</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.RECEIVED_INTERBANK_TRANSFER, paymentDetailsRaw: ['BGCOD RETURN 213123442 .'], additionalDetailsRaw: [ 'BG95INGB91451000000815', 'ABOUT YOU SE . CO. KG' ] }, expectedPaymentDetails: { recipient: 'ABOUT YOU SE . CO. KG', recipientIban: 'BG95INGB91451000000815', description: 'BGCOD RETURN 213123442 .' } as StandardTransfer }, 'RECEIVED_INTERNAL_PAYMENT': { attachmentDataBody: ` <td nowrap="" align="left">Получен вътр.банков превод<br><br>Example description<br></td> <td align="center"> <table> <tbody><tr> <td align="right" nowrap="">BG69UNCR70001512345693</td> </tr> <tr> <td align="right" nowrap="">Example account name</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.RECEIVED_INTERNAL_PAYMENT, paymentDetailsRaw: ['Example description'], additionalDetailsRaw: [ 'BG69UNCR70001512345693', 'Example account name' ] }, expectedPaymentDetails: { recipient: 'Example account name', recipientIban: 'BG69UNCR70001512345693', description: 'Example description', } as StandardTransfer }, 'PERIODIC_PAYMENT': { attachmentDataBody: ` <td nowrap="" align="left">Периодично плащане<br><br>Винетен стикер - СА1234KK<br></td> <td align="center"> <table width="100%"> <tbody><tr> <td align="right" nowrap="">BG60SOMB91301024910104</td> </tr> <tr> <td align="right" nowrap="">ИВАН ИВАНОВ ИВАНОВ</td> </tr> </tbody></table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.PERIODIC_PAYMENT, paymentDetailsRaw: ['Винетен стикер - СА1234KK'], additionalDetailsRaw: [ 'BG60SOMB91301024910104', 'ИВАН ИВАНОВ ИВАНОВ' ] }, expectedPaymentDetails: { recipient: 'ИВАН ИВАНОВ ИВАНОВ', recipientIban: 'BG60SOMB91301024910104', description: 'Винетен стикер - СА1234KK', } as StandardTransfer }, 'RECEIVED_CROSS_BORDER_TRANSFER': { attachmentDataBody: ` <td nowrap="nowrap" align="left">а<br />AZV-1/IVAN IVANOV, IZPRATENO OT REVOLUT , GPP Ref.: 4166201234, , , REVOLT21XXX , LT473250088091593028,/Получен превод във валут<br /><br /></td> <td align="center" /> `, expectedTransactionDataBody: { transactionType: TransactionType.RECEIVED_CROSS_BORDER_TRANSFER, paymentDetailsRaw: ['AZV-1/IVAN IVANOV, IZPRATENO OT REVOLUT , GPP Ref.: 4166201234, , , REVOLT21XXX , LT473250088091593028,'], additionalDetailsRaw: [] }, expectedPaymentDetails: { recipient: '1/IVAN IVANOV', recipientIban: 'LT473250088091593028', description: 'IZPRATENO OT REVOLUT, GPP Ref.: 4166201234' } as CrossBorderTransfer }, 'TAX_PAYMENT': { attachmentDataBody: ` <td nowrap="nowrap" align="left">Превод данъчно задължение<br /><br />Плащане на данъци Цариград Партиден/регистрационен номер: 4210H24505<br /></td> <td align="center"> <table width="100%"> <tr> <td align="right" nowrap="nowrap">BG29UNCR76301005587757</td> </tr> <tr> <td align="right" nowrap="nowrap">УниКредит Булбанк АД</td> </tr> </table> </td>`, expectedTransactionDataBody: { transactionType: TransactionType.TAX_PAYMENT, paymentDetailsRaw: ['Плащане на данъци Цариград Партиден/регистрационен номер: 4210H24505'], additionalDetailsRaw: [ 'BG29UNCR76301005587757', 'УниКредит Булбанк АД' ] }, expectedPaymentDetails: { recipient: 'УниКредит Булбанк АД', recipientIban: 'BG29UNCR76301005587757', description: 'Плащане на данъци Цариград Партиден/регистрационен номер: 4210H24505', } as StandardTransfer } }; |