@tap-payments/auth-jsconnect 2.11.1-beta → 2.11.1-sandbox

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.
Files changed (166) hide show
  1. package/build/@types/app.d.ts +3 -1
  2. package/build/@types/app.js +1 -0
  3. package/build/@types/form.d.ts +2 -0
  4. package/build/@types/index.d.ts +1 -0
  5. package/build/@types/index.js +1 -0
  6. package/build/@types/terminal.d.ts +116 -0
  7. package/build/@types/terminal.js +1 -0
  8. package/build/api/auth.d.ts +9 -1
  9. package/build/api/entity.d.ts +3 -0
  10. package/build/api/index.d.ts +7 -1
  11. package/build/api/index.js +3 -1
  12. package/build/api/lead.d.ts +1 -0
  13. package/build/api/terminal.d.ts +28 -0
  14. package/build/api/terminal.js +45 -0
  15. package/build/app/rootReducer.d.ts +1 -0
  16. package/build/app/rootReducer.js +3 -1
  17. package/build/app/settings.js +1 -2
  18. package/build/app/store.d.ts +2 -0
  19. package/build/assets/locales/ar.json +48 -12
  20. package/build/assets/locales/en.json +51 -41
  21. package/build/components/DeviceCard/DeviceCard.d.ts +18 -0
  22. package/build/components/DeviceCard/DeviceCard.js +103 -0
  23. package/build/components/DeviceCard/index.d.ts +3 -0
  24. package/build/components/DeviceCard/index.js +2 -0
  25. package/build/components/OTPTimer/OTPTimer.d.ts +2 -1
  26. package/build/components/OTPTimer/OTPTimer.js +4 -4
  27. package/build/constants/api.d.ts +0 -1
  28. package/build/constants/api.js +0 -2
  29. package/build/constants/app.d.ts +21 -2
  30. package/build/constants/app.js +122 -4
  31. package/build/constants/flows.d.ts +15 -0
  32. package/build/constants/flows.js +15 -0
  33. package/build/constants/validation.d.ts +2 -0
  34. package/build/constants/validation.js +2 -0
  35. package/build/features/app/business/businessStore.js +15 -10
  36. package/build/features/app/connectExpress/connectExpressStore.js +19 -4
  37. package/build/features/app/individual/individualStore.js +0 -1
  38. package/build/features/app/tax/taxStore.js +1 -1
  39. package/build/features/app/terminal/terminalStore.d.ts +110 -0
  40. package/build/features/app/terminal/terminalStore.js +676 -0
  41. package/build/features/auth/Auth.d.ts +1 -1
  42. package/build/features/auth/screens/AuthenticationList/EntityList.js +2 -2
  43. package/build/features/business/screens/BusinessType/BusinessType.js +13 -2
  44. package/build/features/business/screens/BusinessType/EntityLicenseList.js +11 -5
  45. package/build/features/business/screens/BusinessType/LicenseList.js +15 -7
  46. package/build/features/business/screens/BusinessType/UnifiedNumber.d.ts +35 -0
  47. package/build/features/business/screens/BusinessType/UnifiedNumber.js +84 -0
  48. package/build/features/business/screens/BusinessType/validation.d.ts +6 -3
  49. package/build/features/business/screens/BusinessType/validation.js +31 -10
  50. package/build/features/connectExpress/screens/AuthenticationList/EntityList.js +2 -2
  51. package/build/features/connectExpress/screens/CollectBusinessInfo/CollectBusinessInfo.js +1 -0
  52. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseList.js +23 -7
  53. package/build/features/connectExpress/screens/CollectBusinessInfo/LicenseNumber.js +2 -2
  54. package/build/features/connectExpress/screens/CollectBusinessInfo/TAC.js +1 -1
  55. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.d.ts +36 -0
  56. package/build/features/connectExpress/screens/CollectBusinessInfo/UnifiedNumber.js +81 -0
  57. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.d.ts +6 -3
  58. package/build/features/connectExpress/screens/CollectBusinessInfo/validation.js +57 -21
  59. package/build/features/entity/screens/EntityName/EntityName.js +2 -1
  60. package/build/features/entity/screens/EntityName/UnifiedNumber.js +2 -2
  61. package/build/features/entity/screens/EntityName/validation.d.ts +3 -3
  62. package/build/features/entity/screens/EntityName/validation.js +14 -3
  63. package/build/features/featuresScreens.d.ts +1 -0
  64. package/build/features/featuresScreens.js +67 -0
  65. package/build/features/shared/Button/Button.js +1 -1
  66. package/build/features/shared/Button/FlowsButtons.d.ts +1 -0
  67. package/build/features/shared/Button/FlowsButtons.js +2 -2
  68. package/build/features/shared/PushNotification/PushNotification.d.ts +11 -0
  69. package/build/features/shared/PushNotification/PushNotification.js +34 -0
  70. package/build/features/shared/PushNotification/index.d.ts +2 -0
  71. package/build/features/shared/PushNotification/index.js +2 -0
  72. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.d.ts +2 -1
  73. package/build/features/shared/SuccessFlowButtons/SuccessFlowButtons.js +5 -4
  74. package/build/features/shared/SuccessScreen/SuccessScreen.d.ts +3 -1
  75. package/build/features/shared/SuccessScreen/SuccessScreen.js +2 -2
  76. package/build/features/terminal/Terminal.d.ts +14 -0
  77. package/build/features/terminal/Terminal.js +95 -0
  78. package/build/features/terminal/index.d.ts +1 -0
  79. package/build/features/terminal/index.js +1 -0
  80. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.d.ts +3 -0
  81. package/build/features/terminal/screens/LinkNewTerminal/LinkNewTerminal.js +69 -0
  82. package/build/features/terminal/screens/LinkNewTerminal/index.d.ts +2 -0
  83. package/build/features/terminal/screens/LinkNewTerminal/index.js +2 -0
  84. package/build/features/terminal/screens/LinkNewTerminal/styles.d.ts +10 -0
  85. package/build/features/terminal/screens/LinkNewTerminal/styles.js +28 -0
  86. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.d.ts +3 -0
  87. package/build/features/terminal/screens/LinkedSuccess/LinkedSuccess.js +51 -0
  88. package/build/features/terminal/screens/LinkedSuccess/index.d.ts +2 -0
  89. package/build/features/terminal/screens/LinkedSuccess/index.js +2 -0
  90. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.d.ts +3 -0
  91. package/build/features/terminal/screens/LinkedTerminalInfo/LinkedTerminalInfo.js +55 -0
  92. package/build/features/terminal/screens/LinkedTerminalInfo/index.d.ts +2 -0
  93. package/build/features/terminal/screens/LinkedTerminalInfo/index.js +2 -0
  94. package/build/features/terminal/screens/Loading/Loading.d.ts +4 -0
  95. package/build/features/terminal/screens/Loading/Loading.js +10 -0
  96. package/build/features/terminal/screens/Loading/index.d.ts +2 -0
  97. package/build/features/terminal/screens/Loading/index.js +2 -0
  98. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.d.ts +3 -0
  99. package/build/features/terminal/screens/NoTerminalDeviceLinked/NoTerminalDeviceLinked.js +58 -0
  100. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.d.ts +2 -0
  101. package/build/features/terminal/screens/NoTerminalDeviceLinked/index.js +2 -0
  102. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.d.ts +36 -0
  103. package/build/features/terminal/screens/NoTerminalDeviceLinked/styles.js +34 -0
  104. package/build/features/terminal/screens/OperatorError/OperatorError.d.ts +5 -0
  105. package/build/features/terminal/screens/OperatorError/OperatorError.js +9 -0
  106. package/build/features/terminal/screens/OperatorError/index.d.ts +2 -0
  107. package/build/features/terminal/screens/OperatorError/index.js +2 -0
  108. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.d.ts +3 -0
  109. package/build/features/terminal/screens/ResetPasswordSuccess/ResetPasswordSuccess.js +21 -0
  110. package/build/features/terminal/screens/ResetPasswordSuccess/index.d.ts +2 -0
  111. package/build/features/terminal/screens/ResetPasswordSuccess/index.js +2 -0
  112. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.d.ts +3 -0
  113. package/build/features/terminal/screens/SuccessWithFlowButtons/SuccessWithFlowButtons.js +32 -0
  114. package/build/features/terminal/screens/SuccessWithFlowButtons/index.d.ts +2 -0
  115. package/build/features/terminal/screens/SuccessWithFlowButtons/index.js +2 -0
  116. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.d.ts +9 -0
  117. package/build/features/terminal/screens/TerminalDeviceList/DeviceList.js +20 -0
  118. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.d.ts +3 -0
  119. package/build/features/terminal/screens/TerminalDeviceList/TerminalDeviceList.js +153 -0
  120. package/build/features/terminal/screens/TerminalDeviceList/index.d.ts +2 -0
  121. package/build/features/terminal/screens/TerminalDeviceList/index.js +2 -0
  122. package/build/features/terminal/screens/TerminalDeviceList/styles.d.ts +9 -0
  123. package/build/features/terminal/screens/TerminalDeviceList/styles.js +13 -0
  124. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.d.ts +3 -0
  125. package/build/features/terminal/screens/TerminalListPage/TerminalListPage.js +47 -0
  126. package/build/features/terminal/screens/TerminalListPage/index.d.ts +2 -0
  127. package/build/features/terminal/screens/TerminalListPage/index.js +2 -0
  128. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.d.ts +3 -0
  129. package/build/features/terminal/screens/UnlinkedSuccess/UnlinkedSuccess.js +53 -0
  130. package/build/features/terminal/screens/UnlinkedSuccess/index.d.ts +2 -0
  131. package/build/features/terminal/screens/UnlinkedSuccess/index.js +2 -0
  132. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.d.ts +3 -0
  133. package/build/features/terminal/screens/UnlinkedTerminalInfo/UnlinkedTerminalInfo.js +98 -0
  134. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.d.ts +2 -0
  135. package/build/features/terminal/screens/UnlinkedTerminalInfo/index.js +2 -0
  136. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.d.ts +26 -0
  137. package/build/features/terminal/screens/UnlinkedTerminalInfo/styles.js +30 -0
  138. package/build/features/terminal/screens/Verify/OTPInput.d.ts +7 -0
  139. package/build/features/terminal/screens/Verify/OTPInput.js +51 -0
  140. package/build/features/terminal/screens/Verify/Verify.d.ts +5 -0
  141. package/build/features/terminal/screens/Verify/Verify.js +85 -0
  142. package/build/features/terminal/screens/Verify/index.d.ts +2 -0
  143. package/build/features/terminal/screens/Verify/index.js +2 -0
  144. package/build/features/terminal/screens/Verify/validation.d.ts +8 -0
  145. package/build/features/terminal/screens/Verify/validation.js +4 -0
  146. package/build/features/terminal/screens/shared/Header.d.ts +10 -0
  147. package/build/features/terminal/screens/shared/Header.js +30 -0
  148. package/build/features/terminal/screens/shared/TerminalList.d.ts +11 -0
  149. package/build/features/terminal/screens/shared/TerminalList.js +25 -0
  150. package/build/features/terminal/screens/shared/index.d.ts +5 -0
  151. package/build/features/terminal/screens/shared/index.js +5 -0
  152. package/build/features/terminal/screens/shared/styles.d.ts +196 -0
  153. package/build/features/terminal/screens/shared/styles.js +155 -0
  154. package/build/features/terminal/screens/shared/utils.d.ts +7 -0
  155. package/build/features/terminal/screens/shared/utils.js +24 -0
  156. package/build/hooks/useAppConfig.js +1 -1
  157. package/build/hooks/useAppDispatch.d.ts +1 -0
  158. package/build/index.d.ts +3 -2
  159. package/build/index.js +4 -2
  160. package/build/theme/palette.js +12 -0
  161. package/build/theme/typography.js +4 -0
  162. package/build/utils/common.d.ts +1 -1
  163. package/build/utils/common.js +4 -5
  164. package/build/utils/string.d.ts +3 -2
  165. package/build/utils/string.js +14 -3
  166. package/package.json +2 -2
