All files / src/components/Disputes/DisputesList constants.tsx

100% Statements 12/12
100% Branches 0/0
100% Functions 0/0
100% Lines 12/12

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 67833x                                                                             33x       33x                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 33x     33x     33x   33x                                         33x     33x   33x     33x     33x  
export const caseStatusesMap = [
  {
    value: "open",
    label: "Open",
    description: "Dispute is active and awaiting further action.",
  },
 
  {
    value: "under_review",
    label: "Under Review",
    description: "Currently being reviewed by RS2 or internal team.",
  },
  {
    value: "won",
    label: "Won",
    description: `A dispute is won when:\n- a chargeback reversal came in the offload`,
  },
  {
    value: "lost",
    label: "Lost",
    description: `A dispute is lost when:\n- a chargeback is accepted (action)\n- pre-arbitration is accepted (action)`,
  },
  {
    value: "pending_on_card_scheme",
    label: "Pending on Card Scheme",
    description: "Response sent; waiting on card scheme decision.",
  },
  {
    value: "expired",
    label: "Expired",
    description: "Response window closed; no further action possible.",
  },
  {
    value: "all",
    label: "All",
    description: "Catch-all or default view including all statuses.",
  },
];
 
export const refundTypesMap = {
  mastercard: "Mastercard Claims",
};
 
