All files / src/constants stringConstants.ts

100% Statements 43/43
77.77% Branches 7/9
100% Functions 2/2
100% Lines 41/41

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      312x   312x 312x     312x   312x 312x 312x   312x   312x   312x 312x 312x 312x   312x     312x   312x   312x   312x   312x         312x   312x   312x   312x 312x   312x 312x     312x     312x     312x     312x   312x   14x     312x 831x 806x 766x   25x 17x       312x 312x 312x  
import { parseAmount } from "@utils/index";
import { MAX_ALLOWED_AMOUNT } from "./constants";
 
export const STR_TAKE_A_SELFIE = "Take a selfie with ID";
export const STR_TAKE_A_SELFIE_DESCRIPTION =
  "A selfie with ID is needed to confirm your identity";
export const STR_SELFIE_PAH = "Selfie of Primary Account Holder holding ID";
 
export const CHARGEBACK_TEXT =
  "You will receive a notification when a chargeback occurs.";
 
export const CUSTOMER_BILLING_ADDRESS_TEXT = "Customer Billing Address";
export const CUSTOM_BILL_DESCRIPTOR = "Custom Billing Descriptor";
export const SERVICE_OUTSIDE_USA_CANADA_STRING = "Business Located in USA";
 
export const BUSINESS_CUNDUCTED_OUTSIDE_USA = "Business conducted outside USA";
export const ENTER_COUNTRIES_OUTSIDE_USA =
  "Enter countries where business is conducted outside the USA.";
 
export const MERCHANT_FILE_TEXT = "Merchant File";
export const MERCHANT_DETAILS_TEXT = "Merchant Details";
export const PROVIDER_DETAILS_TEXT = "Provider Details";
export const PROVIDER_FILE_TEXT = "Provider File";
export const MISSING_BUSINESS_OWNER_INFO_TEXT =
  "Missing Information in Business Owner";
 
export const LINKED_BP_TOOLTIP_MESSAGE =
  "Only controllers can edit the business profile";
export const MATCH_DISABLED =
  "Create a Business Profile and Business Owner first";
export const MATCH_DISABLED_PENDING_STATUS =
  "MATCH is not available for merchants with Pending status";
export const MATCH_NO_PERMISSION =
  "You don't have permissions to view MATCH checks";
 
export const CANNOT_EXCEED_MAX_AMOUNT = `Cannot exceed total of ${parseAmount(
  MAX_ALLOWED_AMOUNT,
)} USD`;
 
export const NOT_ALLOWED_TO_ADD_BANK_ACCOUNT_TOOLTIP_MESSAGE =
  "You are not allowed to add a bank account. Contact your provider for assistance.";
 
export const NOT_ALLOWED_TO_ADD_BANK_ACCOUNT_BANNER_MESSAGE = `This merchant is not allowed to add bank accounts. You can enable it from the merchant’s side panel.`;
 
export const TEMPORARY_HOLD_TITLE = "Temporary Hold – Transfers Unavailable";
export const NOT_ALLOWED_TRANSFER_DESCRIPTION =
  "Funds are temporarily held due to one or more disruptive customer incidents to protect against potential chargebacks. Funds will be accessible shortly.";
export const NO_PERMISSION = "No Permission";
export const NO_TRANSFER_PERMISSION =
  "You don’t have permission to make money transfers.";
export const INSUFFICIENT_BALANCE_MODAL_TITLE = "Not Enough Balance";
 
export const INSUFFICIENT_BALANCE_MODAL_DESCRIPTION =
  "You need to have at least 10 USD on your available balance to be able to transfer money.";
 
export const MERCHANT_NOT_ALLOWED__TO_ADD_BANK_ACCOUNTS_SIDEPANEL_MESSAGE =
  "Merchant is not able to add bank account because he is disabled by acquirer or provider.";
 
export const MERCHANT_NOT_ALLOWED__TO_TRANSFER_MONEY_SIDEPANEL_MESSAGE =
  "Not able to transfer money because the";
 
export const MERCHANT_NOT_ALLOWED_TO_PROCESS_MONEY_SIDEPANEL_MESSAGE =
  "Not able to process money because the";
 
export const getAgreementText = (
  type: "provider" | "merchant" = "merchant",
) => `Updates have been made to the ${type}  agreement. Please read
            through the revised terms for the latest information`;
 
export const getMerchantProviderText = (merchant = true, file = false) => {
  if (merchant) {
    if (file) return MERCHANT_FILE_TEXT;
    else return MERCHANT_DETAILS_TEXT;
  } else {
    if (file) return PROVIDER_FILE_TEXT;
    else return PROVIDER_DETAILS_TEXT;
  }
};
 
export const STORED_MERCHANTS_ROWS_PER_PAGE = "stored_merchant_rows_per_page";
export const STORED_PROVIDER_ROWS_PER_PAGE = "stored_provider_rows_per_page";
export const STORED_CUSTOMER_ROWS_PER_PAGE = "stored_customer_rows_per_page";