@@ -134,6 +134,7 @@
134
134
  "call_center_placeholder": "Enter your call center number",
135
135
  "cancel": "Cancel",
136
136
  "capital_paid_hint": "00000",
137
+ "capital_paid_input_label": "Capital Paid",
137
138
  "capital_paid_label": "Capital Paid ({{currency}})",
138
139
  "capital_paid_input_label": "Capital Paid",
139
140
  "capital_paid_required": "Please Enter paid amount",
@@ -141,6 +142,7 @@
141
142
  "capital_share_count_label": "Capital Share Count",
142
143
  "capital_share_count_required": "Please Enter share count",
143
144
  "capital_share_value_hint": "00000",
145
+ "capital_share_value_input_label": "Capital Share Value",
144
146
  "capital_share_value_label": "Capital Share Value ({{currency}})",
145
147
  "capital_share_value_input_label": "Capital Share Value",
146
148
  "capital_share_value_required": "Please Enter share value",
@@ -216,6 +218,7 @@
216
218
  "create_new_entity": "Create Entity",
217
219
  "creating_account_description": "This might take a moment...",
218
220
  "creating_account_title": "Creating your account",
221
+ "current_mobile_number": "Current mobile number",
219
222
  "customer_base_name_hint": "Choose local if you sell only in the country where you are based. Choose regional if you also sell to other GCC countries. Choose worldwide if you sell to any country outside the GCC.",