export const caseTypesMap = [
  {
    id: 1,
    value: "retrieval_request",
    label: "{REFUND_TYPE} Refund",
    fallbackValue: "008",
    description:
      "Request to retrieve documentation for a specific transaction, in this stage we might want to refund the transaction",
  },
  {
    id: 2,
    value: "fraud_add",
    label: "Fraud - Add",
    fallbackValue: "015",
    description: "Add new fraud case reported by the merchant or system.",
  },
  {
    id: 3,
    value: "fraud_change",
    label: "Fraud - Change",
    fallbackValue: "016",
    description: "Changes to an existing fraud record.",
  },
  {
    id: 4,
    value: "fraud_delete",
    label: "Fraud - Delete",
    fallbackValue: "017",
    description: "Delete an existing fraud report.",
  },
  {
    id: 5,
    value: "fraud_confirmation",
    label: "Fraud - Confirmation",
    fallbackValue: "018",
    description: "Confirm a fraud case has occurred.",
  },
  {
    id: 6,
    value: "fraud_duplicate",
    label: "Fraud - Duplicate",
    fallbackValue: "019",
    description: "Duplicate fraud entry received.",
  },
  {
    id: 7,
    value: "fraud_prestatus",
    label: "Fraud - Prestatus",
    fallbackValue: "020",
    description: "Fraud report awaiting confirmation or validation.",
  },
  {
    id: 8,
    value: "fraud_re_activate",
    label: "Fraud - Reactivate",
    fallbackValue: "021",
    description: "Reactivation of a closed fraud case.",
  },
  {
    id: 9,
    value: "fraud_add_duplicate",
    label: "Fraud - Add Duplicate",
    fallbackValue: "022",
    description: "Combination of duplicate and new fraud report.",
  },
  {
    id: 10,
    value: "fraud_warning",
    label: "Fraud - Warning",
    fallbackValue: "023",
    description: "Warning notice for potentially fraudulent activity.",
  },
  {
    id: 11,
    value: "fraud_amount_lt_1usd",
    label: "Fraud - Amount < $1",
    fallbackValue: "025",
    description: "Fraud flagged for small amount transaction (< $1).",
  },
  {
    id: 12,
    value: "mc_match_inquiry",
    label: "Match Inquiry",
    fallbackValue: "037",
    description: "Issuer or scheme match inquiry (e.g. Mastercard MATCH).",
  },
  {
    id: 13,
    value: "1st_chargeback",
    label: "First Chargeback",
    fallbackValue: "001",
    description: "Initial chargeback raised by the issuer.",
  },
  {
    id: 14,
    value: "2nd_chargeback",
    label: "Second Chargeback",
    fallbackValue: "002",
    description: "Second chargeback due to unresolved first dispute.",
  },
  {
    id: 15,
    value: "re_presentment",
    label: "Representment",
    fallbackValue: "003",
    description: "Merchant’s representment to recover chargebacked funds.",
  },
  {
    id: 16,
    value: "fee_chargeback",
    label: "Chargeback Fee",
    fallbackValue: "006",
    description: "Chargeback relating to fees or service costs.",
  },
  {
    id: 17,
    value: "fraud_chgbck_right",
    label: "Fraud - Chargeback Right",
    fallbackValue: "024",
    description: "Fraud chargeback where merchant holds liability.",
  },
  {
    id: 18,
    value: "fee_2nd_chargeback",
    label: "Fee - Second Chargeback",
    fallbackValue: "027",
    description: "Fee-based second chargeback attempt.",
  },
  {
    id: 19,
    value: "new_presentment",
    label: "New Presentment",
    fallbackValue: "035",
    description: "Re-posting of an original transaction.",
  },
  {
    id: 20,
    value: "chargeback_transfer",
    label: "Chargeback Transfer",
    fallbackValue: "040",
    description: "Chargeback transfer between issuers/acquirers.",
  },
  {
    id: 21,
    value: "split_presentment",
    label: "Split Presentment",
    fallbackValue: "046",
    description: "A presentment broken into multiple parts.",
  },
  {
    id: 22,
    value: "fraudchargebacks",
    label: "Fraud Chargebacks",
    fallbackValue: "049",
    description: "Chargeback triggered by a suspected fraud case.",
  },
  {
    id: 23,
    value: "manual_chargeback",
    label: "Manual Chargeback",
    fallbackValue: "079",
    description: "Manual entry of a chargeback case.",
  },
  {
    id: 24,
    value: "pre_arb_response",
    label: "Pre-Arbitration Response",
    fallbackValue: "066",
    description: "Response submitted by merchant during pre-arbitration.",
  },
  {
    id: 25,
    value: "pre_arbitration",
    label: "Pre-Arbitration",
    fallbackValue: "091",
    description: "Case escalated to pre-arbitration after chargeback.",
  },
  {
    id: 26,
    value: "pre_arb_inquiry",
    label: "Pre-Arbitration Inquiry",
    fallbackValue: "095",
    description: "Issuer inquiry prior to pre-arbitration escalation.",
  },
  {
    id: 27,
    value: "representment_req",
    label: "Representment Request",
    fallbackValue: "098",
    description: "Formal request to represent a transaction again.",
  },
  {
    id: 28,
    value: "pre_arb_decision",
    label: "Pre-Arbitration Decision",
    fallbackValue: "099",
    description: "Final outcome or status of a pre-arbitration case.",
  },
  {
    id: 29,
    value: "financial_pre_arbitr",
    label: "Financial Pre-Arbitration",
    fallbackValue: "105",
    description: "Financial dispute in pre-arbitration phase.",
  },
  {
    id: 30,
    value: "representment_advice",
    label: "Representment Advice",
    fallbackValue: "303",
    description: "Advice related to a representment case.",
  },
  {
    id: 31,
    value: "fraudacqloss",
    label: "Fraud - Acquirer Loss",
    fallbackValue: "047",
    description: "Loss recorded by the acquiring bank due to fraud.",
  },
  {
    id: 32,
    value: "fraudissloss",
    label: "Fraud - Issuer Loss",
    fallbackValue: "048",
    description: "Loss recorded by the issuing bank due to fraud.",
  },
  {
    id: 33,
    value: "arbitration_request",
    label: "Arbitration Request",
    fallbackValue: "064",
    description: "Request to initiate arbitration review.",
  },
  {
    id: 34,
    value: "arbitration",
    label: "Arbitration",
    fallbackValue: "090",
    description: "Case escalated to arbitration phase.",
  },
  {
    id: 35,
    value: "arbitration_response",
    label: "Arbitration Response",
    fallbackValue: "096",
    description: "Response action within arbitration workflow.",
  },
  {
    id: 36,
    value: "arbitration_decision",
    label: "Arbitration Decision",
    fallbackValue: "100",
    description: "Final decision issued by arbitration authority.",
  },
  {
    id: 37,
    value: "representment_fail",
    label: "Representment Failed",
    fallbackValue: "403",
    description: "Representment was attempted but failed.",
  },
  {
    id: 38,
    value: "incoming_pre_comp",
    label: "Pre-Compliance (Incoming)",
    fallbackValue: "902",
    description: "Pre-compliance request received from scheme.",
  },
  {
    id: 39,
    value: "outgoing_pre_comp",
    label: "Pre-Compliance (Outgoing)",
    fallbackValue: "416",
    description: "Outgoing pre-compliance initiated by acquirer.",
  },
  {
    id: 40,
    value: "invalid_response",
    label: "Invalid Response",
    fallbackValue: "005",
    description: "Response received was invalid or not processable.",
  },
  {
    id: 41,
    value: "fee_collection",
    label: "Fee - Collection",
    fallbackValue: "007",
    description: "Fee collection initiated on merchant account.",
  },
  {
    id: 42,
    value: "rejects",
    label: "Rejected",
    fallbackValue: "013",
    description: "General rejection due to rule violation or error.",
  },
  {
    id: 43,
    value: "fee_resubmission",
    label: "Fee - Resubmission",
    fallbackValue: "026",
    description: "Resubmission of fee-related chargeback.",
  },
  {
    id: 44,
    value: "payment_rejects",
    label: "Payment Rejected",
    fallbackValue: "043",
    description: "Payment rejected during processing.",
  },
  {
    id: 45,
    value: "settlement_reject",
    label: "Settlement Rejected",
    fallbackValue: "050",
    description: "Settlement rejected due to issue in processing.",
  },
  {
    id: 46,
    value: "manual_match",
    label: "Manual Match",
    fallbackValue: "085",
    description: "Manual match entry for disputed transaction.",
  },
  {
    id: 47,
    value: "manual_retentry",
    label: "Manual Return Entry",
    fallbackValue: "086",
    description: "Manual input of return transaction entry.",
  },
  {
    id: 48,
    value: "manual_cbkentry",
    label: "Manual Chargeback Entry",
    fallbackValue: "087",
    description: "Manual input of chargeback entry.",
  },
  {
    id: 49,
    value: "payment_info_reject",
    label: "Payment Info Rejected",
    fallbackValue: "088",
    description: "Rejected due to missing or incorrect payment info.",
  },
  {
    id: 50,
    value: "payment_tran_reject",
    label: "Payment Transaction Rejected",
    fallbackValue: "089",
    description: "Rejected during transaction validation step.",
  },
  {
    id: 51,
    value: "incoming_compliance",
    label: "Compliance (Incoming)",
    fallbackValue: "093",
    description: "Formal compliance process initiated by issuer.",
  },
  {
    id: 52,
    value: "collaboration_req",
    label: "Collaboration Request",
    fallbackValue: "103",
    description: "Request for case collaboration (supporting docs).",
  },
  {
    id: 53,
    value: "fee_coll_advice",
    label: "Fee - Collection Advice",
    fallbackValue: "307",
    description: "Advice related to fee collection or deduction.",
  },
  {
    id: 54,
    value: "fulfillment_failure",
    label: "Fulfillment Failed",
    fallbackValue: "404",
    description: "Failure during document or data fulfillment.",
  },
  {
    id: 55,
    value: "fee_coll_failure",
    label: "Fee Collection Failed",
    fallbackValue: "407",
    description: "Fee collection failed to process or settle.",
  },
  {
    id: 56,
    value: "reversal_failure",
    label: "Reversal Failed",
    fallbackValue: "409",
    description: "Reversal of a transaction failed.",
  },
  {
    id: 57,
    value: "unblock_risk_reject",
    label: "Unblock Risk Rejected",
    fallbackValue: "412",
    description: "Rejected due to risk unblocking restrictions.",
  },
  {
    id: 58,
    value: "outgoing_compliance",
    label: "Compliance (Outgoing)",
    fallbackValue: "417",
    description: "Formal compliance initiated by acquirer.",
  },
  {
    id: 59,
    value: "fulfillment",
    label: "Fulfillment",
    fallbackValue: "004",
    description: "Document or information fulfillment initiated.",
  },
  {
    id: 60,
    value: "reversal",
    label: "Reversal",
    fallbackValue: "009",
    description: "Reversal action on a transaction by merchant/acquirer.",
  },
  {
    id: 61,
    value: "fulfillment_fee",
    label: "Fulfillment Fee",
    fallbackValue: "010",
    description: "Fee related to document fulfillment or effort.",
  },
  {
    id: 62,
    value: "funds_disbursement",
    label: "Funds Disbursement",
    fallbackValue: "011",
    description: "Funds distributed to merchant or third party.",
  },
  {
    id: 63,
    value: "transfer",
    label: "Transfer",
    fallbackValue: "013",
    description: "Funds transferred between accounts or parties.",
  },
  {
    id: 64,
    value: "reprocess_batch",
    label: "Reprocess Batch",
    fallbackValue: "014",
    description: "Transaction batch reprocessed due to failure.",
  },
  {
    id: 65,
    value: "source_transfer",
    label: "Source Transfer",
    fallbackValue: "030",
    description: "Transfer from original to new source account.",
  },
  {
    id: 66,
    value: "amend_client_number",
    label: "Amend Client Number",
    fallbackValue: "031",
    description: "Edit to client number in transaction.",
  },
  {
    id: 67,
    value: "amend_card_number",
    label: "Amend Card Number",
    fallbackValue: "032",
    description: "Edit to card number on file.",
  },
  {
    id: 68,
    value: "return_to_merchant",
    label: "Return to Merchant",
    fallbackValue: "033",
    description: "Returned transaction to merchant.",
  },
  {
    id: 69,
    value: "reverse_file",
    label: "Reverse File",
    fallbackValue: "034",
    description: "Reverse of transaction file submitted.",
  },
  {
    id: 70,
    value: "balance_transfer",
    label: "Balance Transfer",
    fallbackValue: "038",
    description: "Transfer of balance to/from merchant.",
  },
  {
    id: 71,
    value: "payment_history_adj",
    label: "Payment History Adjustment",
    fallbackValue: "039",
    description: "Adjustment to payment history data.",
  },
  {
    id: 72,
    value: "amend_trandate",
    label: "Amend Transaction Date",
    fallbackValue: "041",
    description: "Transaction date was edited or corrected.",
  },
  {
    id: 73,
    value: "amend_auth_code",
    label: "Amend Auth Code",
    fallbackValue: "042",
    description: "Auth code modified in transaction history.",
  },
  {
    id: 74,
    value: "payment_tran_adj",
    label: "Payment Transaction Adjustment",
    fallbackValue: "044",
    description: "Adjustment of transaction line item.",
  },
  {
    id: 75,
    value: "transaction_return",
    label: "Transaction Return",
    fallbackValue: "054",
    description: "Return of a previously completed transaction.",
  },
  {
    id: 76,
    value: "amend_tran_time",
    label: "Amend Transaction Time",
    fallbackValue: "063",
    description: "Edit to recorded transaction time.",
  },
  {
    id: 77,
    value: "payment_adjustment",
    label: "Payment Adjustment",
    fallbackValue: "071",
    description: "Adjustment made to full payment record.",
  },
  {
    id: 78,
    value: "notification_report",
    label: "Notification Report",
    fallbackValue: "072",
    description: "Report to notify stakeholders of an event.",
  },
  {
    id: 79,
    value: "ammend_eci_value",
    label: "Amend ECI Value",
    fallbackValue: "080",
    description: "Update to 3DS or ECI value in transaction.",
  },
  {
    id: 80,
    value: "sundry_advice",
    label: "Sundry Advice",
    fallbackValue: "094",
    description: "Non-standard advice related to transaction.",
  },
  {
    id: 81,
    value: "chargeback_reversal",
    label: "Chargeback Reversal",
    fallbackValue: "101",
    description: "Reversal of a previously recorded chargeback.",
  },
  {
    id: 82,
    value: "fulfillment_advice",
    label: "Fulfillment Advice",
    fallbackValue: "304",
    description: "Advice related to document fulfillment.",
  },
  {
    id: 83,
    value: "reversal_advice",
    label: "Reversal Advice",
    fallbackValue: "309",
    description: "Advice related to reversal decision.",
  },
  {
    id: 84,
    value: "followup",
    label: "Follow-up",
    fallbackValue: "413",
    description: "Follow-up entry or message from merchant/operator.",
  },
];
 