220
223
  "data_loading_desc": "Please wait as we are preparing data",
221
224
  "data_loading_title": "Preparing data",
@@ -258,7 +261,7 @@
258
261
  "enter_license_no": "Freelance registration",
259
262
  "enter_license_number": "Please enter license number at least 5 chars",
260
263
  "enter_national_id": "Identification number",
261
- "enter_served_monthly": "Customers server per month",
264
+ "enter_served_monthly": "Customers served per month",
262
265
  "enter_strong_password": "Please enter strong password.",
263
266
  "enter_valid_birth_date": "Please enter a valid birth date.",
264
267
  "enter_valid_brand_name": "Please enter a valid brand name.",
@@ -288,11 +291,12 @@
288
291
  "entity_success_title": "Entity Updated Successfully",
289
292
  "entity_type": "Entity Type",
290
293
  "entity_type_required": "Please select at least one entity type",
291
- "expected_customers_to_serve": "Customers server per month",
294
+ "expected_customers_to_serve": "Customers served per month",
295
+ "expected_sale_per_month": "Expected sale per month?",
292
296
  "expected_sales_monthly": "Expected sale per month? ({{currency}})",
293
297
  "expected_sale_per_month": "Expected sale per month?",
294
298
  "expected_sales_yearly": "What is the expected sales for your business per month?",
295
- "expected_served_monthly": "Customers server per month",
299
+ "expected_served_monthly": "Customers served per month",
296
300
  "expiry_date": "Date of expiry",
297
301
  "express_account_already_created_close_button": "Close",
298
302
  "express_account_already_created_description": "Your Account is already created",
@@ -392,7 +396,6 @@
392
396
  "kyc_token_invalid": "May you please verify link of which you are trying to open.",
393
397
  "kyc_users_description": "Please select an authorized registered ID to approve with {{provider}}",
394
398
  "kyc_verification": "Know Your Customer (KYC)",
395
- "kyc_privacy_policy": "Privacy Policy",
396
399
  "language": "العربية",
397
400
  "license_info": "License information",
398
401
  "license_name_hint": "Enter legal name",
@@ -405,6 +408,7 @@
405
408
  "loading": "Loading...",
406
409
  "loading_bank_statement": "loading....",
407
410
  "login_to_dashboard": "Login to dashboard",
411
+ "login_with_passcode": "Login with Passcode",
408
412
  "mail_btn_open_title": "Open Mail",
409
413
  "marital_status": "Marital status",
410
414
  "masking_symbols": "•••",
@@ -418,11 +422,14 @@
418
422
  "mobile_app_label": "Mobile App",
419
423
  "mobile_button_label": "Continue with Mobile",
420
424
  "mobile_number_description": "Start instantly with your Mobile Number",
425
+ "mobile_ownership_title": "Please update your mobile number to match you national ID",
421
426
  "month": "Month",
427
+ "monthly_income": "Monthly income",
422
428
  "nafath_button_label": "Continue with Nafath",
423
429
  "nafath_verification_description_check": "Please go to your NAFATH app and enter the above request number to authenticate.",
424
430
  "nafath_verification_description_error": "Please try again",
425
431
  "nafath_verification_description_wait": "Please go to your NAFATH app and enter the above request number to authenticate.",
432
+ "nafath_verification_failed": "Make sure to approve the request sent through Nafath App, please try to send a new request.",
426
433
  "nafath_verification_redirection_message": "You will be redirected now",
427
434
  "nafath_verification_title_check": "Authenticate with NAFATH app",
428
435
  "nafath_verification_title_error": "We cannot confirm your authentication",
@@ -432,6 +439,7 @@
432
439
  "national_id_placeholder": "0000000000",
433
440
  "national_id_title": "National ID",
434
441
  "nationality_label": "Nationality",
442
+ "new_mobile_number": "New mobile number",
435
443
  "next": "Next",
436
444
  "no": "No",
437
445
  "no login credentials available": "May you please verify the entered email address. (Note - Please make sure to enter an email address associated with Tap)",
@@ -468,6 +476,8 @@
468
476
  "paci_verify_loading": "Fetching Details",
469
477
  "paci_verify_loading_desc": "Please be patient until verify details",
470
478
  "paci_waiting_title": "Please wait we are verifying",
479
+ "passcode_required": "Please enter the required Passcode",
480
+ "passcode_title": "Please enter your passcode",
471
481
  "password_flow_completed": "Reset my password",
472
482
  "password_flow_pending": "Setup my password",
473
483
  "password_flow_title": "Setup your password",
@@ -548,8 +558,9 @@
548
558
  "share_count_hint": "0",
549
559
  "share_count_label": "Share Count",
550
560
  "share_value_hint": "0000",
551
- "share_value_label": "Share Value ({{currency}})",
552
561
  "share_value_input_label": "Share Value",
562
+ "share_value_label": "Share Value ({{currency}})",
563
+ "sign_in_with_otp": "Sign in with OTP",
553
564
  "sign_up": "Sign up",
554
565
  "signed_up": "Signed up",
555
566
  "signin_email_label": "Email address",