export const ACCEPT_CHARGEBACK_DESCRIPTION =
  "If you accept this chargeback, the dispute will be closed. Processing by RS2 may take some time. Do you want to proceed?";
 
export const ACCEPT_PRE_ARBITRATION_DESCRIPTION =
  "If you accept this pre-arbitration, the dispute will be closed. Processing by RS2 may take some time. Do you want to proceed?";
 
export const ACCEPT_CHARGEBACK_DESCRIPTION_WORLDPAY =
  "If you accept this chargeback, the dispute will be closed. Processing by Worldpay may take some time. Do you want to proceed?";
 
export const actionsMap = {
  "First Chargeback": {
    label: "Accept Chargeback",
    action: "chargeback_accepted",
    description: ACCEPT_CHARGEBACK_DESCRIPTION,
    value: "chargeback",
  },
  "Second Chargeback": {
    label: "Accept Chargeback",
    action: "chargeback_accepted",
    description: ACCEPT_CHARGEBACK_DESCRIPTION,
    value: "chargeback",
  },
  "Pre-Arbitration": {
    label: "Accept Pre-Arbitration",
    action: "pre_arbitration_accepted",
    description: ACCEPT_PRE_ARBITRATION_DESCRIPTION,
    value: "pre-arbitration",
  },
};
 
export const ROWS_PER_PAGE = 100;
 
export const autoGeneratedEvidenceRegex =
  /Evidence (PDF|JPEG|PNG) submitted automatically/i;
 
export const NOTE_MAX_LENGTH = 1024;
 
export const RISK_TOGGLE_TOOLTIP_TEXT =
  "By accepting risk, you acknowledge that the response deadline may have passed. RS2 will attempt to submit the dispute reply, but card schemes may reject it";
 
export const RISK_TOGGLE_TOOLTIP_TEXT_WORLDPAY =
  "By accepting risk, you acknowledge that the response deadline may have passed. Worldpay will attempt to submit the dispute reply, but card schemes may reject it.";