@@ -625,6 +636,34 @@
625
636
  "tax_success_header_title": "Tax completed",
626
637
  "tax_success_title": "Your tax details are updated",
627
638
  "team_size_title": "Team Size",
639
+ "terminal_device_id": "Device ID",
640
+ "terminal_devices": "{{name}} Devices",
641
+ "terminal_flow_pending": "Terminals",
642
+ "terminal_go_to_board": "Go to Board",
643
+ "terminal_id": "Terminal ID",
644
+ "terminal_link": "Link",
645
+ "terminal_link_terminal": "Link Terminal",
646
+ "terminal_linked": "Linked",
647
+ "terminal_linked_success": "Your terminal {{device}} is linked successfully",
648
+ "terminal_linked_with": "Linked with",
649
+ "terminal_manage_terminals": "Manage Terminals",
650
+ "terminal_new_request_will_send": "A new link request bas ben sent to Tap Terminal app to confirm linking.",
651
+ "terminal_no_terminal_linked": "No Terminal Linked",
652
+ "terminal_no_terminal_linked_description": "We will list the linked terminals here when available",
653
+ "terminal_or_use_code": "or use code",
654
+ "terminal_paired_with": "Paired with",
655
+ "terminal_push_notification_link_new_terminal_failed": "Something went wrong. Please try again later",
656
+ "terminal_qr_code_description": "Open the Tap app on the terminal and select Linked Terminal from the More menu.",
657
+ "terminal_request_denied": "The Request to link Terminal {{device}} has been denied.",
658
+ "terminal_request_will_send": "A request will be sent to Tap Terminal app to confirm linking.",
659
+ "terminal_resend_request": "Resend Request",
660
+ "terminal_select_device": "Select device",
661
+ "terminal_send_link_request": "Send linking request",
662
+ "terminal_serial_number": "Serial no",
663
+ "terminal_unlink": "Unlink",
664
+ "terminal_unlinked": "Unlinked",
665
+ "terminal_unlinked_success": "Your terminal {{device}} is unlinked successfully",
666
+ "terminal_with": "with",
628
667
  "terms_and_conditions_link_title": "terms and conditions",
629
668
  "the nin format is not valid": "May you please verify the entered identification number.",
630
669
  "title_article": "Article of association",
@@ -646,9 +685,15 @@
646
685
  "unified_number_hint": "00000",
647
686
  "unified_number_label": "Unified Number",
648
687
  "unified_number_required": "Unified Number Required",
688
+ "update_later": "I'll update later",
689
+ "update_mobile_number": "Update mobile number",
649
690
  "upload_bank_statement": "Please upload the bank statement",
650
691
  "upload_file": "Select a file from your computer",
651
692
  "uploaded_file": "file",
693
+ "v1_add_unified_number": "Add a Unified Number",
694
+ "v1_company_unified_number_description": "You can find your Company Unified Number in the top-left corner of your Company Registration Certificate.",
695
+ "v1_company_unified_number_hint": "700xxxxxxx",
696
+ "v1_company_unified_number_label": "Company unified number",
652
697
  "vat_id": "Tax Identification Number (TIN)",
653
698
  "vat_id_placeholder": "000000000",
654
699
  "verification_brand_name": "Brand name",
@@ -665,40 +710,5 @@
665
710
  "website_label": "Website",
666
711
  "year": "Year",
667
712
  "yes": "Yes",
668
- "your_brand_details": "Your brand details",
669
- "mobile_ownership_title": "To enable bank payouts, please update your registered mobile number to match your national ID.",
670
- "current_mobile_number": "Current mobile number",
671
- "new_mobile_number": "New mobile number",
672
- "update_mobile_number": "Update mobile number",
673
- "update_later": "I'll update later",
674
- "terminal_manage_terminals": "Manage Terminals",
675
- "terminal_link_terminal": "Link Terminal",
676
- "terminal_linked": "Linked",
677
- "terminal_link": "Link",
678
- "terminal_unlinked": "Unlinked",
679
- "terminal_paired_with": "Paired with",
680
- "terminal_device_id": "Device ID",
681
- "terminal_serial_number": "Serial no",
682
- "terminal_qr_code_description": "Open the Tap app on the terminal and select Linked Terminal from the More menu.",
683
- "terminal_or_use_code": "or use code",
684
- "terminal_unlink": "Unlink",
685
- "terminal_linked_with": "Linked with",
686
- "terminal_send_link_request": "Send linking request",
687
- "terminal_request_will_send": "A request will be sent to Tap Terminal app to confirm linking.",
688
- "terminal_new_request_will_send": "A new link request bas ben sent to Tap Terminal app to confirm linking.",
689
- "terminal_resend_request": "Resend Request",
690
- "terminal_with": "with",
691
- "terminal_request_denied": "The Request to link Terminal {{device}} has been denied.",
692
- "terminal_go_to_board": "Go to Board",
693
- "terminal_linked_success": "Your terminal {{device}} is linked successfully",
694
- "terminal_unlinked_success": "Your terminal {{device}} is unlinked successfully",
695
- "terminal_no_terminal_linked": "No Terminal Linked",
696
- "terminal_no_terminal_linked_description": "We will list the linked terminals here when available",
697
- "terminal_push_notification_link_new_terminal_failed": "Something went wrong. Please try again later",
698
- "terminal_id": "Terminal ID",
699
- "terminal_devices": "{{name}} Devices",
700
- "passcode_title": "Please enter your passcode",
701
- "sign_in_with_otp": "Sign in with OTP",
702
- "passcode_required": "Please enter the required Passcode",
703
- "login_with_passcode": "Login with Passcode"
713
+ "your_brand_details": "Your brand details"
704
714
  }
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { CardProps } from '@mui/material/Card';
3
+ export interface DeviceCardProps extends CardProps {
4
+ image?: string;
5
+ name: string;
6
+ deviceId: string;
7
+ deviceIdLabel?: string;
8
+ isLinked?: boolean;
9
+ pairedWith?: string;
10
+ badge?: boolean;
11
+ border?: boolean;
12
+ loading?: boolean;
13
+ arrow?: boolean;
14
+ endAdornment?: React.ReactNode;
15
+ }
16
+ export declare const DeviceCard: ({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, ...rest }: DeviceCardProps) => JSX.Element;
17
+ declare const _default: React.MemoExoticComponent<({ image, name, deviceId, deviceIdLabel, isLinked, pairedWith, onClick, badge, border, arrow, loading, endAdornment, ...rest }: DeviceCardProps) => JSX.Element>;
18
+ export default _default;
@@ -0,0 +1,103 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __rest = (this && this.__rest) || function (s, e) {
13
+ var t = {};
14
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
15
+ t[p] = s[p];
16
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
17
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
18
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
19
+ t[p[i]] = s[p[i]];
20
+ }
21
+ return t;
22
+ };
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
+ import { memo } from 'react';
25
+ import { useTranslation } from 'react-i18next';
26
+ import { alpha, styled } from '@mui/material/styles';
27
+ import ArrowForwardIosIcon from '@mui/icons-material/ArrowForwardIos';
28
+ import Card from '@mui/material/Card';
29
+ import Box from '@mui/material/Box';
30
+ import Typography from '@mui/material/Typography';
31
+ import Icon from '../Icon';
32
+ import Loader from '../Loader';
33
+ var DeviceCardContainer = styled(Card, { shouldForwardProp: function (prop) { return !['showBorder'].includes(prop.toString()); } })(function (_a) {
34
+ var _b = _a.theme, spacing = _b.spacing, _c = _b.palette, background = _c.background, components = _c.components, showBorder = _a.showBorder;
35
+ return (__assign({ display: 'flex', alignItems: 'center', justifyContent: 'space-between', padding: spacing(2), borderRadius: spacing(0.5), boxShadow: 'none', width: '100%', backgroundColor: background.default, minHeight: spacing(14.125), position: 'relative' }, (showBorder && {
36
+ border: "1px solid ".concat(components.deviceCard.border)
37
+ })));
38
+ });
39
+ var DeviceDetails = styled(Box)(function (_a) {
40
+ var spacing = _a.theme.spacing;
41
+ return ({
42
+ display: 'flex',
43
+ alignItems: 'center',
44
+ gap: spacing(3.125)
45
+ });
46
+ });
47
+ var DeviceImage = styled(Icon)(function (_a) {
48
+ var spacing = _a.theme.spacing;
49
+ return ({
50
+ width: spacing(4.5),
51
+ height: 'auto',
52
+ objectFit: 'contain'
53
+ });
54
+ });
55
+ var DeviceInfo = styled(Box)(function (_a) {
56
+ var spacing = _a.theme.spacing;
57
+ return ({
58
+ display: 'flex',
59
+ flexDirection: 'column',
60
+ gap: spacing(1)
61
+ });
62
+ });
63
+ var DeviceTitle = styled(Typography)(function (_a) {
64
+ var _b = _a.theme, typography = _b.typography, palette = _b.palette;
65
+ return (__assign(__assign({}, typography.subtitle1), { color: palette.components.deviceCard.title, fontWeight: typography.fontWeightBold }));
66
+ });
67
+ var DeviceIdInfo = styled(Box)(function (_a) {
68
+ var _b = _a.theme, typography = _b.typography, palette = _b.palette, spacing = _b.spacing;
69
+ return (__assign(__assign({}, typography.caption_small), { color: alpha(palette.text.primary, 0.6), display: 'flex', flexDirection: 'column', gap: spacing(0.5) }));
70
+ });
71
+ var DeviceIdBold = styled('strong')(function (_a) {
72
+ var palette = _a.theme.palette;
73
+ return ({
74
+ color: palette.components.deviceCard.title
75
+ });
76
+ });
77
+ var Badge = styled(Box, { shouldForwardProp: function (prop) { return !['active'].includes(prop.toString()); } })(function (_a) {
78
+ var _b = _a.theme, direction = _b.direction, spacing = _b.spacing, palette = _b.palette, typography = _b.typography, active = _a.active;
79
+ return (__assign(__assign(__assign({ backgroundColor: palette.components.deviceCard.statusBackground, color: palette.components.deviceCard.statusText }, typography.caption), { fontWeight: typography.fontWeightSemiBold, padding: spacing(0.5, 1, 0.5, 1), position: 'absolute', top: 0, left: direction === 'rtl' ? 0 : 'unset', right: direction === 'rtl' ? 'unset' : '0', borderBottomLeftRadius: spacing(0.5) }), (active && {
80
+ backgroundColor: alpha(palette.primary.main, 0.1),
81
+ color: palette.primary.main
82
+ })));
83
+ });
84
+ var ArrowIcon = styled(ArrowForwardIosIcon)(function (_a) {
85
+ var _b = _a.theme, palette = _b.palette, direction = _b.direction;
86
+ return (__assign({ color: palette.components.deviceCard.title, fontSize: '16px' }, (direction === 'rtl' && {
87
+ transform: 'rotate(180deg)'
88
+ })));
89
+ });
90
+ export var DeviceCard = function (_a) {
91
+ var image = _a.image, name = _a.name, deviceId = _a.deviceId, deviceIdLabel = _a.deviceIdLabel, isLinked = _a.isLinked, pairedWith = _a.pairedWith, onClick = _a.onClick, badge = _a.badge, border = _a.border, arrow = _a.arrow, loading = _a.loading, endAdornment = _a.endAdornment, rest = __rest(_a, ["image", "name", "deviceId", "deviceIdLabel", "isLinked", "pairedWith", "onClick", "badge", "border", "arrow", "loading", "endAdornment"]);
92
+ var t = useTranslation().t;
93
+ var getEndComponent = function () {
94
+ if (endAdornment)
95
+ return endAdornment;
96
+ if (loading)
97
+ return _jsx(Loader, { innerColor: 'black', outerColor: 'black', size: 10, style: { height: 24, width: 24 }, toggleAnimation: !!loading });
98
+ if (arrow)
99
+ return _jsx(ArrowIcon, {});
100
+ };
101
+ return (_jsxs(DeviceCardContainer, __assign({ onClick: onClick, sx: { cursor: onClick ? 'pointer' : 'default' }, showBorder: border }, rest, { children: [_jsxs(DeviceDetails, { children: [image && _jsx(DeviceImage, { src: image, alt: 'Device' }), _jsxs(DeviceInfo, { children: [_jsx(DeviceTitle, { children: name }), _jsxs(DeviceIdInfo, { children: [pairedWith && (_jsxs("span", { children: [t('terminal_paired_with'), ": ", _jsx(DeviceIdBold, { children: pairedWith })] })), _jsxs("span", { children: [t(deviceIdLabel !== null && deviceIdLabel !== void 0 ? deviceIdLabel : 'terminal_device_id'), ": ", _jsx(DeviceIdBold, { children: deviceId }), "`"] })] })] })] }), badge && _jsx(Badge, __assign({ active: isLinked }, { children: isLinked ? t('terminal_linked') : t('terminal_unlinked') })), _jsx(Box, __assign({ display: 'flex', alignItems: 'center' }, { children: getEndComponent() }))] })));
102
+ };
103
+ export default memo(DeviceCard);
@@ -0,0 +1,3 @@
1
+ import DeviceCard, { DeviceCardProps } from './DeviceCard';
2
+ export type { DeviceCardProps };
3
+ export default DeviceCard;
@@ -0,0 +1,2 @@
1
+ import DeviceCard from './DeviceCard';
2
+ export default DeviceCard;
@@ -4,9 +4,10 @@ export interface OTPTimerProps extends BoxProps {
4
4
  timeInSeconds?: number;
5
5
  timeEndLabel: string;
6
6
  onResetClick?: () => void;
7
+ failed?: boolean;
7
8
  }
8
9
  declare const _default: React.MemoExoticComponent<{
9
- ({ timeInSeconds, timeEndLabel, onResetClick, ...rest }: OTPTimerProps): JSX.Element;
10
+ ({ timeInSeconds, timeEndLabel, onResetClick, failed, ...rest }: OTPTimerProps): JSX.Element;
10
11
  defaultProps: {
11
12
  time: number;
12
13
  };
@@ -44,7 +44,7 @@ var OTPTimerTextStyled = styled(Text)(function (_a) {
44
44
  });
45
45
  });
46
46
  var OTPTimerComponent = function (_a) {
47
- var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick"]);
47
+ var timeInSeconds = _a.timeInSeconds, timeEndLabel = _a.timeEndLabel, onResetClick = _a.onResetClick, failed = _a.failed, rest = __rest(_a, ["timeInSeconds", "timeEndLabel", "onResetClick", "failed"]);
48
48
  var _b = React.useState(timeInSeconds || 60), timeValue = _b[0], seTimeValue = _b[1];
49
49
  React.useEffect(function () {
50
50
  if (timeValue <= 0)
@@ -55,14 +55,14 @@ var OTPTimerComponent = function (_a) {
55
55
  return function () { return clearInterval(interval); };
56
56
  }, [timeValue]);
57
57
  var resetTimer = function () {
58
- if (onResetClick && timeValue == 0) {
58
+ if (onResetClick && (timeValue == 0 || failed)) {
59
59
  onResetClick();
60
60
  seTimeValue(timeInSeconds || 60);
61
61
  }
62
62
  };
63
63
  return (_jsx(OTPTimerStyled, __assign({ onClick: resetTimer }, rest, { children: _jsx(OTPTimerTextStyled, __assign({ variant: 'h4', color: 'primary', sx: {
64
- cursor: timeValue <= 0 && onResetClick ? 'pointer' : 'default'
65
- } }, { children: timeValue > 0 ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
64
+ cursor: (timeValue <= 0 || failed) && onResetClick ? 'pointer' : 'default'
65
+ } }, { children: timeValue > 0 && !failed ? (timeValue > 9 ? "00:".concat(timeValue) : "00:0".concat(timeValue)) : timeEndLabel })) })));
66
66
  };
67
67
  OTPTimerComponent.defaultProps = {
68
68
  time: 59
@@ -13,7 +13,6 @@ export declare const ENDPOINT_PATHS: {
13
13
  PRODUCTION_BASE_URL: string;
14
14
  PRODUCTION_BASE_URL_SA: string;
15
15
  DEV_BASE_URL: string;
16
- BETA_BASE_URL: string;
17
16
  BUSINESS_COUNTRIES: string;
18
17
  COUNTRIES: string;
19
18
  IP: string;
@@ -2,7 +2,6 @@ var SANDBOX_BASE_URL = 'https://connect-mw.sandbox.tap.company/middleware';
2
2
  var PRODUCTION_BASE_URL = 'https://connect-mw.tap.company/middleware';
3
3
  var PRODUCTION_BASE_URL_SA = 'https://connect-mw.tap.com.sa/middleware';
4
4
  var DEV_BASE_URL = 'https://connect-mw.dev.tap.company/middleware';
5
- var BETA_BASE_URL = 'https://connect-mw.beta.tap.company/middleware';
6
5
  var API_BUSINESS_COUNTRIES = 'https://godata.sandbox.tap.company/api/v1/business/country/list';
7
6
  var API_COUNTRIES = 'https://utilities.tap.company/api/v1/country/list';
8
7
  var CURRENCY_PATH = 'https://utilities.tap.company/api/v1/currency/iso';
@@ -72,7 +71,6 @@ export var ENDPOINT_PATHS = {
72
71
  PRODUCTION_BASE_URL: PRODUCTION_BASE_URL,
73
72
  PRODUCTION_BASE_URL_SA: PRODUCTION_BASE_URL_SA,
74
73
  DEV_BASE_URL: DEV_BASE_URL,
75
- BETA_BASE_URL: BETA_BASE_URL,
76
74
  BUSINESS_COUNTRIES: API_BUSINESS_COUNTRIES,
77
75
  COUNTRIES: API_COUNTRIES,
78
76
  IP: IP_PATH,
@@ -1,7 +1,6 @@
1
- import { ScreenStepNavigation, BusinessType } from '../@types';
1
+ import { ScreenStepNavigation, BusinessType, TerminalInfo, TerminalDeviceInfo } from '../@types';
2
2
  export declare const CONNECT_DEV_URL = "https://connect.dev.tap.company";
3
3
  export declare const CONNECT_SANDBOX_URL = "https://connect.sandbox.tap.company";
4
- export declare const CONNECT_BETA_URL = "https://connect.beta.tap.company";
5
4
  export declare const CONNECT_PROD_URL = "https://connect.tap.company";
6
5
  export declare const CLIENT_ORIGIN: string;
7
6
  export declare const TAP_WEBSITE = "https://www.tap.company/";
@@ -15,6 +14,7 @@ export declare const SCOPE_MERCHANT = "merchant";
15
14
  export declare const DEFAULT_COUNTRY_ISO2 = "KW";
16
15
  export declare const NAFATH_VERIFICATION_FAILED = "nafath_verification_failed";
17
16
  export declare const COLLECT_DOB_INFO_NAFATH = "collect_date_of_birth";
17
+ export declare const TERMINAL_PUSH_NOTIFICATION_FAILED = "terminal_push_notification_link_new_terminal_failed";
18
18
  export declare const LANGUAGE_ABBREVIATIONS: {
19
19
  ENGLISH: string;
20
20
  ARABIC: string;
@@ -44,6 +44,7 @@ export declare const TAX_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
44
44
  export declare const SigIn_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
45
45
  export declare const ENTITY_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
46
46
  export declare const BRAND_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
47
+ export declare const TERMINAL_SCREENS_NAVIGATION: Array<ScreenStepNavigation>;
47
48
  export declare const DefaultDeviceInfo: {
48
49
  source: string;
49
50
  device: {
@@ -215,6 +216,13 @@ export declare const KYC_STEP_NAMES: {
215
216
  KYC_VERIFY_NAFATH: string;
216
217
  KYC_COMPLETED: string;
217
218
  };
219
+ export declare const TERMINAL_STEP_NAMES: {
220
+ PHONE_AUTH: string;
221
+ INFO: string;
222
+ SUCCESS: string;
223
+ CREATE_AUTH: string;
224
+ CREATE_TERMINAL_AUTH: string;
225
+ };
218
226
  export declare const RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
219
227
  export declare const ENCRYPTION_FLAG = "encryption_contract";
220
228
  export declare const BACKEND_ENCRYPTION_FLAG = "backend_encryption_contract";
@@ -227,6 +235,9 @@ export declare const OTHER_FL_LICENSE: {
227
235
  };
228
236
  license: {
229
237
  number: string;
238
+ additional_info: {
239
+ unified_number: string;
240
+ };
230
241
  };
231
242
  type: BusinessType;
232
243
  };
@@ -238,6 +249,9 @@ export declare const OTHER_ENTITY_LICENSE: {
238
249
  };
239
250
  license: {
240
251
  number: string;
252
+ additional_info: {
253
+ unified_number: string;
254
+ };
241
255
  };
242
256
  type: BusinessType;
243
257
  };
@@ -248,6 +262,9 @@ export declare const OTHER_CR_LICENSE: {
248
262
  };
249
263
  license: {
250
264
  number: string;
265
+ additional_info: {
266
+ unified_number: string;
267
+ };
251
268
  };
252
269
  type: BusinessType;
253
270
  };
@@ -309,4 +326,6 @@ interface CountryToCurrencyMapping {
309
326
  [countryCode: string]: string;
310
327
  }
311
328
  export declare const COUNTRY_TO_CURRENCY: CountryToCurrencyMapping;
329
+ export declare const SELECTED_TERMINAL_DEVICE_DEFAULT_INFO: TerminalDeviceInfo;
330
+ export declare const SELECTED_TERMINAL_DEFAULT_INFO: TerminalInfo;
312
331
  export {};
@@ -2,7 +2,6 @@ import { BusinessType } from '../@types';
2
2
  import { CONNECT_FLOWS } from './flows';
3
3
  export var CONNECT_DEV_URL = 'https://connect.dev.tap.company';
4
4
  export var CONNECT_SANDBOX_URL = 'https://connect.sandbox.tap.company';
5
- export var CONNECT_BETA_URL = 'https://connect.beta.tap.company';
6
5
  export var CONNECT_PROD_URL = 'https://connect.tap.company';
7
6
  export var CLIENT_ORIGIN = window.location.origin;
8
7
  export var TAP_WEBSITE = 'https://www.tap.company/';
@@ -16,6 +15,7 @@ export var SCOPE_MERCHANT = 'merchant';
16
15
  export var DEFAULT_COUNTRY_ISO2 = 'KW';
17
16
  export var NAFATH_VERIFICATION_FAILED = 'nafath_verification_failed';
18
17
  export var COLLECT_DOB_INFO_NAFATH = 'collect_date_of_birth';
18
+ export var TERMINAL_PUSH_NOTIFICATION_FAILED = 'terminal_push_notification_link_new_terminal_failed';
19
19
  export var LANGUAGE_ABBREVIATIONS = {
20
20
  ENGLISH: 'en',
21
21
  ARABIC: 'ar'
@@ -973,6 +973,86 @@ export var BRAND_SCREENS_NAVIGATION = [
973
973
  order: 6
974
974
  }
975
975
  ];
976
+ export var TERMINAL_SCREENS_NAVIGATION = [
977
+ {
978
+ name: CONNECT_FLOWS.terminal.verify,
979
+ next: [CONNECT_FLOWS.terminal.terminalDeviceList, CONNECT_FLOWS.terminal.noTerminalLinked],
980
+ prev: CONNECT_FLOWS.terminal.board,
981
+ order: 1
982
+ },
983
+ {
984
+ name: CONNECT_FLOWS.terminal.loadingData,
985
+ next: CONNECT_FLOWS.terminal.terminalDeviceList,
986
+ prev: '',
987
+ order: 1
988
+ },
989
+ {
990
+ name: CONNECT_FLOWS.terminal.operatorError,
991
+ next: '',
992
+ prev: '',
993
+ order: 1
994
+ },
995
+ {
996
+ name: CONNECT_FLOWS.terminal.noTerminalLinked,
997
+ next: CONNECT_FLOWS.terminal.terminalLinkNew,
998
+ prev: CONNECT_FLOWS.terminal.board,
999
+ order: 2
1000
+ },
1001
+ {
1002
+ name: CONNECT_FLOWS.terminal.terminalDeviceList,
1003
+ next: [CONNECT_FLOWS.terminal.terminalList, CONNECT_FLOWS.terminal.linkedTerminalInfo, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
1004
+ prev: CONNECT_FLOWS.terminal.board,
1005
+ order: 2
1006
+ },
1007
+ {
1008
+ name: CONNECT_FLOWS.terminal.terminalList,
1009
+ next: CONNECT_FLOWS.terminal.terminalLinkNew,
1010
+ prev: CONNECT_FLOWS.terminal.terminalDeviceList,
1011
+ order: 3
1012
+ },
1013
+ {
1014
+ name: CONNECT_FLOWS.terminal.terminalLinkNew,
1015
+ next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1016
+ prev: [CONNECT_FLOWS.terminal.noTerminalLinked, CONNECT_FLOWS.terminal.terminalList],
1017
+ order: 3
1018
+ },
1019
+ {
1020
+ name: CONNECT_FLOWS.terminal.linkedTerminalInfo,
1021
+ next: CONNECT_FLOWS.terminal.terminalUnlinkedSuccess,
1022
+ prev: CONNECT_FLOWS.terminal.terminalDeviceList,
1023
+ order: 3
1024
+ },
1025
+ {
1026
+ name: CONNECT_FLOWS.terminal.unlinkedTerminalInfo,
1027
+ next: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1028
+ prev: CONNECT_FLOWS.terminal.terminalDeviceList,
1029
+ order: 3
1030
+ },
1031
+ {
1032
+ name: CONNECT_FLOWS.terminal.terminalLinkedSuccess,
1033
+ next: CONNECT_FLOWS.terminal.board,
1034
+ prev: [CONNECT_FLOWS.terminal.terminalLinkNew, CONNECT_FLOWS.terminal.unlinkedTerminalInfo],
1035
+ order: 4
1036
+ },
1037
+ {
1038
+ name: CONNECT_FLOWS.terminal.terminalUnlinkedSuccess,
1039
+ next: CONNECT_FLOWS.terminal.board,
1040
+ prev: CONNECT_FLOWS.terminal.linkedTerminalInfo,
1041
+ order: 4
1042
+ },
1043
+ {
1044
+ name: CONNECT_FLOWS.terminal.board,
1045
+ next: CONNECT_FLOWS.terminal.resetPassword,
1046
+ prev: '',
1047
+ order: 5
1048
+ },
1049
+ {
1050
+ name: CONNECT_FLOWS.terminal.resetPassword,
1051
+ next: CONNECT_FLOWS.terminal.board,
1052
+ prev: '',
1053
+ order: 6
1054
+ }
1055
+ ];
976
1056
  export var DefaultDeviceInfo = {
977
1057
  source: 'browser',
978
1058
  device: {
@@ -1144,6 +1224,13 @@ export var KYC_STEP_NAMES = {
1144
1224
  KYC_VERIFY_NAFATH: 'kyc_verify_nafath',
1145
1225
  KYC_COMPLETED: 'kyc_completed'
1146
1226
  };
1227
+ export var TERMINAL_STEP_NAMES = {
1228
+ PHONE_AUTH: 'terminal_phone_auth',
1229
+ INFO: 'terminal_info',
1230
+ SUCCESS: 'terminal_completed',
1231
+ CREATE_AUTH: 'connect_create_auth_terminal',
1232
+ CREATE_TERMINAL_AUTH: 'connect_create_terminal_link'
1233
+ };
1147
1234
  export var RSA_FRONTEND_MW_PUBLIC_KEY = "-----BEGIN PUBLIC KEY-----\nMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCgC9kH1SQvjbXAUXd0PbrDUG8P\nLhRig9pJNBmdQBZjihuaxfkzYu6ToMbIMAfmYgVgQw338/y7aQ8X3m03CXNIlkxo\nOwxKCA8ymKsZQptXJn9IxlPO7yjoFgTFBrpmTgvcC4XO1uoUYTAPq3szK8kj4zgT\nucWG1hSKsOdRU7sl/wIDAQAB\n-----END PUBLIC KEY-----";
1148
1235
  export var ENCRYPTION_FLAG = 'encryption_contract';
1149
1236
  export var BACKEND_ENCRYPTION_FLAG = 'backend_encryption_contract';
@@ -1155,7 +1242,8 @@ export var OTHER_FL_LICENSE = {
1155
1242
  en: 'add_other_fl'
1156
1243
  },
1157
1244
  license: {
1158
- number: 'other_fl'
1245
+ number: 'other_fl',
1246
+ additional_info: { unified_number: 'other_fl' }
1159
1247
  },
1160
1248
  type: BusinessType.FL
1161
1249
  };
@@ -1166,7 +1254,8 @@ export var OTHER_ENTITY_LICENSE = {
1166
1254
  en: 'add_other'
1167
1255
  },
1168
1256
  license: {
1169
- number: 'other_entity'
1257
+ number: 'other_entity',
1258
+ additional_info: { unified_number: 'other_entity' }
1170
1259
  },
1171
1260
  type: BusinessType.CR
1172
1261
  };
@@ -1176,7 +1265,8 @@ export var OTHER_CR_LICENSE = {
1176
1265
  en: 'add_other_cr'
1177
1266
  },
1178
1267
  license: {
1179
- number: 'other_cr'
1268
+ number: 'other_cr',
1269
+ additional_info: { unified_number: 'other_cr' }
1180
1270
  },
1181
1271
  type: BusinessType.CR
1182
1272
  };
@@ -1248,3 +1338,31 @@ export var COUNTRY_TO_CURRENCY = {
1248
1338
  HK: 'HKD',
1249
1339
  SG: 'SGD'
1250
1340
  };
1341
+ export var SELECTED_TERMINAL_DEVICE_DEFAULT_INFO = {
1342
+ id: '',
1343
+ status: '',
1344
+ live_mode: false,
1345
+ linked: false,
1346
+ serial_number: '',
1347
+ display_name: '',
1348
+ model: {
1349
+ live_mode: false,
1350
+ status: '',
1351
+ id: '',
1352
+ name: [],
1353
+ image: '',
1354
+ image_url: '',
1355
+ model: '',
1356
+ type: ''
1357
+ }
1358
+ };
1359
+ export var SELECTED_TERMINAL_DEFAULT_INFO = {
1360
+ id: '',
1361
+ legacy_id: '',
1362
+ merchant: {
1363
+ id: ''
1364
+ },
1365
+ name: {
1366
+ en: ''
1367
+ }
1368
+ };