{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/helpers/backend/invoice.service.js","webpack:///./src/state/modules/invoices.js","webpack:///./src/assets/images/flags/europe.svg","webpack:///./src/assets/images/flags/singapore.png","webpack:///./src/assets/images/flags/newzealand.png","webpack:///./src/assets/images/flags/hong_kong.svg","webpack:///./src/helpers/headers.js","webpack:///./src/helpers/backend/cross_border_methods.service.js","webpack:///./src/state/modules/cross_border_payment_methods.js","webpack:///./src/helpers/backend/master_merchant.service.js","webpack:///./src/state/modules/master_merchant.js","webpack:///./src/helpers/backend/accountstatement.service.js","webpack:///./src/state/modules/accountstatement.js","webpack:///./src/helpers/backend/auth.service.js","webpack:///./src/state/modules/auth.js","webpack:///./src/helpers/backend/payouts.service.js","webpack:///./src/state/modules/payouts.js","webpack:///./src/helpers/backend/remittance_summary.service.js","webpack:///./src/state/modules/remittance_summary.js","webpack:///./src/assets/images/flags/united_states.svg","webpack:///./src/helpers/backend/reserve_ledger.service.js","webpack:///./src/state/modules/remittance_reserve_ledger.js","webpack:///./src/helpers/backend/subscription.service.js","webpack:///./src/state/modules/subscription.js","webpack:///./src/state/modules/notification.js","webpack:///./src/helpers/backend/accounts.service.js","webpack:///./src/state/modules/accounts.js","webpack:///./src/assets/images/flags/nigeria.png","webpack:///./src/assets/images/flags/philippines.png","webpack:///./src/helpers/backend/smart_routing.service.js","webpack:///./src/state/modules/smart_routing.js","webpack:///./src/assets/images/flags/japan.svg","webpack:///./src/assets/images/flags/canada.svg","webpack:///./src/assets/images/flags/korea.svg","webpack:///./src/assets/images/flags/china.svg","webpack:///./src/assets/images/flags/thailand.jpeg","webpack:///./src/assets/images/flags/south_africa.png","webpack:///./src/helpers/Common.js","webpack:///./node_modules/moment/locale sync ^\\.\\/.*$","webpack:///./src/locales sync [A-Za-z0-9-_,\\s]+\\.json$/","webpack:///./src/assets/images/flags/vietnam1.png","webpack:///./src/App.vue?29d6","webpack:///src/App.vue","webpack:///./src/App.vue?60d0","webpack:///./src/App.vue","webpack:///./src/main.js","webpack:///./src/helpers/firebase/authUtils.js","webpack:///./src/state/modules/fireauth.js","webpack:///./src/state/mutations.type.js","webpack:///./src/helpers/backend/payment_pages.service.js","webpack:///./src/state/modules/payment_pages.js","webpack:///./src/helpers/backend/settlements.service.js","webpack:///./src/state/modules/settlements.js","webpack:///./src/helpers/backend/remittance_bank_accounts.service.js","webpack:///./src/state/modules/remittance_bank_accounts.js","webpack:///./src/assets/images/flags/Kenya.png","webpack:///./src/assets/images/flags/taiwan.png","webpack:///./src/state/modules/index.js","webpack:///./src/state/store.js","webpack:///./src/helpers/backend/file_management.service.js","webpack:///./src/state/modules/file_management.js","webpack:///./src/helpers/backend/recon_analytics.service.js","webpack:///./src/state/modules/recon_analytics.js","webpack:///./src/assets/images/flags/india.svg","webpack:///./src/i18n.js","webpack:///./src/helpers/backend/subscriptionprice.service.js","webpack:///./src/state/modules/subscription_price.js","webpack:///./src/assets/images/flags/samoa.svg","webpack:///./src/assets/images/flags/malaysia.svg","webpack:///./src/assets/images/flags/poland.png","webpack:///./src/assets/images/flags/uae.svg","webpack:///./src/router/routes.js","webpack:///./src/router/index.js","webpack:///./src/helpers/backend/paymentlinks.service.js","webpack:///./src/state/modules/paymentlinks.js","webpack:///./src/helpers/backend/beneficiary.service.js","webpack:///./src/state/modules/beneficiary.js","webpack:///./src/state/actions.type.js","webpack:///./src/helpers/backend/fee_management.service.js","webpack:///./src/state/modules/fee_management.js","webpack:///./src/helpers/backend/transaction.service.js","webpack:///./src/helpers/backend/refund.service.js","webpack:///./src/state/modules/transactions.js","webpack:///./src/helpers/backend/notifications.service.js","webpack:///./src/state/modules/notifications.js","webpack:///./src/assets/images/flags/uk.svg","webpack:///./src/helpers/backend/recon_transaction.service.js","webpack:///./src/state/modules/recon_transactions.js","webpack:///./src/helpers/backend/merchant.service.js","webpack:///./src/state/modules/merchant.js","webpack:///./src/state/modules/webhook.js","webpack:///./src/helpers/backend/dashboard_remittances.service.js","webpack:///./src/state/modules/remittances_dashboard.js","webpack:///./src/assets/images/flags/belgium.svg","webpack:///./src/state/modules/layout.js","webpack:///./src/assets/images/flags/australia.svg","webpack:///./src/helpers/backend/virtual_account.service.js","webpack:///./src/state/modules/virtualaccount.js","webpack:///index|\\.unit\\.).)*\\.js$","webpack:///./src/helpers/backend/reconciliation.service.js","webpack:///./src/state/modules/reconciliation.js","webpack:///./src/helpers/backend/payment_gateway.service.js","webpack:///./src/helpers/backend/dashboard.service.js","webpack:///./src/state/modules/dashboard.js","webpack:///./src/assets/images/flags/netherlands.svg.webp","webpack:///./src/assets/images/flags/mongolia.svg","webpack:///./src/assets/images/flags/indonesia.png","webpack:///./src/assets/images/flags/cambodia.svg","webpack:///./src/helpers/backend/payment_channel.service.js","webpack:///./src/helpers/backend/onboarding_form.service.js","webpack:///./src/state/modules/payment_channels.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","installedCssChunks","jsonpScriptSrc","p","exports","module","l","e","promises","cssChunks","Promise","resolve","reject","href","fullhref","existingLinkTags","document","getElementsByTagName","tag","dataHref","getAttribute","rel","existingStyleTags","linkTag","createElement","type","onload","onerror","event","request","target","src","err","Error","code","parentNode","removeChild","head","appendChild","then","installedChunkData","promise","onScriptComplete","script","charset","timeout","nc","setAttribute","error","clearTimeout","chunk","errorType","realSrc","message","name","undefined","setTimeout","all","m","c","d","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","console","jsonpArray","window","oldJsonpFunction","slice","CHAIPAY_API_URL","process","InvoiceService","getInvoiceList","exportInvoices","getInvoiceTemplatesList","getInvoiceDetailsList","invoiceReminder","invoiceVoid","invoiceUnvoid","markScheduleSent","createInvoice","updateInvoice","getInvoiceTemplateDetails","getInvoiceTimeline","invoiceDeleteTemplate","createInvoiceTemplate","updateInvoiceTemplate","bulkInvoicesImport","merchantUUID","iamportKey","isMasterMerchant","URI","requestOptions","method","headers","Headers","apiHeaders","body","JSON","stringify","payload","credentials","fetch","response","ok","json","text","status","parse","status_reason","location","origin","environment","ref","invoice_ref","queryParams","URLSearchParams","templateRef","blob","url","URL","createObjectURL","a","download","Date","toISOString","click","remove","invoiceRef","portone_key","formData","state","content","timeLineContent","total_elements","total_pages","size","page","number_of_elements","isFetchingData","templateContent","detailsContent","mutations","ADD_INVOICES_IN_STORE","newInvoiceData","ADD_INVOICES_DETAILS_IN_STORE","invoiceDeatilsData","additional_costs","map","cost","percent","charge_nature","ADD_INVOICES_TIMELINE_IN_STORE","invoiceTimeLineData","ADD_INVOICES_TEMPLATES_IN_STORE","templateData","getters","actions","FETCH_INVOICES","commit","rootState","auth","currentUser","merchantUuid","isMM","is_master_merchant","catch","FETCH_INVOICES_DETAILS","submerchantKey","FETCH_INVOICES_TEMPLATE_DETAILS","MARK_SCHEDULE_SENT","INVOICE_TIMELINE","INVOICES_REMINDER","INVOICE_VOID","INVOICE_UNVOID","FETCH_INVOICES_TEMPLATES","EXPORT_INVOICES","errorObject","status_message","root","CREATE_INVOICES","iamportSecret","mainParams","encodeURIComponent","amount","currency","failure_url","merchant_invoice_ref","sub_total","success_url","hash","hmacSHA256","signature_hash","Base64","log","UPDATE_INVOICES","CREATE_INVOICES_TEMPLATE","UPDATE_INVOICES_TEMPLATE","DELETE_INVOICE_TEMPLATE","BULK_INVOICE_IMPORT","append","namespaced","contentType","token","localStorage","getItem","obj","store","PaymentMethodsService","fetchCrossBorderPaymentMethods","crossBorderupdateEnableAndDefaultStatusForMethod","statusData","channelName","methods","countryList","ADD_CROSS_BORDER_PAYMENT_METHODS_IN_STORE","keys","FETCH_CROSS_BORDER_PAYMENT_METHODS","context","Message","CROSS_BORDER_UPDATE_ENABLE_AND_DEFAULT_STATUS","countryForMethod","MasterMerchantService","fetchMerchantList","fetchMerchantPaginatedList","fetchInvitedMerchantList","inviteMerchantForManagment","inviteMerchantForOwnedType","activeInactiveMerchant","inviteMerchant","resendKYC","resendInvite","deleteMerchant","pageIndex","pagesize","filters","from","to","toDate","fromDate","moment","format","order","uuid","email","merchant_type","merchant_name","merchant_loginid","merchant_password","country","master_merchant_type","master_merchant_uuid","sendData","paginatedContent","invitedContent","summary","selected_date_for_summary","ADD_MASTER_MERCHANT_LIST_IN_STORE","newTransactionData","ADD_MASTER_MERCHANT_PAGINATED_LIST_IN_STORE","ADD_INVITED_MASTER_MERCHANT_LIST_IN_STORE","UPDATE_MASTER_MERCHANT_FETCHING_STATE","isFetching","getPaymentLinksEntityDetails","entityDetails","INVITE_MERCHANT_FOR_MANAGED","INVITE_MERCHANT_FOR_OWNED","INVITE_MERCHANT","FETCH_MERCHANTS_LIST","merchant_list_content","merchant_list","email_id","email_address","merchant_listData","FETCH_MERCHANTS_PAGINATED_LIST","merchant_status","ph_number","acc_status","kyc_link","kyc_status","is_invite_merchant","is_login_allowed","use_master_merchant_creds","FETCH_INVITED_MERCHANTS_LIST","invited_merchant_list","invite_link","created_at","invited_merchant_listData","ACTIVE_INACTIVE_MERCHANT","MERCHANT_RESEND_KYC","MERCHANT_RESEND_INVITE","DELETE_MERCHANT","merchantKey","AccountService","fetchAccountStatement","downloadExcelStatement","dates","account_no","accountStatement","TOGGLE_ACCOUNT_STATEMENT_LOADER_IN_STORE","toggle","UPDATE_ACCOUNTS_DATA_IN_STORE","cloneDeep","DOWNLOAD_EXCEL_STATEMENT_IN_STORE","getAccountList","FETCH_ACCOUNT_STATEMENT","statementContent","statement","date","DOWNLOAD_VA_EXCEL_STATEMENT","AuthService","logIn","register","resetPassword","sendResetPasswordLinkToEmail","sendEmailVerificationLink","username","password","bodyToSend","emailId","resetToken","language","sandboxModeAlert","updateAlert","SET_AUTH_USER","newValue","clear","is_live_mode","saveState","SET_USER_LANGUAGE_IN_STORE","newLang","updateEnvironmentInStore","SET_SANDBOX_MODE_ALERT_IN_STORE","show","SET_UPDATE_ALERT_IN_STORE","removeItem","loggedIn","getCurrentEnvironment","isEmailVerified","is_email_verified","subMerchantUUID","subUserUuid","selectedLanguage","getUserRolesList","roles","getMerchantList","getCrossBorder","cross_border_enabled","getUserPermissionsList","permissions","getCurrentUser","getCurrentUserCountry","getConvertCountry","Common","currencyByCountry","init","dispatch","LOGIN","setItem","clarity","LOGOUT","setEnvironment","REGISTER","company_name","send_kyc_link_email","cross_border_model","master_merchant_key","SEND_RESET_PASSWORD_LINK","SEND_EMAIL_VERIFICATION_LINK","RESET_PASSWORD","new_password","SET_USER_LANGUAGE","newLanguage","SET_SANDBOX_MODE_ALERT","SET_UPDATE_ALERT","validate","PayoutService","fetchPayoutLists","fetchPayoutListMasterMerchant","createPayouts","approvePayouts","generateOtp","generateOtpViaEmail","generateOtpViaEmailForVerify","resentOtpViaEmail","resentOtpViaEmailForVerify","approvePayoutsViaEmail","verifyPayoutsViaEmail","uploadFile","updatePayoutStatus","updatePayouts","exportPayoutData","getPayouteDetailsList","postData","payoutdata","mobileNo","approveData","fileData","linkRef","TOGGLE_PAYOUTS_LOADER_IN_STORE","UPDATE_PAYOUTS_DATA_IN_STORE","APPROVE_PAYOUTS_DATA_IN_STORE","GENERATE_OTP_PAYOUT_IN_STORE","ADD_PAYOUT_DETAILS_IN_STORE","payoutDeatilsData","getPayoutList","FETCH_PAYOUT_LIST","FETCH_PAYOUT_LIST_MASTER_MERCHANT","PAYOUT_FILE_UPLOAD","CREATE_PAYOUTS","newPayouts","UPDATE_PAYOUTS","APPROVE_PAYOUTS","approver_name","APPROVE_PAYOUTS_VIA_EMAIL","VERIFY_PAYOUTS_VIA_EMAIL","GENERATE_OTP_PAYOUT","GENERATE_OTP_PAYOUT_VIA_EMAIL","merchantEmail","GENERATE_OTP_PAYOUT_VIA_EMAIL_FOR_VERIFY","RESEND_OTP_PAYOUT_VIA_EMAIL","RESEND_OTP_PAYOUT_VIA_EMAIL_FOR_VERIFY","UPDATE_PAYOUT_STATUS","EXPORT_PAYOUTS_INTO_EXCEL","FETCH_PAYOUT_DETAILS","RemittanceSummaryService","getremittanceSummaryList","exportremittanceSummary","merchantUUId","page_size","ADD_REMITTANCE_SUMMARY_IN_STORE","UPDATE_REMITTANCE_SUMMARY_FETCHING_STATE","FETCH_REMITTANCE_SUMMARY","trxn_content","trxn","destination_currency","source_currency","total_txn_amount","total_txn_amount_sc","toLocaleString","style","txn_fee","txn_fee_sc","with_hodling_tax","withholding_tax_sc","refund_amount_sc","reserve_credit_bc","reserve_debit_bc","transfer_fee","transfer_fee_bc","applied_forex_rate","net_amount_transferred","net_amount_transferred_dc","transactionData","EXPORT_REMITTANCE_SUMMARY_INTO_EXCEL","ReserveLedgerService","fetchLedger","downloadExcelLedger","ledgerData","TOGGLE_LEDGER_LOADER_IN_STORE","UPDATE_LEDGER_DATA_IN_STORE","FETCH_LEDGER","DOWNLOAD_VA_EXCEL_LEDGER","SubscriptionService","addSubscription","fetchSubscriptionList","deleteSubscription","fetchAllPrice","fetchSubscription","fetchSubscriptionTransactions","postCollectPayment","orderRef","SET_SUBSCRIPTION_DATA_IN_STORE","POST_SUBSCRIPTION","newEntityDetails","merchantOrderRef","getTime","price","quantity","signatureHash","price_order_ref","order_ref","FETCH_SUBSCRIPTION_LIST","DELETE_SUBSCRIPTION","FETCH_ALL_PRICE","FETCH_SUBSCRIPTION_DETAILS","FETCH_SUBSCRIPTION_TRANSACTIONS","POST_COLLECT_PAYMENT","success","createSubUser","updateSubUserDetails","fetchDetailsForAllSubUsers","fetchSubUserDetailsById","verifySubUserPermissions","setupOrGenerate2FA","verify2FAForCurrentUser","chaiPayKey","subUserUUid","subUserDetails","subUserPermissions","emailID","twoFADetails","verificationDetails","subUserData","UPDATE_SUB_USER_DETAILS_IN_STORE","getSubUserDataFromStore","FETCH_DETAILS_FOR_ALL_SUB_USERS","CREATE_SUB_USER","UPDATE_SUB_USER_DETAILS","subUserID","FETCH_SUB_USER_DETAILS_BY_ID","subUserUUID","is_active","toString","params","secure_hash","CryptoJS","HmacSHA256","SETUP_OR_GENERATE_2FA_OTP","VERIFY_2FA_FOR_CURRENT_USER","SmartRoutingService","fetchTransactionRoutes","postRouteDetails","updateRouteDetails","deleteRouteDetails","fetchAllPaymentChannels","setDefaultRouteDetails","routingRef","paymentChannels","ADD_SMART_ROUTING_LIST_IN_STORE","ADD_PAYMENT_CHANNELS_IN_STORE","paymentChannelList","filter","channel","is_enabled","FETCH_TRANSACTION_ROUTES","POST_ROUTING_DETAILS","UPDATE_ROUTING_DETAILS","routing_ref","DELETE_ROUTING_DETAILS","FETCH_ALL_PAYMENT_CHANNEL_LIST","CHANGE_DEFAULT_ROUTING_DETAILS","fileValdation","multipleFileValdation","excelFileValdation","countryByCurrency","currencyList","flagByCountry","flagByCurrency","file","toFixed","Swal","fire","allowedExtensions","exec","files","isInvalid","forEach","inputSize","validateSize","currencies","VN","TH","SG","ID","PH","HK","MY","TW","US","EU","JP","KR","AU","KH","WS","AE","IN","KE","ZA","NG","PL","BE","NL","NZ","countries","VND","THB","SGD","IDR","PHP","HKD","MYR","TWD","USD","EUR","JPY","KRW","AUD","KHR","WST","AED","INR","KES","ZAR","NGN","PLN","CAD","NZD","flags","require","webpackContext","req","id","webpackContextResolve","render","_vm","this","_h","$createElement","_c","_self","attrs","staticStyle","staticRenderFns","titleTemplate","title","computed","created","mounted","component","VUE_APP_VUE_APP_DATABASEURL","VueClipboard","config","autoSetContainer","Vue","productionTip","use","OneSignalVue","BootstrapVue","BootstrapVueIcons","vco","Vuelidate","VueSweetalert2","Notifications","VueMask","ToggleButton","VueApexCharts","VuePhoneNumberInput","UUID","VueSocialSharing","router","i18n","h","App","beforeMount","$OneSignal","appId","safari_web_id","allowLocalhostAsSecureOrigin","$mount","_fireBaseBackend","getFirebaseBackend","sessionStorage","loginUser","user","logOut","logout","_handleError","registerUser","forgetPassword","getAuthenticatedUser","ADD_WEBHOOKS_IN_STORE","ADD_WEBHOOK_IN_STORE","UPDATE_WEBHOOK_IN_STORE","UPDATE_WEBHOOK_BY_FORM_IN_STORE","UPDATE_SECRET_KEY_BY_FORM_IN_STORE","SET_ENTITY_DETAILS_IN_STORE","SET_LOGO_IN_STORE","UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE","UPDATE_PAYOUT_CHANNEL_DETAILS_IN_STORE","ADD_TRANSACTIONS_IN_STORE","ADD_CHANNEL_LIST_IN_STORE","UPDATE_TRXN_FETCHING_STATE","ADD_TRANSACTION_STATUS_IN_STORE","ADD_TRANSACTION_STATISTICS_IN_STORE","ADD_TRANSACTION_STATS_IN_STORE","ADD_LATEST_TXNS_IN_STORE","ADD_TRANSACTION_VOLUME_IN_STORE","ADD_TRANSACTION_SEASONALITY_IN_STORE","ADD_TRANSACTION_VOLUME_BY_STATUS_IN_STORE","ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE","ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE_NEW","ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE","ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE_NEW","ADD_TRANSACTION_STACKED_BAR_IN_STORE","SET_SELECTED_TRANSACTION_ID_IN_STORE","SET_WEBHOOK_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE","SET_FAILOVER_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE","SET_TRANSACTION_DETAILS_IN_STORE","UPDATE_TRXN_STATUS_IN_STORE","UPDATE_DASHBOARD_FETCHING_STATE","ADD_REFUND_DATA_FOR_SELECTED_TRANSACTION_IN_STORE","SET_PAYMENT_LINKS_IN_STORE","UPDATE_PAYMENT_LINKS_DETAILS_IN_STORE","ADD_PAYMENTLINKS_IN_STORE","UPDATE_PAYMENT_LINKS_FETCHING_STATE","ADD_PAYMENT_LINK_DETAIL_IN_STATE","UPDATE_PAYMENT_LINK_TRANSACTIONS_IN_STATE","ADD_IMPORT_CREDS_IN_STORE","UPDATE_IAMPORT_CREDENTIALS_IN_STORE","ADD_SOURCE_LIST_IN_STORE","UPDATE_VIRTUAL_ACCOUNT_IN_STORE","CREATE_VIRTUAL_ACCOUNT_IN_STORE","UPDATE_BENEFICIARY_DATA_IN_STORE","CREATE_BENEFICIARY_DATA_IN_STORE","UPDATE_BENEFICIARY_ACCOUNT_IN_STORE","TOGGLE_VENDORS_LOADER_IN_STORE","TOGGLE_VIRTUAL_LOADER_IN_STORE","UPDATE_ALL_PAYMENT_CHANNEL_IN_STORE","CLEAR_ALL_PAYMENT_CHANNEL_IN_STORE","UPDATE_SELECTED_PAYMENT_CHANNEL_DETAILS_IN_STORE","UPDATE_PAYMENT_METHODS_DETAILS_IN_STORE","UPDATE_PAYMENT_METHODS_DETAILS_COUNT_IN_STORE","UPDATE_ALL_PAYMENT_PAYOUT_CHANNEL_IN_STORE","UPDATE_ALL_PREVIEW_PAYMENT_CHANNEL_IN_STORE","UPDATE_PAYMENT_ONBOARDING_DETAILS_IN_STORE","ADD_RECONCILIATION_RESULTS_IN_STORE","ADD_RECONCILIATION_SUMMARY_RESULTS_IN_STORE","ADD_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS_IN_STORE","ADD_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY_IN_STORE","UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE","SET_RECON_DEATILS_IN_STORE","CLEAR_RECON_DEATILS_IN_STORE","ADD_RECONCILIATION_SUMMARY_IN_STORE","SET_SELECTED_DATE_FOR_SUMMARY","RECON_ADD_CHANNEL_LIST_IN_STORE","ADD_FOOD_TECH_STORE_LIST","ADD_RECON_TRANSACTIONS_IN_STORE","SET_RECON_SUMMARY","SET_RECON_TRANSACTIONS","SET_RECON_COLUMNS","ADD_BANKS_LIST_IN_STORE","UPDATE_ONBOARDING_FORM_DATA","UPDATE_PAYMENT_CHANNEL_ONBOARDING_FORM_DATA","RECON_METABASE_RESULT_IN_STORE","UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE","CREATE_PAYMENT_PAGE_RECORD_IN_STORE","ADD_PAYMENT_PAGE_RESULTS_IN_STORE","ADD_PAYMENT_PAGE_DETAIL_IN_STATE","ADD_PREVIEW_PAYMENT_PAGE_DETAIL_IN_STATE","UPDATE_PAYMENT_PAGE_TRANSACTIONS_IN_STATE","UPDATE_PAYMENT_PAGE_DETAIL_IN_STORE","UPLOAD_PAGE_IMAGE_IN_STORE","FEE_MANAGEMENT_ADD_CHANNEL_LIST_IN_STORE","FEE_MANAGEMENT_ADD_FEE_CONFIG_META_IN_STORE","FEE_MANAGEMENT_ADD_FEE_CONFIG_RECORDS_IN_STORE","FEE_MANAGEMENT_ADD_TOLERANCE_LEVEL_IN_STORE","UPDATE_FEE_CONFIG_SFTP_DETAILS_IN_STORE","UPDATE_FEE_CONFIG_PSP_EMAIL_DETAILS_IN_STORE","UPDATE_FEE_CONFIG_TOLERANCE_LEVEL_IN_STORE","UPDATE_FEE_CONFIG_RECORD_IN_STORE","UPDATE_FOOD_TECH_FEE_CONFIG_RECORD_IN_STORE","UPDATE_PAYMENT_METHODS_IN_STORE","CREATE_FEE_CONFIG_RECORD_IN_STORE","CREATE_FOOD_TECH_FEE_CONFIG_RECORD_IN_STORE","DELETE_FEE_CONFIG_RECORD_IN_STORE","RESET_FEE_CONFIG_STATE","ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CURR_IN_STORE","ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CHANNE_IN_STORE","ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_METHOD_IN_STORE","ADD_SETTLEMENTS_SUMMARY_RESULTS_IN_STORE","UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE","ADD_REMITTANCES_BANK_ACCOUNT_IN_STORE","CREATE_BANK_DATA_IN_STORE","UPDATE_BANK_DATA_IN_STORE","ADD_BANK_LIST_IN_STORE","SET_SUBSCRIPTION_PRICE_DATA_IN_STORE","FILE_MANAGEMENT_ADD_DATA_IN_STORE","ADD_NOTIFICATIONS_IN_STORE","CLEAR_NOTIFICATION_STATE","PaymentPageService","fetchPaymentPageResults","createPaymentPage","updatePaymentPage","fetchPaymentPageDetails","fetchPaymentPageTransactions","uploadPaymentPageImage","exportPaymentPageTransactions","cancelPaymentPage","exportPaymentPageList","checkCustomUrlAvailablity","generateQRCode","pageData","pageRef","pageDetails","previewPageDetails","pageTransactions","transactions","FETCH_PAYMENT_PAGE_LIST","paylinks_content","paymentLinksData","merchantOrderId","merchant_details","brand_name","promo_discount","shipping_charges","FETCH_PAYMENT_PAGE_DETAILS","isPreviewPage","FETCH_PAYMENT_PAGE_TRANSACTIONS","page_ref","EXPORT_PAYMENT_PAGE_TRANSACTIONS","CANCEL_PAYMENT_PAGE","EXPORT_PAYMENT_PAGE_LIST","CHECK_PAYMENT_PAGE_CUTOM_URL_AVAILABLITY","GENERATE_QR_CODE","SettlementsService","fetchSettlementsSummaryResults","fetchSettlementsSummaryExpandBy","from_date","to_date","source","frequency","recon_type","field","Summarycontent","FETCH_SETTLEMENTS_SUMMARY_RESULTS","paylinks","pending_value","categories","buckets","bucket","credit_amount","date_month","key_as_string","date_week","payment_channel","payment_method","total_txn_amount_bc","txn_fee_bc","wht","wht_bc","total_settlement_amount","total_settlement_amount_bc","pending_amount","remitted_amount","net_remit","remit_fee","net_remitted_amount","net_remit_dc","date_raw","FETCH_SETTLEMENTS_SUMMARY_EXPAND_BY","channels","bucketContent","remittanceBankAccountService","fetchBankAccountTable","postBankAccountTable","updateBankAccountTable","fetchBanksList","paging","addBankAccountDetails","banksList","bankAccountData","account_number","AccountNumber","account_type","AccountType","active","bank_id","BankId","bank_name","BankName","branch","Branch","bsb_code","BsbCode","card_number","CardNumber","Country","default","first_name","last_name","phone_number","iban","Iban","ifsc","Ifsc","PhoneNumber","remittance_purpose","RemittancePurpose","remittance_source","RemittanceSource","routing_number","RoutingNumber","sort_code","SortCode","swift","Swift","transit_code","TransitCode","wing_money_number","WingMoneyNumber","FETCH_REMITTANCES_BANK_ACCOUNT","POST_REMITTANCES_BANK_ACCOUNT","UPDATE_REMITTANCES_BANK_ACCOUNT","FETCH_BANK_LIST","modulesCache","storeData","getNamespace","subtree","path","namespace","requireModule","fileName","moduleDefinition","modulePath","replace","split","camelCase","pop","Vuex","Store","strict","FileManagementService","fetchFileManagementRecords","postFileManagementForm","paymentChannel","payment_channel_key","element","index","FETCH_FILE_MANAGEMENT_DATA","POST_FILE_MANAGEMENT_DATA","refundIncluded","currentData","engine_source","display_name","file_prefix","offset","sheet_number","source_date_format","charge_params","all_headers","file_type","header_mapping","fileHeaders","merchant_order_ref","channel_order_ref","channel_order_ref1","txn_type","txn_ref","refund_header_mapping","refundFileHeaders","refund_offset","refund_sheet_number","source_type","input_header","refund_input_header","parent_rfm_id","created_by","result_title_map","finalPayload","ReconAnalyticsService","getReconSummary","getReconSummaryTableRecords","downloadReconSummaryTableRecords","sendReconSumeryDataOnEmail","record_type","dataFields","dataNodes","lastUpdatedDate","tableData","totalElements","totalPages","additionalColumns","last_updated_at","reconSummary","reconSummaryTable","reconAdditionalColumns","FETCH_RECON_SUMMARY","FETCH_RECON_SUMMARY_TABLE_RECORDS","columns","DOWNLOAD_RECON_SUMMARY_TABLE_RECORDS","SEND_RECON_SUMERY_DATA_ON_EMAIL","loadLocaleMessages","locales","messages","matched","match","locale","VueI18n","fallbackLocale","SubscriptionPriceService","addSubscriptionPrice","fetchSubscriptionPriceList","deletePrice","POST_SUBSCRIPTION_PRICE","FETCH_SUBSCRIPTION_PRICE_LIST","DELETE_PRICE","meta","beforeResolve","routeTo","routeFrom","next","authRequired","reconDates","reconDashbaordDates","authRequiredOnPreviousRoute","some","route","userRolesList","includes","redirect","merchantList","crossBorderList","is_onboarding_completed","recon_analytics_enabled","description","VueRouter","VueMeta","keyName","routes","scrollBehavior","savedPosition","x","y","beforeEach","mchDetails","env","redirectToLogin","query","redirectFrom","fullPath","async","args","PaymentLinksService","fetchPaymentLinks","addPaymentLink","deletePaymentLink","fetchPaymentLinkDetails","fetchPaymentLinkTransactions","checkRefPaymentLink","notificationPaymentLink","exportPaymentLinkTransactions","getSourceList","merchant_uuids","uuidsToSend","item","merchant_keys","refLink","sourceList","entityKey","paymentLinks","newSourceListData","POST_PAYMENT_LINKS","FETCH_SOURCE_LIST","DELETE_PAYMENT_LINKS","NOTIFICATION_PAYMENT_LINKS","CHECK_REF_LINK_PAYMENT_LINKS","FETCH_PAYMENT_LINK_DETAILS","FETCH_PAYMENT_LINK_TRANSACTIONS","FETCH_PAYMENT_LINKS","buyerAddress1","buyerAddress2","buyerCity","buyerCountry","buyerEmail","customer_email_address","buyerName","customer_name","buyerPhone","customer_phone_number","merchant_email_address","cancel_url","chaipaykey","countryCode","expiry_hours","ip_address","link_ref","link","merchant_back_url","merchant_logo","merchant_promo_code","merchant_promo_discount","merchant_shipping_charges","user_configured_field1","user_configured_field2","user_configured_field3","user_configured_field4","user_configured_field5","EXPORT_PAYMENT_LINK_LIST","BeneficiaryService","fetchBeneficiaryTable","fetchBeneficiaryTableMasterMerchant","createBeneficiary","updateBeneficiary","updateBeneficiaryAccount","getBeneficiaryDetailsList","channelKey","newBeneficiary","addAccount","banks_list","banksdata","beneficiaryData","getBeneficiaryList","FETCH_BENEFICIARY_TABLE","FETCH_BENEFICIARY_TABLE_MASTER_MERCHANT","FETCH_BANKS_LIST","channel_key","CREATE_BENEFICIARY","UPDATE_BENEFICIARY","UPDATE_BENEFICIARY_ACCOUNT","FETCH_BENEFICIARY_DETAILS","FETCH_WEBHOOKS","ADD_WEBHOOK","UPDATE_WEBHOOK","UPDATE_WEBHOOK_BY_FORM","DELETE_WEBHOOK","UPDATE_SECRET_KEY_BY_FORM","UPDATE_MERCHANT_ENTITY_DETAILS","UPDATE_MERCHANT_LOGO","FETCH_MERCHANT_ENTITY_DETAILS","FETCH_TRANSACTIONS","FETCH_CHANNEL_LIST","EXPORT_TRANSACTIONS_INTO_EXCEL","FETCH_PAYMENT_CHANNEL_CREDENTIALS","FETCH_PAYOUT_CHANNEL_CREDENTIALS","UPDATE_PAYMENT_CHANNEL_CREDENTIALS","UPDATE_PAYOUT_CHANNEL_CREDENTIALS","FETCH_COLUMN_LIST","UPDATE_COLUMN_LIST","RESET_COLUMN_LIST","FETCH_TRANSACTION_STATUS","FETCH_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS_METRICS","FETCH_TRANSACTION_STATS","FETCH_LATEST_TXNS","FETCH_TRANSACTION_STATISTICS","FETCH_TRANSACTION_VOLUME","FETCH_TRANSACTION_VOLUME_SEASONALITY","FETCH_TRANSACTION_VOLUME_STACKED_BAR","FETCH_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS","SET_SELECTED_TRANSACTION_ID","FETCH_WEBHOOK_DATA_FOR_TRANSACTION","FETCH_FAILOVER_DATA_FOR_TRANSACTION","RESEND_WEBHOOK_DATA_FOR_TRANSACTION","CREATE_REFUND_FOR_TRANSACTION","FETCH_REFUND_DATA_FOR_TRANSACTION","FETCH_TRANSACTION_DETAILS","UPDATE_TRXN_STATUS","UPDATE_REFUND_STATUS","TRANSACTION_FILE_UPLOAD","FETCH_VIRTUAL_ACCOUNTS","FETCH_VIRTUAL_ACCOUNTS_MASTER_MERCHANT","CREATE_VIRTUAL_ACCOUNT","FETCH_ALL_PAYMENT_CHANNEL","FETCH_SELECTED_PAYMENT_CHANNEL_CREDENTIALS","FETCH_PAYMENT_METHODS_CREDENTIALS","FETCH_PAYMENT_METHODS_CREDENTIALS_COUNT","UPDATE_PAYMENT_METHOD_CREDENTIALS","ADD_PAYMENT_METHOD_CREDENTIALS","UPDATE_ENABLE_AND_DEFAULT_STATUS","FETCH_ALL_PAYMENT_PAYOUT_CHANNEL","FETCH_ALL_PAYMENT_CHANNEL_FOR_PREVIEW","FETCH_PAYMENT_ONBOARDING","ONBOARDING_STATUS_CHECK","FETCH_ONBOARDING_FORM_DATA","ADD_ONBOARDING_FORM_DATA","UPDATE_INSTALMENT_TYPE_DATA","ADD_PAYMENT_METHOD_IMPORT_CREDENTIALS","FETCH_PREVIEW_IAMPORT_CREDENTIALS","UPDATE_FILE_UPLOAD","CREATE_RECON","FETCH_RECONCILIATION_RESULTS","FETCH_INGESTION_SUMMARY","FETCH_RECONCILIATIONS","FETCH_RECONCILIATION_SUMMARY_RESULTS","FETCH_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS","FETCH_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY","RECON_DEATILS","RECON_TRANSACTIONS","RECON_SETTLEMENTS","FETCH_CHANNEL_LIST_FOR_RECON","CLEAR_RECON_DEATILS","EXPORT_MISMATCH_TRANSACTIONS_INTO_CSV","EXPORT_RECON_SUMMERY_INTO_CSV","FETCH_USER_DATA_BY_PROPERTY_TYPE","FETCH_USER_DATA_BY_PROPERTY_TYPE_LIST","FETCH_RECON_TRANSACTIONS","RECON_TRANSACTION_FILE_UPLOAD","FETCH_RECONCILIATION_TRANSACTIONS","FETCH_UNRECONCILED_SETTLEMENT","DOWNLOAD_RECONCILIATION_TRANSACTIONS","DOWNLOAD_UNRECONCILED_SETTLEMENT","FILE_UPLOAD","FETCH_RECON_METABASE_RESULT","FETCH_CHANNEL_LIST_FOR_FEE_MANAGEMENT","FETCH_FEE_CONFIG_META","FETCH_FEE_CONFIG_RECORDS","FETCH_PAYMENT_METHODS_OF_PAYMENT_CHANNEL","FETCH_TOLERANCE_LEVEL","FETCH_REMITTANCES_TRANSACTION_STATS","FETCH_REMITTANCES_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS","FETCH_REMITTANCES_TRANSACTION_VOLUME_STACKED_BAR","FETCH_NOTIFICATIONS","MARK_NOTIFICATION_READ","READ_ALL_NOTIFICATIONS","FeeManagementService","fetchChannelListForFeeManagement","fetchFeeConfigMeta","fetchFeeConfigRecords","updateFeeConfigMeta","updateFeeConfigRecord","updateFoodTechFeeConfigRecord","fetchPaymentMethodsOfPaymentChannel","createFeeConfigRecord","createFeeConfigRecordFoodTech","deleteFeeConfigRecord","updateToleranceLevel","fetchToleranceLevel","pcKey","totalContent","feeConfigMeta","recon_email","recon_confirmation_code","recon_confirmation_link","paymentMethods","paymentMethodsList","newChannelListData","fee_config_metadata","feeConfigRecords","charges","total","currency_data","arr","tolerance_level","configData","status_code","toleranceLevel","TransactionService","getTransactionListForMerchant","resendWebhookDataByTransactionId","getChannelListForMerchant","fetchWebhookDataByTransactionId","fetchFailoverData","exportTransactionDataForMerchant","fetchTransactionDetails","updateTransactionStatus","uploadTransactionFile","getColumnListForMerchant","updateColumnListForMerchant","resetColumnListForMerchant","sorting_data","from_Date","to_Date","RefundService","createRefundForTransaction","fetchRefundDetailsForTransaction","updateRefundStatus","transactionId","refundDetails","selectedTransactionID","webhookDetailsForSelectedTransaction","channelEvents","webhookData","refundData","failoverTrasactions","transactionID","failoverData","direct_bank_transfer_details","payment_slip","Array","isArray","getTransactionsData","getTransactionsDataForSelectedTransactionID","find","getRefundDataForSelectedTransactionID","submerchant_key","res","routing_enabled","paymentStatus","refundId","NotificationService","fetchNotifications","readNotification","readAllNotifications","notificationUUID","notifications","moreNotificationsAvailable","showNotifications","reset","ReconTransactionService","getReconTransactionListForMerchant","uploadReconTransactionFile","merchant_key","MerchantService","fetchMerchantEntityDetails","updateMerchantEntityDetails","website_url","isVerifyPayoutsEnabled","master_merchant_access","logo","paymentChannelDetails","payoutChannelDetails","getMerchantEntityDetails","getPaymentChannelCredentials","getPayoutChannelCredentials","channelId","payChannel","updatedCredentials","creds","PaymentGatewayService","updatePaymentChannelCredentials","updatePayoutChannelCredentials","payoutChannel","urls","webhookDetails","webhookDetail","enabled","secretKeyDetail","iamportkey","secureSecret","getRegisteredWebhookURLs","getWebhooksData","secretKeyData","updateSecureSecretKeyData","addWebhookData","deleteWebhookData","updateWebhookData","updateWebhookByFormData","DashboardRemittancesService","fetchRemittancesTransactionsStats","fetchRemittancesTransactionVolForAllPieCharts","fetchRemittancesTransactionStackedBar","txn_stats","txn_vol_by_status","labels","datasets","txn_vol_by_pmt_channel","txn_vol_by_pmt_method","txn_vol_stacked_bar","txn_vol_stacked_bar_pmt_channel","txn_vol_stacked_bar_pmt_method","stats","txnVolByStatus","txnVolByChannel","txnVolByMethod","txnVolForStackedBar","txnData","txnMetricsByChannel","txnMetricsByMethod","txnMetricsByCurrency","curChartData","pcChartData","pmChartData","layoutType","layoutWidth","leftSidebarType","topbar","loader","CHANGE_LAYOUT","CHANGE_LAYOUT_WIDTH","CHANGE_LEFT_SIDEBAR_TYPE","CHANGE_TOPBAR","LOADER","changeLayoutType","changeLayoutWidth","changeLeftSidebarType","changeTopbar","changeLoaderValue","VirtualAccountService","fetchVirtualAccounts","createVirtualAccount","fetchVirtualAccountsMasterMerchant","virtualAccount","virtualAccounts","getVirtualAccounts","ReconciliationService","fetchReconciliationResults","fetchIngestionSummary","fetchReconciliations","fetchReconciliationSummaryResults","fetchReconciliationSummaryForPspResults","fetchPspResultsForReconciliationSummary","fileUpload","createReconciliation","reconciliationDetails","reconciliationTransactions","reconciliationSettlement","fetchReconciliationTransactions","fetchUnReconciledSettlements","downloadReconciliationTransactions","downloadUnReconciledSettlements","getChannelList","exportFeeMismatchTransactions","exportReconSummery","getUserDataByPropertyType","getUserDataByPropertyTypeList","getReconMetabaseResult","fileType","pageType","request_source","pspcontent","recon_details","storeList","reconMetabaseResult","selected_value","metabaseResult","source_name","recon_list","property_type","total_amount","provider_amount_stats","sum","total_count","count","fee_deduction_amount","deducted_amount_stats","fee_deduction_count","expected_fee_amount","expected_psp_fee_stats","expected_fee_count","miss_match_amount","psp_fee_difference_stats","miss_match_count","tolerance_amount_stats","tolerance_count_stats","trans_amount","total_amount_stats","trans_count","refund_amount","refund_amount_stats","refund_count","settlement_amount","settlement_amount_stats","settlement_count","unSettlement_amount","chaipay_amount_stats","unSettlement_count","fee_amount","fee_count","other_adjustments","pmtChannelId","channelDetails","DashboardService","fetchTransactionsStats","fetchLates_txn","fetchTransactionVolume","fetchTransactionSeasonality","fetchTransactionVolForAllPieCharts","fetchTransactionStackedBar","fetchTransactionsStatus","fetchTransactionVolForAllPieChartsMetrics","fetchTransactionsStatistics","getTimezoneOffset","time_bracket","aggtype","txn_status","txn_vol","txn_vol_seasonality","txn_vol_by_pmt_channel_new","label","count_data","backgroundColor","txn_vol_by_pmt_method_new","txn_vol_statistics_bar","is_fetching_stacked_bar_data","is_fetching_status_data","is_fetching_pieChart_data","is_fetching_txn_stats_data","lates_txn","txnVol","txnVolSeasonality","felchedState","isNavIsFatching","txnVolumeByChannel","txnVolumeByMethod","txnVolumeByStatus","txnVolume","txnSeasonality","chartData","PaymentChannelService","getPreviewPaymentChannels","getPaymentChannelPayoutCredentials","getSelectedPaymentChannelCredentials","getPaymentOnboardingEntry","getPaymentMethodsCredentials","updatePaymentChannelCredential","addPaymentChannelCredential","updateEnableAndDefaultStatusForMethod","onboardingStatusCheckApi","updateInstalmentTypeData","addPaymentMethodImportCredData","getPreviewIamportCredsData","paymentMethod","paymentType","psp","payType","iamport_key","toLowerCase","is_va_flow","reqData","OnboardingFormService","fetchonboardingformdata","addonboardingformdata","search","reqBody","payoutChannels","selectedChannelCreds","previewChannels","selectedChannelMethods","methosDetailsCount","onboardingDetailsEntry","onboardingFormData","formdata","formvalues","importCreds","iamportUpdateCreds","available","current","walletLength","sub_type","cardLength","atmCardLength","allLength","walletEnabledLength","cardEnabledLength","atmCardEnabledLength","allEnabledLength","subScriptionEnabledLength","dataToStore","wallet","card","atmCard","walletEnabled","cardEnabled","atmCardEnabled","allEnabled","subscriptionEnabled","listOfCountry","allChannel","arrayOfCountry","listOfCountryForAddCred","regionNames","Intl","DisplayNames","of","paymentChaneelSetupdata","selectedChannel","v","reconChaneelSetupdata","walletsForPreview","wallets","bnplForPreview","qrCodeForPreview","walletsForPreviewTopImages","walletsImg","bnplForPreviewTopImages","qrCodeForPreviewTopImages","atmCardsForPreview","cards","cardsData","is_default","cardsForPreview","tokenization_possible","cardsForPreviewWithoutTokenization","cryptoForPreviewWithoutTokenization","cryptos","cryptosData","codForPreview","cods","codsData","bankTransferForPreview","bankTransfer","bankTransferData","bankTransferPreviewForDirect","paymentChaneelNotSetupdata","reconChaneelNotSetupdata","topBarData","qrcode_channelName","topBarPayoutData","dataForWalletType","allMethods","arrayOfWallets","dataForBnplType","arrayOfBnpls","dataForEMIType","arrayOfEmis","dataForUPIType","arrayOfUpis","dataForNetBankingType","arrayOfNetBankings","dataForQRCodeType","arrayOfQRCodes","dataForOTCType","arrayOfOTC","dataForCryptoType","arrayOfCryptos","dataForBankTransferType","arrayOfBankTransfer","dataForCodType","dataForPayByBankType","arrayOfPayByBank","dataForDirectBankTransferType","dataForAllType","dataForCardType","arrayOfCards","dataForSmartButtonType","arrayOfSmartCards","dataForCreditDebitCardType","dataForUnionPayCardType","dataForInstallmentType","arrayOfInstallment","dataForAtmCardType","dataForDebitCardType","arrayOfDebitCards","dataForVaBankTransferType","dataForDirectDebitType","dataForSubscriptionType","dataForSubscriptionBankTransferType","dataForSubscriptionDirectDebitType","dataForSubscriptionAllType","statusChannelReason","client_key"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAA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sL,EAAQ3D,OAAO,qBAAsBkB,EAAYlJ,MAAO,CAAEoJ,MAAM,IAChExL,EAAOoC,QAMb,CAACinC,SAAmCt7B,GAClC,OAAO,IAAIjO,QAAQ,CAACC,EAASC,KAC3B,MAAM0lD,EAAa33C,EAAQ1D,UAAUC,KAAKC,YAAYzE,WAChDuB,EAAc0G,EAAQ1D,UAAUC,KAAKjD,YAC3Cu1C,EAAsBY,2BAA2BkI,EAAYr+C,GAAa1F,KAAMiF,IAC9EmH,EAAQ3D,OAAOuiB,QAAqC/lB,GACpD7G,EAAQ6G,KACP+D,MAAOvI,IACR,MAAMkJ,EAAc/E,KAAKU,MAAM7E,EAAMK,SACrCsL,EAAQ3D,OAAO,qBAAsBkB,EAAYlJ,MAAO,CAAEoJ,MAAM,IAChExL,EAAOoC,SAOF0K,GAAa","file":"js/app.117200b6.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded CSS chunks\n \tvar installedCssChunks = {\n \t\t\"app\": 0\n \t}\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"js/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-1227cd9c\":\"9aff226e\",\"chunk-2d0e97b4\":\"dde4c1bd\",\"chunk-2391e134\":\"466b476b\",\"chunk-712c6c46\":\"c78784f4\",\"chunk-2d0cc286\":\"1f28b4c9\",\"chunk-b1b450f8\":\"3a6cec60\",\"chunk-56a52896\":\"9c7f328a\",\"chunk-79301c2e\":\"5e0d331e\",\"chunk-161786ec\":\"ff795941\",\"chunk-1baf61f4\":\"6ade0208\",\"chunk-8a4f751c\":\"d8d3ddd1\",\"chunk-27950f44\":\"32393f23\",\"chunk-17ee686e\":\"8ba5f884\",\"chunk-28d5385e\":\"e00ce841\",\"chunk-2c26c902\":\"a9ffadea\",\"chunk-2d0e4e6e\":\"ef668030\",\"chunk-4afca553\":\"8d1700d4\",\"chunk-23f7a4ac\":\"176870f1\",\"chunk-3b440f1a\":\"d53723ff\",\"chunk-2d230495\":\"27fd9698\",\"chunk-18a0e303\":\"52136fd0\",\"chunk-1c7df064\":\"0f65c31f\",\"chunk-26c8f1cd\":\"f09bac45\",\"chunk-2a6c34f9\":\"820ebc82\",\"chunk-56a51840\":\"dbf89a6d\",\"chunk-e99592ea\":\"331a3cdb\",\"chunk-2dc85f6d\":\"a9a1d0ef\",\"chunk-44e29432\":\"13fb4766\",\"chunk-4a5f46a6\":\"f127ac0b\",\"chunk-719dd7e2\":\"c3ca1797\",\"chunk-582d6c14\":\"b137f962\",\"chunk-6e83591c\":\"43f6310a\",\"chunk-1bdcc752\":\"d0314d3d\",\"chunk-750b6698\":\"a96f7e9e\",\"chunk-205023cf\":\"bb7f2539\",\"chunk-77c5104b\":\"d8c0cc9a\",\"chunk-77ab1dc8\":\"fd56f170\",\"chunk-7afc20bc\":\"495287b9\",\"chunk-40d61303\":\"38fac11f\",\"chunk-562b83a2\":\"0411fa2d\",\"chunk-32bb53ae\":\"39b47ec8\",\"chunk-f01cbf92\":\"04a92f40\",\"chunk-f3daedf6\":\"3f1fa21b\",\"chunk-03510c7d\":\"a3c27929\",\"chunk-27a2c797\":\"37fc2098\",\"chunk-176074cf\":\"c169b83e\",\"chunk-2b87d1b1\":\"aad8189e\",\"chunk-3459bde2\":\"ecc80f73\",\"chunk-b6b9b626\":\"e5830d76\",\"chunk-ae9dea12\":\"3da4cab0\",\"chunk-34260312\":\"50b05cd0\",\"chunk-43ecdd9c\":\"38a20d48\",\"chunk-44e42836\":\"813cd699\",\"chunk-6d023ac1\":\"d3b27c6f\",\"chunk-50c7d356\":\"52ae8e5c\",\"chunk-62ba8d40\":\"51efd9c0\",\"chunk-642cafef\":\"32b692f4\",\"chunk-90c5b230\":\"de0f906f\",\"chunk-77840012\":\"37e33cdb\",\"chunk-85c7996e\":\"825d252d\",\"chunk-a91dad74\":\"da120092\",\"chunk-cf51b92a\":\"822e17af\",\"chunk-d0d5319e\":\"6515834d\",\"chunk-2e478d5c\":\"e654d07c\",\"chunk-487bf7b2\":\"b5a44cb0\",\"chunk-7dfe5d16\":\"d9719304\",\"chunk-cccbfbe8\":\"ecb5d163\"}[chunkId] + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// mini-css-extract-plugin CSS loading\n \t\tvar cssChunks = {\"chunk-1227cd9c\":1,\"chunk-2391e134\":1,\"chunk-712c6c46\":1,\"chunk-b1b450f8\":1,\"chunk-79301c2e\":1,\"chunk-161786ec\":1,\"chunk-1baf61f4\":1,\"chunk-8a4f751c\":1,\"chunk-17ee686e\":1,\"chunk-28d5385e\":1,\"chunk-2c26c902\":1,\"chunk-4afca553\":1,\"chunk-23f7a4ac\":1,\"chunk-3b440f1a\":1,\"chunk-18a0e303\":1,\"chunk-1c7df064\":1,\"chunk-26c8f1cd\":1,\"chunk-2a6c34f9\":1,\"chunk-56a51840\":1,\"chunk-e99592ea\":1,\"chunk-2dc85f6d\":1,\"chunk-44e29432\":1,\"chunk-719dd7e2\":1,\"chunk-582d6c14\":1,\"chunk-1bdcc752\":1,\"chunk-205023cf\":1,\"chunk-77c5104b\":1,\"chunk-77ab1dc8\":1,\"chunk-7afc20bc\":1,\"chunk-40d61303\":1,\"chunk-562b83a2\":1,\"chunk-32bb53ae\":1,\"chunk-f01cbf92\":1,\"chunk-f3daedf6\":1,\"chunk-03510c7d\":1,\"chunk-27a2c797\":1,\"chunk-176074cf\":1,\"chunk-2b87d1b1\":1,\"chunk-3459bde2\":1,\"chunk-b6b9b626\":1,\"chunk-ae9dea12\":1,\"chunk-34260312\":1,\"chunk-43ecdd9c\":1,\"chunk-44e42836\":1,\"chunk-6d023ac1\":1,\"chunk-50c7d356\":1,\"chunk-62ba8d40\":1,\"chunk-642cafef\":1,\"chunk-90c5b230\":1,\"chunk-77840012\":1,\"chunk-85c7996e\":1,\"chunk-a91dad74\":1,\"chunk-cf51b92a\":1,\"chunk-d0d5319e\":1,\"chunk-2e478d5c\":1,\"chunk-487bf7b2\":1,\"chunk-cccbfbe8\":1};\n \t\tif(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);\n \t\telse if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {\n \t\t\tpromises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {\n \t\t\t\tvar href = \"css/\" + ({}[chunkId]||chunkId) + \".\" + {\"chunk-1227cd9c\":\"c5c78708\",\"chunk-2d0e97b4\":\"31d6cfe0\",\"chunk-2391e134\":\"6af1c1c2\",\"chunk-712c6c46\":\"08bcc1d5\",\"chunk-2d0cc286\":\"31d6cfe0\",\"chunk-b1b450f8\":\"f84b127f\",\"chunk-56a52896\":\"31d6cfe0\",\"chunk-79301c2e\":\"0272ed83\",\"chunk-161786ec\":\"4e254e8f\",\"chunk-1baf61f4\":\"923499b7\",\"chunk-8a4f751c\":\"fa4ea429\",\"chunk-27950f44\":\"31d6cfe0\",\"chunk-17ee686e\":\"0c980c4f\",\"chunk-28d5385e\":\"4fbf5d91\",\"chunk-2c26c902\":\"fbac5666\",\"chunk-2d0e4e6e\":\"31d6cfe0\",\"chunk-4afca553\":\"0f8f117d\",\"chunk-23f7a4ac\":\"c9126f35\",\"chunk-3b440f1a\":\"3dd529e4\",\"chunk-2d230495\":\"31d6cfe0\",\"chunk-18a0e303\":\"cc9e0e97\",\"chunk-1c7df064\":\"6b4fbfcb\",\"chunk-26c8f1cd\":\"5952e2a6\",\"chunk-2a6c34f9\":\"fb1e55ad\",\"chunk-56a51840\":\"6f5cbbf2\",\"chunk-e99592ea\":\"4005b850\",\"chunk-2dc85f6d\":\"d70ae425\",\"chunk-44e29432\":\"4a14b3e3\",\"chunk-4a5f46a6\":\"31d6cfe0\",\"chunk-719dd7e2\":\"4d4c9fe9\",\"chunk-582d6c14\":\"d1f7f8a6\",\"chunk-6e83591c\":\"31d6cfe0\",\"chunk-1bdcc752\":\"1adbf1e0\",\"chunk-750b6698\":\"31d6cfe0\",\"chunk-205023cf\":\"09a27af1\",\"chunk-77c5104b\":\"88730e9d\",\"chunk-77ab1dc8\":\"ad6a087b\",\"chunk-7afc20bc\":\"0196d6d2\",\"chunk-40d61303\":\"1da97710\",\"chunk-562b83a2\":\"cee6e5a4\",\"chunk-32bb53ae\":\"158f10e9\",\"chunk-f01cbf92\":\"cb232cc2\",\"chunk-f3daedf6\":\"ea86eef3\",\"chunk-03510c7d\":\"ac6bb7fd\",\"chunk-27a2c797\":\"b787142b\",\"chunk-176074cf\":\"8503ed60\",\"chunk-2b87d1b1\":\"26edca11\",\"chunk-3459bde2\":\"c6dbf76a\",\"chunk-b6b9b626\":\"ac5765d7\",\"chunk-ae9dea12\":\"7213172a\",\"chunk-34260312\":\"349c63f2\",\"chunk-43ecdd9c\":\"cd1500f0\",\"chunk-44e42836\":\"fe100f0d\",\"chunk-6d023ac1\":\"bf2af8bd\",\"chunk-50c7d356\":\"ff7abb7c\",\"chunk-62ba8d40\":\"24c63147\",\"chunk-642cafef\":\"b55d11ac\",\"chunk-90c5b230\":\"0a49e221\",\"chunk-77840012\":\"127ed2d9\",\"chunk-85c7996e\":\"e84f2a2b\",\"chunk-a91dad74\":\"9c91e541\",\"chunk-cf51b92a\":\"54f44b9d\",\"chunk-d0d5319e\":\"c9126f35\",\"chunk-2e478d5c\":\"f8e20c6f\",\"chunk-487bf7b2\":\"b9160471\",\"chunk-7dfe5d16\":\"31d6cfe0\",\"chunk-cccbfbe8\":\"9dc6b7b8\"}[chunkId] + \".css\";\n \t\t\t\tvar fullhref = __webpack_require__.p + href;\n \t\t\t\tvar existingLinkTags = document.getElementsByTagName(\"link\");\n \t\t\t\tfor(var i = 0; i < existingLinkTags.length; i++) {\n \t\t\t\t\tvar tag = existingLinkTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\") || tag.getAttribute(\"href\");\n \t\t\t\t\tif(tag.rel === \"stylesheet\" && (dataHref === href || dataHref === fullhref)) return resolve();\n \t\t\t\t}\n \t\t\t\tvar existingStyleTags = document.getElementsByTagName(\"style\");\n \t\t\t\tfor(var i = 0; i < existingStyleTags.length; i++) {\n \t\t\t\t\tvar tag = existingStyleTags[i];\n \t\t\t\t\tvar dataHref = tag.getAttribute(\"data-href\");\n \t\t\t\t\tif(dataHref === href || dataHref === fullhref) return resolve();\n \t\t\t\t}\n \t\t\t\tvar linkTag = document.createElement(\"link\");\n \t\t\t\tlinkTag.rel = \"stylesheet\";\n \t\t\t\tlinkTag.type = \"text/css\";\n \t\t\t\tlinkTag.onload = resolve;\n \t\t\t\tlinkTag.onerror = function(event) {\n \t\t\t\t\tvar request = event && event.target && event.target.src || fullhref;\n \t\t\t\t\tvar err = new Error(\"Loading CSS chunk \" + chunkId + \" failed.\\n(\" + request + \")\");\n \t\t\t\t\terr.code = \"CSS_CHUNK_LOAD_FAILED\";\n \t\t\t\t\terr.request = request;\n \t\t\t\t\tdelete installedCssChunks[chunkId]\n \t\t\t\t\tlinkTag.parentNode.removeChild(linkTag)\n \t\t\t\t\treject(err);\n \t\t\t\t};\n \t\t\t\tlinkTag.href = fullhref;\n\n \t\t\t\tvar head = document.getElementsByTagName(\"head\")[0];\n \t\t\t\thead.appendChild(linkTag);\n \t\t\t}).then(function() {\n \t\t\t\tinstalledCssChunks[chunkId] = 0;\n \t\t\t}));\n \t\t}\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\t// create error before stack unwound to get useful stacktrace later\n \t\t\t\tvar error = new Error();\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n \t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","import Headers from '../headers'\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const InvoiceService = {\n getInvoiceList,\n exportInvoices,\n getInvoiceTemplatesList,\n getInvoiceDetailsList,\n invoiceReminder,\n invoiceVoid,\n invoiceUnvoid,\n markScheduleSent,\n createInvoice,\n updateInvoice,\n getInvoiceTemplateDetails,\n getInvoiceTimeline,\n invoiceDeleteTemplate,\n createInvoiceTemplate,\n updateInvoiceTemplate,\n bulkInvoicesImport\n};\n\nfunction getInvoiceList(merchantUUID,iamportKey, data, isMasterMerchant) {\n const URI = isMasterMerchant ? `master-merchant/${iamportKey}/invoices` : `merchants/${merchantUUID}/invoices`;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(data.payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getInvoiceDetailsList(iamportKey, isMasterMerchant, environment, ref) {\n const URI = isMasterMerchant ? `merchants/${iamportKey}/invoice-details` : `merchants/${iamportKey}/invoice-details`;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({\"environment\":environment,'invoice_ref':ref }),\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction markScheduleSent(isMasterMerchant, payload) {\n const URI = isMasterMerchant ? `merchants/invoice/${payload.invoice_ref}/send-invoice` : `merchants/invoice/${payload.invoice_ref}/send-invoice`;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getInvoiceTimeline(iamportKey, isMasterMerchant, invoice_ref, environment) {\n const URI = isMasterMerchant ? `merchants/${iamportKey}/events-timeline` : `merchants/${iamportKey}/events-timeline`;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({\"environment\":environment,'invoice_ref':invoice_ref }),\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction invoiceReminder(isMasterMerchant, environment, ref) {\n const URI = isMasterMerchant ? `merchants/invoice/${ref}/send-reminder?` : `merchants/invoice/${ref}/send-reminder?`;\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/${URI}`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction invoiceVoid(isMasterMerchant, environment, ref) {\n const URI = isMasterMerchant ? `merchants/invoice/${ref}/void?` : `merchants/invoice/${ref}/void?`;\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/${URI}`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction invoiceUnvoid(isMasterMerchant, environment, ref) {\n const URI = isMasterMerchant ? `merchants/invoice/${ref}/unvoid?` : `merchants/invoice/${ref}/unvoid?`;\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/${URI}`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getInvoiceTemplatesList(iamportKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/invoice_templates?`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getInvoiceTemplateDetails(iamportKey, templateRef) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/invoice_templates/${templateRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportInvoices(iamportKey, data, isMasterMerchant) {\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(data.payload),\n };\n const URI = isMasterMerchant ? `master-merchant/${iamportKey}/export-invoices` : `merchants/${iamportKey}/export-invoices`;\n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"invoices_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction createInvoice(payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/invoice`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateInvoice(payload, invoiceRef) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${payload.portone_key}/invoice/${invoiceRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response;\n // return response.json();\n } else {\n // if(response.status === 401) {\n // window.location = window.location.origin + '/logout';\n // }\n return response.text().then(text => {\n throw new Error(text);\n });\n }\n });\n}\n\nfunction createInvoiceTemplate(payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/invoice_template`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateInvoiceTemplate(payload) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${payload.portone_key}/invoice_templates/${payload.templateRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction invoiceDeleteTemplate(iamportKey, environment, ref) {\n const URI = `merchants/${iamportKey}/invoice_templates/${ref}?`;\n const requestOptions = {\n method: 'DELETE',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/${URI}`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction bulkInvoicesImport(iamportKey, formData) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(false),\n credentials: 'include',\n body: formData\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/bulk-create-invoices`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { InvoiceService } from '../../helpers/backend/invoice.service';\nimport hmacSHA256 from 'crypto-js/hmac-sha256';\nimport Base64 from 'crypto-js/enc-base64';\n\nimport {\n\tFETCH_INVOICES,\n\tEXPORT_INVOICES,\n\tFETCH_INVOICES_TEMPLATES,\n\tFETCH_INVOICES_DETAILS,\n\tFETCH_INVOICES_TEMPLATE_DETAILS,\n\tINVOICES_REMINDER,\n\tINVOICE_VOID,\n\tINVOICE_UNVOID,\n\tMARK_SCHEDULE_SENT,\n\tCREATE_INVOICES,\n\tDELETE_INVOICE_TEMPLATE,\n\tCREATE_INVOICES_TEMPLATE,\n UPDATE_INVOICES_TEMPLATE,\n\tUPDATE_INVOICES,\n\tINVOICE_TIMELINE,\n\tBULK_INVOICE_IMPORT\n} from '../actions.type'; \nimport {\n\tADD_INVOICES_IN_STORE,\n\tADD_INVOICES_DETAILS_IN_STORE,\n\tADD_INVOICES_TEMPLATES_IN_STORE,\n\tADD_INVOICES_TIMELINE_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n\tcontent: [],\n\ttimeLineContent:[],\n\ttotal_elements: 0,\n\ttotal_pages: 0,\n\tsize: 0,\n\tpage: 0,\n\tnumber_of_elements: 0,\n\tisFetchingData:false,\n\ttemplateContent:[],\n\tdetailsContent: {},\n}\n\nexport const mutations = {\n\t[ADD_INVOICES_IN_STORE](state, newInvoiceData) { \n\t\tstate.isFetchingData = newInvoiceData.isFetchingData;\n\t\tstate.content = newInvoiceData.content;\n\t\tstate.total_elements = newInvoiceData.total_elements;\n\t\tstate.total_pages = newInvoiceData.total_pages;\n\t\tstate.size = newInvoiceData.size;\n\t\tstate.page = newInvoiceData.page;\n\t\tstate.number_of_elements = newInvoiceData.number_of_elements;\n\t},\n\t[ADD_INVOICES_DETAILS_IN_STORE](state, invoiceDeatilsData) {\n\t\tif(invoiceDeatilsData.content.additional_costs && invoiceDeatilsData.content.additional_costs.length > 0) {\n\t\t\tinvoiceDeatilsData.content.additional_costs = invoiceDeatilsData.content.additional_costs.map(cost => {\n\t\t\t\tcost.percent = (cost.charge_nature === \"PERCENT\");\n\t\t\t\treturn cost;\n\t\t\t});\n\t\t}\n\t\tstate.detailsContent = invoiceDeatilsData.content;\n\t},\n\t[ADD_INVOICES_TIMELINE_IN_STORE](state, invoiceTimeLineData) {\n\t\tstate.timeLineContent = invoiceTimeLineData.content;\n\t},\n\t[ADD_INVOICES_TEMPLATES_IN_STORE](state, templateData) {\n\t\tstate.templateContent = templateData;\n\t},\n}\n\nexport const getters = {\n}\n\nexport const actions = {\n\t[FETCH_INVOICES]({commit , rootState}, data) {\n\t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\tconst isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tdata.payload.environment = rootState.auth.environment;\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.getInvoiceList(merchantUUID,iamportKey, data, isMM).then((response) => {\n\t\t\t\tif(response.content === null) {\n\t\t\t\t\tresponse.content = [];\n\t\t\t\t}\n\t\t\t\tcommit(ADD_INVOICES_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[FETCH_INVOICES_DETAILS]({commit , rootState}, { ref, submerchantKey }) {\n\t\tconst iamportKey = rootState.auth.currentUser.is_master_merchant ? submerchantKey : rootState.auth.currentUser.iamportKey;\n\t\tconst isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.getInvoiceDetailsList(iamportKey, isMM, environment, ref).then((response) => {\n\t\t\t\tcommit(ADD_INVOICES_DETAILS_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[FETCH_INVOICES_TEMPLATE_DETAILS]({rootState}, ref) {\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.getInvoiceTemplateDetails(iamportKey, ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[MARK_SCHEDULE_SENT]({rootState}, payload) {\n\t\t// const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tpayload.environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.markScheduleSent(isMM, payload).then((response) => {\n\t\t\t\t// commit(ADD_INVOICES_DETAILS_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\t\n\t[INVOICE_TIMELINE]({commit, rootState}, { invoice_ref, submerchantKey }) {\n\t\tconst iamportKey = rootState.auth.currentUser.is_master_merchant ? submerchantKey : rootState.auth.currentUser.iamportKey;\n\t\tconst isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.getInvoiceTimeline(iamportKey,isMM, invoice_ref, environment).then((response) => {\n\t\t\t\tcommit(ADD_INVOICES_TIMELINE_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[INVOICES_REMINDER]({rootState}, ref) {\n\t\t// const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.invoiceReminder(isMM, environment, ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[INVOICE_VOID]({rootState}, ref) {\n\t\t// const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.invoiceVoid(isMM, environment, ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[INVOICE_UNVOID]({rootState}, ref) {\n\t\t// const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.invoiceUnvoid(isMM, environment, ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[FETCH_INVOICES_TEMPLATES]({commit , rootState}) {\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.getInvoiceTemplatesList(iamportKey, environment).then((response) => {\n\t\t\t\tcommit(ADD_INVOICES_TEMPLATES_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\t[EXPORT_INVOICES]({commit, rootState}, data) {\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tdata.payload.environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.exportInvoices(iamportKey, data, isMM).then((response) => {\n\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.status_message, { root: true })\n\t\t\treject(errorObject);\n\t\t\t})\n\t\t})\n\t},\n\t[CREATE_INVOICES]({rootState}, payload) {\n\t\tconst { iamportKey, iamportSecret } = rootState.auth.currentUser;\n\t\t// const merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\t// const isMM = rootState.auth.currentUser.is_master_merchant;\n\t\tpayload.environment = rootState.auth.environment;\n\n\t\tlet mainParams = \"amount=\"+encodeURIComponent(payload.amount)+\"&client_key=\"+encodeURIComponent(iamportKey)+\"¤cy=\"+encodeURIComponent(payload.currency)+\"&failure_url=\"+encodeURIComponent(payload.failure_url)+\"&merchant_invoice_ref=\"+encodeURIComponent(payload.merchant_invoice_ref)+\"&sub_total=\"+encodeURIComponent(payload.sub_total)+\"&success_url=\"+encodeURIComponent(payload.success_url);\n\n\t\tlet hash = hmacSHA256(mainParams, iamportSecret);\n\n\t\tpayload.portone_key = iamportKey;\n\t\tpayload.signature_hash = Base64.stringify(hash);\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.createInvoice(payload).then((response) => {\n\t\t\t\tconsole.log(response);\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[UPDATE_INVOICES]({rootState}, {payload, invoiceRef}) {\n\t\tconst { iamportKey, iamportSecret } = rootState.auth.currentUser;\n\t\tpayload.environment = rootState.auth.environment;\n\n\t\tlet mainParams = \"amount=\"+encodeURIComponent(payload.amount)+\"&client_key=\"+encodeURIComponent(iamportKey)+\"¤cy=\"+encodeURIComponent(payload.currency)+\"&failure_url=\"+encodeURIComponent(payload.failure_url)+\"&merchant_invoice_ref=\"+encodeURIComponent(payload.merchant_invoice_ref)+\"&sub_total=\"+encodeURIComponent(payload.sub_total)+\"&success_url=\"+encodeURIComponent(payload.success_url);\n\n\t\tlet hash = hmacSHA256(mainParams, iamportSecret);\n\n\t\tpayload.portone_key = iamportKey;\n\t\tpayload.signature_hash = Base64.stringify(hash);\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.updateInvoice(payload, invoiceRef).then((response) => {\n\t\t\t\tconsole.log(response);\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[CREATE_INVOICES_TEMPLATE]({rootState}, payload) {\n\t\tconst { iamportKey } = rootState.auth.currentUser;\n\t\t// const merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\tpayload.environment = rootState.auth.environment;\n\t\tpayload.portone_key = iamportKey;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.createInvoiceTemplate(payload).then((response) => {\n\t\t\t\tconsole.log(response);\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[UPDATE_INVOICES_TEMPLATE]({rootState}, payload) {\n\t\tconst { iamportKey } = rootState.auth.currentUser;\n\t\t// const merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\tpayload.environment = rootState.auth.environment;\n\t\tpayload.portone_key = iamportKey;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.updateInvoiceTemplate(payload).then((response) => {\n\t\t\t\tconsole.log(response);\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\n\t[DELETE_INVOICE_TEMPLATE]({rootState}, ref) {\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.invoiceDeleteTemplate(iamportKey, environment, ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n\t[BULK_INVOICE_IMPORT]({rootState}, formData) {\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\n\t\tformData.append(\"portone_key\", iamportKey);\n\t\tformData.append(\"environment\", rootState.auth.environment);\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tInvoiceService.bulkInvoicesImport(iamportKey, formData).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t}\n}\n\nexport const namespaced = true;\n","module.exports = __webpack_public_path__ + \"img/europe.7b4534d2.svg\";","module.exports = __webpack_public_path__ + \"img/singapore.762ec6cc.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAACCCAMAAACXSEZJAAAAsVBMVEUAJH3////MFCvKAB3MECnMGSjIAAAAIXwAHXvLACEAAHMAGHnJAAzvycp2fapud6bacnrKzt4VJHsAEngaKn8ADnfceX/KABb19vkACHYAAG789PX13t+jp8Sws8yw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o+s4R1s09lvFVXT+7mB1MT6rH67I856JDWMooEAgEAoFAIBAIBAKBQCAQCAQCgUAgyBoxfENmuAgL+irLHJacUPeyzGHJCc44yxyWfIDaMPzz9aHmlcp/vj44454Ff/X+oD9uwTNQteHUCT9d/j2lN40+f356eg7wh4bSs8li8HmaYervLVLvAGyaAa2CuiC/Ny4M/lzuT/1z7MqaZRW2c8yMlK+gyys6foIHLXyhh5X2FXT5Bc+hJBMLCpkRcgP/LOMq1D9hQSRo7tS5dlmuRq3jGrJlqMo69Qt78wv215a2cVVrQfu6iN8HMkGW3fEAJlqf8nURv49ix23BM3buoNn9s/UBVxpwH5x8fTluAP+rq3MNksIZIaTJ4KV7IWN+KXa+p4vi+eAm/qHUz7PcayP+zTgQCAQCgUAgEAgEAoFAcC3+B8o49JDvcpQxAAAAAElFTkSuQmCC\"","module.exports = __webpack_public_path__ + \"img/hong_kong.f16fe197.svg\";","import store from '@/state/store'\n\nconst Headers = {\n apiHeaders\n}\n\nfunction apiHeaders(contentType = true) {\n const token = localStorage.getItem(\"token\");\n let obj = {\n 'Authorization': `Bearer ${token}`,\n 'X-Chaipay-Client-UUID': store.getters['auth/subMerchantUUID']\n }\n if(contentType) {\n obj = { ...obj, 'Content-Type': 'application/json' }\n }\n return obj;\n}\n\nexport default Headers;","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport Headers from '../headers';\n\nexport const PaymentMethodsService = {\n fetchCrossBorderPaymentMethods,\n crossBorderupdateEnableAndDefaultStatusForMethod\n};\nfunction fetchCrossBorderPaymentMethods(merchantUUID, iamportKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment})\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/cross-border/pay-methods/countries?${queryParams}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction crossBorderupdateEnableAndDefaultStatusForMethod(merchantUUID, statusData, channelName) {\n // channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify( statusData ),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/update-pay-methods/${channelName}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { PaymentMethodsService } from '../../helpers/backend/cross_border_methods.service';\nimport {\n FETCH_CROSS_BORDER_PAYMENT_METHODS,\n CROSS_BORDER_UPDATE_ENABLE_AND_DEFAULT_STATUS\n} from '../actions.type';\nimport {\n ADD_CROSS_BORDER_PAYMENT_METHODS_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n methods: {},\n countryList:[]\n}\n\nexport const mutations = {\n [ADD_CROSS_BORDER_PAYMENT_METHODS_IN_STORE](state, response) {\n state.countryList = Object.keys(response)\n state.methods = response\n }\n}\n\nexport const getters = {}\n\nexport const actions = {\n\n [FETCH_CROSS_BORDER_PAYMENT_METHODS](context) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n PaymentMethodsService.fetchCrossBorderPaymentMethods(merchantUUID, iamportKey, environment).then((response) => {\n context.commit(ADD_CROSS_BORDER_PAYMENT_METHODS_IN_STORE, response.content)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n [CROSS_BORDER_UPDATE_ENABLE_AND_DEFAULT_STATUS](context, { statusData, countryForMethod }) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n statusData['environment'] = environment;\n PaymentMethodsService.crossBorderupdateEnableAndDefaultStatusForMethod(merchantUUID, statusData, countryForMethod).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n}\n\nexport const namespaced = true;\n","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport Headers from '../headers';\nimport moment from \"moment\";\nexport const MasterMerchantService = {\n fetchMerchantList,\n fetchMerchantPaginatedList,\n fetchInvitedMerchantList,\n inviteMerchantForManagment,\n inviteMerchantForOwnedType,\n activeInactiveMerchant,\n inviteMerchant,\n resendKYC,\n resendInvite,\n deleteMerchant\n};\n\nfunction fetchMerchantList(merchantUUID, iamportKey, pageIndex, pagesize, filters, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({pageIndex, pagesize, filters, environment})\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/merchants?`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction fetchMerchantPaginatedList(merchantUUID, iamportKey, pageIndex, pagesize, filters, environment, from, to) {\n const toDate = to;\n const fromDate = from;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ page: pageIndex, to: moment(toDate).format('YYYY-MM-DD HH:mm:ss'), from: moment(fromDate).format('YYYY-MM-DD HH:mm:ss'), pagesize, filters, order: \"desc\", environment}),\n credentials: 'include',\n };\n // const queryParams = new URLSearchParams({ environment })\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/merchants/paginated`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchInvitedMerchantList(merchantUUID, iamportKey) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/merchants-invite`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction activeInactiveMerchant (merchantUUID, iamportKey,status,uuid) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/merchants/${uuid}/status/${status}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction inviteMerchantForManagment (merchantUUID,email,merchant_type) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ email,merchant_type }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${merchantUUID}/merchants/invite`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction inviteMerchantForOwnedType( merchantUUID, iamportKey, email, merchant_type, name) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ merchant_name: name, merchant_loginid: email, merchant_password: iamportKey, country: \"VN\", is_master_merchant:false, master_merchant_type:merchant_type,master_merchant_uuid:merchantUUID}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/account/register`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n \n}\n\nfunction inviteMerchant(merchantUUID, iamportKey, sendData) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(sendData),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/add-merchant`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n \n}\n\nfunction resendKYC(merchantUUID, iamportKey, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/api/merchant/${iamportKey}/kyc/resend?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction resendInvite(uuid, email, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n body: JSON.stringify({\"email\": email})\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${uuid}/merchants/invite/resend?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction deleteMerchant(merchantUUID, sendData, iamportKey, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(sendData),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n console.log(\"===\", queryParams);\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/merchants?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n }); \n}\n","import { MasterMerchantService } from '../../helpers/backend/master_merchant.service';\nimport moment from \"moment\";\nimport {\n FETCH_MERCHANTS_LIST,\n FETCH_MERCHANTS_PAGINATED_LIST,\n FETCH_INVITED_MERCHANTS_LIST,\n INVITE_MERCHANT_FOR_MANAGED,\n INVITE_MERCHANT_FOR_OWNED,\n ACTIVE_INACTIVE_MERCHANT,\n INVITE_MERCHANT,\n MERCHANT_RESEND_KYC,\n DELETE_MERCHANT,\n MERCHANT_RESEND_INVITE\n} from '../actions.type';\n\nimport {\n ADD_MASTER_MERCHANT_LIST_IN_STORE,\n ADD_MASTER_MERCHANT_PAGINATED_LIST_IN_STORE,\n ADD_INVITED_MASTER_MERCHANT_LIST_IN_STORE,\n UPDATE_MASTER_MERCHANT_FETCHING_STATE,\n} from '../mutations.type';\n\nexport const state = {\n isFetchingData: false,\n content: [],\n paginatedContent: [],\n invitedContent:[],\n total_elements: 0,\n total_pages: 0,\n size: 0,\n page: 0,\n number_of_elements: 0,\n // uploaded_data:[],\n summary:[],\n selected_date_for_summary:\"\"\n}\n\nexport const mutations = {\n [ADD_MASTER_MERCHANT_LIST_IN_STORE](state, newTransactionData) {\n state.content = newTransactionData.content;\n },\n [ADD_MASTER_MERCHANT_PAGINATED_LIST_IN_STORE](state, newTransactionData) {\n state.isFetchingData = newTransactionData.isFetchingData;\n state.paginatedContent = newTransactionData.content;\n state.total_elements = newTransactionData.total_elements;\n state.total_pages = newTransactionData.total_pages;\n state.size = newTransactionData.size;\n state.page = newTransactionData.page;\n state.number_of_elements = newTransactionData.number_of_elements;\n },\n [ADD_INVITED_MASTER_MERCHANT_LIST_IN_STORE](state, newTransactionData) {\n state.isFetchingData = newTransactionData.isFetchingData;\n state.invitedContent = newTransactionData.content;\n },\n [UPDATE_MASTER_MERCHANT_FETCHING_STATE](state, isFetching) {\n state.isFetchingData = isFetching;\n }\n}\n\nexport const getters = {\n getPaymentLinksEntityDetails(state) {\n return state.entityDetails;\n },\n}\n\nexport const actions = {\n [INVITE_MERCHANT_FOR_MANAGED](context, { email,merchant_type }) {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n return new Promise((resolve, reject) => {\n MasterMerchantService.inviteMerchantForManagment(merchantUUID,email,merchant_type).then((response) => {\n // context.commit(SET_UPLOADED_DATA_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [INVITE_MERCHANT_FOR_OWNED](context, { email, merchant_type, name }) {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n return new Promise((resolve, reject) => {\n MasterMerchantService.inviteMerchantForOwnedType(merchantUUID, iamportKey, email, merchant_type, name).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [INVITE_MERCHANT](context, formData) {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n return new Promise((resolve, reject) => {\n MasterMerchantService.inviteMerchant(merchantUUID, iamportKey, formData).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n\n [FETCH_MERCHANTS_LIST]({ commit, rootState }, { pageIndex, pagesize, filters }) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n const environment = rootState.auth.environment;\n MasterMerchantService.fetchMerchantList(merchantUUID, iamportKey, pageIndex, pagesize, filters, environment).then((response) => {\n const merchant_list_content = response.content.map((merchant_list) => {\n return {\n email_id: merchant_list.email_address || \"\",\n key:merchant_list.key || \"\",\n uuid: merchant_list.uuid\n };\n });\n\n const merchant_listData = {\n content: merchant_list_content,\n }\n commit(ADD_MASTER_MERCHANT_LIST_IN_STORE, merchant_listData)\n resolve(merchant_listData);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true }) \n reject(error);\n })\n })\n },\n [FETCH_MERCHANTS_PAGINATED_LIST]({ commit, rootState }, { pageIndex, pagesize, filters, from, to }) {\n commit(UPDATE_MASTER_MERCHANT_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const environment = rootState.auth.environment;\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n MasterMerchantService.fetchMerchantPaginatedList(merchantUUID, iamportKey, pageIndex, pagesize, filters, environment, from, to).then((response) => {\n const merchant_list_content = response.content.map((merchant_list) => {\n return {\n status: merchant_list.merchant_status || \"\",\n name: merchant_list.name || \"\",\n email_address: merchant_list.email_address || \"\",\n ph_number: merchant_list.ph_number || \"\",\n acc_status: merchant_list.merchant_status || \"\",\n key: merchant_list.key || \"\",\n kyc_link: merchant_list.kyc_link || \"\",\n kyc_status: merchant_list.kyc_status || \"\",\n is_invite_merchant: merchant_list.is_invite_merchant || false,\n is_login_allowed: merchant_list.is_login_allowed || false,\n use_master_merchant_creds: merchant_list.use_master_merchant_creds || false,\n };\n });\n\n const merchant_listData = {\n content: merchant_list_content,\n total_elements: response.total_elements,\n total_pages: response.total_pages,\n size: response.size,\n page: response.page,\n number_of_elements: response.number_of_elements,\n }\n commit(ADD_MASTER_MERCHANT_PAGINATED_LIST_IN_STORE, merchant_listData)\n commit(UPDATE_MASTER_MERCHANT_FETCHING_STATE, false)\n resolve(merchant_listData);\n }).catch((error) => {\n commit(UPDATE_MASTER_MERCHANT_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [FETCH_INVITED_MERCHANTS_LIST]({ commit, rootState }) {\n commit(UPDATE_MASTER_MERCHANT_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n MasterMerchantService.fetchInvitedMerchantList(merchantUUID, iamportKey).then((response) => {\n const invited_merchant_list = response.content.map((merchant_list) => {\n return {\n status: merchant_list.status || \"\",\n email_id: merchant_list.email_address || \"\",\n invite_link: merchant_list.invite_link || \"\",\n created_at: moment(merchant_list.created_at).format('MMMM Do YYYY, h:mm:ss a'),\n };\n });\n\n const invited_merchant_listData = {\n content: invited_merchant_list\n }\n commit(ADD_INVITED_MASTER_MERCHANT_LIST_IN_STORE, invited_merchant_listData)\n commit(UPDATE_MASTER_MERCHANT_FETCHING_STATE, false)\n resolve(invited_merchant_listData);\n }).catch((error) => {\n commit(UPDATE_MASTER_MERCHANT_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [ACTIVE_INACTIVE_MERCHANT](context, { status,uuid }) {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n return new Promise((resolve, reject) => {\n MasterMerchantService.activeInactiveMerchant(merchantUUID, iamportKey,status,uuid).then((response) => {\n resolve(response);\n // context.dispatch(`${FETCH_MERCHANTS_PAGINATED_LIST}`, {\n // pageIndex: 1,\n // pagesize: 10,\n // filters: {},\n // })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [MERCHANT_RESEND_KYC](context, { iamportKey }) {\n const environment = context.rootState.auth.environment;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n return new Promise((resolve, reject) => {\n MasterMerchantService.resendKYC(merchantUUID, iamportKey, environment).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [MERCHANT_RESEND_INVITE](context, { email }) {\n const environment = context.rootState.auth.environment;\n const uuid = context.rootState.auth.currentUser.merchantUuid;\n return new Promise((resolve, reject) => {\n MasterMerchantService.resendInvite(uuid, email, environment).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [DELETE_MERCHANT](context, { merchantKey }) {\n const environment = context.rootState.auth.environment;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const data = {\n \"add_merchants\": [],\n \"remove_merchants\": [merchantKey]\n }\n return new Promise((resolve, reject) => {\n MasterMerchantService.deleteMerchant(merchantUUID, data, iamportKey, environment).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n }\n}\n\nexport const namespaced = true;\n","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport Headers from '../headers';\n\nexport const AccountService = {\n fetchAccountStatement,\n downloadExcelStatement\n};\n\n function fetchAccountStatement(merchantUUID, { dates, account_no }) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(dates),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/va/${account_no}/statement`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction downloadExcelStatement(dates, account_no, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(false),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment, from: dates.from, to: dates.to});\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/va/${account_no}/download-statement?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"account-statement_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { AccountService } from '../../helpers/backend/accountstatement.service';\nimport * as cloneDeep from \"lodash.clonedeep\";\n\nimport {\n FETCH_ACCOUNT_STATEMENT,\n DOWNLOAD_VA_EXCEL_STATEMENT\n\n} from '../actions.type';\nimport {\n UPDATE_ACCOUNTS_DATA_IN_STORE,\n DOWNLOAD_EXCEL_STATEMENT_IN_STORE,\n TOGGLE_ACCOUNT_STATEMENT_LOADER_IN_STORE\n} from '../mutations.type';\nexport const state = {\n isFetchingData: false,\n\n accountStatement: [],\n total_elements: 0,\n total_pages: 0,\n size: 10,\n page: 1,\n number_of_elements: 0\n}\n\nexport const mutations = {\n [TOGGLE_ACCOUNT_STATEMENT_LOADER_IN_STORE](state, toggle) {\n state.isFetchingData = toggle;\n },\n [UPDATE_ACCOUNTS_DATA_IN_STORE](state, accountStatement) {\n state.accountStatement = cloneDeep(accountStatement.content);\n state.total_elements = accountStatement.total_elements;\n },\n [DOWNLOAD_EXCEL_STATEMENT_IN_STORE](state, accountStatement) {\n console.log('accountStatement', accountStatement)\n state.accountStatement = cloneDeep(accountStatement)\n },\n}\n\nexport const getters = {\n getAccountList(state) {\n return state.accountStatement;\n }\n}\nexport const actions = {\n\n [FETCH_ACCOUNT_STATEMENT](context, { dates, account_no }) {\n return new Promise((resolve, reject) => {\n\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n context.commit(TOGGLE_ACCOUNT_STATEMENT_LOADER_IN_STORE, true);\n\n AccountService.fetchAccountStatement(merchantUUID, { dates, account_no }).then((response) => {\n\n context.commit(TOGGLE_ACCOUNT_STATEMENT_LOADER_IN_STORE, false);\n if (response.content.content === null) response.content.content = [];\n const statementContent = response.content.content.map((statement) => {\n statement.date = statement.created_at;\n return statement\n })\n response.content.content = statementContent;\n context.commit(UPDATE_ACCOUNTS_DATA_IN_STORE, response.content);\n resolve(response);\n }).catch((error) => {\n context.commit(TOGGLE_ACCOUNT_STATEMENT_LOADER_IN_STORE, false);\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [DOWNLOAD_VA_EXCEL_STATEMENT](context, { dates, account_no }) {\n\n return new Promise((resolve, reject) => {\n const environment = context.rootState.auth.environment;\n AccountService.downloadExcelStatement(dates, account_no, environment).then((response) => {\n\n // context.dispatch(`${FETCH_ACCOUNT_STATEMENT}`);\n // context.commit('notification/success', \"Virtual Account Created successfully\", { root: true })\n // resolve(response);\n // context.commit(DOWNLOAD_EXCEL_STATEMENT_IN_STORE, response);\n\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n}\n\nexport const namespaced = true;","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport Headers from '../headers'\n\nexport const AuthService = {\n logIn,\n register,\n resetPassword,\n sendResetPasswordLinkToEmail,\n sendEmailVerificationLink\n};\n\nfunction logIn(username, password) {\n const requestOptions = {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ username, password }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/account/login`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n throw new Error(text);\n });\n }\n });\n}\n\n// TODO: Add input params in object\nfunction register(bodyToSend) {\n \n const requestOptions = {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify(bodyToSend),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/account/register`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n throw new Error(text);\n });\n }\n });\n}\n\nfunction sendResetPasswordLinkToEmail(emailId) {\n const requestOptions = {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ emailId }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/account/send-reset-password-link`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n throw new Error(text);\n });\n }\n });\n}\n\nfunction sendEmailVerificationLink(emailId) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ emailId }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/account/send-verify-email-link`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n throw new Error(text);\n });\n }\n });\n}\n\nfunction resetPassword(resetToken, password) {\n const requestOptions = {\n method: 'POST',\n headers: { 'Content-Type': 'application/json' },\n body: JSON.stringify({ resetToken, password }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/account/update-password`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import Common from '../../helpers/Common';\r\nimport { AuthService } from '../../helpers/backend/auth.service';\r\nimport {\r\n LOGIN,\r\n LOGOUT,\r\n REGISTER,\r\n SEND_RESET_PASSWORD_LINK,\r\n RESET_PASSWORD,\r\n SET_USER_LANGUAGE,\r\n SEND_EMAIL_VERIFICATION_LINK,\r\n SET_SANDBOX_MODE_ALERT,\r\n SET_UPDATE_ALERT,\r\n} from '../actions.type';\r\nimport {\r\n SET_AUTH_USER,\r\n SET_SANDBOX_MODE_ALERT_IN_STORE,\r\n SET_USER_LANGUAGE_IN_STORE,\r\n SET_UPDATE_ALERT_IN_STORE,\r\n} from '../mutations.type';\r\n\r\nexport const state = {\r\n currentUser: JSON.parse(localStorage.getItem('auth.currentUser')),\r\n language: localStorage.getItem('user.language') ? JSON.parse(localStorage.getItem('user.language')) : 'en',\r\n environment: 'sandbox',\r\n sandboxModeAlert: true,\r\n updateAlert: process.env.VUE_APP_UPDATE_ALERT_AVAILABLE === 'true' && localStorage.getItem('updateAlert') ? true : false,\r\n}\r\n\r\nexport const mutations = {\r\n [SET_AUTH_USER](state, newValue) {\r\n state.currentUser = newValue;\r\n if (newValue == null) {\r\n window.localStorage.clear();\r\n } else {\r\n state.sandboxModeAlert = !newValue.is_live_mode;\r\n state.updateAlert = process.env.VUE_APP_UPDATE_ALERT_AVAILABLE === 'true' && localStorage.getItem('updateAlert') ? true : false;\r\n saveState('auth.currentUser', newValue);\r\n }\r\n },\r\n [SET_USER_LANGUAGE_IN_STORE](state, newLang) {\r\n state.language = newLang;\r\n saveState('user.language', newLang);\r\n },\r\n updateEnvironmentInStore(state, environment) {\r\n state.environment = environment;\r\n // console.log('state.environment', state.environment);\r\n // saveState('environment', environment);\r\n },\r\n [SET_SANDBOX_MODE_ALERT_IN_STORE](state, show) {\r\n state.sandboxModeAlert = show;\r\n },\r\n [SET_UPDATE_ALERT_IN_STORE](state, show) {\r\n state.updateAlert = show;\r\n localStorage.removeItem('updateAlert');\r\n },\r\n}\r\n\r\nexport const getters = {\r\n // Whether the user is currently logged in.\r\n loggedIn(state) {\r\n return !!state.currentUser;\r\n },\r\n iamportKey(state) {\r\n return state.currentUser ? state.currentUser.iamportKey : null;\r\n },\r\n getCurrentEnvironment(state) {\r\n return state.environment ? state.environment : 'sandbox';\r\n },\r\n isEmailVerified(state) {\r\n return state.currentUser ? state.currentUser.is_email_verified : false;\r\n },\r\n merchantUUID(state) {\r\n return state.currentUser ? state.currentUser.merchantUuid : null;\r\n },\r\n subMerchantUUID(state) {\r\n return state.currentUser ? state.currentUser.subUserUuid : null;\r\n },\r\n selectedLanguage(state) {\r\n return state.language ? state.language : 'en';\r\n },\r\n getUserRolesList(state) {\r\n return state.currentUser.roles ? state.currentUser.roles : [];\r\n },\r\n getMerchantList(state) {\r\n return state.currentUser.is_master_merchant ? [\"master-merchant\"] : [\"single-merchant\"];\r\n },\r\n getCrossBorder(state) {\r\n return state.currentUser.cross_border_enabled ? [\"cross-border-merchant\"] : [\"single-merchant\"];\r\n },\r\n getUserPermissionsList(state) {\r\n return state.currentUser.permissions ? state.currentUser.permissions : [] ;\r\n },\r\n getCurrentUser(state) {\r\n return state.currentUser;\r\n },\r\n getCurrentUserCountry(state) {\r\n return state.currentUser.country;\r\n },\r\n getConvertCountry(state){\r\n return Common.currencyByCountry(state.currentUser.country);\r\n },\r\n}\r\n\r\nexport const actions = {\r\n // This is automatically run in `src/state/store.js` when the app\r\n // starts, along with any other actions named `init` in other modules.\r\n init(context) {\r\n context.dispatch('validate');\r\n },\r\n\r\n // Logs in the current user.\r\n [LOGIN](context, { email, password } = {}) {\r\n // if (getters.loggedIn) return context.dispatch('validate')\r\n return new Promise((resolve, reject) => {\r\n AuthService.logIn(email, password).then((response) => {\r\n context.commit(SET_AUTH_USER, response.data);\r\n localStorage.setItem(\"token\", response.token);\r\n if(context.state.currentUser && window.clarity) {\r\n window.clarity(\"identify\", context.state.currentUser.email_address, context.state.currentUser.iamportKey)\r\n }\r\n resolve(response.data);\r\n }).catch((error) => {\r\n const errorObject = JSON.parse(error.message);\r\n context.commit('notification/error', errorObject.Message, { root: true });\r\n if(errorObject.message){\r\n context.commit('notification/error', errorObject.message, { root: true });\r\n }\r\n reject(errorObject.Message);\r\n })\r\n });\r\n },\r\n\r\n [LOGOUT](context) {\r\n context.commit('notification/clear', null, { root: true });\r\n context.commit(SET_AUTH_USER, null);\r\n },\r\n\r\n setEnvironment(context, environment) {\r\n context.commit(\"updateEnvironmentInStore\", environment);\r\n },\r\n\r\n [REGISTER](context, data) {\r\n \r\n // if (getters.loggedIn) return dispatch('validate')\r\n return new Promise((resolve, reject) => {\r\n let formData = {\r\n merchant_name: data.company_name,\r\n merchant_loginid: data.email,\r\n merchant_password: data.password,\r\n country: data.country,\r\n is_master_merchant: data.is_master_merchant == 'true' ? true : false,\r\n is_login_allowed: data.is_login_allowed == 'true' ? true : false,\r\n is_invite_merchant: data.is_invite_merchant == 'true' ? true : false,\r\n use_master_merchant_creds: data.use_master_merchant_creds == 'true' ? true : false,\r\n send_kyc_link_email: data.send_kyc_link_email == 'true' ? true : false,\r\n cross_border_enabled: data.cross_border_enabled == 'true' ? true : false,\r\n cross_border_model: \"PARTNERSHIP\"\r\n };\r\n\r\n if(data.master_merchant_key) {\r\n formData.master_merchant_key = data.master_merchant_key\r\n }\r\n\r\n AuthService.register(formData).then((response) => {\r\n context.commit(SET_AUTH_USER, response.data);\r\n localStorage.setItem(\"token\", response.token);\r\n resolve(response.data);\r\n }).catch((error) => {\r\n const errorObject = JSON.parse(error.message);\r\n context.commit('notification/error', errorObject.Message, { root: true });\r\n reject(errorObject.Message);\r\n })\r\n });\r\n },\r\n\r\n [SEND_RESET_PASSWORD_LINK](context, {email} = {}) {\r\n return new Promise((resolve, reject) => {\r\n AuthService.sendResetPasswordLinkToEmail(email).then((response) => {\r\n context.commit('notification/success', response.Message, { root: true });\r\n resolve(response);\r\n }).catch((error) => {\r\n const errorObject = JSON.parse(error.message);\r\n context.commit('notification/error', errorObject.Message, { root: true });\r\n reject(errorObject.Message);\r\n })\r\n });\r\n },\r\n\r\n [SEND_EMAIL_VERIFICATION_LINK](context) {\r\n return new Promise((resolve, reject) => {\r\n const email = context.rootState.auth.currentUser.email_address;\r\n AuthService.sendEmailVerificationLink(email).then((response) => {\r\n context.commit('notification/success', response.Message, { root: true });\r\n resolve(response);\r\n }).catch((error) => {\r\n const errorObject = JSON.parse(error.message);\r\n context.commit('notification/error', errorObject.Message, { root: true });\r\n reject(errorObject.message);\r\n })\r\n });\r\n },\r\n\r\n [RESET_PASSWORD](context, { resetToken, new_password } = {}) {\r\n return new Promise((resolve, reject) => {\r\n AuthService.resetPassword(resetToken, new_password).then((response) => {\r\n context.commit('notification/success', response.Message, { root: true });\r\n resolve(response);\r\n }).catch((error) => {\r\n const errorObject = JSON.parse(error.message);\r\n context.commit('notification/error', errorObject.Message, { root: true });\r\n reject(error);\r\n })\r\n });\r\n },\r\n\r\n [SET_USER_LANGUAGE](context, newLanguage) {\r\n context.commit(SET_USER_LANGUAGE_IN_STORE, newLanguage);\r\n },\r\n\r\n [SET_SANDBOX_MODE_ALERT](context, show) {\r\n context.commit(SET_SANDBOX_MODE_ALERT_IN_STORE, show);\r\n },\r\n [SET_UPDATE_ALERT](context, show) {\r\n context.commit(SET_UPDATE_ALERT_IN_STORE, show);\r\n },\r\n\r\n // TODO: Validate using chai pay backend APIs, Validates the current user's token and refreshes it\r\n // with new data from the API.\r\n validate(context) {\r\n if (!context.state.currentUser) return Promise.resolve(null);\r\n return {};\r\n },\r\n}\r\n\r\n// ===\r\n// Private helpers\r\n// ===\r\n\r\nfunction saveState(key, state) {\r\n window.localStorage.setItem(key, JSON.stringify(state));\r\n}\r\n\r\nexport const namespaced = true;","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport Headers from '../headers';\n\nexport const PayoutService = {\n fetchPayoutLists,\n fetchPayoutListMasterMerchant,\n createPayouts,\n approvePayouts,\n generateOtp,\n generateOtpViaEmail,\n generateOtpViaEmailForVerify,\n resentOtpViaEmail,\n resentOtpViaEmailForVerify,\n approvePayoutsViaEmail,\n verifyPayoutsViaEmail,\n uploadFile,\n updatePayoutStatus,\n updatePayouts,\n exportPayoutData,\n getPayouteDetailsList\n};\n\nfunction fetchPayoutLists(key,postData) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(postData),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/payouts`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchPayoutListMasterMerchant(key,postData) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(postData),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${key}/merchants/payouts/transactions`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n\nfunction createPayouts(payoutdata) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payoutdata),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/transaction`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updatePayouts(payoutdata) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payoutdata),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/transaction/edit`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction approvePayouts({ mobileNo, approveData}) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(approveData),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/approve/${mobileNo}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction approvePayoutsViaEmail(approveData) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(approveData),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/approve`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction verifyPayoutsViaEmail(approveData) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(approveData),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/verify`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction generateOtp(mobileNo) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/verification/generateOTP/${mobileNo}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction generateOtpViaEmail(emailId, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ environment, email: emailId}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/generateOTP/approve`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction resentOtpViaEmail(emailId, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ environment, email: emailId}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/resendOTP/approve`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction generateOtpViaEmailForVerify(emailId, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ environment, email: emailId}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/generateOTP/verify`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction resentOtpViaEmailForVerify(emailId, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ environment, email: emailId}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/resendOTP/verify`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction uploadFile(iamportKey, fileData) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(false), 'X-Chaipay-Client-Key': iamportKey },\n body: fileData,\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/bulk-create-txn/upload`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"payouts-data_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updatePayoutStatus(linkRef) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/${linkRef}/status/Cancelled`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportPayoutData(key,postData, isMasterMerchant) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(postData),\n credentials: 'include',\n };\n let url = `${CHAIPAY_API_URL}/merchants/${key}/export-payouts`;\n if(isMasterMerchant) {\n url = `${CHAIPAY_API_URL}/master-merchant/${key}/merchants/export-payout-transactions`;\n }\n return fetch(url, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"payout-transactions-data_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction getPayouteDetailsList(iamportKey, environment, ref) {\n const URI = `merchants/${iamportKey}/payouts/${ref}`;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({\"environment\":environment }),\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n","import { PayoutService } from '../../helpers/backend/payouts.service';\n\nimport {\n FETCH_PAYOUT_LIST,\n // TOGGLE_PAYOUTS_LOADER,\n CREATE_PAYOUTS,\n APPROVE_PAYOUTS,\n APPROVE_PAYOUTS_VIA_EMAIL,\n VERIFY_PAYOUTS_VIA_EMAIL,\n GENERATE_OTP_PAYOUT,\n GENERATE_OTP_PAYOUT_VIA_EMAIL,\n GENERATE_OTP_PAYOUT_VIA_EMAIL_FOR_VERIFY,\n RESEND_OTP_PAYOUT_VIA_EMAIL,\n RESEND_OTP_PAYOUT_VIA_EMAIL_FOR_VERIFY,\n PAYOUT_FILE_UPLOAD,\n FETCH_PAYOUT_LIST_MASTER_MERCHANT,\n UPDATE_PAYOUT_STATUS,\n UPDATE_PAYOUTS,\n EXPORT_PAYOUTS_INTO_EXCEL,\n FETCH_PAYOUT_DETAILS\n} from '../actions.type';\n\nimport {\n UPDATE_PAYOUTS_DATA_IN_STORE,\n APPROVE_PAYOUTS_DATA_IN_STORE,\n GENERATE_OTP_PAYOUT_IN_STORE,\n TOGGLE_PAYOUTS_LOADER_IN_STORE,\n ADD_PAYOUT_DETAILS_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n isFetchingData: false,\n content: [],\n total_elements: 0,\n total_pages: 0,\n size: 0,\n page: 0,\n number_of_elements: 0,\n detailsContent:{}\n}\n\nexport const mutations = {\n [TOGGLE_PAYOUTS_LOADER_IN_STORE](state, toggle){\n state.isFetchingData = toggle;\n },\n [UPDATE_PAYOUTS_DATA_IN_STORE](state, payoutdata) {\n // TODO: @VISHAL please check this\n // state.content = cloneDeep(payoutdata.content)\n // state.number_of_elements = payoutdata.number_of_elements;\n state.content = payoutdata.content\n state.total_elements = payoutdata.total_elements\n state.total_pages = payoutdata.total_pages\n state.size = payoutdata.size\n state.page = payoutdata.page\n state.number_of_elements = payoutdata.number_of_elements\n },\n [APPROVE_PAYOUTS_DATA_IN_STORE](state, payoutdata) {\n console.log({ state, payoutdata })\n },\n [GENERATE_OTP_PAYOUT_IN_STORE](state, payoutdata) {\n console.log({ state, payoutdata })\n },\n [ADD_PAYOUT_DETAILS_IN_STORE](state, payoutDeatilsData) {\n\t\tstate.detailsContent = payoutDeatilsData;\n\t},\n}\n\nexport const getters = {\n getPayoutList(state) {\n return state.payoutdata;\n }\n}\n\nexport const actions = {\n [FETCH_PAYOUT_LIST](context, postData) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n context.commit(TOGGLE_PAYOUTS_LOADER_IN_STORE, true);\n postData['environment'] = environment;\n PayoutService.fetchPayoutLists(key, postData).then((response) => {\n context.commit(TOGGLE_PAYOUTS_LOADER_IN_STORE, false);\n context.commit(UPDATE_PAYOUTS_DATA_IN_STORE, response);\n resolve(response)\n }).catch((error) => {\n context.commit(TOGGLE_PAYOUTS_LOADER_IN_STORE, false);\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [FETCH_PAYOUT_LIST_MASTER_MERCHANT](context, postData) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n context.commit(TOGGLE_PAYOUTS_LOADER_IN_STORE, true);\n postData['environment'] = environment;\n PayoutService.fetchPayoutListMasterMerchant(key, postData).then((response) => {\n context.commit(TOGGLE_PAYOUTS_LOADER_IN_STORE, false);\n context.commit(UPDATE_PAYOUTS_DATA_IN_STORE, response.content);\n resolve(response)\n }).catch((error) => {\n context.commit(TOGGLE_PAYOUTS_LOADER_IN_STORE, false);\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [PAYOUT_FILE_UPLOAD](context, { fileData }) {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n fileData['environment'] = environment;\n fileData.append('environment', environment);\n return new Promise((resolve, reject) => {\n PayoutService.uploadFile(iamportKey, fileData).then((response) => {\n resolve(response);\n }).catch(reject);\n })\n },\n\n [CREATE_PAYOUTS](context, newPayouts) {\n return new Promise((resolve, reject) => {\n newPayouts.key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n newPayouts['environment'] = environment;\n PayoutService.createPayouts(newPayouts).then((response) => {\n context.commit('notification/success', \"Payouts Account Created Successfully\", { root: true })\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [UPDATE_PAYOUTS](context, newPayouts) {\n return new Promise((resolve, reject) => {\n newPayouts.key = context.rootState.auth.currentUser.iamportKey;\n newPayouts.environment = context.rootState.auth.environment;\n\n PayoutService.updatePayouts(newPayouts).then((response) => {\n context.commit('notification/success', \"Payout Updated Successfully\", { root: true })\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n // Approve email endpoints via Mobile number\n [APPROVE_PAYOUTS](context, { mobileNo, approveData }) {\n console.log(\"test\");\n return new Promise((resolve, reject) => {\n approveData.approver_name = context.rootState.auth.currentUser.name;\n const environment = context.rootState.auth.environment;\n approveData['environment'] = environment;\n PayoutService.approvePayouts({ mobileNo, approveData }).then((response) => {\n context.dispatch(`${FETCH_PAYOUT_LIST}`, {\n from: \"2006-01-02 15:04:05\",\n to: \"2024-01-02 15:04:05\",\n page: 1, pagesize: 10,\n filters: {},\n })\n resolve(response);\n context.commit('notification/success', \"successful\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [APPROVE_PAYOUTS_VIA_EMAIL](context, { approveData }) {\n console.log(\"test\");\n return new Promise((resolve, reject) => {\n approveData['approver_name'] = context.rootState.auth.currentUser.name;\n approveData['approver_email'] = context.rootState.auth.currentUser.email_address;\n const environment = context.rootState.auth.environment;\n approveData['environment'] = environment;\n PayoutService.approvePayoutsViaEmail(approveData).then((response) => {\n context.dispatch(`${FETCH_PAYOUT_LIST}`, {\n from: \"2006-01-02 15:04:05\",\n to: \"2024-01-02 15:04:05\",\n page: 1, pagesize: 10,\n filters: {},\n })\n resolve(response);\n context.commit('notification/success', \"successful\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [VERIFY_PAYOUTS_VIA_EMAIL](context, { approveData }) {\n console.log(\"test\");\n return new Promise((resolve, reject) => {\n const environment = context.rootState.auth.environment;\n approveData['name'] = context.rootState.auth.currentUser.name;\n approveData['email'] = context.rootState.auth.currentUser.email_address;\n approveData['environment'] = environment;\n PayoutService.verifyPayoutsViaEmail(approveData).then((response) => {\n context.dispatch(`${FETCH_PAYOUT_LIST}`, {\n from: \"2006-01-02 15:04:05\",\n to: \"2024-01-02 15:04:05\",\n page: 1, pagesize: 10,\n filters: {},\n })\n resolve(response);\n context.commit('notification/success', \"successful\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [GENERATE_OTP_PAYOUT](context, mobileNo) {\n return new Promise((resolve, reject) => {\n PayoutService.generateOtp(mobileNo).then((response) => {\n resolve(response);\n context.commit('notification/success', \"successful\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [GENERATE_OTP_PAYOUT_VIA_EMAIL](context) {\n return new Promise((resolve, reject) => {\n const merchantEmail = context.rootState.auth.currentUser.email_address;\n const environment = context.rootState.auth.environment;\n PayoutService.generateOtpViaEmail(merchantEmail, environment).then((response) => {\n resolve(response);\n context.commit('notification/success', \"successful\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [GENERATE_OTP_PAYOUT_VIA_EMAIL_FOR_VERIFY](context) {\n return new Promise((resolve, reject) => {\n const merchantEmail = context.rootState.auth.currentUser.email_address;\n const environment = context.rootState.auth.environment;\n PayoutService.generateOtpViaEmailForVerify(merchantEmail, environment).then((response) => {\n resolve(response);\n context.commit('notification/success', \"successful\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [RESEND_OTP_PAYOUT_VIA_EMAIL](context) {\n return new Promise((resolve, reject) => {\n const merchantEmail = context.rootState.auth.currentUser.email_address;\n const environment = context.rootState.auth.environment;\n PayoutService.resentOtpViaEmail(merchantEmail, environment).then((response) => {\n resolve(response);\n context.commit('notification/success', \"successful\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [RESEND_OTP_PAYOUT_VIA_EMAIL_FOR_VERIFY](context) {\n return new Promise((resolve, reject) => {\n const merchantEmail = context.rootState.auth.currentUser.email_address;\n const environment = context.rootState.auth.environment;\n PayoutService.resentOtpViaEmailForVerify(merchantEmail, environment).then((response) => {\n resolve(response);\n context.commit('notification/success', \"successful\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [UPDATE_PAYOUT_STATUS](context, linkRef) {\n return new Promise((resolve, reject) => {\n PayoutService.updatePayoutStatus(linkRef).then((response) => {\n context.commit('notification/success', \"Payout Cancelled successfully\", { root: true })\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n [EXPORT_PAYOUTS_INTO_EXCEL](context, postData) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n postData['environment'] = environment;\n const isMasterMerchant = context.rootState.auth.currentUser.is_master_merchant;\n PayoutService.exportPayoutData(key, postData, isMasterMerchant).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\t[FETCH_PAYOUT_DETAILS]({commit , rootState}, { ref }) {\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tPayoutService.getPayouteDetailsList(iamportKey, environment, ref).then((response) => {\n\t\t\t\tcommit(ADD_PAYOUT_DETAILS_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n}\n\nexport const namespaced = true;","import moment from \"moment\";\nimport Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const RemittanceSummaryService = {\n getremittanceSummaryList,\n exportremittanceSummary\n};\n\nfunction getremittanceSummaryList(merchantUUId, iamportKey, pageIndex, pagesize, filters, toDate, fromDate, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,\"key\":iamportKey, page: pageIndex, to: moment(toDate).format('YYYY-MM-DD HH:mm:ss'), from: moment(fromDate).format('YYYY-MM-DD HH:mm:ss'), page_size: pagesize, filters: filters}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/cross-border/settlement/remittance`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportremittanceSummary(merchantUUId, iamportKey, pageIndex, pagesize, filters, toDate, fromDate, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,\"key\":iamportKey, page: pageIndex, to: moment(toDate).format('YYYY-MM-DD HH:mm:ss'), from: moment(fromDate).format('YYYY-MM-DD HH:mm:ss'), page_size: pagesize, filters: filters}),\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/merchants/cross-border/settlement/export-remittance`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"remittance-summary-data_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { RemittanceSummaryService } from '../../helpers/backend/remittance_summary.service';\nimport moment from 'moment';\nimport {\n FETCH_REMITTANCE_SUMMARY,\n EXPORT_REMITTANCE_SUMMARY_INTO_EXCEL,\n} from '../actions.type';\nimport {\n\tADD_REMITTANCE_SUMMARY_IN_STORE,\n\tUPDATE_REMITTANCE_SUMMARY_FETCHING_STATE\n} from '../mutations.type';\n\nexport const state = {\n\tisFetchingData: false,\n\tcontent: [],\n\ttotal_elements: 0,\n\ttotal_pages: 0,\n\tsize: 0,\n\tpage: 0,\n\tnumber_of_elements: 0,\n}\n\nexport const mutations = {\n\n\t[ADD_REMITTANCE_SUMMARY_IN_STORE](state, newTransactionData) {\n\t\tstate.isFetchingData = newTransactionData.isFetchingData;\n\t\tstate.content = newTransactionData.content;\n\t\tstate.total_elements = newTransactionData.total_elements;\n\t\tstate.total_pages = newTransactionData.total_pages;\n\t\tstate.size = newTransactionData.size;\n\t\tstate.page = newTransactionData.page;\n\t\tstate.number_of_elements = newTransactionData.number_of_elements;\n\t},\n\t[UPDATE_REMITTANCE_SUMMARY_FETCHING_STATE](state, isFetching) {\n\t\tstate.isFetchingData = isFetching;\n\t},\n}\n\nexport const getters = {\n\n}\n\nexport const actions = {\n\n\t[FETCH_REMITTANCE_SUMMARY]({ commit, rootState }, { pageIndex, pagesize, filters, toDate, fromDate }) {\n\t\tcommit(UPDATE_REMITTANCE_SUMMARY_FETCHING_STATE, true)\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tconst environment = rootState.auth.environment;\n\t\t\tconst merchantUUId = rootState.auth.currentUser.merchantUuid;\n\t\t\tRemittanceSummaryService.getremittanceSummaryList(merchantUUId, iamportKey, pageIndex, pagesize, filters, toDate, fromDate, environment).then((response) => {\n\t\t\t\tif(response.content === null) {\n\t\t\t\t\tresponse.content = [];\n\t\t\t\t}\n\t\t\t\tconst trxn_content = response.content.map((trxn) => {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: trxn.status,\n\t\t\t\t\t\tdate: moment(trxn.created_at).format('MMMM Do YYYY, h:mm:ss a'),\n\t\t\t\t\t\tdestination_currency: trxn.destination_currency,\n\t\t\t\t\t\tsource_currency: trxn.source_currency,\n\t\t\t\t\t\ttotal_txn_amount:(trxn.total_txn_amount_sc).toLocaleString('en-US', { style: 'currency', currency: trxn.source_currency }),\n\t\t\t\t\t\ttxn_fee: (trxn.txn_fee_sc).toLocaleString('en-US', { style: 'currency', currency: trxn.source_currency }),\n\t\t\t\t\t\twith_hodling_tax: (trxn.withholding_tax_sc).toLocaleString('en-US', { style: 'currency', currency: trxn.source_currency }),\n\t\t\t\t\t\trefund_amount_sc: (trxn.refund_amount_sc).toLocaleString('en-US', { style: 'currency', currency: trxn.source_currency }),\n\t\t\t\t\t\treserve_credit_bc: (trxn.reserve_credit_bc).toLocaleString('en-US', { style: 'currency', currency: trxn.source_currency }),\n\t\t\t\t\t\treserve_debit_bc: (trxn.reserve_debit_bc).toLocaleString('en-US', { style: 'currency', currency: trxn.source_currency }),\n\t\t\t\t\t\ttransfer_fee: (trxn.transfer_fee_bc).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n\t\t\t\t\t\tapplied_forex_rate: trxn.applied_forex_rate,\n\t\t\t\t\t\tnet_amount_transferred: trxn.destination_currency ? (trxn.net_amount_transferred_dc).toLocaleString('en-US', { style: 'currency', currency: trxn.destination_currency }) : trxn.net_amount_transferred_dc\n\t\t\t\t\t};\n\t\t\t\t});\n\t\t\t\tconst transactionData = {\n\t\t\t\t\tcontent: trxn_content,\n\t\t\t\t\ttotal_elements: response.total_elements,\n\t\t\t\t\ttotal_pages: response.total_pages,\n\t\t\t\t\tsize: response.size,\n\t\t\t\t\tpage: response.page,\n\t\t\t\t\tnumber_of_elements: response.number_of_elements,\n\t\t\t\t}\n\t\t\t\tcommit(ADD_REMITTANCE_SUMMARY_IN_STORE, transactionData)\n\t\t\t\tcommit(UPDATE_REMITTANCE_SUMMARY_FETCHING_STATE, false)\n\t\t\t\tresolve(transactionData);\n\t\t\t}).catch((error) => {\n\t\t\t\tcommit(UPDATE_REMITTANCE_SUMMARY_FETCHING_STATE, false)\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[EXPORT_REMITTANCE_SUMMARY_INTO_EXCEL]({ commit, rootState }, { pageIndex, pagesize, filters, toDate, fromDate }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst environment = rootState.auth.environment;\n\t\tconst merchantUUId = rootState.auth.currentUser.merchantUuid;\n\t\tRemittanceSummaryService.exportremittanceSummary(merchantUUId, iamportKey, pageIndex, pagesize, filters, toDate, fromDate, environment).then((response) => {\n\t\t\tresolve(response);\n\t\t}).catch((error) => {\n\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\treject(error);\n\t\t})\n\t\t})\n\t}\n}\n\nexport const namespaced = true;\n","module.exports = __webpack_public_path__ + \"img/united_states.aefba3fe.svg\";","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport moment from \"moment\";\nimport Headers from '../headers';\n\nexport const ReserveLedgerService = {\n fetchLedger,\n downloadExcelLedger\n};\n\nfunction fetchLedger(merchantUUID, {iamportKey,environment,data}) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({\"key\":iamportKey,\"page\":data.page,\"page_size\":data.pagesize,\"from\":moment(data.from).format('YYYY-MM-DD HH:mm:ss'),\"to\":moment(data.to).format('YYYY-MM-DD HH:mm:ss'),\"filters\":{},\"environment\":environment}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/cross-border/reserve/statement`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction downloadExcelLedger(merchantUUID, {iamportKey,environment,data}) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({\"key\":iamportKey,\"page\":data.page,\"page_size\":data.pagesize,\"from\":moment(data.from).format('YYYY-MM-DD HH:mm:ss'),\"to\":moment(data.to).format('YYYY-MM-DD HH:mm:ss'),\"filters\":{},\"environment\":environment}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/cross-border/reserve/download-statement?`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"reserve-ledger_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { ReserveLedgerService } from '../../helpers/backend/reserve_ledger.service';\nimport * as cloneDeep from \"lodash.clonedeep\";\nimport moment from 'moment';\n\nimport {\n FETCH_LEDGER,\n DOWNLOAD_VA_EXCEL_LEDGER\n\n} from '../actions.type';\nimport {\n UPDATE_LEDGER_DATA_IN_STORE,\n TOGGLE_LEDGER_LOADER_IN_STORE\n} from '../mutations.type';\nexport const state = {\n isFetchingData: false,\n ledgerData: [],\n total_elements: 0,\n total_pages: 0,\n size: 10,\n page: 1,\n number_of_elements: 0\n}\n\nexport const mutations = {\n [TOGGLE_LEDGER_LOADER_IN_STORE](state, toggle) {\n state.isFetchingData = toggle;\n },\n [UPDATE_LEDGER_DATA_IN_STORE](state, accountStatement) {\n state.ledgerData = cloneDeep(accountStatement.content);\n state.total_elements = accountStatement.total_elements;\n },\n}\n\nexport const getters = {\n getAccountList(state) {\n return state.ledgerData;\n }\n}\nexport const actions = {\n\n [FETCH_LEDGER](context, data) {\n return new Promise((resolve, reject) => {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n\t\t\tconst environment = context.rootState.auth.environment;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n context.commit(TOGGLE_LEDGER_LOADER_IN_STORE, true);\n ReserveLedgerService.fetchLedger(merchantUUID, { iamportKey,environment,data }).then((response) => {\n context.commit(TOGGLE_LEDGER_LOADER_IN_STORE, false);\n if (response.content === null) response.content = [];\n const statementContent = response.content.map((statement) => {\n statement.date = moment(statement.created_at).format('MMMM Do YYYY, h:mm:ss a');\n return statement\n })\n response.content = statementContent;\n context.commit(UPDATE_LEDGER_DATA_IN_STORE, response);\n resolve(response);\n }).catch((error) => {\n context.commit(TOGGLE_LEDGER_LOADER_IN_STORE, false);\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [DOWNLOAD_VA_EXCEL_LEDGER](context, data) {\n return new Promise((resolve, reject) => {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n\t\t\tconst environment = context.rootState.auth.environment;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n ReserveLedgerService.downloadExcelLedger(merchantUUID, { iamportKey,environment,data }).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n}\n\nexport const namespaced = true;","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const SubscriptionService = {\n addSubscription,\n fetchSubscriptionList,\n deleteSubscription,\n fetchAllPrice,\n fetchSubscription,\n fetchSubscriptionTransactions,\n postCollectPayment\n};\n\nfunction addSubscription(entityDetails) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(entityDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/subscription/createSubscription`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchSubscriptionList(merchantUuid, payload, isMasterMerchant, iamportKey) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n let URI = `merchant/subscription/${merchantUuid}/list`;\n if(isMasterMerchant) {\n URI = `master-merchant/${iamportKey}/merchants/subscription-list`;\n }\n\n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction deleteSubscription(orderRef, iamportKey) {\n const requestOptions = {\n method: 'PUT',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/subscription/${orderRef}/status/cancelled`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchAllPrice(merchantUuid, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment})\n return fetch(`${CHAIPAY_API_URL}/merchant/subscription/price/${merchantUuid}/price-subscription-list?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchSubscription(orderRef, iamportKey) {\n const requestOptions = {\n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/subscription/${orderRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchSubscriptionTransactions(orderRef, payload, iamportKey) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(payload)\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/subscription/${orderRef}/txns-records`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction postCollectPayment(payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n body: JSON.stringify(payload)\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/subscription/createDeduction`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { SubscriptionService } from \"../../helpers/backend/subscription.service\";\nimport { DELETE_SUBSCRIPTION, FETCH_ALL_PRICE, FETCH_SUBSCRIPTION_DETAILS, FETCH_SUBSCRIPTION_LIST, FETCH_SUBSCRIPTION_TRANSACTIONS, POST_COLLECT_PAYMENT, POST_SUBSCRIPTION } from \"../actions.type\";\nimport hmacSHA256 from 'crypto-js/hmac-sha256';\nimport Base64 from 'crypto-js/enc-base64';\nimport { SET_SUBSCRIPTION_DATA_IN_STORE } from \"../mutations.type\";\n\nexport const state = {\n content: [],\n number_of_elements: 0,\n page: 0,\n size: 0,\n total_elements: 0,\n total_pages: 0\n}\n\nexport const mutations = {\n [SET_SUBSCRIPTION_DATA_IN_STORE](state, data) {\n state.content = data.content;\n state.number_of_elements = data.number_of_elements;\n state.page = data.page;\n state.size = data.size;\n state.total_elements = data.total_elements;\n state.total_pages = data.total_pages;\n },\n}\n\nexport const actions = {\n\n [POST_SUBSCRIPTION](context, newEntityDetails) {\n return new Promise((resolve, reject) => {\n const environment = context.rootState.auth.environment;\n\n const { iamportKey, iamportSecret } = context.rootState.auth.currentUser;\n\n const merchantOrderRef = 'Subscription_'+ new Date().getTime()\n\n const mainParams = \"&client_key=\"+encodeURIComponent(iamportKey)+\"¤cy=\"+encodeURIComponent(newEntityDetails.price.currency)+\"&failure_url=\"+encodeURIComponent(newEntityDetails.failure_url)+\"&merchant_order_ref=\"+encodeURIComponent(merchantOrderRef)+\"&quantity=\"+encodeURIComponent(newEntityDetails.quantity)+\"&success_url=\"+encodeURIComponent(newEntityDetails.success_url);\n\n const hash = hmacSHA256(mainParams, iamportSecret);\n\n const signatureHash = Base64.stringify(hash);\n\n newEntityDetails.currency = newEntityDetails.price.currency;\n\n newEntityDetails.price_order_ref = newEntityDetails.price.order_ref;\n \n const formData = {\n ...newEntityDetails,\n \"chaipay_key\": iamportKey,\n \"signature_hash\": signatureHash,\n \"merchant_order_ref\": merchantOrderRef,\n \"source\": \"checkout\",\n environment: environment\n };\n\n delete formData.price;\n\n SubscriptionService.addSubscription(formData).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_SUBSCRIPTION_LIST](context, payload) {\n return new Promise((resolve, reject) => {\n payload.environment = context.rootState.auth.environment;\n const merchantUuid = context.rootState.auth.currentUser.merchantUuid;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const isMasterMerchant = context.rootState.auth.currentUser.is_master_merchant;\n\n SubscriptionService.fetchSubscriptionList(merchantUuid, payload, isMasterMerchant, iamportKey).then((response) => {\n context.commit(SET_SUBSCRIPTION_DATA_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n\n [DELETE_SUBSCRIPTION](context, order_ref) {\n return new Promise((resolve, reject) => {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n SubscriptionService.deleteSubscription(order_ref, iamportKey).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_ALL_PRICE](context) {\n return new Promise((resolve, reject) => {\n const merchantUuid = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n SubscriptionService.fetchAllPrice(merchantUuid, environment).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_SUBSCRIPTION_DETAILS](context, {order_ref, key}) {\n return new Promise((resolve, reject) => {\n const iamportKey = context.rootState.auth.currentUser.is_master_merchant ? key : context.rootState.auth.currentUser.iamportKey;\n SubscriptionService.fetchSubscription(order_ref, iamportKey).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n [FETCH_SUBSCRIPTION_TRANSACTIONS](context, {order_ref, key}) {\n return new Promise((resolve, reject) => {\n const merchantUuid = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n const iamportKey = context.rootState.auth.currentUser.is_master_merchant ? key : context.rootState.auth.currentUser.iamportKey;\n const payload = {\n \"uuid\": merchantUuid,\n \"environment\": environment\n }\n SubscriptionService.fetchSubscriptionTransactions(order_ref, payload, iamportKey).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n [POST_COLLECT_PAYMENT](context, payload) {\n return new Promise((resolve, reject) => {\n payload = {\n ...payload,\n \"chaipay_key\": context.rootState.auth.currentUser.iamportKey,\n \"environment\": context.rootState.auth.environment,\n }\n SubscriptionService.postCollectPayment(payload).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n}\n\nexport const namespaced = true;","export const state = {\r\n type: null,\r\n message: null\r\n};\r\n\r\nexport const mutations = {\r\n success(state, message) {\r\n state.type = 'success';\r\n state.message = message;\r\n },\r\n error(state, message) {\r\n state.type = 'danger';\r\n state.message = message;\r\n },\r\n clear(state) {\r\n state.type = null;\r\n state.message = null;\r\n }\r\n};\r\n\r\nexport const actions = {\r\n success({ commit }, message) {\r\n commit('success', message);\r\n },\r\n error({ commit }, message) {\r\n commit('error', message);\r\n },\r\n clear({ commit }) {\r\n commit('clear');\r\n }\r\n};\r\n\r\nexport const namespaced = true;","import Headers from '../headers';\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const AccountService = {\n createSubUser,\n updateSubUserDetails,\n fetchDetailsForAllSubUsers,\n fetchSubUserDetailsById,\n verifySubUserPermissions,\n setupOrGenerate2FA,\n verify2FAForCurrentUser,\n};\n\n// Get List of Sub Users and details\nfunction fetchDetailsForAllSubUsers(chaiPayKey, environment) {\n\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${chaiPayKey}/subUser?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// Fetch details of Sub User\nfunction fetchSubUserDetailsById(chaiPayKey, subUserUUid, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n \n return fetch(`${CHAIPAY_API_URL}/merchants/${chaiPayKey}/subUser/${subUserUUid}?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// Create a SubUser\nfunction createSubUser(chaiPayKey, subUserDetails) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(subUserDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${chaiPayKey}/subUser`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// Update SubUser details\nfunction updateSubUserDetails(chaiPayKey, subUserUUid, subUserDetails) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(subUserDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${chaiPayKey}/subUser/${subUserUUid}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// Verify SubUser permissions\nfunction verifySubUserPermissions(chaiPayKey, subUserUUid ,subUserPermissions) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(subUserPermissions),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${chaiPayKey}/subUser/${subUserUUid}/verifyPermissions`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// Setup Or Generate 2FA\nfunction setupOrGenerate2FA(emailID, twoFADetails) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({...twoFADetails, email_address:emailID}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/verification/2FA`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// Verify 2FA\nfunction verify2FAForCurrentUser(emailID, verificationDetails) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({email_address:emailID , ...verificationDetails}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/verification/2FA/verify`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { AccountService } from '../../helpers/backend/accounts.service';\n// import * as cloneDeep from \"lodash.clonedeep\";\n// import hmacSHA512 from 'crypto-js/hmac-sha512';\nimport Base64 from 'crypto-js/enc-base64';\nimport CryptoJS from 'crypto-js';\n\nimport {\n CREATE_SUB_USER,\n UPDATE_SUB_USER_DETAILS,\n FETCH_DETAILS_FOR_ALL_SUB_USERS,\n FETCH_SUB_USER_DETAILS_BY_ID,\n SETUP_OR_GENERATE_2FA_OTP,\n VERIFY_2FA_FOR_CURRENT_USER,\n // VERIFY_SUB_USER_PERMISSIONS\n} from '../actions.type';\n\nimport {\n UPDATE_SUB_USER_DETAILS_IN_STORE,\n SET_AUTH_USER,\n} from '../mutations.type';\n\nexport const state = {\n subUserData: [],\n}\n\nexport const mutations = {\n [UPDATE_SUB_USER_DETAILS_IN_STORE](state, subUserData) {\n state.subUserData = subUserData;\n },\n}\n\nexport const getters = {\n getSubUserDataFromStore(state) {\n return state.subUserData;\n },\n}\n\nexport const actions = {\n\n [FETCH_DETAILS_FOR_ALL_SUB_USERS](context) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n AccountService.fetchDetailsForAllSubUsers(key, environment).then((response) => {\n context.commit(UPDATE_SUB_USER_DETAILS_IN_STORE, response);\n resolve(response);\n }).catch((error) => {\n console.log(error)\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [CREATE_SUB_USER](context, subUserDetails) {\n return new Promise((resolve, reject) => {\n const chaiPayKey = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n subUserDetails['environment'] = environment;\n AccountService.createSubUser(chaiPayKey, subUserDetails).then((response) => {\n context.dispatch(`${FETCH_DETAILS_FOR_ALL_SUB_USERS}`)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [UPDATE_SUB_USER_DETAILS](context, {subUserID, subUserDetails}) {\n return new Promise((resolve, reject) => {\n const chaiPayKey = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n subUserDetails['environment'] = environment;\n AccountService.updateSubUserDetails(chaiPayKey, subUserID, subUserDetails).then((response) => {\n // context.dispatch(`${FETCH_DETAILS_FOR_ALL_SUB_USERS}`)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_SUB_USER_DETAILS_BY_ID](context) {\n return new Promise((resolve, reject) => {\n const chaiPayKey = context.rootState.auth.currentUser.iamportKey;\n const subUserUUID = context.rootState.auth.currentUser.subUserUuid;\n const environment = context.rootState.auth.environment;\n AccountService.fetchSubUserDetailsById(chaiPayKey, subUserUUID, environment).then((response) => {\n\n if(!response.is_active) {\n window.location = window.location.origin + '/logout';\n }\n\n let roles = response.roles.toString()\n\n let params = new URLSearchParams();\n params.append('iamportKey', response.iamportKey)\n params.append('iamportSecret', response.iamportSecret)\n params.append('roles', roles)\n let message = params.toString();\n\n let secure_hash = Base64.stringify(CryptoJS.HmacSHA256(message, response.subUserUuid));\n if(secure_hash !== response.secure_hash) {\n window.location = window.location.origin + '/pageNotFound';\n }\n\n context.commit(`auth/${SET_AUTH_USER}`, response, { root: true });\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [SETUP_OR_GENERATE_2FA_OTP](context, twoFADetails) {\n return new Promise((resolve, reject) => {\n const email_address = context.rootState.auth.currentUser.email_address;\n const environment = context.rootState.auth.environment;\n twoFADetails['environment'] = environment;\n AccountService.setupOrGenerate2FA(email_address, twoFADetails).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n });\n },\n\n [VERIFY_2FA_FOR_CURRENT_USER](context, twoFADetails) {\n return new Promise((resolve, reject) => {\n const email_address = context.rootState.auth.currentUser.email_address;\n const environment = context.rootState.auth.environment;\n twoFADetails['environment'] = environment;\n AccountService.verify2FAForCurrentUser(email_address, twoFADetails).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n });\n },\n\n}\n\n\nexport const namespaced = true;","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAT4AAACfCAMAAABX0UX9AAAAMFBMVEUBh1L///8FilUAiEwqf1gCiE/l5eXv/fgIjVgAhVAAjFAug1z9/P0Fi1LZ6eLv//ciup9sAAABuklEQVR4nO3SyXECARAEweUS7AH4761ALlRoXlkedEYvj/NIz21//Qz12rfnzKrHcl7W5f9bb5f9fhrqvV9uA5s+cOchvuV2ud6PGb3jfh3kG9H745vRO52m+JYVXwlfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpfCl8KXwpf6su3jPh9+Y4ZvePLN+G3LlN86+2yj73v/eEbGfXBe5xHem7762eo1749Z1Y9fgF2nG32nRewWgAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"img/philippines.d90d5391.png\";","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const SmartRoutingService = {\n fetchTransactionRoutes,\n postRouteDetails,\n updateRouteDetails,\n deleteRouteDetails,\n fetchAllPaymentChannels,\n setDefaultRouteDetails\n}\n\nfunction fetchTransactionRoutes(iamportKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({ environment });\n return fetch(`${CHAIPAY_API_URL}/merchants/txn-router/${iamportKey}/routes?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction postRouteDetails(payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/txn-router/create`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateRouteDetails(iamportKey, payload, routingRef) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/txn-router/${iamportKey}/update/${routingRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction deleteRouteDetails(iamportKey, routingRef) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/txn-router/${iamportKey}/delete/${routingRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchAllPaymentChannels(merchantUuid, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ environment, \"pmt_type\": \"PAYIN\" }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUuid}/list-pay-channels`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction setDefaultRouteDetails(iamportKey, routingRef) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/txn-router/${iamportKey}/default/${routingRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { SmartRoutingService } from \"../../helpers/backend/smart_routing.service\";\nimport { CHANGE_DEFAULT_ROUTING_DETAILS, DELETE_ROUTING_DETAILS, FETCH_ALL_PAYMENT_CHANNEL_LIST, FETCH_TRANSACTION_ROUTES, POST_ROUTING_DETAILS, UPDATE_ROUTING_DETAILS } from \"../actions.type\"\nimport { ADD_SMART_ROUTING_LIST_IN_STORE, ADD_PAYMENT_CHANNELS_IN_STORE } from \"../mutations.type\";\n\nexport const state = {\n\tcontent: null,\n\tpaymentChannels: []\n}\n\nexport const mutations = {\n\t[ADD_SMART_ROUTING_LIST_IN_STORE](state, data) {\n\t\tstate.content = data;\n\t},\n\t[ADD_PAYMENT_CHANNELS_IN_STORE](state, paymentChannelList) {\n\t\tstate.paymentChannels = paymentChannelList.filter(channel => channel.is_enabled);\n\t}\n}\n\nexport const actions = {\n\t[FETCH_TRANSACTION_ROUTES](context) {\n\t\tconst iamportKey = context.rootState.auth.currentUser.iamportKey;\n\t\tconst environment = context.rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tSmartRoutingService.fetchTransactionRoutes(iamportKey, environment).then((response) => {\n\t\t\t\tcontext.commit(ADD_SMART_ROUTING_LIST_IN_STORE, response.content.data)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcontext.commit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\t[POST_ROUTING_DETAILS](context, formData) {\n\t\tformData.portone_key = context.rootState.auth.currentUser.iamportKey;\n\t\tformData.environment = context.rootState.auth.environment;\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tSmartRoutingService.postRouteDetails(formData).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcontext.commit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[UPDATE_ROUTING_DETAILS](context, { formData, routing_ref }) {\n\t\tconst iamportKey = context.rootState.auth.currentUser.iamportKey;\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tSmartRoutingService.updateRouteDetails(iamportKey, formData, routing_ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcontext.commit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[DELETE_ROUTING_DETAILS](context, routing_ref) {\n\t\tconst iamportKey = context.rootState.auth.currentUser.iamportKey;\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tSmartRoutingService.deleteRouteDetails(iamportKey, routing_ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcontext.commit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[FETCH_ALL_PAYMENT_CHANNEL_LIST](context) {\n\t\tconst merchantUuid = context.rootState.auth.currentUser.merchantUuid;\n\t\tconst environment = context.rootState.auth.environment;\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tSmartRoutingService.fetchAllPaymentChannels(merchantUuid, environment).then((response) => {\n\t\t\t\tcontext.commit(ADD_PAYMENT_CHANNELS_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcontext.commit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[CHANGE_DEFAULT_ROUTING_DETAILS](context, routing_ref) {\n\t\tconst iamportKey = context.rootState.auth.currentUser.iamportKey;\n\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tSmartRoutingService.setDefaultRouteDetails(iamportKey, routing_ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcontext.commit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n}","module.exports = __webpack_public_path__ + \"img/japan.a1e1ea51.svg\";","module.exports = __webpack_public_path__ + \"img/canada.afa36dc5.svg\";","module.exports = __webpack_public_path__ + \"img/korea.629112d1.svg\";","module.exports = __webpack_public_path__ + \"img/china.001f6f27.svg\";","module.exports = \"data:image/jpeg;base64,/9j/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAB4ALQDASIAAhEBAxEB/8QAGAABAQEBAQAAAAAAAAAAAAAAAAYDCAX/xAAkEAEAAQEFCQAAAAAAAAAAAAAAAQMCExZTkhFRVWWRk6PR4v/EABkBAQACAwAAAAAAAAAAAAAAAAAEBgEDBf/EAB4RAQAABgMBAAAAAAAAAAAAAAABAgQTFVFSodFh/9oADAMBAAIRAxEAPwDyAHNXsAAAAAAAAAAAAAAAAAAAAABYYFqcQsdqfZgWpxCx2p9rUTbMmlUylVy6h4isC1OIWO1PswLU4hY7U+1qFmTRlKrl1DxFYFqcQsdqfZgWpxCx2p9rULMmjKVXLqHiKwLU4hY7U+zAtTiFjtT7WoWZNGUquXUPEVgWpxCx2p9mBanELHan2tQsyaMpVcuoeIrAtTiFjtT7MC1OIWO1PtahZk0ZSq5dQ8RWBanELHan2YFqcQsdqfa1CzJoylVy6h4isC1OIWO1PswLU4hY7U+1qFmTRlKrl1DxFYFqcQsdqfZgWpxCx2p9rULMmjKVXLqHiKwLU4hY7U+zAtTiFjtT7WoWZNGUquXUPEVgWpxCx2p9mBanELHan2tQsyaMpVcuoeIrAtTiFjtT7FqFmTRlKrl1DwHPt9WzquuS+rZ1XXKZZ+ue6CHPt9WzquuS+rZ1XXJZ+joIc+31bOq65L6tnVdcln6Oghz7fVs6rrkvq2dV1yWfo6CHPt9WzquuS+rZ1XXJZ+joIc+31bOq65L6tnVdcln6Oghz7fVs6rrkvq2dV1yWfo6CHPt9WzquuS+rZ1XXJZ+joIc+31bOq65L6tnVdcln6Oghz7fVs6rrkvq2dV1yWfo6CHPt9WzquuS+rZ1XXJZ+joIc+31bOq65Cz9GYDewAAAAAAAAAAAAAAAAAAAAAABtjfHU2xvjqAG2N8dTbG+OoAbY3x1Nsb46gBtjfHU2xvjqAG2N8dTbG+OoAbY3x1Nsb46gBtjfHU2xvjqAG2N8dTbG+OoAbY3x1Nsb46gBtjfHU2xvjqAG2N8dTbG+OoAbY3x1AdBXNLLsaYLmll2NMNBBZZ3NLLsaYLmll2NMNAGdzSy7GmC5pZdjTDQBnc0suxpguaWXY0w0AZ3NLLsaYLmll2NMNAGdzSy7GmC5pZdjTDQBnc0suxpguaWXY0w0AZ3NLLsaYLmll2NMNAGdzSy7GmC5pZdjTDQBnc0suxpguaWXY0w0AZ3NLLsaYLmll2NMNAGdzSy7GmBoAjcd8t83yY75b5vlGCFen2tuMpePcfVnjvlvm+THfLfN8owL0+zGUvHuPqzx3y3zfJjvlvm+UYF6fZjKXj3H1Z475b5vkx3y3zfKMC9PsxlLx7j6s8d8t83yY75b5vlGBen2Yyl49x9WeO+W+b5Md8t83yjAvT7MZS8e4+rPHfLfN8mO+W+b5RgXp9mMpePcfVnjvlvm+THfLfN8owL0+zGUvHuPqzx3y3zfJjvlvm+UYF6fZjKXj3H1Z475b5vkx3y3zfKMC9PsxlLx7j6s8d8t83yY75b5vlGBen2Yyl49x9WeO+W+b5EYF6fZjKXj3H0Aak4AAAAAAAAAAAAAAAAAAAAAB//Z\"","module.exports = __webpack_public_path__ + \"img/south_africa.ccee6c9f.png\";","import Swal from \"sweetalert2\";\nconst Common = {\n fileValdation,\n multipleFileValdation,\n excelFileValdation,\n currencyByCountry,\n countryByCurrency,\n countryList,\n currencyList,\n flagByCountry,\n flagByCurrency\n}\n \nfunction fileValdation(file) {\n const size = (file.size / 1024 / 1024).toFixed(2);\n\n if (size > 20) {\n Swal.fire('error', `Maximum 20 MB file is allowed`)\n return false;\n }\n\n const allowedExtensions = /(\\.jpg|\\.png|\\.svg|\\.jpeg)$/i;\n\n if (!allowedExtensions.exec(file.name)) {\n Swal.fire('error', `Uploaded File is invalid`)\n return false;\n }\n\n return true;\n}\n\nfunction multipleFileValdation(files) {\n let isInvalid = true;\n const allowedExtensions = /(\\.pdf|\\.jpg|\\.png|\\.svg|\\.jpeg)$/i;\n\n files.forEach(file => {\n const size = (file.size / 1024 / 1024).toFixed(2);\n if (size > 20 || !allowedExtensions.exec(file.name)) {\n isInvalid = false;\n }\n });\n\n return isInvalid;\n}\n\nfunction excelFileValdation(file, inputSize = 20, validateSize = true, allowedExtensions = /(\\.xlsx|\\.xls|\\.csv)$/i) {\n if(validateSize) {\n const size = (file.size / 1024 / 1024).toFixed(2);\n\n if(inputSize && size > inputSize) {\n Swal.fire('error', `Maximum ${inputSize} MB file is allowed`);\n return false;\n }\n }\n\n if (!allowedExtensions.exec(file.name)) {\n Swal.fire('error', `Uploaded File is invalid`)\n return false;\n }\n\n return true;\n}\n\n\nfunction currencyByCountry(country) {\n const currencies = {\n VN: \"VND\",\n TH: \"THB\",\n SG: \"SGD\",\n ID: \"IDR\",\n PH: \"PHP\",\n HK: \"HKD\",\n MY: \"MYR\",\n TW: \"TWD\",\n US: \"USD\",\n EU: \"EUR\",\n JP: \"JPY\",\n KR: \"KRW\",\n AU: \"AUD\",\n KH: \"KHR\",\n WS: \"WST\",\n AE: \"AED\",\n IN: \"INR\",\n KE: \"KES\",\n ZA: \"ZAR\",\n NG: \"NGN\",\n PL: \"PLN\",\n BE: \"EUR\",\n NL: \"EUR\",\n NZ: \"NZD\",\n };\n\n return currencies[country] || \"USD\";\n}\n\nfunction countryByCurrency(currency) {\n const countries = {\n VND: \"VN\",\n THB: \"TH\",\n SGD: \"SG\",\n IDR: \"ID\",\n PHP: \"PH\",\n HKD: \"HK\",\n MYR: \"MY\",\n TWD: \"TW\",\n USD: \"US\",\n EUR: \"EU\",\n JPY: \"JP\",\n KRW: \"KR\",\n AUD: \"AU\",\n KHR: \"KH\",\n WST: \"WS\",\n AED: \"AE\",\n INR: \"IN\",\n KES: \"KE\",\n ZAR: \"ZA\",\n NGN: \"NG\",\n PLN: \"PL\",\n CAD: \"CA\",\n NZD: \"NZ\"\n };\n\n return countries[currency] || \"\";\n}\nfunction countryList() {\n return ['AE', 'AU', 'BE', 'CA', 'CN', 'EU', 'GB', 'HK', 'ID', 'IN', 'JP', 'KE', 'KH', 'KR', 'MN', 'MY', 'NG', 'NL', 'NZ', 'PH', 'PL', 'SG', 'TH', 'TW', 'US', 'VN', 'WS', 'ZA'];\n}\n\nfunction currencyList() {\n return ['AED', 'AUD', 'CAD', 'CNY', 'EUR', 'GBP', 'HKD', 'IDR', 'INR', 'JPY', 'KES', 'KHR', 'KRW', 'MYR', 'NGN', 'NZD', 'PHP', 'PLN', 'SGD', 'THB', 'TWD', 'USD', 'VND', 'WST', 'ZAR'];\n}\n\nfunction flagByCountry() {\n const flags = {\n 'ID': require('@/assets/images/flags/indonesia.png'),\n 'PH': require('@/assets/images/flags/philippines.png'),\n 'SG': require('@/assets/images/flags/singapore.png'),\n 'TH': require('@/assets/images/flags/thailand.jpeg'),\n 'VN': require('@/assets/images/flags/vietnam1.png'),\n 'MY': require('@/assets/images/flags/malaysia.svg'),\n 'TW': require('@/assets/images/flags/taiwan.png'),\n 'HK': require('@/assets/images/flags/hong_kong.svg'),\n 'KH': require('@/assets/images/flags/cambodia.svg'),\n 'WS': require('@/assets/images/flags/samoa.svg'),\n 'US': require('@/assets/images/flags/united_states.svg'),\n 'GB': require('@/assets/images/flags/uk.svg'),\n 'JP': require('@/assets/images/flags/japan.svg'),\n 'KR': require('@/assets/images/flags/korea.svg'),\n 'AU': require('@/assets/images/flags/australia.svg'),\n 'AE': require('@/assets/images/flags/uae.svg'),\n 'MN': require('@/assets/images/flags/mongolia.svg'),\n 'IN': require('@/assets/images/flags/india.svg'),\n 'KE': require('@/assets/images/flags/Kenya.png'),\n 'ZA': require('@/assets/images/flags/south_africa.png'),\n 'NG': require('@/assets/images/flags/nigeria.png'),\n 'PL': require('@/assets/images/flags/poland.png'),\n 'EU': require('@/assets/images/flags/europe.svg'),\n 'BE': require('@/assets/images/flags/belgium.svg'),\n 'NL': require('@/assets/images/flags/netherlands.svg.webp'),\n 'NZ': require('@/assets/images/flags/newzealand.png'),\n 'CA': require('@/assets/images/flags/canada.svg'),\n 'CN': require('@/assets/images/flags/china.svg'),\n }\n return flags;\n}\n\nfunction flagByCurrency() {\n const flags = {\n 'IDR': require('@/assets/images/flags/indonesia.png'),\n 'PHP': require('@/assets/images/flags/philippines.png'),\n 'SGD': require('@/assets/images/flags/singapore.png'),\n 'THB': require('@/assets/images/flags/thailand.jpeg'),\n 'VND': require('@/assets/images/flags/vietnam1.png'),\n 'MYR': require('@/assets/images/flags/malaysia.svg'),\n 'TWD': require('@/assets/images/flags/taiwan.png'),\n 'HKD': require('@/assets/images/flags/hong_kong.svg'),\n 'KHR': require('@/assets/images/flags/cambodia.svg'),\n 'WST': require('@/assets/images/flags/samoa.svg'),\n 'USD': require('@/assets/images/flags/united_states.svg'),\n 'GBP': require('@/assets/images/flags/uk.svg'),\n 'EUR': require('@/assets/images/flags/europe.svg'),\n 'JPY': require('@/assets/images/flags/japan.svg'),\n 'KRW': require('@/assets/images/flags/korea.svg'),\n 'AUD': require('@/assets/images/flags/australia.svg'),\n 'AED': require('@/assets/images/flags/uae.svg'),\n 'INR': require('@/assets/images/flags/india.svg'),\n 'KES': require('@/assets/images/flags/Kenya.png'),\n // 'MNT': require('@/assets/images/flags/mongolia.svg'),\n 'ZAR': require('@/assets/images/flags/south_africa.png'),\n 'NGN': require('@/assets/images/flags/nigeria.png'),\n 'PLN': require('@/assets/images/flags/poland.png'),\n 'NZD': require('@/assets/images/flags/newzealand.png'),\n 'CAD': require('@/assets/images/flags/canada.svg'),\n }\n return flags;\n}\n\nexport default Common;","var map = {\n\t\"./af\": \"2bfb\",\n\t\"./af.js\": \"2bfb\",\n\t\"./ar\": \"8e73\",\n\t\"./ar-dz\": \"a356\",\n\t\"./ar-dz.js\": \"a356\",\n\t\"./ar-kw\": \"423e\",\n\t\"./ar-kw.js\": \"423e\",\n\t\"./ar-ly\": \"1cfd\",\n\t\"./ar-ly.js\": \"1cfd\",\n\t\"./ar-ma\": \"0a84\",\n\t\"./ar-ma.js\": \"0a84\",\n\t\"./ar-sa\": \"8230\",\n\t\"./ar-sa.js\": \"8230\",\n\t\"./ar-tn\": \"6d83\",\n\t\"./ar-tn.js\": \"6d83\",\n\t\"./ar.js\": \"8e73\",\n\t\"./az\": \"485c\",\n\t\"./az.js\": \"485c\",\n\t\"./be\": \"1fc1\",\n\t\"./be.js\": \"1fc1\",\n\t\"./bg\": \"84aa\",\n\t\"./bg.js\": \"84aa\",\n\t\"./bm\": \"a7fa\",\n\t\"./bm.js\": \"a7fa\",\n\t\"./bn\": \"9043\",\n\t\"./bn-bd\": \"9686\",\n\t\"./bn-bd.js\": \"9686\",\n\t\"./bn.js\": \"9043\",\n\t\"./bo\": \"d26a\",\n\t\"./bo.js\": \"d26a\",\n\t\"./br\": \"6887\",\n\t\"./br.js\": \"6887\",\n\t\"./bs\": \"2554\",\n\t\"./bs.js\": \"2554\",\n\t\"./ca\": \"d716\",\n\t\"./ca.js\": \"d716\",\n\t\"./cs\": \"3c0d\",\n\t\"./cs.js\": \"3c0d\",\n\t\"./cv\": \"03ec\",\n\t\"./cv.js\": \"03ec\",\n\t\"./cy\": \"9797\",\n\t\"./cy.js\": \"9797\",\n\t\"./da\": \"0f14\",\n\t\"./da.js\": \"0f14\",\n\t\"./de\": \"b469\",\n\t\"./de-at\": \"b3eb\",\n\t\"./de-at.js\": \"b3eb\",\n\t\"./de-ch\": \"bb71\",\n\t\"./de-ch.js\": \"bb71\",\n\t\"./de.js\": \"b469\",\n\t\"./dv\": \"598a\",\n\t\"./dv.js\": \"598a\",\n\t\"./el\": \"8d47\",\n\t\"./el.js\": \"8d47\",\n\t\"./en-au\": \"0e6b\",\n\t\"./en-au.js\": \"0e6b\",\n\t\"./en-ca\": \"3886\",\n\t\"./en-ca.js\": \"3886\",\n\t\"./en-gb\": \"39a6\",\n\t\"./en-gb.js\": \"39a6\",\n\t\"./en-ie\": \"e1d3\",\n\t\"./en-ie.js\": \"e1d3\",\n\t\"./en-il\": \"7333\",\n\t\"./en-il.js\": \"7333\",\n\t\"./en-in\": \"ec2e\",\n\t\"./en-in.js\": \"ec2e\",\n\t\"./en-nz\": \"6f50\",\n\t\"./en-nz.js\": \"6f50\",\n\t\"./en-sg\": \"b7e9\",\n\t\"./en-sg.js\": \"b7e9\",\n\t\"./eo\": \"65db\",\n\t\"./eo.js\": \"65db\",\n\t\"./es\": \"898b\",\n\t\"./es-do\": \"0a3c\",\n\t\"./es-do.js\": \"0a3c\",\n\t\"./es-mx\": \"b5b7\",\n\t\"./es-mx.js\": \"b5b7\",\n\t\"./es-us\": \"55c9\",\n\t\"./es-us.js\": \"55c9\",\n\t\"./es.js\": \"898b\",\n\t\"./et\": \"ec18\",\n\t\"./et.js\": \"ec18\",\n\t\"./eu\": \"0ff2\",\n\t\"./eu.js\": \"0ff2\",\n\t\"./fa\": \"8df4\",\n\t\"./fa.js\": \"8df4\",\n\t\"./fi\": \"81e9\",\n\t\"./fi.js\": \"81e9\",\n\t\"./fil\": \"d69a\",\n\t\"./fil.js\": \"d69a\",\n\t\"./fo\": \"0721\",\n\t\"./fo.js\": \"0721\",\n\t\"./fr\": \"9f26\",\n\t\"./fr-ca\": \"d9f8\",\n\t\"./fr-ca.js\": \"d9f8\",\n\t\"./fr-ch\": \"0e49\",\n\t\"./fr-ch.js\": \"0e49\",\n\t\"./fr.js\": \"9f26\",\n\t\"./fy\": \"7118\",\n\t\"./fy.js\": \"7118\",\n\t\"./ga\": \"5120\",\n\t\"./ga.js\": \"5120\",\n\t\"./gd\": \"f6b4\",\n\t\"./gd.js\": \"f6b4\",\n\t\"./gl\": \"8840\",\n\t\"./gl.js\": \"8840\",\n\t\"./gom-deva\": \"aaf2\",\n\t\"./gom-deva.js\": \"aaf2\",\n\t\"./gom-latn\": \"0caa\",\n\t\"./gom-latn.js\": \"0caa\",\n\t\"./gu\": \"e0c5\",\n\t\"./gu.js\": \"e0c5\",\n\t\"./he\": \"c7aa\",\n\t\"./he.js\": \"c7aa\",\n\t\"./hi\": \"dc4d\",\n\t\"./hi.js\": \"dc4d\",\n\t\"./hr\": \"4ba9\",\n\t\"./hr.js\": \"4ba9\",\n\t\"./hu\": \"5b14\",\n\t\"./hu.js\": \"5b14\",\n\t\"./hy-am\": \"d6b6\",\n\t\"./hy-am.js\": \"d6b6\",\n\t\"./id\": \"5038\",\n\t\"./id.js\": \"5038\",\n\t\"./is\": \"0558\",\n\t\"./is.js\": \"0558\",\n\t\"./it\": \"6e98\",\n\t\"./it-ch\": \"6f12\",\n\t\"./it-ch.js\": \"6f12\",\n\t\"./it.js\": \"6e98\",\n\t\"./ja\": \"079e\",\n\t\"./ja.js\": \"079e\",\n\t\"./jv\": \"b540\",\n\t\"./jv.js\": \"b540\",\n\t\"./ka\": \"201b\",\n\t\"./ka.js\": \"201b\",\n\t\"./kk\": \"6d79\",\n\t\"./kk.js\": \"6d79\",\n\t\"./km\": \"e81d\",\n\t\"./km.js\": \"e81d\",\n\t\"./kn\": \"3e92\",\n\t\"./kn.js\": \"3e92\",\n\t\"./ko\": \"22f8\",\n\t\"./ko.js\": \"22f8\",\n\t\"./ku\": \"2421\",\n\t\"./ku.js\": \"2421\",\n\t\"./ky\": \"9609\",\n\t\"./ky.js\": \"9609\",\n\t\"./lb\": \"440c\",\n\t\"./lb.js\": \"440c\",\n\t\"./lo\": \"b29d\",\n\t\"./lo.js\": \"b29d\",\n\t\"./lt\": \"26f9\",\n\t\"./lt.js\": \"26f9\",\n\t\"./lv\": \"b97c\",\n\t\"./lv.js\": \"b97c\",\n\t\"./me\": \"293c\",\n\t\"./me.js\": \"293c\",\n\t\"./mi\": \"688b\",\n\t\"./mi.js\": \"688b\",\n\t\"./mk\": \"6909\",\n\t\"./mk.js\": \"6909\",\n\t\"./ml\": \"02fb\",\n\t\"./ml.js\": \"02fb\",\n\t\"./mn\": \"958b\",\n\t\"./mn.js\": \"958b\",\n\t\"./mr\": \"39bd\",\n\t\"./mr.js\": \"39bd\",\n\t\"./ms\": \"ebe4\",\n\t\"./ms-my\": \"6403\",\n\t\"./ms-my.js\": \"6403\",\n\t\"./ms.js\": \"ebe4\",\n\t\"./mt\": \"1b45\",\n\t\"./mt.js\": \"1b45\",\n\t\"./my\": \"8689\",\n\t\"./my.js\": \"8689\",\n\t\"./nb\": \"6ce3\",\n\t\"./nb.js\": \"6ce3\",\n\t\"./ne\": \"3a39\",\n\t\"./ne.js\": \"3a39\",\n\t\"./nl\": \"facd\",\n\t\"./nl-be\": \"db29\",\n\t\"./nl-be.js\": \"db29\",\n\t\"./nl.js\": \"facd\",\n\t\"./nn\": \"b84c\",\n\t\"./nn.js\": \"b84c\",\n\t\"./oc-lnc\": \"167b\",\n\t\"./oc-lnc.js\": \"167b\",\n\t\"./pa-in\": \"f3ff\",\n\t\"./pa-in.js\": \"f3ff\",\n\t\"./pl\": \"8d57\",\n\t\"./pl.js\": \"8d57\",\n\t\"./pt\": \"f260\",\n\t\"./pt-br\": \"d2d4\",\n\t\"./pt-br.js\": \"d2d4\",\n\t\"./pt.js\": \"f260\",\n\t\"./ro\": \"972c\",\n\t\"./ro.js\": \"972c\",\n\t\"./ru\": \"957c\",\n\t\"./ru.js\": \"957c\",\n\t\"./sd\": \"6784\",\n\t\"./sd.js\": \"6784\",\n\t\"./se\": \"ffff\",\n\t\"./se.js\": \"ffff\",\n\t\"./si\": \"eda5\",\n\t\"./si.js\": \"eda5\",\n\t\"./sk\": \"7be6\",\n\t\"./sk.js\": \"7be6\",\n\t\"./sl\": \"8155\",\n\t\"./sl.js\": \"8155\",\n\t\"./sq\": \"c8f3\",\n\t\"./sq.js\": \"c8f3\",\n\t\"./sr\": \"cf1e\",\n\t\"./sr-cyrl\": \"13e9\",\n\t\"./sr-cyrl.js\": \"13e9\",\n\t\"./sr.js\": \"cf1e\",\n\t\"./ss\": \"52bd\",\n\t\"./ss.js\": \"52bd\",\n\t\"./sv\": \"5fbd\",\n\t\"./sv.js\": \"5fbd\",\n\t\"./sw\": \"74dc\",\n\t\"./sw.js\": \"74dc\",\n\t\"./ta\": \"3de5\",\n\t\"./ta.js\": \"3de5\",\n\t\"./te\": \"5cbb\",\n\t\"./te.js\": \"5cbb\",\n\t\"./tet\": \"576c\",\n\t\"./tet.js\": \"576c\",\n\t\"./tg\": \"3b1b\",\n\t\"./tg.js\": \"3b1b\",\n\t\"./th\": \"10e8\",\n\t\"./th.js\": \"10e8\",\n\t\"./tk\": \"5aff\",\n\t\"./tk.js\": \"5aff\",\n\t\"./tl-ph\": \"0f38\",\n\t\"./tl-ph.js\": \"0f38\",\n\t\"./tlh\": \"cf755\",\n\t\"./tlh.js\": \"cf755\",\n\t\"./tr\": \"0e81\",\n\t\"./tr.js\": \"0e81\",\n\t\"./tzl\": \"cf51\",\n\t\"./tzl.js\": \"cf51\",\n\t\"./tzm\": \"c109\",\n\t\"./tzm-latn\": \"b53d\",\n\t\"./tzm-latn.js\": \"b53d\",\n\t\"./tzm.js\": \"c109\",\n\t\"./ug-cn\": \"6117\",\n\t\"./ug-cn.js\": \"6117\",\n\t\"./uk\": \"ada2\",\n\t\"./uk.js\": \"ada2\",\n\t\"./ur\": \"5294\",\n\t\"./ur.js\": \"5294\",\n\t\"./uz\": \"2e8c\",\n\t\"./uz-latn\": \"010e\",\n\t\"./uz-latn.js\": \"010e\",\n\t\"./uz.js\": \"2e8c\",\n\t\"./vi\": \"2921\",\n\t\"./vi.js\": \"2921\",\n\t\"./x-pseudo\": \"fd7e\",\n\t\"./x-pseudo.js\": \"fd7e\",\n\t\"./yo\": \"7f33\",\n\t\"./yo.js\": \"7f33\",\n\t\"./zh-cn\": \"5c3a\",\n\t\"./zh-cn.js\": \"5c3a\",\n\t\"./zh-hk\": \"49ab\",\n\t\"./zh-hk.js\": \"49ab\",\n\t\"./zh-mo\": \"3a6c\",\n\t\"./zh-mo.js\": \"3a6c\",\n\t\"./zh-tw\": \"90ea\",\n\t\"./zh-tw.js\": \"90ea\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"4678\";","var map = {\n\t\"./ar.json\": \"af08\",\n\t\"./en.json\": \"edd4\",\n\t\"./es.json\": \"a306\",\n\t\"./fi.json\": \"5754\",\n\t\"./fr.json\": \"f693\",\n\t\"./id.json\": \"210c\",\n\t\"./ja.json\": \"0423\",\n\t\"./kr.json\": \"c1af\",\n\t\"./mly.json\": \"4ccc\",\n\t\"./th.json\": \"8680\",\n\t\"./vn.json\": \"8c1f\",\n\t\"./zh.json\": \"3504\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"49f8\";","module.exports = \"data:image/png;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/2wCEAAYEBAUEBAYFBQUGBgYHCQ4JCQgICRINDQoOFRIWFhUSFBQXGiEcFxgfGRQUHScdHyIjJSUlFhwpLCgkKyEkJSQBBgYGCQgJEQkJESQYFBgkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJP/CABEIAMgBLAMBIgACEQEDEQH/xAAcAAEAAgMBAQEAAAAAAAAAAAAABQcBBAYIAwL/2gAIAQEAAAAA4wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM7OqAAAAADqpquwAAAAAXJN0AAAAAAGfT0j5Z1QAAAAfa0pFs2G4eMxrVZpAAAAEheHag5qiYUAAAAM2fcorGnPmAAAAB0fpIURwIAAAAC3rX4yNsXg6GAAAAAelK9q7Hf3H5k+AAAAAN2X5sxMfqFAAGQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//xAAaAQEAAwEBAQAAAAAAAAAAAAAABAUGBwMC/9oACAECEAAAAMgAAAAAAAAAAHh4zQAAykXagAFbzmo+bbotsAArOLuv3gABl6X3l7AAAjyEeQAAAAAAAAAAAAAD/8QAGgEBAQADAQEAAAAAAAAAAAAAAAEDBQYEB//aAAgBAxAAAAD7yCxQBLAAAUQABQGDH6wCAOdwdSAAeDitdNh2myAAeD5i+j7cBAOf1mT09MAWBgz3BnAQqAAKEAAFIAAAsAB//8QAPBAAAQIEAgUHCQgDAAAAAAAAAQIDAAQFEQYhBxASMWETIkBBUXGBFBUXMlWhorHRICNQUmBykcFCYnD/2gAIAQEAAT8A/R94vry/5EhCnFpQhJUpRsAN5MVSmv0eozFPmkgPS6y2q2646xw6dnGcZxnGcZxnGjGjeecYySVJ2mpYmZc7k7viKY010byPELFSQmzc61ZR/wB0ZH3bMZ689eevPXnrz159C0HUb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V5ocHYR/e+MXViUr9acqkqypgzKEreaOew5axsesGwN+P6ev+sPHol9d9d9d9d9d/wm34P//EADMRAAEDAQMJBQkBAAAAAAAAAAECAwQRAAUGEyExQEFhcaHREBJRYIEUMDJCUpGSseHB/9oACAECAQE/APIMp9LDKnlaEgm13SxLjIf8Rz289SxfMyUQMjSs8hnP+WwZM77K45+U1HA/396heUWQ8isZ0oUPsePW0u9b3iuFp5wg+nS0u8JEsgvq71LRJr0VZWwqh0Wj3xe0hYbacJJ4dLXXElNJ70t0qUdmwdff3vFjPRlGSKhIJ3jhY9mH4sZqIhxgfEM521289QxZKLcPIp0rNPQZ+lrmwoV0em5h9O318OGm184UBq9C/Hp0tg+QrIrirzFB0bj/AH96guK0t0PKFVDRu4dvsrQey4FFUpXxG/yr/8QAMhEAAQMABQgJBQAAAAAAAAAAAQIDBAAFBhFBEhMhMUBRgaEQFCJgYXGx0fAwkZLh8f/aAAgBAwEBPwDuDIeDLSnTgL6QZPWI6Hd4547FaWTm4waGtR5D4KWYk5Ta2DhpHH5z2CfHedTew5kqH2NJFYViwsturIPCkiW9IILyr7qR5LsdWW0q40ZrOsHlhDaySfKlXxpDacqS4VK3YD3+vWcdh1hRfGgAnx4dNSx2ERkuNDSoaTjf/dgtHIyIwaGtR5D4KVZZ5S7nZWgbseO71pWdntbsX8fb2pZp85tcdWtJ9f3sCozanA6oXkavDp6s2Hc8B2rrvMePdX//2Q==\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view'),_c('notifications',{staticStyle:{\"margin-top\":\"80px\"},attrs:{\"position\":\"top center\",\"duration\":5000,\"speed\":500,\"closeOnClick\":false}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=0b54f3da&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\r\nimport App from './App.vue'\r\nimport { BootstrapVue, BootstrapVueIcons } from 'bootstrap-vue'\r\nimport VueApexCharts from 'vue-apexcharts'\r\nimport Vuelidate from 'vuelidate'\r\nimport VueSweetalert2 from 'vue-sweetalert2';\r\nimport VueClipboard from 'vue-clipboard2'\r\nimport VueMask from 'v-mask'\r\nimport Notifications from 'vue-notification'\r\nimport UUID from 'vue-uuid'\r\nimport vco from 'v-click-outside'\r\nimport router from './router'\r\nimport store from '@/state/store'\r\nimport ToggleButton from 'vue-js-toggle-button'\r\nimport i18n from './i18n'\r\nimport '@/assets/scss/app.scss';\r\nimport VuePhoneNumberInput from 'vue-phone-number-input';\r\nimport 'vue-phone-number-input/dist/vue-phone-number-input.css';\r\n// import { initFirebaseBackend } from './helpers/firebase/authUtils';\r\nimport VueSocialSharing from 'vue-social-sharing'\r\nimport OneSignalVue from 'onesignal-vue'\r\n\r\n// eslint-disable-next-line\r\nconst firebaseConfig = {\r\n apiKey: process.env.VUE_APP_APIKEY,\r\n authDomain: process.env.VUE_APP_AUTHDOMAIN,\r\n databaseURL: process.env.VUE_APP_VUE_APP_DATABASEURL,\r\n projectId: process.env.VUE_APP_PROJECTId,\r\n storageBucket: process.env.VUE_APP_STORAGEBUCKET,\r\n messagingSenderId: process.env.VUE_APP_MESSAGINGSENDERID,\r\n appId: process.env.VUE_APP_APPId,\r\n measurementId: process.env.VUE_APP_MEASUREMENTID\r\n};\r\n\r\nVueClipboard.config.autoSetContainer = true\r\n\r\nVue.config.productionTip = false\r\nVue.use(OneSignalVue);\r\nVue.use(BootstrapVue)\r\nVue.use(BootstrapVueIcons)\r\nVue.use(vco)\r\nVue.use(Vuelidate)\r\nVue.use(VueSweetalert2);\r\nVue.use(VueClipboard);\r\nVue.use(Notifications);\r\nVue.use(VueMask)\r\nVue.use(ToggleButton)\r\nVue.use(require('vue-chartist'))\r\nVue.component('apexchart', VueApexCharts)\r\nVue.component('vue-phone-number-input', VuePhoneNumberInput);\r\n\r\nVue.use(UUID);\r\nVue.use(VueSocialSharing);\r\n\r\nnew Vue({\r\n router,\r\n store,\r\n i18n,\r\n render: h => h(App),\r\n beforeMount() {\r\n this.$OneSignal.init({\r\n appId: process.env.VUE_APP_ONESIGNAL_APP_ID,\r\n safari_web_id: process.env.VUE_APP_ONESIGNAL_SAFARI_WEB_ID,\r\n allowLocalhostAsSecureOrigin: true,\r\n });\r\n }\r\n}).$mount('#app')\r\n","import firebase from 'firebase/app';\r\n// Add the Firebase products that you want to use\r\nimport \"firebase/auth\";\r\nimport \"firebase/firestore\";\r\n\r\nclass FirebaseAuthBackend {\r\n constructor(firebaseConfig) {\r\n if (firebaseConfig) {\r\n // Initialize Firebase\r\n firebase.initializeApp(firebaseConfig);\r\n firebase.auth().onAuthStateChanged((user) => {\r\n if (user) {\r\n sessionStorage.setItem(\"authUser\", JSON.stringify(user));\r\n } else {\r\n sessionStorage.removeItem('authUser');\r\n }\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Registers the user with given details\r\n */\r\n registerUser = (email, password) => {\r\n return new Promise((resolve, reject) => {\r\n firebase.auth().createUserWithEmailAndPassword(email, password).then((user) => {\r\n // eslint-disable-next-line no-redeclare\r\n var user = firebase.auth().currentUser;\r\n resolve(user);\r\n }, (error) => {\r\n reject(this._handleError(error));\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * Login user with given details\r\n */\r\n loginUser = (email, password) => {\r\n return new Promise((resolve, reject) => {\r\n firebase.auth().signInWithEmailAndPassword(email, password).then((user) => {\r\n // eslint-disable-next-line no-redeclare\r\n var user = firebase.auth().currentUser;\r\n resolve(user);\r\n }, (error) => {\r\n reject(this._handleError(error));\r\n });\r\n });\r\n }\r\n\r\n /**\r\n * forget Password user with given details\r\n */\r\n forgetPassword = (email) => {\r\n return new Promise((resolve, reject) => {\r\n firebase.auth().sendPasswordResetEmail(email, { url: window.location.protocol + \"//\" + window.location.host + \"/login\" }).then(() => {\r\n resolve(true);\r\n }).catch((error) => {\r\n reject(this._handleError(error));\r\n })\r\n });\r\n }\r\n\r\n /**\r\n * Logout the user\r\n */\r\n logout = () => {\r\n return new Promise((resolve, reject) => {\r\n firebase.auth().signOut().then(() => {\r\n resolve(true);\r\n }).catch((error) => {\r\n reject(this._handleError(error));\r\n })\r\n });\r\n }\r\n\r\n setLoggedInUser = (user) => {\r\n sessionStorage.setItem(\"authUser\", JSON.stringify(user));\r\n }\r\n\r\n /**\r\n * Returns the authenticated user\r\n */\r\n getAuthenticatedUser = () => {\r\n if (!sessionStorage.getItem('authUser'))\r\n return null;\r\n return JSON.parse(sessionStorage.getItem('authUser'));\r\n }\r\n\r\n /**\r\n * Handle the error\r\n * @param {*} error\r\n */\r\n _handleError(error) {\r\n var errorMessage = error.message;\r\n return errorMessage;\r\n }\r\n}\r\n\r\nlet _fireBaseBackend = null;\r\n\r\n/**\r\n * Initilize the backend\r\n * @param {*} config\r\n */\r\nconst initFirebaseBackend = (config) => {\r\n if (!_fireBaseBackend) {\r\n _fireBaseBackend = new FirebaseAuthBackend(config);\r\n }\r\n return _fireBaseBackend;\r\n}\r\n\r\n/**\r\n * Returns the firebase backend\r\n */\r\nconst getFirebaseBackend = () => {\r\n return _fireBaseBackend;\r\n}\r\n\r\nexport { initFirebaseBackend, getFirebaseBackend };","import { getFirebaseBackend } from '../../helpers/firebase/authUtils'\n\nexport const state = {\n currentUser: sessionStorage.getItem('authUser'),\n}\n\nexport const mutations = {\n SET_AUTH_USER(state, newValue) {\n state.currentUser = newValue\n saveState('fireauth.currentUser', newValue)\n },\n}\n\nexport const getters = {\n // Whether the user is currently logged in.\n loggedIn(state) {\n return !!state.currentUser\n },\n}\n\nexport const actions = {\n // This is automatically run in `src/state/store.js` when the app\n // starts, along with any other actions named `init` in other modules.\n // eslint-disable-next-line no-unused-vars\n init({ state, dispatch }) {\n dispatch('validate')\n },\n\n // Logs in the current user.\n logIn({ commit, dispatch, getters }, { email, password } = {}) {\n if (getters.loggedIn) return dispatch('validate')\n\n return getFirebaseBackend().loginUser(email, password).then((response) => {\n const user = response\n commit('SET_AUTH_USER', user)\n return user\n });\n },\n\n // Logs out the current user.\n logOut({ commit }) {\n // eslint-disable-next-line no-unused-vars\n commit('SET_AUTH_USER', null)\n return new Promise((resolve, reject) => {\n // eslint-disable-next-line no-unused-vars\n getFirebaseBackend().logout().then((response) => {\n resolve(true);\n }).catch((error) => {\n reject(this._handleError(error));\n })\n });\n },\n\n // register the user\n register({ commit, dispatch, getters }, { email, password } = {}) {\n if (getters.loggedIn) return dispatch('validate')\n\n return getFirebaseBackend().registerUser(email, password).then((response) => {\n const user = response\n commit('SET_AUTH_USER', user)\n return user\n });\n },\n\n // register the user\n // eslint-disable-next-line no-unused-vars\n resetPassword({ commit, dispatch, getters }, { email } = {}) {\n if (getters.loggedIn) return dispatch('validate')\n\n return getFirebaseBackend().forgetPassword(email).then((response) => {\n const message = response.data\n return message\n });\n },\n\n // Validates the current user's token and refreshes it\n // with new data from the API.\n // eslint-disable-next-line no-unused-vars\n validate({ commit, state }) {\n if (!state.currentUser) return Promise.resolve(null)\n const user = getFirebaseBackend().getAuthenticatedUser();\n commit('SET_AUTH_USER', user)\n return user;\n },\n}\n\n// ===\n// Private helpers\n// ===\n\nfunction saveState(key, state) {\n window.localStorage.setItem(key, JSON.stringify(state))\n}\n","export const SET_AUTH_USER = \"setAuthUser\";\nexport const SET_USER_LANGUAGE_IN_STORE = \"setUserLanguageInStore\";\nexport const ADD_WEBHOOKS_IN_STORE = \"addAllWebhooksInStore\";\nexport const ADD_WEBHOOK_IN_STORE = \"addWebhookInStore\";\nexport const UPDATE_WEBHOOK_IN_STORE = \"updateWebhookInStore\";\nexport const UPDATE_WEBHOOK_BY_FORM_IN_STORE = \"updateWebhookByFormInStore\";\nexport const UPDATE_SECRET_KEY_BY_FORM_IN_STORE = \"updateSecretKeyByFormInStore\";\nexport const SET_SANDBOX_MODE_ALERT_IN_STORE = \"setSandboxModeAlertInStore\";\nexport const SET_UPDATE_ALERT_IN_STORE = 'setUpdateAlertInStore';\n\nexport const SET_ENTITY_DETAILS_IN_STORE = \"setEntityDetailsInStore\";\nexport const SET_LOGO_IN_STORE = \"setLogoInStore\";\nexport const UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE = \"updatePaymentChannelDetailsInStore\";\nexport const UPDATE_PAYOUT_CHANNEL_DETAILS_IN_STORE = \"updatePayoutChannelDetailsInStore\";\nexport const ADD_TRANSACTIONS_IN_STORE = \"addTransactionInStore\";\nexport const ADD_CHANNEL_LIST_IN_STORE = \"addTChannelLisInStore\";\nexport const UPDATE_TRXN_FETCHING_STATE = \"updateIsFetchingTransaction\";\n\nexport const ADD_TRANSACTION_STATUS_IN_STORE = \"addTransactionStatusInStore\";\nexport const ADD_TRANSACTION_STATISTICS_IN_STORE = \"addTransactionStatisticsInStore\";\nexport const ADD_TRANSACTION_STATS_IN_STORE = \"addTransactionStatsInStore\";\nexport const ADD_LATEST_TXNS_IN_STORE = \"addLatestTxnsInStore\";\nexport const ADD_TRANSACTION_VOLUME_IN_STORE = \"addTransactionVolumeInStore\";\nexport const ADD_TRANSACTION_SEASONALITY_IN_STORE = \"addTransactionSeasonalityInStore\";\nexport const ADD_TRANSACTION_VOLUME_BY_STATUS_IN_STORE = \"addTransactionVolumeByStatusInStore\";\nexport const ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE = \"addTransactionVolumeByPmtChannelInStore\";\nexport const ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE_NEW = \"addTransactionVolumeByPmtChannelInStoreNew\";\nexport const ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE = \"addTransactionVolumeByPmtMethodInStore\";\nexport const ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE_NEW = \"addTransactionVolumeByPmtMethodInStoreNew\";\nexport const ADD_TRANSACTION_STACKED_BAR_IN_STORE = \"addTransactionStackedBarInStore\";\nexport const SET_SELECTED_TRANSACTION_ID_IN_STORE = \"setSelectedTransactionIdInStore\";\nexport const SET_WEBHOOK_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE = \"setWebhookDetailsForSelectedTransactionIdInStore\";\nexport const SET_FAILOVER_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE = \"setFailoverDetailsForSelectedTransactionIdInStore\";\nexport const SET_TRANSACTION_DETAILS_IN_STORE = \"setTransactionDetailsInStore\";\nexport const UPDATE_TRXN_STATUS_IN_STORE = \"updateTransactionStatusInStore\";\nexport const UPDATE_DASHBOARD_FETCHING_STATE = \"updateIsFetchingDashboard\";\n\nexport const ADD_REFUND_DATA_FOR_SELECTED_TRANSACTION_IN_STORE = \"addRefundDataForSelectedTransactionInStore\";\nexport const SET_PAYMENT_LINKS_IN_STORE = \"setPaymentLinksInStore\";\nexport const UPDATE_PAYMENT_LINKS_DETAILS_IN_STORE = \"updatePaymentLinksDetailsInStore\";\nexport const ADD_PAYMENTLINKS_IN_STORE = 'addPaymentLinksOnStore';\nexport const UPDATE_PAYMENT_LINKS_FETCHING_STATE = \"updateIsFetchingPaymentLinks\";\nexport const UPDATE_SUB_USER_DETAILS_IN_STORE = \"updateSubUserDetailsInStore\";\nexport const ADD_PAYMENT_LINK_DETAIL_IN_STATE = \"addPaymentLinkDetailInStore\";\nexport const UPDATE_PAYMENT_LINK_TRANSACTIONS_IN_STATE = \"updatePaymentLinkTransactionsInStore\";\nexport const ADD_IMPORT_CREDS_IN_STORE = \"addImportCredsInStore\";\nexport const UPDATE_IAMPORT_CREDENTIALS_IN_STORE = \"updateIamportCredentialsInStore\";\nexport const ADD_SOURCE_LIST_IN_STORE = \"addSourceListInStore\";\n\n//Payouts\nexport const UPDATE_VIRTUAL_ACCOUNT_IN_STORE = 'updateVirtualAccounts';\n\nexport const CREATE_VIRTUAL_ACCOUNT_IN_STORE = 'createVirtualAccount';\n\nexport const UPDATE_PAYOUTS_DATA_IN_STORE = 'updatePayoutsData';\n\nexport const TOGGLE_PAYOUTS_LOADER_IN_STORE = 'togglePayoutsLoader';\n\nexport const UPDATE_ACCOUNTS_DATA_IN_STORE = 'updateAccountsData';\n\nexport const APPROVE_PAYOUTS_DATA_IN_STORE = 'approvePayouts';\n\nexport const UPDATE_BENEFICIARY_DATA_IN_STORE = 'updateBeneficiary';\n\n\nexport const CREATE_BENEFICIARY_DATA_IN_STORE = 'createBeneficiary';\n\nexport const UPDATE_BENEFICIARY_ACCOUNT_IN_STORE = 'updateBeneficiaryAccount';\n\nexport const GENERATE_OTP_PAYOUT_IN_STORE = \"generateOtpPayout\";\n\nexport const DOWNLOAD_EXCEL_STATEMENT_IN_STORE = \"downloadExcelStatement\";\n\nexport const TOGGLE_VENDORS_LOADER_IN_STORE = \"toggleVendorsLoaderInStore\"\n\nexport const TOGGLE_VIRTUAL_LOADER_IN_STORE = \"toggleVirtualLoaderInStore\"\n\nexport const TOGGLE_ACCOUNT_STATEMENT_LOADER_IN_STORE = \"toggleAccountStatementLoaderInStore\"\n\nexport const UPDATE_ALL_PAYMENT_CHANNEL_IN_STORE = \"updateAllPaymentChannelInStore\";\nexport const CLEAR_ALL_PAYMENT_CHANNEL_IN_STORE = \"clearAllPaymentChannelInStore\";\nexport const UPDATE_SELECTED_PAYMENT_CHANNEL_DETAILS_IN_STORE = \"updateSelectedPaymentChannelDetailsInStore\";\nexport const UPDATE_PAYMENT_METHODS_DETAILS_IN_STORE = \"updatePaymentMethodsDetailsInStore\";\nexport const UPDATE_PAYMENT_METHODS_DETAILS_COUNT_IN_STORE = \"updatePaymentMethodsDetailsCountInStore\";\nexport const UPDATE_ALL_PAYMENT_PAYOUT_CHANNEL_IN_STORE = \"updateAllPaymentPayoutChannelInStore\";\nexport const UPDATE_ALL_PREVIEW_PAYMENT_CHANNEL_IN_STORE = \"updateAllPreviewPaymentChannelInStore\";\nexport const UPDATE_PAYMENT_ONBOARDING_DETAILS_IN_STORE = \"updatePaymentOnboardingDetailsInStore\";\nexport const ADD_PAYOUT_DETAILS_IN_STORE = \"addPayoutDetailsInStore\";\n\nexport const SET_UPLOADED_DATA_IN_STORE = \"setUploadedDataInStore\";\nexport const ADD_RECONCILIATION_RESULTS_IN_STORE = \"addReconciliationResultsInStore\";\nexport const ADD_RECONCILIATION_SUMMARY_RESULTS_IN_STORE = \"addReconciliationSummaryResultsInStore\";\nexport const ADD_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS_IN_STORE = \"addReconciliationSummaryForPspResultsInStore\";\nexport const ADD_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY_IN_STORE = \"addPspResultsForReconciliationSummaryInStore\";\nexport const UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE = \"updateReconciliationResultsFetchingState\";\nexport const SET_RECON_DEATILS_IN_STORE = \"setReconDetailsInStore\";\nexport const CLEAR_RECON_DEATILS_IN_STORE = \"clearReconDetailsInStore\";\nexport const ADD_RECONCILIATION_SUMMARY_IN_STORE = \"addReconciliationSummaryInStore\";\nexport const SET_SELECTED_DATE_FOR_SUMMARY = \"setSelectedDateForSummary\";\nexport const RECON_ADD_CHANNEL_LIST_IN_STORE = \"reconAddTChannelLisInStore\";\nexport const ADD_FOOD_TECH_STORE_LIST = \"addFoodTechStoreList\";\nexport const ADD_RECON_TRANSACTIONS_IN_STORE = \"addReconTransactionInStore\";\n\n// Recon Analytics\nexport const SET_RECON_SUMMARY = \"setReconSummary\";\nexport const SET_RECON_TRANSACTIONS = \"setReconTransactions\";\nexport const SET_RECON_COLUMNS = \"setReconColumns\";\n\nexport const UPDATE_MASTER_MERCHANT_FETCHING_STATE = \"updateMasterMerchantFetchingState\";\nexport const ADD_MASTER_MERCHANT_LIST_IN_STORE = \"addMasterMerchantListInStore\";\nexport const ADD_MASTER_MERCHANT_PAGINATED_LIST_IN_STORE = \"addMasterMerchantPaginatedListInStore\";\nexport const ADD_INVITED_MASTER_MERCHANT_LIST_IN_STORE = \"addInvitedMasterMerchantListInStore\";\nexport const ADD_BANKS_LIST_IN_STORE = \"addBanksListInStore\";\nexport const UPDATE_ONBOARDING_FORM_DATA = \"updateOnboardingFormData\";\nexport const UPDATE_PAYMENT_CHANNEL_ONBOARDING_FORM_DATA = \"updatePaymentChannelOnboardingFormData\";\nexport const RECON_METABASE_RESULT_IN_STORE = \"reconMetabaseResultInStore\";\n\n//Payment Pages\nexport const UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE = \"updatePaymentPageResultsFetchingState\";\nexport const CREATE_PAYMENT_PAGE_RECORD_IN_STORE = \"createPaymentPageRecordInStore\";\nexport const ADD_PAYMENT_PAGE_RESULTS_IN_STORE = \"addPaymentPageResultsInStore\";\nexport const ADD_PAYMENT_PAGE_DETAIL_IN_STATE = \"addPaymentPageDetailInStore\";\nexport const ADD_PREVIEW_PAYMENT_PAGE_DETAIL_IN_STATE = \"addPreviewPaymentPageDetailInStore\";\nexport const UPDATE_PAYMENT_PAGE_TRANSACTIONS_IN_STATE = \"updatePaymentPageTransactionsInStore\";\nexport const UPDATE_PAYMENT_PAGE_DETAIL_IN_STORE = \"updatePaymentPageDetailInStore\";\nexport const UPLOAD_PAGE_IMAGE_IN_STORE = \"uploadPageImageInStore\";\n\n//Fee Management\nexport const FEE_MANAGEMENT_ADD_CHANNEL_LIST_IN_STORE = 'feeManagementAddChannelListInStore';\nexport const FEE_MANAGEMENT_ADD_FEE_CONFIG_META_IN_STORE = 'feeManagementAddFeeConfigMetaInStore';\nexport const FEE_MANAGEMENT_ADD_FEE_CONFIG_RECORDS_IN_STORE = 'feeManagementAddFeeConfigRecordsInStore';\nexport const FEE_MANAGEMENT_ADD_TOLERANCE_LEVEL_IN_STORE = 'feeManagementAddToleranceLevelInStore';\nexport const UPDATE_FEE_CONFIG_SFTP_DETAILS_IN_STORE = 'updateFeeConfigSFTPDetailsInStore';\nexport const UPDATE_FEE_CONFIG_PSP_EMAIL_DETAILS_IN_STORE = 'updateFeeConfigPSPEmailDetailsInStore';\nexport const UPDATE_FEE_CONFIG_TOLERANCE_LEVEL_IN_STORE = 'updateFeeConfigToleranceLevelInStore';\nexport const UPDATE_FEE_CONFIG_RECORD_IN_STORE = 'updateFeeConfigRecordInStore';\nexport const UPDATE_FOOD_TECH_FEE_CONFIG_RECORD_IN_STORE = 'updateFoodTechFeeConfigRecordInStore';\nexport const UPDATE_PAYMENT_METHODS_IN_STORE = 'updatePaymentMethodsInStore';\nexport const CREATE_FEE_CONFIG_RECORD_IN_STORE = 'createFeeConfigRecordInStore';\nexport const CREATE_FOOD_TECH_FEE_CONFIG_RECORD_IN_STORE = 'createFoodTechFeeConfigRecordInStore';\nexport const DELETE_FEE_CONFIG_RECORD_IN_STORE = 'deleteFeeConfigRecordInStore';\nexport const RESET_FEE_CONFIG_STATE = 'resetFeeConfigState';\n\n// REMITTANCES\nexport const ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CURR_IN_STORE = \"addRemittancesTransactionStackedBarByCurrInStore\";\nexport const ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CHANNE_IN_STORE = \"addRemittancesTransactionStackedBarByChanneInStore\";\nexport const ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_METHOD_IN_STORE = \"addRemittancesTransactionStackedBarByMethodInStore\";\nexport const ADD_SETTLEMENTS_SUMMARY_RESULTS_IN_STORE = \"addSettlementsSummaryResultsInStore\";\nexport const UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE = \"updateSettlementsResultsFetchingState\";\nexport const ADD_CROSS_BORDER_PAYMENT_METHODS_IN_STORE = \"addCrossBorderPaymentMethodsInStore\";\nexport const ADD_REMITTANCE_SUMMARY_IN_STORE = \"addRemittanceSummaryInStore\";\nexport const UPDATE_REMITTANCE_SUMMARY_FETCHING_STATE = \"updateIsFetchingRemittanceSummary\";\nexport const ADD_REMITTANCES_BANK_ACCOUNT_IN_STORE = \"addRemittancesBankAccountInStore\";\nexport const CREATE_BANK_DATA_IN_STORE = \"createBankDataInStore\";\nexport const UPDATE_BANK_DATA_IN_STORE = \"updateBankDataInStore\";\nexport const ADD_BANK_LIST_IN_STORE = \"addBankListInStore\";\nexport const UPDATE_LEDGER_DATA_IN_STORE = 'updateLedgerData';\nexport const TOGGLE_LEDGER_LOADER_IN_STORE = \"toggleLedgerLoaderInStore\"\n\n// SUBSCRIPTION PRICE\nexport const SET_SUBSCRIPTION_PRICE_DATA_IN_STORE = \"setSubscriptionPriceDataInStore\";\nexport const SET_SUBSCRIPTION_DATA_IN_STORE = \"setSubscriptionPriceDataInStore\";\n\n//smart routing\nexport const ADD_SMART_ROUTING_LIST_IN_STORE = \"addSmartRoutingListInStore\";\nexport const ADD_PAYMENT_CHANNELS_IN_STORE = \"addPaymentChannelsInStore\";\n\n//File Management\nexport const FILE_MANAGEMENT_ADD_DATA_IN_STORE = 'feeManagementAddDataInStore';\n\n// Notifications\nexport const ADD_NOTIFICATIONS_IN_STORE = \"addNotificationsInStore\";\nexport const CLEAR_NOTIFICATION_STATE = \"clearNotificationState\";\n\n//incoices\nexport const ADD_INVOICES_IN_STORE = \"addInvoicesInStore\";\nexport const ADD_INVOICES_DETAILS_IN_STORE = \"addInvoicesDetailsInStore\";\nexport const ADD_INVOICES_TEMPLATES_IN_STORE = \"addInvoicesTemplatesInStore\";\nexport const ADD_INVOICES_TIMELINE_IN_STORE = \"addInvoicesTimeLineInStore\";\n","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const PaymentPageService = {\n fetchPaymentPageResults,\n createPaymentPage,\n updatePaymentPage,\n fetchPaymentPageDetails,\n fetchPaymentPageTransactions,\n uploadPaymentPageImage,\n exportPaymentPageTransactions,\n cancelPaymentPage,\n exportPaymentPageList,\n checkCustomUrlAvailablity,\n generateQRCode\n};\n\nfunction fetchPaymentPageResults(iamportKey, pageData, isMasterMerchant) {\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(pageData),\n credentials: 'include',\n };\n const url = isMasterMerchant ? `master-merchant/${iamportKey}/merchants/payment-pages` : `merchants/${iamportKey}/paymentPages`;\n\n return fetch(`${CHAIPAY_API_URL}/${url}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction createPaymentPage(merchantUUID, iamportKey, data) {\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(data),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentPage`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updatePaymentPage(merchantUUID, iamportKey, data, pageRef) {\n const requestOptions = { \n method: 'PUT',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(data),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentPage/${pageRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchPaymentPageDetails(merchantUUID, iamportKey, pageRef) {\n const requestOptions = { \n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/paymentPage/${pageRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchPaymentPageTransactions(iamportKey, payload, pageRef) {\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(payload),\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentPage/${pageRef}/transactions`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction uploadPaymentPageImage(merchantUUID, iamportKey, formData) {\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(false), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: formData,\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentPage/logo`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportPaymentPageTransactions(iamportKey, pageData, pageRef) {\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(pageData),\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentPage/${pageRef}/export-transactions`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"payment-page-transactions_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction cancelPaymentPage(merchantUUID, iamportKey, pageRef) {\n const requestOptions = { \n method: 'PUT',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentPage/${pageRef}/status/cancelled`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportPaymentPageList(iamportKey, data, isMasterMerchant) {\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(data),\n };\n\n const url = isMasterMerchant ? `master-merchant/${iamportKey}/merchants/export-payment-pages` : `merchants/${iamportKey}/export-paymentPages`;\n \n return fetch(`${CHAIPAY_API_URL}/${url}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"payment-pages_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction checkCustomUrlAvailablity(merchantUUID, iamportKey, pageRef) {\n const requestOptions = { \n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include'\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentPage/check/${pageRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction generateQRCode(iamportKey, pageRef) {\n const requestOptions = { \n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include'\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentPage/${pageRef}/generate-qr-code`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { PaymentPageService } from '../../helpers/backend/payment_pages.service';\nimport hmacSHA256 from 'crypto-js/hmac-sha256';\nimport Base64 from 'crypto-js/enc-base64';\n\nimport {\n FETCH_PAYMENT_PAGE_DETAILS,\n FETCH_PAYMENT_PAGE_LIST,\n FETCH_PAYMENT_PAGE_TRANSACTIONS,\n EXPORT_PAYMENT_PAGE_TRANSACTIONS,\n CANCEL_PAYMENT_PAGE,\n EXPORT_PAYMENT_PAGE_LIST,\n CHECK_PAYMENT_PAGE_CUTOM_URL_AVAILABLITY,\n GENERATE_QR_CODE\n} from '../actions.type';\n\nimport {\n ADD_PAYMENT_PAGE_RESULTS_IN_STORE,\n CREATE_PAYMENT_PAGE_RECORD_IN_STORE,\n ADD_PAYMENT_PAGE_DETAIL_IN_STATE,\n UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE,\n UPDATE_PAYMENT_PAGE_TRANSACTIONS_IN_STATE,\n UPDATE_PAYMENT_PAGE_DETAIL_IN_STORE,\n UPLOAD_PAGE_IMAGE_IN_STORE,\n ADD_PREVIEW_PAYMENT_PAGE_DETAIL_IN_STATE\n} from '../mutations.type';\n\nexport const state = {\n isFetchingData: false,\n pageDetails: {},\n previewPageDetails: {},\n content: [],\n pageTransactions: [],\n total_elements: 0,\n total_pages: 0,\n size: 0,\n page: 0,\n number_of_elements: 0,\n}\n\nexport const mutations = {\n [ADD_PAYMENT_PAGE_RESULTS_IN_STORE](state, newTransactionData) {\n state.isFetchingData = newTransactionData.isFetchingData;\n state.content = newTransactionData.content;\n state.total_elements = newTransactionData.total_elements;\n state.total_pages = newTransactionData.total_pages;\n state.size = newTransactionData.size;\n state.page = newTransactionData.page;\n state.number_of_elements = newTransactionData.number_of_elements;\n },\n [UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE](state, isFetching) {\n state.isFetchingData = isFetching;\n },\n [ADD_PAYMENT_PAGE_DETAIL_IN_STATE](state, pageDetails) {\n state.pageDetails = pageDetails;\n },\n [ADD_PREVIEW_PAYMENT_PAGE_DETAIL_IN_STATE](state, pageDetails) {\n state.previewPageDetails = pageDetails;\n },\n [UPDATE_PAYMENT_PAGE_TRANSACTIONS_IN_STATE](state, transactions) {\n if(!transactions.transactions.content) {\n transactions.transactions.content = [];\n }\n state.pageTransactions = transactions;\n }\n}\n\nexport const getters = {\n}\n\nexport const actions = {\n [FETCH_PAYMENT_PAGE_LIST]({ commit, rootState }, pageData) {\n commit(UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const isMasterMerchant = rootState.auth.currentUser.is_master_merchant;\n pageData.environment = rootState.auth.environment;\n\n if(!pageData.from) {\n pageData.from = \"1991-01-01 15:04:05\";\n }\n\n PaymentPageService.fetchPaymentPageResults(iamportKey, pageData, isMasterMerchant).then((response) => {\n const paylinks_content = response.content;\n\n const paymentLinksData = {\n content: paylinks_content,\n total_elements: response.total_elements,\n total_pages: response.total_pages,\n size: response.size,\n page: response.page,\n number_of_elements: response.number_of_elements,\n }\n commit(ADD_PAYMENT_PAGE_RESULTS_IN_STORE, paymentLinksData)\n commit(UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE, false)\n resolve(paymentLinksData);\n }).catch((error) => {\n commit(UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [CREATE_PAYMENT_PAGE_RECORD_IN_STORE]({ commit, rootState }, formData) {\n return new Promise((resolve, reject) => {\n const currentUser = rootState.auth.currentUser,\n merchantOrderId = 'MERCHANT' + new Date().getTime(),\n environment = rootState.auth.environment;\n\n const { iamportKey, iamportSecret, merchantUuid } = currentUser;\n\n let mainParams = \"amount=\"+encodeURIComponent(formData.amount)+\"&client_key=\"+encodeURIComponent(iamportKey)+\"¤cy=\"+encodeURIComponent(\"VND\")+\"&failure_url=\"+encodeURIComponent(formData.failure_url)+\"&merchant_order_id=\"+encodeURIComponent(merchantOrderId)+\"&success_url=\"+encodeURIComponent(formData.success_url)\n\n let hash = hmacSHA256(mainParams, iamportSecret);\n\n let signatureHash = Base64.stringify(hash);\n\n formData.merchant_details.name = currentUser.brand_name;\n formData.merchant_details.promo_discount = 0.0;\n formData.merchant_details.shipping_charges = 0.0;\n\n const data = {\n ...formData,\n \"chaipay_key\": iamportKey,\n \"merchant_order_id\": merchantOrderId,\n \"signature_hash\": signatureHash,\n \"source\":\"default\",\n \"environment\":environment\n };\n\n PaymentPageService.createPaymentPage(merchantUuid, iamportKey, data).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.status_message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [FETCH_PAYMENT_PAGE_DETAILS]({ commit, rootState }, { pageRef, submerchantKey, isPreviewPage = false }) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.is_master_merchant ? submerchantKey : rootState.auth.currentUser.iamportKey;\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n PaymentPageService.fetchPaymentPageDetails(merchantUUID, iamportKey, pageRef).then((response) => {\n if(isPreviewPage) {\n commit(ADD_PREVIEW_PAYMENT_PAGE_DETAIL_IN_STATE, response)\n } else {\n commit(ADD_PAYMENT_PAGE_DETAIL_IN_STATE, response)\n }\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_PAYMENT_PAGE_TRANSACTIONS]({ commit, rootState }, {payload, pageRef}) {\n commit(UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE, true);\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\n payload.environment = rootState.auth.environment;\n payload.uuid = rootState.auth.currentUser.merchantUuid;\n\n PaymentPageService.fetchPaymentPageTransactions(iamportKey, payload, pageRef).then((response) => {\n commit(UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE, false)\n commit(UPDATE_PAYMENT_PAGE_TRANSACTIONS_IN_STATE, response)\n resolve(response);\n }).catch((error) => {\n commit(UPDATE_PAYMENT_PAGE_RESULTS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [UPDATE_PAYMENT_PAGE_DETAIL_IN_STORE]({ commit, rootState }, formData) {\n return new Promise((resolve, reject) => {\n\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n\n const data = {\n ...formData,\n \"key\": iamportKey,\n \"environment\": environment\n };\n\n PaymentPageService.updatePaymentPage(merchantUUID, iamportKey, data, formData.page_ref).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.status_message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [UPLOAD_PAGE_IMAGE_IN_STORE]({ commit, rootState }, formData) {\n return new Promise((resolve, reject) => {\n\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\n PaymentPageService.uploadPaymentPageImage(merchantUUID, iamportKey, formData).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.status_message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [EXPORT_PAYMENT_PAGE_TRANSACTIONS]({commit, rootState}, {pageData, pageRef}) {\n return new Promise((resolve, reject) => {\n\n const iamportKey = rootState.auth.currentUser.iamportKey;\n pageData.environment = rootState.auth.environment;\n\n PaymentPageService.exportPaymentPageTransactions(iamportKey, pageData, pageRef).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.status_message, { root: true })\n reject(errorObject);\n })\n })\n },\n [CANCEL_PAYMENT_PAGE]({commit, rootState}, pageRef) {\n return new Promise((resolve, reject) => {\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\n PaymentPageService.cancelPaymentPage(merchantUUID, iamportKey, pageRef).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.status_message, { root: true })\n reject(errorObject);\n })\n })\n },\n [EXPORT_PAYMENT_PAGE_LIST]({commit, rootState}, data) {\n return new Promise((resolve, reject) => {\n\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const isMasterMerchant = rootState.auth.currentUser.is_master_merchant;\n\n if(!data.from) {\n data.from = \"1991-01-01 15:04:05\";\n }\n data.environment = rootState.auth.environment;\n\n PaymentPageService.exportPaymentPageList(iamportKey, data, isMasterMerchant).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.status_message, { root: true })\n reject(errorObject);\n })\n })\n },\n [CHECK_PAYMENT_PAGE_CUTOM_URL_AVAILABLITY]({commit, rootState}, pageRef) {\n return new Promise((resolve, reject) => {\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\n PaymentPageService.checkCustomUrlAvailablity(merchantUUID, iamportKey, pageRef).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.status_message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [GENERATE_QR_CODE]({ commit, rootState }, { pageRef }) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n PaymentPageService.generateQRCode(iamportKey, pageRef).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n}\n\nexport const namespaced = true;\n","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const SettlementsService = {\n fetchSettlementsSummaryResults,\n fetchSettlementsSummaryExpandBy\n};\nfunction fetchSettlementsSummaryResults(merchantUUId, iamportKey, pageIndex, pagesize, from_date, to_date, source, frequency, recon_type, environment,filters) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify({ key:iamportKey,recon_type:recon_type,source:source,from_date:from_date,to_date:to_date,frequency:frequency, page: pageIndex, pagesize, environment,filters }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/cross-border/settlement/summary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchSettlementsSummaryExpandBy(merchantUUId, iamportKey, pageIndex, pagesize, from_date, to_date, field, frequency, recon_type, environment,filters) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify({ key:iamportKey,recon_type:recon_type,field:field,from_date:from_date,to_date:to_date,frequency:frequency, page: pageIndex, pagesize, environment,filters }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/cross-border/settlement/custom/summary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { SettlementsService } from '../../helpers/backend/settlements.service';\nimport moment from 'moment';\nimport {\n FETCH_SETTLEMENTS_SUMMARY_RESULTS,\n FETCH_SETTLEMENTS_SUMMARY_EXPAND_BY,\n} from '../actions.type';\n\nimport {\n ADD_SETTLEMENTS_SUMMARY_RESULTS_IN_STORE,\n UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE,\n} from '../mutations.type';\n\nexport const state = {\n isFetchingData: false,\n Summarycontent: [],\n total_elements: 0,\n total_pages: 0,\n size: 0,\n page: 0,\n number_of_elements: 0,\n}\n\nexport const mutations = {\n [ADD_SETTLEMENTS_SUMMARY_RESULTS_IN_STORE](state, newTransactionData) {\n state.isFetchingData = newTransactionData.isFetchingData;\n state.Summarycontent = newTransactionData.content;\n state.total_elements = newTransactionData.total_elements;\n state.total_pages = newTransactionData.total_pages;\n state.size = newTransactionData.size;\n state.page = newTransactionData.page;\n state.number_of_elements = newTransactionData.number_of_elements;\n },\n [UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE](state, isFetching) {\n state.isFetchingData = isFetching;\n }\n}\n\nexport const getters = {\n getPaymentLinksEntityDetails(state) {\n return state.entityDetails;\n },\n}\n\nexport const actions = {\n [FETCH_SETTLEMENTS_SUMMARY_RESULTS]({ commit, rootState }, { pageIndex, pagesize, from_date, to_date, source, frequency, recon_type,filter }) {\n commit(UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const environment = rootState.auth.environment;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n SettlementsService.fetchSettlementsSummaryResults(merchantUUId, iamportKey, pageIndex, pagesize, from_date, to_date, source, frequency, recon_type, environment,filter).then((response) => {\n const paylinks_content = response.content.map((paylinks) => {\n var pending_value = 0\n // var remitted_amount_value = 0\n if(paylinks.categories.buckets.length > 0){\n paylinks.categories.buckets.filter((bucket) => {\n if(bucket.key == 'PSP_SETTLED'){\n pending_value = bucket.credit_amount.value\n }\n // else if(bucket.key == 'FULLY_SETTLED'){\n // remitted_amount_value = bucket.credit_amount.value\n // }\n });\n }\n return {\n date_month: moment(paylinks.key_as_string).format('MMM, YYYY') || \"\",\n date_week: moment(paylinks.key_as_string).format('MMM Do YYYY') || \"\",\n country: '',\n payment_channel: '',\n payment_method:'',\n total_txn_amount:(paylinks.total_txn_amount_bc.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n txn_fee:(paylinks.txn_fee_bc.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n wht:(paylinks.wht_bc.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n total_settlement_amount: (paylinks.total_settlement_amount_bc.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n pending_amount:(pending_value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n remitted_amount:(paylinks.net_remit.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n transfer_fee:(paylinks.remit_fee.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n net_remitted_amount:paylinks.net_remit_dc.value,\n date_raw:paylinks.key\n };\n });\n\n const paymentLinksData = {\n content: paylinks_content,\n total_elements: response.total_elements,\n total_pages: response.total_pages,\n size: response.size,\n page: response.page,\n number_of_elements: response.number_of_elements,\n }\n commit(ADD_SETTLEMENTS_SUMMARY_RESULTS_IN_STORE, paymentLinksData)\n commit(UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE, false)\n resolve(paymentLinksData);\n }).catch((error) => {\n commit(UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_SETTLEMENTS_SUMMARY_EXPAND_BY]({ commit, rootState }, { pageIndex, pagesize, from_date, to_date, field, frequency, recon_type ,filter}) {\n commit(UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const environment = rootState.auth.environment;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n SettlementsService.fetchSettlementsSummaryExpandBy(merchantUUId, iamportKey, pageIndex, pagesize, from_date, to_date, field, frequency, recon_type, environment,filter).then((response) => {\n const paylinks_content = []\n response.content.map((paylinks) => {\n if(paylinks.channels.buckets.length > 0){\n paylinks.channels.buckets.map((bucketContent) => {\n var pending_value = 0\n // var remitted_amount_value = 0\n if(bucketContent.categories.buckets.length > 0){\n bucketContent.categories.buckets.filter((bucket) => {\n if(bucket.key == 'PSP_SETTLED'){\n pending_value = bucket.credit_amount.value\n }\n // else if(bucket.key == 'FULLY_SETTLED'){\n // remitted_amount_value = bucket.credit_amount.value\n // }\n });\n }\n paylinks_content.push({\n date_month: moment(paylinks.key_as_string).format('MMM, YYYY') || \"\",\n date_week: moment(paylinks.key_as_string).format('MMM Do YYYY') || \"\",\n country: bucketContent.key,\n payment_channel: bucketContent.key,\n payment_method:bucketContent.key,\n total_txn_amount:(bucketContent.total_txn_amount_bc.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n txn_fee:(bucketContent.txn_fee_bc.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n wht:(bucketContent.wht_bc.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n total_settlement_amount:(bucketContent.total_settlement_amount_bc.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n pending_amount:(pending_value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n remitted_amount:(bucketContent.net_remit.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n transfer_fee:(bucketContent.remit_fee.value).toLocaleString('en-US', { style: 'currency', currency: 'USD' }),\n net_remitted_amount:bucketContent.net_remit_dc.value,\n date_raw:paylinks.key\n });\n }); \n }\n }); \n // const paylinks_content = response.content.map((paylinks) => {\n // var pending_value = 0\n // var remitted_amount_value = 0\n // if(paylinks.categories.buckets.length > 0){\n // paylinks.categories.buckets.filter((bucket) => {\n // if(bucket.key == 'PSP_SETTLED'){\n // pending_value = bucket.credit_amount.value\n // }else if(bucket.key == 'FULLY_SETTLED'){\n // remitted_amount_value = bucket.credit_amount.value\n // }\n // });\n // }\n // return {\n // date: moment(paylinks.key_as_string).format('MMM Do YYYY') || \"\",\n // country: '',\n // payment_channel: '',\n // payment_method:'',\n // total_txn_amount:paylinks.total_txn_amount_bc.value,\n // txn_fee:paylinks.txn_fee_bc.value,\n // wht:paylinks.wht_bc.value,\n // total_settlement_amount: paylinks.total_settlement_amount_bc.value,\n // pending_amount: pending_value,\n // remitted_amount: remitted_amount_value,\n // transfer_fee:paylinks.remit_fee.value,\n // net_remitted_amount:paylinks.net_remit.value,\n // };\n // });\n\n const paymentLinksData = {\n content: paylinks_content,\n total_elements: response.total_elements,\n total_pages: response.total_pages,\n size: response.size,\n page: response.page,\n number_of_elements: response.number_of_elements,\n }\n commit(ADD_SETTLEMENTS_SUMMARY_RESULTS_IN_STORE, paymentLinksData)\n commit(UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE, false)\n resolve(paymentLinksData);\n }).catch((error) => {\n commit(UPDATE_SETTLEMENTS_RESULTS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n }\n}\n\nexport const namespaced = true;\n","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const remittanceBankAccountService = {\n fetchBankAccountTable,\n postBankAccountTable,\n updateBankAccountTable,\n fetchBanksList\n};\nfunction fetchBankAccountTable(merchantUUId, key, paging, environment) {\n paging.pageIndex = paging.pageIndex || 1;\n paging.pagesize = paging.pagesize || 100;\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment, page: paging.pageIndex, pagesize: paging.pagesize});\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/cross-border/bank-account?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction postBankAccountTable(merchantUUId, key, addBankAccountDetails) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(addBankAccountDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/cross-border/bank-account`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n\nfunction updateBankAccountTable(merchantUUId, key, addBankAccountDetails) {\n console.log(addBankAccountDetails)\n const uuid = addBankAccountDetails.uuid;\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(addBankAccountDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/cross-border/bank-account/${uuid}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchBanksList(merchantUUId, key, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/cross-border/bank-list/KR?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n\n","import { remittanceBankAccountService } from '../../helpers/backend/remittance_bank_accounts.service';\n\nimport {\n FETCH_REMITTANCES_BANK_ACCOUNT,\n POST_REMITTANCES_BANK_ACCOUNT,\n UPDATE_REMITTANCES_BANK_ACCOUNT,\n FETCH_BANK_LIST,\n} from '../actions.type';\n\nimport {\n ADD_REMITTANCES_BANK_ACCOUNT_IN_STORE,\n TOGGLE_VENDORS_LOADER_IN_STORE,\n CREATE_BANK_DATA_IN_STORE,\n UPDATE_BANK_DATA_IN_STORE,\n ADD_BANK_LIST_IN_STORE\n} from '../mutations.type';\n\n//import * as cloneDeep from \"lodash.clonedeep\";\n\nexport const state = {\n content: [],\n isFetchingData: false,\n total_elements: 0,\n total_pages: 0,\n size: 0,\n page: 0,\n //banksAccountData: {},\n banksList:{},\n number_of_elements: 0,\n}\n\nexport const mutations = {\n [TOGGLE_VENDORS_LOADER_IN_STORE](state, isFetching) {\n state.isFetchingData = isFetching;\n },\n \n [ADD_REMITTANCES_BANK_ACCOUNT_IN_STORE](state, content) {\n state.content = content\n },\n\n [ADD_BANK_LIST_IN_STORE](state, content) {\n state.banksList = content\n },\n\n [CREATE_BANK_DATA_IN_STORE](state, bankAccountData) {\n //state.isFetchingData = bankAccountData.isFetchingData;\n //state.content = bankAccountData.content;\n //state.bankAccountData = bankAccountData.content;\n state.bankAccountData = { ...state.bankAccountData, ...bankAccountData };\n // state.total_elements = bankAccountData.total_elements;\n // state.total_pages = bankAccountData.total_pages;\n // state.size = bankAccountData.size;\n // state.page = bankAccountData.page;\n // state.number_of_elements = bankAccountData.number_of_elements;\n },\n [UPDATE_BANK_DATA_IN_STORE](state, bankAccountData) {\n \n //state.bankAccountData = { ...state.bankAccountData, ...bankAccountData };\n state.content.content = state.content.content.map(data => {\n if (data.uuid === bankAccountData.uuid) {\n data.account_number = bankAccountData.AccountNumber;\n data.account_type = bankAccountData.AccountType\n data.active = bankAccountData.active\n data.bank_id = bankAccountData.BankId\n data.bank_name = bankAccountData.BankName\n data.branch = bankAccountData.Branch\n data.bsb_code = bankAccountData.BsbCode\n data.card_number = bankAccountData.CardNumber\n data.country = bankAccountData.Country\n data.currency = bankAccountData.currency\n data.default = bankAccountData.default\n data.first_name = bankAccountData.first_name\n data.last_name = bankAccountData.last_name\n data.phone_number = bankAccountData.phone_number\n data.iban = bankAccountData.Iban\n data.ifsc = bankAccountData.Ifsc\n data.phone_number = bankAccountData.PhoneNumber\n data.remittance_purpose = bankAccountData.RemittancePurpose\n data.remittance_source = bankAccountData.RemittanceSource\n data.routing_number = bankAccountData.RoutingNumber\n data.sort_code = bankAccountData.SortCode\n data.swift = bankAccountData.Swift\n data.transit_code = bankAccountData.TransitCode\n data.wing_money_number = bankAccountData.WingMoneyNumber\n \n }\n return data;\n });\n \n },\n \n}\n\n\nexport const actions = {\n\n [FETCH_REMITTANCES_BANK_ACCOUNT](context, paging) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, true);\n const environment = context.rootState.auth.environment;\n const merchantUUId = context.rootState.auth.currentUser.merchantUuid;\n remittanceBankAccountService.fetchBankAccountTable(merchantUUId, key, paging, environment).then((response) => {\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, false);\n\n context.commit(ADD_REMITTANCES_BANK_ACCOUNT_IN_STORE, response);\n resolve(response);\n }).catch((error) => {\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, false);\n\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n\n [POST_REMITTANCES_BANK_ACCOUNT](context, addBankAccountDetails) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n const merchantUUId = context.rootState.auth.currentUser.merchantUuid;\n addBankAccountDetails['environment'] = environment;\n remittanceBankAccountService.postBankAccountTable(merchantUUId, key, addBankAccountDetails).then((response) => {\n const bankAccountData = response\n context.commit(CREATE_BANK_DATA_IN_STORE, bankAccountData)\n resolve(response);\n context.commit('notification/success', \"Bank Account Created Successfully\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [UPDATE_REMITTANCES_BANK_ACCOUNT](context, addBankAccountDetails) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n const merchantUUId = context.rootState.auth.currentUser.merchantUuid;\n addBankAccountDetails['environment'] = environment;\n remittanceBankAccountService.updateBankAccountTable(merchantUUId, key, addBankAccountDetails).then((response) => {\n const bankAccountData = response\n context.commit(UPDATE_BANK_DATA_IN_STORE, bankAccountData)\n resolve(response);\n context.commit('notification/success', \"Bank Account Updated Successfully\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [FETCH_BANK_LIST](context) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n //context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, true);\n const environment = context.rootState.auth.environment;\n const merchantUUId = context.rootState.auth.currentUser.merchantUuid;\n remittanceBankAccountService.fetchBanksList(merchantUUId, key, environment).then((response) => {\n //context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, false);\n\n context.commit(ADD_BANK_LIST_IN_STORE, response);\n resolve(response);\n }).catch((error) => {\n console.log(error)\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n \n\n}\n\n\nexport const namespaced = true;\n","module.exports = __webpack_public_path__ + \"img/Kenya.bf869678.png\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAAC3CAMAAAAGjUrGAAABIFBMVEXsHSMqMIbsHSX////uISjrHyLuICopMYUmMYsZL4TxHSItL4TyHSAtM4kbMImVJ1ikJU7///v//f////cqMYEqL4wqMn4AA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c/obriVfbibH4AfL1cfJ/AZ3ooBMddKKzTE4oTS/NeXZeLZGTzY3lYJnihC0Jy+Tk1bKwRE7+uiz858elcfLjspD+HfXlcPLcv8VyMXfycgn+d5YHdKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhEB53ooBMddKKDTnTQiQ460UEnOuhE54YT5AYvX7xE7vJfjZCNE34JbTMAAAAASUVORK5CYII=\"","// Register each file as a corresponding Vuex module. Module nesting\n// will mirror [sub-]directory hierarchy and modules are namespaced\n// as the camelCase equivalent of their file name.\n\nimport camelCase from 'lodash/camelCase'\n\nconst modulesCache = {}\nconst storeData = { modules: {} }\n\n;(function updateModules() {\n // Allow us to dynamically require all Vuex module files.\n // https://webpack.js.org/guides/dependency-management/#require-context\n const requireModule = require.context(\n // Search for files in the current directory.\n '.',\n // Search for files in subdirectories.\n true,\n // Include any .js files that are not this file or a unit test.\n /^((?!index|\\.unit\\.).)*\\.js$/\n )\n\n // For every Vuex module...\n requireModule.keys().forEach((fileName) => {\n const moduleDefinition = requireModule(fileName)\n\n // Skip the module during hot reload if it refers to the\n // same module definition as the one we have cached.\n if (modulesCache[fileName] === moduleDefinition) return\n\n // Update the module cache, for efficient hot reloading.\n modulesCache[fileName] = moduleDefinition\n\n // Get the module path as an array.\n const modulePath = fileName\n // Remove the \"./\" from the beginning.\n .replace(/^\\.\\//, '')\n // Remove the file extension from the end.\n .replace(/\\.\\w+$/, '')\n // Split nested modules into an array path.\n .split(/\\//)\n // camelCase all module namespaces and names.\n .map(camelCase)\n\n // Get the modules object for the current path.\n const { modules } = getNamespace(storeData, modulePath)\n\n // Add the module to our modules object.\n modules[modulePath.pop()] = {\n // Modules are namespaced by default.\n namespaced: true,\n ...moduleDefinition,\n }\n })\n\n // If the environment supports hot reloading...\n if (module.hot) {\n // Whenever any Vuex module is updated...\n module.hot.accept(requireModule.id, () => {\n // Update `storeData.modules` with the latest definitions.\n updateModules()\n // Trigger a hot update in the store.\n require('../store').default.hotUpdate({ modules: storeData.modules })\n })\n }\n})()\n\n// Recursively get the namespace of a Vuex module, even if nested.\nfunction getNamespace(subtree, path) {\n if (path.length === 1) return subtree\n\n const namespace = path.shift()\n subtree.modules[namespace] = {\n modules: {},\n namespaced: true,\n ...subtree.modules[namespace],\n }\n return getNamespace(subtree.modules[namespace], path)\n}\n\nexport default storeData.modules\n","import Vue from 'vue'\r\nimport Vuex from 'vuex'\r\n\r\nimport modules from './modules'\r\n\r\nVue.use(Vuex)\r\n\r\nconst store = new Vuex.Store({\r\n modules,\r\n // Enable strict mode in development to get a warning\r\n // when mutating state outside of a mutation.\r\n // https://vuex.vuejs.org/guide/strict.html\r\n strict: process.env.NODE_ENV !== 'production',\r\n})\r\n\r\nexport default store\r\n","import Headers from '../headers';\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const FileManagementService = {\n fetchFileManagementRecords,\n postFileManagementForm\n};\n\nfunction fetchFileManagementRecords(iamportKey, environment, paymentChannel) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment, payment_channel_key: paymentChannel});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/recon/file-mapping?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction postFileManagementForm(payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n body: JSON.stringify(payload)\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/file-mapping`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import cloneDeep from 'lodash.clonedeep';\nimport { FileManagementService } from '../../helpers/backend/file_management.service';\nimport { FETCH_FILE_MANAGEMENT_DATA, POST_FILE_MANAGEMENT_DATA } from '../actions.type';\n\nimport { FILE_MANAGEMENT_ADD_DATA_IN_STORE } from '../mutations.type';\n\nexport const state = {\n content: []\n};\n\nexport const mutations = {\n [FILE_MANAGEMENT_ADD_DATA_IN_STORE](state, content) {\n\n state.content = content.map(((element, index) => {\n element.index = index;\n return element;\n }));\n }\n};\n\nexport const actions = {\n [FETCH_FILE_MANAGEMENT_DATA]({ commit, rootState }, paymentChannel) {\n\t\treturn new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n FileManagementService.fetchFileManagementRecords(iamportKey, environment, paymentChannel).then((response) => {\n commit(FILE_MANAGEMENT_ADD_DATA_IN_STORE, response.content)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n [POST_FILE_MANAGEMENT_DATA]({ commit, rootState }, {formData, refundIncluded, currentData}) {\n\t\treturn new Promise((resolve, reject) => {\n let payload;\n let data = {\n engine_source: formData.display_name,\n file_prefix: formData.display_name,\n offset: formData.offset,\n sheet_number: formData.sheet_number,\n environment: rootState.auth.environment,\n source_date_format: formData.source_date_format,\n display_name: formData.display_name,\n currency: formData.currency,\n portone_key: rootState.auth.currentUser.iamportKey,\n payment_channel_key: formData.payment_channel_key,\n charge_params: formData.charge_params,\n all_headers: formData.all_headers,\n file_type: formData.file_type\n };\n if(formData.file_type === 'transaction') {\n data.header_mapping = {\n date: formData.fileHeaders[0],\n amount: formData.fileHeaders[1],\n merchant_order_ref: formData.fileHeaders[2],\n channel_order_ref: formData.fileHeaders[3],\n channel_order_ref1: formData.fileHeaders[4],\n status: formData.fileHeaders[5]\n }\n } else {\n data.header_mapping = {\n date: formData.fileHeaders[0],\n amount: formData.fileHeaders[1],\n txn_type: formData.fileHeaders[2],\n txn_ref: formData.fileHeaders[3]\n }\n }\n if(refundIncluded && formData.file_type === 'recon') {\n data.refund_header_mapping = {\n amount: formData.refundFileHeaders[0],\n date: formData.refundFileHeaders[1],\n txn_ref: formData.refundFileHeaders[2],\n txn_type: formData.refundFileHeaders[3],\n }\n data.refund_offset = formData.refund_offset;\n data.refund_sheet_number = formData.refund_sheet_number;\n }\n\n if (currentData) {\n payload = cloneDeep(currentData);\n } else {\n // const sourceKey = formData.display_name + new Date()[Symbol.toPrimitive]('number');\n payload = {\n // source_name: sourceKey,\n source_type: \"PROVIDER\",\n input_header: {},\n refund_header_mapping: {},\n refund_input_header: {},\n refund_offset: 0,\n refund_sheet_number: -1,\n parent_rfm_id: null,\n created_by: \"MERCHANT\",\n file_type: \"recon\",\n result_title_map: {}\n };\n }\n\n if(!refundIncluded) {\n data.refund_header_mapping = {};\n payload.refund_header_mapping = {};\n }\n const finalPayload = {...payload, ...data};\n\n FileManagementService.postFileManagementForm(finalPayload).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n};","import Headers from '../headers'\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const ReconAnalyticsService = {\n getReconSummary,\n getReconSummaryTableRecords,\n downloadReconSummaryTableRecords,\n sendReconSumeryDataOnEmail,\n // downloadReconSummary\n};\n\nfunction getReconSummary(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/summary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getReconSummaryTableRecords(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/dashboard-records`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction downloadReconSummaryTableRecords(iamportKey, payload) {\n\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/export-dashboard-records`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n let url = window.URL.createObjectURL(blob);\n let a = document.createElement('a');\n a.href = url;\n a.download = `recon_dashboard_${payload.record_type}_` + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction sendReconSumeryDataOnEmail(iamportKey, payload) {\n\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/g/recon/dashboard/source-records/export-email`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// function downloadReconSummary(iamportKey, payload) {\n// const requestOptions = {\n// method: 'POST',\n// headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n// credentials: 'include',\n// body: JSON.stringify(payload)\n// };\n\n// return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/export-recon-summary`, requestOptions).then((response) => {\n// if (response.ok) {\n// return response.blob().then((blob) => {\n// var url = window.URL.createObjectURL(blob);\n// var a = document.createElement('a');\n// a.href = url;\n// a.download = \"Reconciliation summary\" + (new Date().toISOString()) + \".xlsx\";\n// document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n// a.click();\n// a.remove(); //afterwards we remove the element again\n// });\n// } else {\n// return response.text().then(text => {\n// if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n// window.location = window.location.origin + '/logout';\n// }\n// throw new Error(text);\n// });\n// }\n// });\n// }","import { ReconAnalyticsService } from '../../helpers/backend/recon_analytics.service';\n\nimport {\n DOWNLOAD_RECON_SUMMARY_TABLE_RECORDS,\n FETCH_RECON_SUMMARY,\n FETCH_RECON_SUMMARY_TABLE_RECORDS,\n // EXPORT_RECON_SUMMARY,\n SEND_RECON_SUMERY_DATA_ON_EMAIL\n} from '../actions.type';\n\nimport { SET_RECON_SUMMARY, SET_RECON_TRANSACTIONS, SET_RECON_COLUMNS } from '../mutations.type';\n\nexport const state = {\n summary: {\n dataFields: [],\n dataNodes: [],\n lastUpdatedDate: \"\"\n },\n tableData: {\n content: [],\n totalElements: 0,\n totalPages: 0,\n size: 0,\n page: 0,\n },\n additionalColumns: null\n};\n\nexport const mutations = {\n [SET_RECON_SUMMARY](state, summary) {\n state.summary.dataFields = summary.dataFields || [];\n state.summary.dataNodes = summary.dataNodes || [];\n state.summary.lastUpdatedDate = summary.last_updated_at || \"\";\n },\n [SET_RECON_TRANSACTIONS](state, data) {\n state.tableData = {\n content: data.content,\n totalElements: data.totalElements,\n totalPages: data.totalPages,\n size: data.size,\n page: data.page,\n }\n },\n [SET_RECON_COLUMNS](state, data) {\n state.additionalColumns = data;\n }\n};\n\nexport const getters = {\n reconSummary(state) {\n return state.summary;\n },\n reconSummaryTable(state) {\n return state.tableData.content;\n },\n reconAdditionalColumns(state) {\n return state.additionalColumns;\n },\n totalElements(state) {\n return state.tableData.totalElements;\n }\n};\n\nexport const actions = {\n [FETCH_RECON_SUMMARY](context, payload) {\n return new Promise((resolve, reject) => {\n payload.environment = context.rootState.auth.environment;\n return ReconAnalyticsService.getReconSummary(context.rootState.auth.currentUser.iamportKey, payload)\n .then(response => {\n if(response.data) {\n context.commit(SET_RECON_SUMMARY, response.data);\n }\n resolve(response);\n })\n .catch(error => {\n console.log(error);\n reject(error);\n });\n });\n },\n [FETCH_RECON_SUMMARY_TABLE_RECORDS](context, payload) {\n return new Promise((resolve, reject) => {\n payload.environment = context.rootState.auth.environment;\n context.commit(SET_RECON_TRANSACTIONS, { content: [], totalElements: state.tableData.totalElements, totalPages: state.tableData.totalPages, size: state.tableData.size, page: state.tableData.page });\n return ReconAnalyticsService.getReconSummaryTableRecords(context.rootState.auth.currentUser.iamportKey, payload)\n .then(response => {\n context.commit(SET_RECON_COLUMNS, response.columns);\n context.commit(SET_RECON_TRANSACTIONS, response.data);\n resolve(response);\n })\n .catch(error => {\n reject(error);\n });\n });\n },\n [DOWNLOAD_RECON_SUMMARY_TABLE_RECORDS](context, payload) {\n return new Promise((resolve, reject) => {\n payload.environment = context.rootState.auth.environment;\n return ReconAnalyticsService.downloadReconSummaryTableRecords(context.rootState.auth.currentUser.iamportKey, payload)\n .then(response => {\n resolve(response);\n })\n .catch(error => {\n reject(error);\n });\n });\n },\n [SEND_RECON_SUMERY_DATA_ON_EMAIL](context, payload) {\n return new Promise((resolve, reject) => {\n payload.environment = context.rootState.auth.environment;\n return ReconAnalyticsService.sendReconSumeryDataOnEmail(context.rootState.auth.currentUser.iamportKey, payload)\n .then(response => {\n resolve(response);\n })\n .catch(error => {\n reject(error);\n });\n });\n },\n // [EXPORT_RECON_SUMMARY]({ commit, rootState }, payload) {\n\t// \treturn new Promise((resolve, reject) => {\n // payload.environment = rootState.auth.environment;\n // const iamportKey = rootState.auth.currentUser.iamportKey;\n\n // ReconAnalyticsService.downloadReconSummary(iamportKey, payload).then((response) => {\n // resolve(response);\n // }).catch((error) => {\n // const errorObject = JSON.parse(error.message)\n // commit('notification/error', errorObject.Message, { root: true })\n // reject(error);\n // })\n\t// \t})\n\t// },\n};\n\nexport const namespaced = true;","module.exports = __webpack_public_path__ + \"img/india.f3a60ba3.svg\";","import Vue from 'vue'\nimport VueI18n from 'vue-i18n'\n\nVue.use(VueI18n)\n\nfunction loadLocaleMessages () {\n const locales = require.context('./locales', true, /[A-Za-z0-9-_,\\s]+\\.json$/i)\n const messages = {}\n locales.keys().forEach(key => {\n const matched = key.match(/([A-Za-z0-9-_]+)\\./i)\n if (matched && matched.length > 1) {\n const locale = matched[1]\n messages[locale] = locales(key)\n }\n })\n return messages\n}\n\nexport default new VueI18n({\n locale: process.env.VUE_APP_I18N_LOCALE || 'en',\n fallbackLocale: process.env.VUE_APP_I18N_FALLBACK_LOCALE || 'en',\n messages: loadLocaleMessages()\n})\n","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const SubscriptionPriceService = {\n addSubscriptionPrice,\n fetchSubscriptionPriceList,\n deletePrice\n};\n\nfunction addSubscriptionPrice(entityDetails) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(entityDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/subscription/createPrice`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchSubscriptionPriceList(merchantUuid, payload, isMasterMerchant, iamportKey) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n let URI = `merchant/subscription/price/${merchantUuid}/list`;\n if(isMasterMerchant) {\n URI = `master-merchant/${iamportKey}/merchants/price-list`;\n }\n\n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction deletePrice(orderRef, iamportKey) {\n const requestOptions = {\n method: 'PUT',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/subscription/price/${orderRef}/status/cancelled`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { SubscriptionPriceService } from \"../../helpers/backend/subscriptionprice.service\";\nimport { DELETE_PRICE, FETCH_SUBSCRIPTION_PRICE_LIST, POST_SUBSCRIPTION_PRICE } from \"../actions.type\";\nimport hmacSHA256 from 'crypto-js/hmac-sha256';\nimport Base64 from 'crypto-js/enc-base64';\nimport { SET_SUBSCRIPTION_PRICE_DATA_IN_STORE } from \"../mutations.type\";\n\nexport const state = {\n content: [],\n number_of_elements: 0,\n page: 0,\n size: 0,\n total_elements: 0,\n total_pages: 0,\n}\n\nexport const mutations = {\n [SET_SUBSCRIPTION_PRICE_DATA_IN_STORE](state, data) {\n state.content = data.content;\n state.number_of_elements = data.number_of_elements;\n state.page = data.page;\n state.size = data.size;\n state.total_elements = data.total_elements;\n state.total_pages = data.total_pages;\n },\n}\n\nexport const actions = {\n\n [POST_SUBSCRIPTION_PRICE](context, newEntityDetails) {\n return new Promise((resolve, reject) => {\n const environment = context.rootState.auth.environment;\n\n const { iamportKey, iamportSecret } = context.rootState.auth.currentUser;\n\n const merchantOrderRef = 'Price'+ new Date().getTime()\n\n const mainParams = \"amount=\"+encodeURIComponent(newEntityDetails.amount)+\"&client_key=\"+encodeURIComponent(iamportKey)+\"¤cy=\"+encodeURIComponent(newEntityDetails.currency)+\"&frequency=\"+encodeURIComponent(newEntityDetails.frequency)+\"&merchant_order_ref=\"+encodeURIComponent(merchantOrderRef);\n\n const hash = hmacSHA256(mainParams, iamportSecret);\n\n const signatureHash = Base64.stringify(hash);\n\n const formData = {\n ...newEntityDetails,\n \"chaipay_key\": iamportKey,\n \"signature_hash\": signatureHash,\n \"merchant_order_ref\": merchantOrderRef,\n \"source\": \"checkout\",\n environment: environment\n };\n\n SubscriptionPriceService.addSubscriptionPrice(formData).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_SUBSCRIPTION_PRICE_LIST](context, payload) {\n return new Promise((resolve, reject) => {\n payload.environment = context.rootState.auth.environment;\n const merchantUuid = context.rootState.auth.currentUser.merchantUuid;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const isMasterMerchant = context.rootState.auth.currentUser.is_master_merchant;\n\n SubscriptionPriceService.fetchSubscriptionPriceList(merchantUuid, payload, isMasterMerchant, iamportKey).then((response) => {\n context.commit(SET_SUBSCRIPTION_PRICE_DATA_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n\n [DELETE_PRICE](context, order_ref) {\n return new Promise((resolve, reject) => {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n SubscriptionPriceService.deletePrice(order_ref, iamportKey).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n }\n}\n\nexport const namespaced = true;","module.exports = __webpack_public_path__ + \"img/samoa.69b52e9a.svg\";","module.exports = __webpack_public_path__ + \"img/malaysia.417cba3c.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAf4AAAE/AgMAAADatUmnAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEX////tiZ3cFDyiBS0dAAAAAWJLR0QAiAUdSAAAAAd0SU1FB+gDEAYQG+VQuQ8AAACESURBVHja7c4xAQAwDAOgSNxTf72nsjLygAISAAAAAAAAAAAAAAAAAAAAAAAAAKBtul5+1woICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcnBnyUivoWJAAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjQtMDMtMTZUMDY6MTY6MjcrMDA6MDDMq5hVAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDI0LTAzLTE2VDA2OjE2OjI3KzAwOjAwvfYg6QAAAABJRU5ErkJggg==\"","module.exports = __webpack_public_path__ + \"img/uae.8ae6708c.svg\";","import store from '@/state/store'\r\nimport { LOGOUT } from \"@/state/actions.type\";\r\n\r\nexport default [\r\n {\r\n path: '/login',\r\n name: 'login',\r\n component: () => import('../views/pages/account/login'),\r\n meta: {\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n if (store.getters['auth/loggedIn']) {\r\n // Redirect to the home page instead\r\n next({ name: 'Dashboard' })\r\n } else {\r\n // Continue to the login page\r\n next()\r\n }\r\n },\r\n },\r\n },\r\n {\r\n path: '/register',\r\n name: 'register',\r\n component: () => import('../views/pages/account/register'),\r\n meta: {\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n if (store.getters['auth/loggedIn']) {\r\n // Redirect to the home page instead\r\n next({ name: 'Dashboard' })\r\n } else {\r\n // Continue to the login page\r\n next()\r\n }\r\n },\r\n },\r\n },\r\n {\r\n path: '/forgot-password',\r\n name: 'Forgot-password',\r\n component: () => import('../views/pages/account/forgot-password'),\r\n meta: {\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n if (store.getters['auth/loggedIn']) {\r\n // Redirect to the home page instead\r\n next({ name: 'Dashboard' })\r\n } else {\r\n // Continue to the login page\r\n next()\r\n }\r\n },\r\n },\r\n },\r\n {\r\n path: '/reset-password',\r\n name: 'Reset-password',\r\n component: () => import('../views/pages/account/reset-password'),\r\n meta: {\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n if (store.getters['auth/loggedIn']) {\r\n // Redirect to the home page instead\r\n next({ name: 'Dashboard' })\r\n } else {\r\n // Continue to the login page\r\n next()\r\n }\r\n },\r\n },\r\n },\r\n {\r\n path: '/logout',\r\n name: 'logout',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n const reconDates = localStorage.getItem('recon_dates')\r\n const reconDashbaordDates = localStorage.getItem('recon_dashboard_dates')\r\n store.dispatch(`auth/${LOGOUT}`)\r\n const authRequiredOnPreviousRoute = routeFrom.matched.some(\r\n (route) => route.push('/login')\r\n )\r\n // Navigate back to previous page, or home as a fallback\r\n next(authRequiredOnPreviousRoute ? { name: 'Dashboard' } : { ...routeFrom })\r\n if(reconDates) {\r\n localStorage.setItem('recon_dates', reconDates)\r\n localStorage.setItem('recon_dashboard_dates', reconDashbaordDates)\r\n }\r\n },\r\n },\r\n },\r\n\r\n {\r\n path: '/dashboard',\r\n name: 'Dashboard',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const user = store.getters['auth/getCurrentUser'];\r\n if (\r\n userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin')\r\n // || user.is_global_user\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/dashboard/index')\r\n },\r\n { path: '/', redirect: { name: 'Dashboard' } },\r\n // --------------------------------------------------\r\n // Transactions\r\n {\r\n path: '/transactions/payments',\r\n name: 'Transactions',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-user') ||\r\n userRolesList.includes('payment-refund-user') ||\r\n userRolesList.includes('payment-links-user') ||\r\n userRolesList.includes('payment-pages-user') ||\r\n userRolesList.includes('recon-user') ||\r\n userRolesList.includes('recon-admin') ||\r\n userRolesList.includes('invoice-user')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/transactions/payments')\r\n },\r\n {\r\n path: '/transactions/payments/payment-details',\r\n name: 'Transaction Details',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-user') ||\r\n userRolesList.includes('payment-refund-user') ||\r\n userRolesList.includes('payment-links-user') ||\r\n userRolesList.includes('payment-pages-user') ||\r\n userRolesList.includes('invoice-user')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/transactions/payment-details')\r\n },\r\n {\r\n path: '/transactions/payments/payment-details/refund',\r\n name: 'Transaction Refund',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-refund-user')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/transactions/refund')\r\n },\r\n {\r\n path: '/general-settings',\r\n name: 'General Settings',\r\n meta: {\r\n authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // if (!userRolesList.includes('admin') && !userRolesList.includes('sub-admin')) {\r\n // // Redirect to the home page instead\r\n // next({ name: 'User Profile' })\r\n // } else {\r\n // // Continue to the login page\r\n // next()\r\n // }\r\n // },\r\n },\r\n component: () => import('../views/pages/integration/settings')\r\n },\r\n\r\n // --------------------------------------------------\r\n // Integration - API Settings\r\n // {\r\n // path: '/integration/api-general',\r\n // name: 'General Settings',\r\n // meta: {\r\n // authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // if (!userRolesList.includes('admin') && !userRolesList.includes('sub-admin')) {\r\n // // Redirect to the home page instead\r\n // next({ name: 'User Profile' })\r\n // } else {\r\n // // Continue to the login page\r\n // next()\r\n // }\r\n // },\r\n // },\r\n // component: () => import('../views/pages/integration/api-general')\r\n // },\r\n\r\n // {\r\n // path: '/integration/api-keys',\r\n // name: 'API Keys',\r\n // meta: { authRequired: true },\r\n // component: () => import('../views/pages/integration/api-keys')\r\n // },\r\n\r\n {\r\n path: '/integration/api-webhooks',\r\n name: 'Webhooks',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payouts-admin')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n // component: () => import('../views/pages/forms/validation')\r\n component: () => import('../views/pages/integration/api-webhooks')\r\n },\r\n\r\n // {\r\n // path: '/integration/api-security',\r\n // name: 'Security Settings',\r\n // meta: { authRequired: true },\r\n // // component: () => import('../views/pages/ui/tabs-accordions')\r\n // component: () => import('../views/pages/integration/api-security')\r\n // },\r\n // --------------------------------------------------\r\n // Reconciliation \r\n {\r\n path: '/reconciliation/data',\r\n name: 'Upload Files',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin') || userRolesList.includes('recon-user') || userRolesList.includes('recon-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/reconciliation/recon')\r\n },\r\n {\r\n path: '/reconciliation/data/list',\r\n name: 'Reconciliation',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin') || userRolesList.includes('recon-user') || userRolesList.includes('recon-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/reconciliation/reconciliations')\r\n },\r\n {\r\n path: '/reconciliation/data/details',\r\n name: 'Reconciliation Details',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin') || userRolesList.includes('recon-user') || userRolesList.includes('recon-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/reconciliation/recon-details')\r\n },\r\n {\r\n path: '/reconciliation/dashboard',\r\n name: 'Reconciliation Dashboard',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin') || userRolesList.includes('recon-user') || userRolesList.includes('recon-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/reconciliation/dashboard')\r\n },\r\n {\r\n path: '/reconciliation/configuration',\r\n name: 'Configuration',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin') || userRolesList.includes('recon-configurator') || userRolesList.includes('recon-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/reconciliation/configuration')\r\n },\r\n {\r\n path: '/reconciliation/analytics',\r\n name: 'Analytics',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin') || userRolesList.includes('recon-configurator') || userRolesList.includes('recon-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant')) && store.state.auth.currentUser.is_onboarding_completed && store.state.auth.currentUser.recon_analytics_enabled\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/reconciliation/analytics')\r\n },\r\n // {\r\n // path: '/reconciliation/summary',\r\n // name: 'Reconciliation Summary',\r\n // meta: {\r\n // authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder'];\r\n // if (\r\n // (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n // ) {\r\n // // Continue to the current page\r\n // next()\r\n // } else {\r\n // // Redirect to the User profile page instead\r\n // next({ name: 'User Profile' })\r\n // }\r\n // },\r\n // },\r\n // component: () => import('../views/pages/reconciliation/recon_summary')\r\n // },\r\n // {\r\n // path: '/reconciliation/file-management',\r\n // name: 'File Management',\r\n // meta: {\r\n // authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder'];\r\n // if (\r\n // (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n // ) {\r\n // // Continue to the current page\r\n // next()\r\n // } else {\r\n // // Redirect to the User profile page instead\r\n // next({ name: 'User Profile' })\r\n // }\r\n // },\r\n // },\r\n // component: () => import('../views/pages/reconciliation/file-management')\r\n // },\r\n // {\r\n // path: '/reconciliation/psp-summary',\r\n // name: 'Reconciliation Summary For PSP',\r\n // meta: {\r\n // authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder'];\r\n // if (\r\n // (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n // ) {\r\n // // Continue to the current page\r\n // next()\r\n // } else {\r\n // // Redirect to the User profile page instead\r\n // next({ name: 'User Profile' })\r\n // }\r\n // },\r\n // },\r\n // component: () => import('../views/pages/reconciliation/recon_summary_for_psp')\r\n // },\r\n // {\r\n // path: '/reconciliation/psp-month-view',\r\n // name: 'Reconciliation PSP Summary',\r\n // meta: {\r\n // authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n // if (\r\n // (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n // ) {\r\n // // Continue to the current page\r\n // next()\r\n // } else {\r\n // // Redirect to the User profile page instead\r\n // next({ name: 'User Profile' })\r\n // }\r\n // },\r\n // },\r\n // component: () => import('../views/pages/reconciliation/recon_psp_summary')\r\n // },\r\n\r\n // {\r\n // path: '/reconciliation/fee-management',\r\n // name: 'Fee Management',\r\n // meta: {\r\n // authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n // if (\r\n // (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n // ) {\r\n // // Continue to the current page\r\n // next()\r\n // } else {\r\n // // Redirect to the User profile page instead\r\n // next({ name: 'User Profile' })\r\n // }\r\n // },\r\n // },\r\n // component: () => import('../views/pages/reconciliation/fee-management')\r\n // },\r\n // {\r\n // path: '/reconciliation/transaction',\r\n // name: 'Order Ingestion',\r\n // meta: {\r\n // authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n // if (\r\n // (userRolesList.includes('admin') || userRolesList.includes('sub-admin') || userRolesList.includes('recon-user') || userRolesList.includes('recon-admin')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n // ) {\r\n // // Continue to the current page\r\n // next()\r\n // } else {\r\n // // Redirect to the User profile page instead\r\n // next({ name: 'User Profile' })\r\n // }\r\n // },\r\n // },\r\n // component: () => import('../views/pages/reconciliation/recon_payments')\r\n // },\r\n\r\n // --------------------------------------------------\r\n // Master Merchant \r\n {\r\n path: '/master-merchant',\r\n name: 'Manage Merchant',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && merchantList.includes('master-merchant') && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/master-merchant/master-merchant-list')\r\n },\r\n {\r\n path: '/settings/payment-pages',\r\n name: 'Payment Pages',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-pages-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payment-pages/payment-page-table')\r\n },\r\n {\r\n path: '/settings/payment-pages-details',\r\n name: 'Payment Page Details',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-pages-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payment-pages/payment-page-details')\r\n },\r\n {\r\n path: '/settings/payment-pages/config',\r\n name: 'Payment Page',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-pages-user')) && !merchantList.includes('master-merchant') && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payment-pages/payment-page-config')\r\n },\r\n // --------------------------------------------------\r\n // Integration - Payment Settings\r\n // {\r\n // path: '/integration/pay-channels',\r\n // name: 'Payment Channels Old',\r\n // meta: {\r\n // authRequired: true,\r\n // beforeResolve(routeTo, routeFrom, next) {\r\n // // If the user is already logged in\r\n // const userRolesList = store.getters['auth/getUserRolesList'];\r\n // if (\r\n // userRolesList.includes('admin') ||\r\n // userRolesList.includes('sub-admin') ||\r\n // userRolesList.includes('payment-channel-configurator')\r\n // ) {\r\n // // Continue to the current page\r\n // next()\r\n // } else {\r\n // // Redirect to the User profile page instead\r\n // next({ name: 'User Profile' })\r\n // }\r\n // },\r\n // },\r\n // component: () => import('../views/pages/integration/pay-channels')\r\n // },\r\n {\r\n path: '/settings/pay-channel',\r\n name: 'Payment Channels',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder']\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('recon-admin') ||\r\n userRolesList.includes('recon-configurator') ||\r\n userRolesList.includes('payout-channel-configurator') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payment-channel-configurator')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/settings/payin-channel/payment-channel-mains')\r\n },\r\n {\r\n path: '/settings/pay-channel/update-config',\r\n name: 'Payment Channel Configuration',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder']\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('recon-admin') ||\r\n userRolesList.includes('recon-configurator') ||\r\n userRolesList.includes('payment-channel-configurator')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/settings/payin-channel/update-config')\r\n },\r\n {\r\n path: '/settings/pay-channel/update-config-onboarding',\r\n name: 'Payment Channel Onboarding',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder']\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('recon-admin') ||\r\n userRolesList.includes('recon-configurator') ||\r\n userRolesList.includes('payment-channel-configurator')) && !(crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/settings/payin-channel/update-config-onboarding')\r\n },\r\n {\r\n path: '/settings/payout-channel',\r\n name: 'Payout Channels',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payout-channel-configurator')) && store.state.auth.currentUser.is_onboarding_completed\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/settings/payout-channel/pay-channels')\r\n },\r\n {\r\n path: '/settings/payout-channel/update-config',\r\n name: 'Payout Channel Configuration',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payout-channel-configurator')) && store.state.auth.currentUser.is_onboarding_completed\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/settings/payout-channel/update-config')\r\n },\r\n {\r\n path: '/payment-links',\r\n name: 'Payment Links',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-pages-user') ||\r\n userRolesList.includes('payment-links-user') ||\r\n userRolesList.includes('invoice-user')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payment-links/payment-links')\r\n },\r\n {\r\n path: '/invoices',\r\n name: 'Invoices',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('invoice-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/invoice/invoices')\r\n },\r\n {\r\n path: '/invoices/invoice-form',\r\n name: 'Invoices Create',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('invoice-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/invoice/invoice-form')\r\n },\r\n {\r\n path: '/invoices/invoice-form-update',\r\n name: 'Invoices Update',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('invoice-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/invoice/invoice-form')\r\n },\r\n {\r\n path: '/invoices/invoices-details',\r\n name: 'Invoices Details',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('invoice-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/invoice/invoices_details')\r\n },\r\n {\r\n path: '/invoices/create-invoice-template',\r\n name: 'Create Invoice Template',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('invoice-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/invoice/invoice-template-form')\r\n },\r\n {\r\n path: '/payment-links/create-payment-links',\r\n name: 'Payment Link',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-pages-user') ||\r\n userRolesList.includes('payment-links-user') ||\r\n userRolesList.includes('invoice-user')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payment-links/payment-link-form')\r\n },\r\n {\r\n path: '/payment-links-details',\r\n name: 'Payment Link Details',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin') ||\r\n userRolesList.includes('payment-pages-user') ||\r\n userRolesList.includes('payment-links-user') ||\r\n userRolesList.includes('invoice-user')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payment-links/payment-link-details')\r\n },\r\n {\r\n path: '/payouts/virtual-account',\r\n name: 'Virtual Account',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/virtual-account')\r\n },\r\n {\r\n path: '/payouts/virtual-account/transactions',\r\n name: 'Payout Transactions',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/transactions')\r\n },\r\n {\r\n path: '/payouts/vendor-accounts',\r\n name: 'Vendor Accounts',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/vendor-accounts')\r\n },\r\n {\r\n path: '/payouts/vendors',\r\n name: 'Vendors',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/vendors')\r\n },\r\n {\r\n path: '/payouts/vendors/create-beneficiary',\r\n name: 'Create Beneficiary',\r\n meta: {\r\n title: \"Create Beneficiary\",\r\n description: \"Manage all your payouts here\",\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user'))\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/beneficiary-form')\r\n },\r\n\r\n {\r\n path: '/payouts/vendors/update-beneficiary',\r\n name: 'Update Beneficiary',\r\n meta: {\r\n title: \"Update Beneficiary\",\r\n description: \"Manage all your payouts here\",\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user'))\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/beneficiary-form')\r\n },\r\n\r\n // REMITTANCES\r\n {\r\n path: '/remittances/dashboard',\r\n name: 'Remittance Home',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && crossBorderList.includes('cross-border-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/remittances/dashboard/index')\r\n },\r\n {\r\n path: '/remittances/settlements',\r\n name: 'Remittance Settlements',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && crossBorderList.includes('cross-border-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/remittances/settlements')\r\n },\r\n {\r\n path: '/remittances/payment-methods',\r\n name: 'Remittance Methods',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && (crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/remittances/payment_methods')\r\n },\r\n {\r\n path: '/remittances/summary',\r\n name: 'Remittance Summary',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && crossBorderList.includes('cross-border-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/remittances/remittance_summary')\r\n },\r\n {\r\n path: '/remittances/reserve-ledger',\r\n name: 'Reserve Ledger',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && crossBorderList.includes('cross-border-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/remittances/reserve_ledger')\r\n },\r\n {\r\n path: '/settings/checkout-preview',\r\n name: 'Checkout Preview',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder']\r\n const merchantList = store.getters['auth/getMerchantList'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && (crossBorderList.includes('cross-border-merchant') && !merchantList.includes('master-merchant'))\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/settings/payin-channel/pay-channels')\r\n },\r\n // --------------------------------------------------\r\n {\r\n path: '/remittances/bank-account',\r\n name: 'BankAccount',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n const crossBorderList = store.getters['auth/getCrossBorder'];\r\n if (\r\n (userRolesList.includes('admin') || userRolesList.includes('sub-admin')) && crossBorderList.includes('cross-border-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/remittances/bank-account')\r\n },\r\n\r\n\r\n {\r\n path: '/profile',\r\n name: 'User Profile',\r\n meta: { authRequired: true },\r\n component: () => import('../views/pages/account/profile')\r\n },\r\n {\r\n path: '/accounts',\r\n name: 'Accounts',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (!userRolesList.includes('admin') && !userRolesList.includes('sub-admin')) {\r\n // Redirect to the home page instead\r\n next({ name: 'General Settings' })\r\n } else {\r\n // Continue to the login page\r\n next()\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/account/accounts')\r\n },\r\n {\r\n path: '/payouts/manage-payouts',\r\n name: 'Payouts',\r\n meta: {\r\n title: \"Payouts\",\r\n description: \"Manage all your payouts here\",\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user')) && store.state.auth.currentUser.is_onboarding_completed\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/payouts')\r\n },\r\n {\r\n path: '/payouts/manage-payouts/create-payout',\r\n name: 'Create Payouts',\r\n meta: {\r\n title: \"Create Payouts\",\r\n description: \"Manage all your payouts here\",\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user'))\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/payout-form')\r\n },\r\n {\r\n path: '/payouts/manage-payouts/update-payout',\r\n name: 'Update Payout',\r\n meta: {\r\n title: \"Update Payout\",\r\n description: \"Manage all your payouts here\",\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n // const merchantList = store.getters['auth/getMerchantList'];\r\n // const crossBorderList = store.getters['auth/getCrossBorder']\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payouts-admin') ||\r\n userRolesList.includes('payouts-user') ||\r\n userRolesList.includes('payouts-verify-user') ||\r\n userRolesList.includes('payouts-approve-user'))\r\n // && merchantList.includes('single-merchant') && crossBorderList.includes('single-merchant')\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/payouts/payout-form')\r\n }, \r\n {\r\n path: '/payouts/payout-settings',\r\n name: 'Payout Settings',\r\n meta: { \r\n authRequired: true,\r\n title: \"Payout Settings\" \r\n },\r\n component: () => import('../views/pages/payouts/payout-settings')\r\n },\r\n {\r\n path: '/subscription-price',\r\n name: 'Subscription Plan',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/subscription/price')\r\n },\r\n {\r\n path: '/subscriptions/create-subscription-price',\r\n name: 'Create Subscription Plan',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/subscription/price-form')\r\n },\r\n {\r\n path: '/subscriptions',\r\n name: 'Subscription',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/subscription/subscription_main')\r\n },\r\n {\r\n path: '/subscriptions/create-subscriptions',\r\n name: 'Create Subscription',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/subscription/subscription-form')\r\n },\r\n {\r\n path: '/subscriptions/details',\r\n name: 'Subscription Details',\r\n meta: {\r\n authRequired: true,\r\n beforeResolve(routeTo, routeFrom, next) {\r\n // If the user is already logged in\r\n const userRolesList = store.getters['auth/getUserRolesList'];\r\n if (\r\n (userRolesList.includes('admin') ||\r\n userRolesList.includes('sub-admin') ||\r\n userRolesList.includes('payment-admin')) && store.state.auth.currentUser.is_onboarding_completed\r\n ) {\r\n // Continue to the current page\r\n next()\r\n } else {\r\n // Redirect to the User profile page instead\r\n next({ name: 'General Settings' })\r\n }\r\n },\r\n },\r\n component: () => import('../views/pages/subscription/subscription-details')\r\n },\r\n\r\n\t// --------------------------------------------------\r\n // Email Verification\r\n {\r\n path: '/pages/verify-email',\r\n name: 'Verify Email',\r\n meta: { authRequired: true },\r\n component: () => import('../views/pages/support/verify-email')\r\n },\r\n\r\n // Add redirect routes to\r\n {\r\n path: '/pageNotFound',\r\n name: 'pageNotFound',\r\n meta: { authRequired: false },\r\n component: () => import('../views/pages/page-not-found')\r\n },\r\n {\r\n path: '*',\r\n redirect: '/'\r\n },\r\n]\r\n","import Vue from 'vue';\nimport VueRouter from 'vue-router';\nimport VueMeta from 'vue-meta';\n\nimport store from '@/state/store';\nimport routes from './routes';\nimport { FETCH_SUB_USER_DETAILS_BY_ID } from '../state/actions.type';\n\nVue.use(VueRouter)\nVue.use(VueMeta, {\n // The component option name that vue-meta looks for meta info on.\n keyName: 'page',\n})\n\nconst router = new VueRouter({\n routes,\n // Use the HTML5 history API (i.e. normal-looking routes)\n // instead of routes with hashes (e.g. example.com/#/about).\n // This may require some server configuration in production:\n // https://router.vuejs.org/en/essentials/history-mode.html#example-server-configurations\n mode: 'history',\n // Simulate native-like scroll behavior when navigating to a new\n // route and using back/forward buttons.\n scrollBehavior(to, from, savedPosition) {\n if (savedPosition) {\n return savedPosition\n } else {\n return { x: 0, y: 0 }\n }\n },\n})\n\n// Before each route evaluates...\nrouter.beforeEach((routeTo, routeFrom, next) => {\n // if (process.env.VUE_APP_DEFAULT_AUTH === \"firebase\") {\n // Check if auth is required on this route\n // (including nested routes).\n const authRequired = routeTo.matched.some((route) => route.meta.authRequired)\n\n // If auth isn't required for the route, just continue.\n if (!authRequired) return next()\n\n\n if(routeTo.path === '/logout') {\n next()\n }\n\n // If auth is required and the user is logged in...\n // if (store.getters['auth/loggedIn']) {\n // // Validate the local user token...\n // return store.dispatch('auth/validate').then((validUser) => {\n // // Then continue if the token still represents a valid user,\n // // otherwise redirect to login.\n // validUser ? next() : redirectToLogin()\n // })\n // }\n // console.log({routeTo, routeFrom})\n\n if (store.getters['auth/loggedIn']) {\n // Validate the local user token...\n return store.dispatch(`accounts/${FETCH_SUB_USER_DETAILS_BY_ID}`).then((mchDetails) => {\n // Then continue if the token still represents a valid user,\n // otherwise redirect to login.\n const env = mchDetails.is_live_mode ? \"live\" : \"sandbox\";\n store.dispatch(`auth/setEnvironment`, env)\n // store.dispatch(`accounts/${FETCH_SUB_USER_DETAILS_BY_ID}`)\n if(mchDetails && mchDetails.is_email_verified) {\n next()\n } else {\n if(routeTo.path === '/pages/verify-email' || routeTo.path === '/logout') {\n next()\n } else {\n // next('/pages/verify-email')\n router.push('/pages/verify-email').catch(() => {})\n }\n }\n }).catch((error) => {\n console.log('error on feting sub user data', error)\n // session expired, logout from everything\n if(routeFrom.path === '/logout' || routeTo.path === '/logout') {\n next()\n } else {\n router.push('/logout').catch(() => {})\n }\n })\n }\n\n // If auth is required and the user is NOT currently logged in,\n // redirect to login.\n redirectToLogin()\n\n // eslint-disable-next-line no-unused-vars\n // eslint-disable-next-line no-inner-declarations\n function redirectToLogin() {\n // Pass the original route to the login component\n next({ name: 'login', query: { redirectFrom: routeTo.fullPath } })\n }\n // } else {\n // const publicPages = ['/login', '/register', '/forgot-password'];\n // const authpage = !publicPages.includes(routeTo.path);\n // const loggeduser = localStorage.getItem('auth.currentUser');\n\n // if (authpage && !loggeduser) {\n // return next('/login');\n // }\n\n // next();\n // }\n})\n\nrouter.beforeResolve(async (routeTo, routeFrom, next) => {\n // Create a `beforeResolve` hook, which fires whenever\n // `beforeRouteEnter` and `beforeRouteUpdate` would. This\n // allows us to ensure data is fetched even when params change,\n // but the resolved route does not. We put it in `meta` to\n // indicate that it's a hook we created, rather than part of\n // Vue Router (yet?).\n try {\n // For each matched route...\n for (const route of routeTo.matched) {\n await new Promise((resolve, reject) => {\n // If a `beforeResolve` hook is defined, call it with\n // the same arguments as the `beforeEnter` hook.\n if (route.meta && route.meta.beforeResolve) {\n route.meta.beforeResolve(routeTo, routeFrom, (...args) => {\n // If the user chose to redirect...\n if (args.length) {\n // If redirecting to the same route we're coming from...\n // Complete the redirect.\n next(...args)\n reject(new Error('Redirected'))\n } else {\n resolve()\n }\n })\n } else {\n // Otherwise, continue resolving the route.\n resolve()\n }\n })\n }\n // If a `beforeResolve` hook chose to redirect, just return.\n } catch (error) {\n return\n }\n\n // If we reach this point, continue resolving the route.\n next()\n})\n\nexport default router\n","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const PaymentLinksService = {\n fetchPaymentLinks,\n addPaymentLink,\n deletePaymentLink,\n fetchPaymentLinkDetails,\n fetchPaymentLinkTransactions,\n checkRefPaymentLink,\n notificationPaymentLink,\n exportPaymentLinkTransactions,\n generateQRCode,\n getSourceList\n};\n\nfunction fetchPaymentLinks(merchantUUID, iamportKey, pageIndex, pagesize, filters, isMasterMerchant, merchant_uuids, environment) {\n const toDate = !filters.to || filters.to === \"\" ? new Date() : filters.to;\n const fromDate = !filters.from || filters.from === \"\" ? new Date('2006-01-02 15:04:05') : filters.from;\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.key;\n });\n }else{\n uuidsToSend = [];\n }\n // if(filters[\"merchant_order_ref\"]){\n // delete filters[\"source\"];\n // }else{\n // filters = {};\n // }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment, page: pageIndex, to: toDate,from: fromDate, pagesize, filters, merchant_keys:uuidsToSend }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/merchants/payment-links`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n }else{\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment, page: pageIndex,to: toDate, from: fromDate, pagesize, filters }),\n credentials: 'include',\n };\n // Verify if URLSearchParams has polyfill support\n // const queryString = new URLSearchParams({ page: pageIndex, from: '2006-01-02 15:04:05', pagesize })\n return fetch(`${CHAIPAY_API_URL}/merchant/${merchantUUID}/paymentLinks`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n }\n}\n\nfunction addPaymentLink(merchantUUID, entityDetails) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(entityDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentLink`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction deletePaymentLink(merchantUUID, linkRef) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/paymentLink/${linkRef}/status/cancelled`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction notificationPaymentLink(merchantUUID, linkRef) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentLink/${linkRef}/send-notification`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getSourceList(merchantUUID, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/list-of-sources?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n // if(response.status === 401) {\n // window.location = window.location.origin + '/logout';\n // }\n return response.text().then(text => {\n throw new Error(text);\n });\n }\n });\n}\n\nfunction checkRefPaymentLink(merchantUUID, refLink) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentLink/${refLink}/valid`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchPaymentLinkDetails(merchantUUID, iamportKey, pageRef) {\n const requestOptions = {\n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/paymentLink/${pageRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchPaymentLinkTransactions(merchantUUID, iamportKey, environment, pageRef) {\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify({ uuid: merchantUUID, environment }),\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/paymentLink/${pageRef}/txns-records`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction generateQRCode(iamportKey, pageRef) {\n const requestOptions = { \n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include'\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/paymentLink/${pageRef}/generate-qr-code`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportPaymentLinkTransactions(iamportKey, pageData, isMasterMerchant) {\n if(isMasterMerchant){\n if(pageData.merchant_uuids.length > 0){\n pageData.merchant_keys = pageData.merchant_uuids.map(function (item) {\n return item.key;\n });\n }\n }\n delete pageData.merchant_uuids;\n\n const requestOptions = { \n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(pageData),\n };\n\n const URI = isMasterMerchant ? `master-merchant/${iamportKey}/merchants/export-payment-links` : `merchant/${iamportKey}/export-paymentLinks`;\n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"payment-links_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import * as cloneDeep from 'lodash.clonedeep';\nimport { PaymentLinksService } from '../../helpers/backend/paymentlinks.service';\n// import moment from 'moment';\nimport {\n POST_PAYMENT_LINKS,\n FETCH_PAYMENT_LINKS,\n DELETE_PAYMENT_LINKS,\n FETCH_PAYMENT_LINK_DETAILS,\n FETCH_PAYMENT_LINK_TRANSACTIONS,\n CHECK_REF_LINK_PAYMENT_LINKS,\n NOTIFICATION_PAYMENT_LINKS,\n EXPORT_PAYMENT_LINK_LIST,\n GENERATE_QR_CODE,\n FETCH_SOURCE_LIST\n} from '../actions.type';\n\nimport {\n ADD_PAYMENTLINKS_IN_STORE,\n SET_PAYMENT_LINKS_IN_STORE,\n UPDATE_PAYMENT_LINKS_DETAILS_IN_STORE,\n UPDATE_PAYMENT_LINKS_FETCHING_STATE,\n ADD_PAYMENT_LINK_DETAIL_IN_STATE,\n UPDATE_PAYMENT_LINK_TRANSACTIONS_IN_STATE,\n ADD_SOURCE_LIST_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n isFetchingData: false,\n content: [],\n pageDetails:{},\n pageTransactions: [],\n total_elements: 0,\n total_pages: 0,\n size: 0,\n page: 0,\n number_of_elements: 0,\n sourceList:[]\n}\n\nexport const mutations = {\n [SET_PAYMENT_LINKS_IN_STORE](state, entityDetails) {\n state.entityDetails = { ...state.entityDetails, ...entityDetails };\n },\n [ADD_PAYMENTLINKS_IN_STORE](state, newTransactionData) {\n state.isFetchingData = newTransactionData.isFetchingData;\n state.content = newTransactionData.content;\n state.total_elements = newTransactionData.total_elements;\n state.total_pages = newTransactionData.total_pages;\n state.size = newTransactionData.size;\n state.page = newTransactionData.page;\n state.number_of_elements = newTransactionData.number_of_elements;\n },\n [ADD_PAYMENT_LINK_DETAIL_IN_STATE](state, pageDetails) {\n state.pageDetails = pageDetails;\n },\n [UPDATE_PAYMENT_LINK_TRANSACTIONS_IN_STATE](state, transactions) {\n state.pageTransactions = transactions;\n },\n [UPDATE_PAYMENT_LINKS_DETAILS_IN_STORE](state, { entityKey, entityDetails }) {\n state.paymentLinks[entityKey] = entityDetails\n state.paymentLinks = cloneDeep(state.paymentLinks)\n },\n [UPDATE_PAYMENT_LINKS_FETCHING_STATE](state, isFetching) {\n state.isFetchingData = isFetching;\n },\n [ADD_SOURCE_LIST_IN_STORE](state, newSourceListData) {\n\t\tstate.sourceList = newSourceListData;\n\t},\n}\n\nexport const getters = {\n getPaymentLinksEntityDetails(state) {\n return state.entityDetails;\n }\n}\n\nexport const actions = {\n\n [POST_PAYMENT_LINKS](context, newEntityDetails) {\n return new Promise((resolve, reject) => {\n const environment = context.rootState.auth.environment;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n newEntityDetails['environment'] = environment;\n PaymentLinksService.addPaymentLink(merchantUUID, newEntityDetails).then((response) => {\n const entityDetails = response\n context.commit(SET_PAYMENT_LINKS_IN_STORE, entityDetails)\n context.commit('notification/success', \"Payment Link Created successfully\", { root: true })\n resolve(entityDetails);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n [FETCH_SOURCE_LIST]({ commit, rootState }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\t\tconst environment = rootState.auth.environment;\n\t\t\tPaymentLinksService.getSourceList(merchantUUID, environment).then((response) => {\n\t\t\t\tcommit(ADD_SOURCE_LIST_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n [DELETE_PAYMENT_LINKS](context, linkRef) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n PaymentLinksService.deletePaymentLink(merchantUUID, linkRef).then((response) => {\n console.log(\"response\");\n console.log(response);\n context.commit('notification/success', \"Payment Link Deleted successfully\", { root: true })\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [NOTIFICATION_PAYMENT_LINKS](context, linkRef) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n PaymentLinksService.notificationPaymentLink(merchantUUID, linkRef).then((response) => {\n console.log(\"response\");\n console.log(response);\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [CHECK_REF_LINK_PAYMENT_LINKS](context, refLink) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n PaymentLinksService.checkRefPaymentLink(merchantUUID, refLink).then((response) => {\n console.log(\"response\");\n console.log(response);\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.error, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_PAYMENT_LINK_DETAILS]({ commit, rootState }, { pageRef, submerchantKey }) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.is_master_merchant ? submerchantKey : rootState.auth.currentUser.iamportKey;\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n PaymentLinksService.fetchPaymentLinkDetails(merchantUUID, iamportKey, pageRef).then((response) => {\n commit(ADD_PAYMENT_LINK_DETAIL_IN_STATE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_PAYMENT_LINK_TRANSACTIONS]({ commit, rootState }, { pageRef }) {\n commit(UPDATE_PAYMENT_LINKS_FETCHING_STATE, true);\n return new Promise((resolve, reject) => {\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const environment = rootState.auth.environment;\n PaymentLinksService.fetchPaymentLinkTransactions(merchantUUID, iamportKey, environment, pageRef).then((response) => {\n commit(UPDATE_PAYMENT_LINKS_FETCHING_STATE, false)\n commit(UPDATE_PAYMENT_LINK_TRANSACTIONS_IN_STATE, response)\n resolve(response);\n }).catch((error) => {\n commit(UPDATE_PAYMENT_LINKS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [GENERATE_QR_CODE]({ commit, rootState }, { pageRef }) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n PaymentLinksService.generateQRCode(iamportKey, pageRef).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n\n [FETCH_PAYMENT_LINKS]({ commit, rootState }, { pageIndex, pagesize, filters, isMasterMerchant, merchant_uuids }) {\n commit(UPDATE_PAYMENT_LINKS_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const merchantUUID = rootState.auth.currentUser.merchantUuid;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const environment = rootState.auth.environment;\n PaymentLinksService.fetchPaymentLinks(merchantUUID, iamportKey, pageIndex, pagesize, filters,isMasterMerchant, merchant_uuids, environment).then((response) => {\n if(response.content === null) {\n\t\t\t\t\tresponse.content = [];\n\t\t\t\t}\n const paylinks_content = response.content.map((paylinks) => {\n return {\n amount: (paylinks.amount).toLocaleString('en-US', { style: 'currency', currency: paylinks.currency }),\n buyerAddress1: paylinks.buyerAddress1 || \"\",\n description: paylinks.description || \"\",\n buyerAddress2: paylinks.buyerAddress2 || \"\",\n buyerCity: paylinks.buyerCity || \"\",\n created_at: paylinks.created_at,\n buyerCountry: paylinks.buyerCountry || \"\",\n buyerEmail: paylinks.customer_email_address || \"\",\n buyerName: paylinks.customer_name,\n buyerPhone: paylinks.customer_phone_number || \"\",\n merchantEmail: paylinks.merchant_email_address || \"\",\n cancel_url: paylinks.cancel_url || \"\",\n chaipaykey: paylinks.chaipaykey || \"\",\n countryCode: paylinks.countryCode || \"\",\n currency: paylinks.currency || \"\",\n expiry_hours: paylinks.expiry_hours || \"\",\n ip_address: paylinks.ip_address || \"\",\n link_ref: paylinks.link_ref || \"\",\n link: paylinks.link || \"\",\n merchant_back_url: paylinks.merchant_back_url || \"\",\n merchant_logo: paylinks.merchant_logo || \"\",\n merchant_name: paylinks.merchant_name || \"\",\n merchant_order_ref: paylinks.merchant_order_ref || \"\",\n merchant_promo_code: paylinks.merchant_promo_code || \"\",\n merchant_promo_discount: paylinks.merchant_promo_discount || \"\",\n merchant_shipping_charges: paylinks.merchant_shipping_charges || \"\",\n status: paylinks.status || \"\",\n source: paylinks.source || \"\",\n success_url: paylinks.success_url || \"\",\n user_configured_field1: paylinks.user_configured_field1 || \"\",\n user_configured_field2: paylinks.user_configured_field2 || \"\",\n user_configured_field3: paylinks.user_configured_field3 || \"\",\n user_configured_field4: paylinks.user_configured_field4 || \"\",\n user_configured_field5: paylinks.user_configured_field5 || \"\",\n };\n });\n\n const paymentLinksData = {\n content: paylinks_content,\n total_elements: response.total_elements,\n total_pages: response.total_pages,\n size: response.size,\n page: response.page,\n number_of_elements: response.number_of_elements,\n }\n commit(ADD_PAYMENTLINKS_IN_STORE, paymentLinksData)\n commit(UPDATE_PAYMENT_LINKS_FETCHING_STATE, false)\n resolve(paymentLinksData);\n }).catch((error) => {\n commit(UPDATE_PAYMENT_LINKS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [EXPORT_PAYMENT_LINK_LIST]({commit, rootState}, pageData) {\n return new Promise((resolve, reject) => {\n\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const isMasterMerchant = rootState.auth.currentUser.is_master_merchant;\n pageData.environment = rootState.auth.environment;\n\n if(!pageData.filters.from) {\n pageData.filters.from = \"1991-01-01 15:04:05\";\n }\n\n if(!pageData.from) {\n pageData.from = \"1991-01-01 15:04:05\";\n }\n\n PaymentLinksService.exportPaymentLinkTransactions(iamportKey, pageData, isMasterMerchant).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.status_message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n}\n\nexport const namespaced = true;\n","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport Headers from '../headers';\n\nexport const BeneficiaryService = {\n fetchBeneficiaryTable,\n fetchBeneficiaryTableMasterMerchant,\n createBeneficiary,\n updateBeneficiary,\n updateBeneficiaryAccount,\n fetchBanksList,\n getBeneficiaryDetailsList\n};\n\nfunction fetchBeneficiaryTable(key, payload) {\n payload.pageIndex = payload.pageIndex || 1;\n payload.pagesize = payload.pagesize || 100;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n // const queryParams = new URLSearchParams(payload);\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/payout/beneficiaries`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchBeneficiaryTableMasterMerchant(key, payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${key}/merchants/payouts/beneficiaries`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n\nfunction fetchBanksList(iamportKey, channelKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({channelKey, environment, merchantKey: iamportKey });\n return fetch(`${CHAIPAY_API_URL}/merchants/payout/supported-banks?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n\nfunction createBeneficiary(key, newBeneficiary) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(newBeneficiary),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/payout/createBeneficiary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateBeneficiary(key, payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/payout/editBeneficiary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateBeneficiaryAccount(merchantUUID, {uuid, key, addAccount}) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(addAccount),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/payout/vendors/${uuid}/bank-accounts`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getBeneficiaryDetailsList(iamportKey, environment, ref) {\n const URI = `merchants/${iamportKey}/payout/beneficiaries/${ref}`;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({\"environment\":environment }),\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n }","import { BeneficiaryService } from '../../helpers/backend/beneficiary.service';\nimport * as cloneDeep from \"lodash.clonedeep\";\n\nimport {\n FETCH_BENEFICIARY_TABLE,\n CREATE_BENEFICIARY,\n UPDATE_BENEFICIARY,\n UPDATE_BENEFICIARY_ACCOUNT,\n FETCH_BANKS_LIST,\n FETCH_BENEFICIARY_TABLE_MASTER_MERCHANT,\n FETCH_BENEFICIARY_DETAILS\n\n} from '../actions.type';\nimport {\n UPDATE_BENEFICIARY_DATA_IN_STORE,\n CREATE_BENEFICIARY_DATA_IN_STORE,\n UPDATE_BENEFICIARY_ACCOUNT_IN_STORE,\n TOGGLE_VENDORS_LOADER_IN_STORE,\n ADD_BANKS_LIST_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n content: [],\n isFetchingData: false,\n total_elements: 0,\n total_pages: 0,\n size: 0,\n page: 0,\n banks_list: {},\n number_of_elements: 0,\n}\n\nexport const mutations = {\n [TOGGLE_VENDORS_LOADER_IN_STORE](state, isFetching) {\n state.isFetchingData = isFetching;\n },\n [ADD_BANKS_LIST_IN_STORE](state, banksdata) {\n state.banks_list = banksdata\n },\n [UPDATE_BENEFICIARY_DATA_IN_STORE](state, beneficiaryData) {\n state.content = cloneDeep(beneficiaryData.content);\n state.content = beneficiaryData.content;\n state.total_elements = beneficiaryData.total_elements;\n state.total_pages = beneficiaryData.total_pages;\n state.size = beneficiaryData.size;\n state.page = beneficiaryData.page;\n state.number_of_elements = beneficiaryData.number_of_elements;\n },\n [CREATE_BENEFICIARY_DATA_IN_STORE](state, beneficiaryData) {\n state.isFetchingData = beneficiaryData.isFetchingData;\n state.content = beneficiaryData.content;\n state.beneficiaryData = beneficiaryData.content;\n state.total_elements = beneficiaryData.total_elements;\n state.total_pages = beneficiaryData.total_pages;\n state.size = beneficiaryData.size;\n state.page = beneficiaryData.page;\n state.number_of_elements = beneficiaryData.number_of_elements;\n },\n [UPDATE_BENEFICIARY_ACCOUNT_IN_STORE](state, beneficiaryData) {\n state.isFetchingData = beneficiaryData.isFetchingData;\n state.content = beneficiaryData.content;\n state.beneficiaryData = beneficiaryData.content;\n state.total_elements = beneficiaryData.total_elements;\n state.total_pages = beneficiaryData.total_pages;\n state.size = beneficiaryData.size;\n state.page = beneficiaryData.page;\n state.number_of_elements = beneficiaryData.number_of_elements;\n },\n}\n\nexport const getters = {\n getBeneficiaryList(state) {\n return state.beneficiaryData;\n }\n}\nexport const actions = {\n\n [FETCH_BENEFICIARY_TABLE](context, payload) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, true);\n payload.environment = context.rootState.auth.environment;\n BeneficiaryService.fetchBeneficiaryTable(key, payload).then((response) => {\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, false);\n\n context.commit(UPDATE_BENEFICIARY_DATA_IN_STORE, response.content);\n resolve(response);\n }).catch((error) => {\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, false);\n\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_BENEFICIARY_TABLE_MASTER_MERCHANT](context, payload) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, true);\n payload.environment = context.rootState.auth.environment;\n\n BeneficiaryService.fetchBeneficiaryTableMasterMerchant(key, payload).then((response) => {\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, false);\n\n context.commit(UPDATE_BENEFICIARY_DATA_IN_STORE, response.content);\n resolve(response);\n }).catch((error) => {\n context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, false);\n\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_BANKS_LIST](context, channel_key = \"ALL\") {\n return new Promise((resolve, reject) => {\n //const key = context.rootState.auth.currentUser.iamportKey;\n //context.commit(TOGGLE_VENDORS_LOADER_IN_STORE, true);\n const environment = context.rootState.auth.environment;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n BeneficiaryService.fetchBanksList(iamportKey, channel_key, environment).then((response) => {\n context.commit(ADD_BANKS_LIST_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n\n [CREATE_BENEFICIARY](context, newBeneficiary) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n newBeneficiary['environment'] = environment;\n BeneficiaryService.createBeneficiary(key, newBeneficiary).then((response) => {\n const beneficiaryData = response\n context.commit(CREATE_BENEFICIARY_DATA_IN_STORE, beneficiaryData)\n resolve(response);\n context.commit('notification/success', \"Beneficiary Created Successfully\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [UPDATE_BENEFICIARY](context, payload) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n payload['environment'] = context.rootState.auth.environment;\n BeneficiaryService.updateBeneficiary(key, payload).then((response) => {\n resolve(response);\n context.commit('notification/success', \"Beneficiary Updated Successfully\", { root: true })\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [UPDATE_BENEFICIARY_ACCOUNT](context, { uuid, addAccount }) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n addAccount['environment'] = environment;\n BeneficiaryService.updateBeneficiaryAccount(merchantUUID, { uuid, key, addAccount }).then((response) => {\n context.commit('notification/success', \"Beneficiary Account Updated successfully\", { root: true })\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [FETCH_BENEFICIARY_DETAILS]({ rootState}, { ref }) {\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst environment = rootState.auth.environment;\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tBeneficiaryService.getBeneficiaryDetailsList(iamportKey, environment, ref).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t})\n\t\t\t.catch(reject);\n\t\t});\n\t},\n}\n\n\nexport const namespaced = true;","export const LOGIN = \"logInToChai\";\nexport const LOGOUT = \"logOut\";\nexport const REGISTER = \"register\";\nexport const SET_USER_LANGUAGE = \"setUserLanguage\";\nexport const SEND_RESET_PASSWORD_LINK = \"sendResetPasswordLink\";\nexport const SEND_EMAIL_VERIFICATION_LINK = \"sendEmailVerificationLink\";\nexport const RESET_PASSWORD = \"resetPassword\";\nexport const VALIDATE = \"validate\";\nexport const FETCH_WEBHOOKS = \"fetchWebhooksData\";\nexport const ADD_WEBHOOK = \"addWebhookData\";\nexport const UPDATE_WEBHOOK = \"updateWebhookData\";\nexport const UPDATE_WEBHOOK_BY_FORM = \"updateWebhookByFormData\"\nexport const DELETE_WEBHOOK = \"deleteWebhookData\";\nexport const UPDATE_SECRET_KEY_BY_FORM = \"updateSecretKeyByFormData\";\nexport const SET_SANDBOX_MODE_ALERT = \"setSandboxModeAlert\";\nexport const SET_UPDATE_ALERT = 'setUpdateAlert';\n\nexport const UPDATE_MERCHANT_ENTITY_DETAILS = \"updateMerchantEntityDetails\";\nexport const UPDATE_MERCHANT_LOGO = \"updateMerchantLogo\";\nexport const FETCH_MERCHANT_ENTITY_DETAILS = \"fetchMerchantEntityDetails\";\nexport const FETCH_TRANSACTIONS = \"fetchTransactionsData\";\nexport const FETCH_CHANNEL_LIST = \"fetchChannelListData\";\nexport const EXPORT_TRANSACTIONS_INTO_EXCEL = \"exportTransactionsIntoExcel\";\nexport const FETCH_PAYMENT_CHANNEL_CREDENTIALS = \"fetchPaymentChannelCredentials\";\nexport const FETCH_PAYOUT_CHANNEL_CREDENTIALS = \"fetchPayoutChannelCredentials\";\nexport const UPDATE_PAYMENT_CHANNEL_CREDENTIALS = \"updatePaymentChannelCredentials\";\nexport const TOGGLE_PAYOUTS_LOADER = 'toggelPayoutsLoader';\nexport const UPDATE_PAYOUT_CHANNEL_CREDENTIALS = \"updatePayoutChannelCredentials\";\nexport const UPDATE_PAYOUT_STATUS = \"updatePayoutStatus\";\nexport const FETCH_COLUMN_LIST = \"fetchColumnList\";\nexport const UPDATE_COLUMN_LIST = \"updateColumnList\";\nexport const RESET_COLUMN_LIST = \"resetColumnList\";\n\nexport const FETCH_TRANSACTION_STATUS = \"fetchTransactionStatus\";\nexport const FETCH_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS_METRICS = \"fetchTransactionDataForDoughnutChartsMetrics\";\nexport const FETCH_TRANSACTION_STATS = \"fetchTransactionStats\";\nexport const FETCH_LATEST_TXNS = \"fetchLatestTxns\";\nexport const FETCH_TRANSACTION_STATISTICS = \"fetchTransactionStatistics\";\nexport const FETCH_TRANSACTION_VOLUME = \"fetchTransactionVolume\";\nexport const FETCH_TRANSACTION_VOLUME_SEASONALITY = \"fetchTransactionSeasonality\";\nexport const FETCH_TRANSACTION_VOLUME_STACKED_BAR = \"fetchTransactionStackedBar\";\nexport const FETCH_TRANSACTION_VOLUME_BY_STATUS = \"fetchTransactionVolByStatus\";\nexport const FETCH_TRANSACTION_VOLUME_BY_CHANNEL = \"fetchTransactionVolByPmtChannel\";\nexport const FETCH_TRANSACTION_VOLUME_BY_METHOD = \"fetchTransactionVolByPmtMethod\";\nexport const FETCH_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS = \"fetchTransactionDataForDoughnutCharts\";\nexport const SET_SELECTED_TRANSACTION_ID = \"setSelectedTransactionID\";\nexport const FETCH_WEBHOOK_DATA_FOR_TRANSACTION = \"fetchWebhookDataForTransaction\";\nexport const FETCH_FAILOVER_DATA_FOR_TRANSACTION = \"fetchFailoverDataForTransaction\";\nexport const RESEND_WEBHOOK_DATA_FOR_TRANSACTION = \"resendWebhookDataForTransaction\";\nexport const CREATE_REFUND_FOR_TRANSACTION = \"createRefundForTransaction\";\nexport const FETCH_REFUND_DATA_FOR_TRANSACTION = \"fetchRefundDetailsForTransaction\";\nexport const FETCH_BANKS_LIST = \"fetchBanksList\";\nexport const FETCH_TRANSACTION_DETAILS = \"fetchTransactionDetails\";\nexport const UPDATE_TRXN_STATUS = \"updateTransactionStatus\";\nexport const UPDATE_REFUND_STATUS = \"updateRefundStatus\";\nexport const TRANSACTION_FILE_UPLOAD = \"transactionFileUpload\";\n\n\nexport const FETCH_PAYMENT_LINKS = \"fetchPaymentLinks\";\nexport const POST_PAYMENT_LINKS = \"addPaymentLinks\";\nexport const DELETE_PAYMENT_LINKS = \"deletePaymentLinks\";\nexport const NOTIFICATION_PAYMENT_LINKS = \"notificationPaymentLinks\";\nexport const FETCH_PAYMENT_LINK_DETAILS = \"fetchPaymentLinkDetails\";\nexport const FETCH_PAYMENT_LINK_TRANSACTIONS = \"fetchPaymentLinkTransactions\";\nexport const CHECK_REF_LINK_PAYMENT_LINKS = \"checkRefLinkPaymentLinks\";\nexport const EXPORT_PAYMENT_LINK_LIST = \"exportPaymentLinkList\";\nexport const FETCH_SOURCE_LIST = \"fetchSourceList\";\n\n\n//Payouts\nexport const FETCH_VIRTUAL_ACCOUNTS = \"fetchVirtualAccounts\";\nexport const FETCH_VIRTUAL_ACCOUNTS_MASTER_MERCHANT = \"fetchVirtualAccountsMasterMerchant\";\nexport const CREATE_VIRTUAL_ACCOUNT = \"createVirtualAccount\";\nexport const FETCH_PAYOUT_LIST = \"fetchPayoutLists\";\nexport const FETCH_PAYOUT_LIST_MASTER_MERCHANT = \"fetchPayoutListMasterMerchant\";\nexport const FETCH_ACCOUNT_STATEMENT = \"fetchAccountStatement\";\nexport const CREATE_PAYOUTS = \"createPayouts\";\nexport const UPDATE_PAYOUTS = \"updatePayouts\";\nexport const APPROVE_PAYOUTS = \"approvePayouts\";\nexport const APPROVE_PAYOUTS_VIA_EMAIL = \"approvePayoutsViaEmail\";\nexport const VERIFY_PAYOUTS_VIA_EMAIL = \"verifyPayoutsViaEmail\";\nexport const FETCH_BENEFICIARY_TABLE = \"fetchBeneficiaryTable\";\nexport const FETCH_BENEFICIARY_TABLE_MASTER_MERCHANT = \"fetchBeneficiaryTableMasterMerchant\";\nexport const CREATE_BENEFICIARY = \"createBeneficiary\";\nexport const UPDATE_BENEFICIARY = \"updateBeneficiary\";\nexport const UPDATE_BENEFICIARY_ACCOUNT = \"updateBeneficiaryAccount\";\nexport const GENERATE_OTP_PAYOUT = \"generateOtpPayout\";\nexport const GENERATE_OTP_PAYOUT_VIA_EMAIL = \"generateOtpPayoutViaEmail\";\nexport const GENERATE_OTP_PAYOUT_VIA_EMAIL_FOR_VERIFY = \"generateOtpPayoutViaEmailForVerify\";\nexport const RESEND_OTP_PAYOUT_VIA_EMAIL = \"resendOtpPayoutViaEmail\";\nexport const RESEND_OTP_PAYOUT_VIA_EMAIL_FOR_VERIFY = \"resendOtpPayoutViaEmailForVerify\";\nexport const DOWNLOAD_VA_EXCEL_STATEMENT = \"downloadExcelStatement\";\nexport const PAYOUT_FILE_UPLOAD = \"payoutFileUpload\";\nexport const EXPORT_PAYOUTS_INTO_EXCEL = \"exportPayoutsIntoExcel\";\nexport const FETCH_PAYOUT_DETAILS = \"fetchPayoutDetails\";\nexport const FETCH_BENEFICIARY_DETAILS = \"fetchBeneficiaryDetails\";\n\n// User management\nexport const CREATE_SUB_USER = \"createSubUser\"\nexport const UPDATE_SUB_USER_DETAILS = \"updateSubUserDetails\"\nexport const FETCH_DETAILS_FOR_ALL_SUB_USERS = \"fetchDetailsForAllSubUsers\"\nexport const FETCH_SUB_USER_DETAILS_BY_ID = \"fetchSubUserDetailsById\"\nexport const VERIFY_SUB_USER_PERMISSIONS = \"verifySubUserPermissions\"\n\n// 2FA\nexport const SETUP_OR_GENERATE_2FA_OTP = \"setupOrGenerate2FA\"\nexport const VERIFY_2FA_FOR_CURRENT_USER = \"verify2FAForCurrentUser\"\n\n// payment channels\nexport const FETCH_ALL_PAYMENT_CHANNEL = \"fetchAllPaymentChannel\";\nexport const FETCH_SELECTED_PAYMENT_CHANNEL_CREDENTIALS = \"fetchSelectedPaymentChannelCredentials\";\nexport const FETCH_PAYMENT_METHODS_CREDENTIALS = \"fetchPaymentMethodsCredentials\";\nexport const FETCH_PAYMENT_METHODS_CREDENTIALS_COUNT = \"fetchPaymentMethodsCredentialsCount\";\nexport const UPDATE_PAYMENT_METHOD_CREDENTIALS = \"updatePaymentMethodCredentials\";\nexport const ADD_PAYMENT_METHOD_CREDENTIALS = \"addPaymentMethodCredentials\";\nexport const UPDATE_ENABLE_AND_DEFAULT_STATUS = \"updateEnableAndDefaultStatus\";\nexport const FETCH_ALL_PAYMENT_PAYOUT_CHANNEL = \"fetchAllPaymentPayoutChannel\";\nexport const FETCH_ALL_PAYMENT_CHANNEL_FOR_PREVIEW = \"fetchAllPaymentChannelForPreview\";\nexport const FETCH_PAYMENT_ONBOARDING = \"fetchPaymentOnboarding\";\nexport const ONBOARDING_STATUS_CHECK = \"onboardingStatusCheck\";\nexport const FETCH_ONBOARDING_FORM_DATA = \"fetchonboardingformdata\";\nexport const ADD_ONBOARDING_FORM_DATA = \"addonboardingformdata\";\nexport const UPDATE_INSTALMENT_TYPE_DATA = \"updateInstallmentTypeData\";\nexport const ADD_PAYMENT_METHOD_IMPORT_CREDENTIALS = \"addPaymentMethodImportCredentials\";\nexport const FETCH_PREVIEW_IAMPORT_CREDENTIALS = \"fetchPreviewIamportCredentials\"\n\n// Recon\nexport const UPDATE_FILE_UPLOAD = \"updateFileUpload\";\nexport const CREATE_RECON = \"createRecon\";\nexport const FETCH_RECONCILIATION_RESULTS = \"fetchReconciliationResults\";\nexport const FETCH_INGESTION_SUMMARY = \"fetchIngestionSummary\";\nexport const FETCH_RECONCILIATIONS = \"fetchReconciliations\";\nexport const FETCH_RECONCILIATION_SUMMARY_RESULTS = \"fetchReconciliationSummaryResults\";\nexport const FETCH_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS = \"fetchReconciliationSummaryForPspResults\";\nexport const FETCH_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY = \"fetchPspResultsForReconciliationSummary\";\nexport const RECON_DEATILS = \"reconDetails\";\nexport const RECON_TRANSACTIONS = \"reconTransactions\";\nexport const RECON_SETTLEMENTS = \"reconSettlements\";\nexport const FETCH_CHANNEL_LIST_FOR_RECON = \"fetchChannelListForRecon\";\nexport const CLEAR_RECON_DEATILS = \"clearReconDetails\";\nexport const EXPORT_MISMATCH_TRANSACTIONS_INTO_CSV = \"exportMismatchTransactionsIntoCSV\";\nexport const EXPORT_RECON_SUMMERY_INTO_CSV = \"exportReconSummeryIntoCSV\";\nexport const FETCH_USER_DATA_BY_PROPERTY_TYPE = \"fetchUserDataByPropertyType\";\nexport const FETCH_USER_DATA_BY_PROPERTY_TYPE_LIST = \"fetchUserDataByPropertyTypeList\";\nexport const FETCH_RECON_TRANSACTIONS = \"fetchReconTransactionsData\";\nexport const RECON_TRANSACTION_FILE_UPLOAD = \"reconTransactionFileUpload\";\nexport const FETCH_RECONCILIATION_TRANSACTIONS = \"fetchReconciationTransactions\";\nexport const FETCH_UNRECONCILED_SETTLEMENT = \"fetchUnReconciledSettlements\";\nexport const DOWNLOAD_RECONCILIATION_TRANSACTIONS = \"downloadReconciationTransactions\";\nexport const DOWNLOAD_UNRECONCILED_SETTLEMENT = \"downloadUnReconciledSettlements\";\nexport const FILE_UPLOAD = \"fileUpload\";\nexport const FETCH_RECON_METABASE_RESULT = \"fetchReconMetabaseResult\";\n\n\n// Recon Analytics\nexport const FETCH_RECON_SUMMARY = \"fetchReconSummary\";\nexport const FETCH_RECON_SUMMARY_TABLE_RECORDS = \"fetchReconSummaryTableRecords\";\nexport const DOWNLOAD_RECON_SUMMARY_TABLE_RECORDS = \"downloadReconSummaryTableRecords\";\nexport const SEND_RECON_SUMERY_DATA_ON_EMAIL = \"sendReconSumeryDataOnEmail\";\nexport const EXPORT_RECON_SUMMARY = \"exportReconSummary\";\n\n// Master Merchant\nexport const FETCH_MERCHANTS_LIST = \"fetchMerchantList\";\nexport const FETCH_MERCHANTS_PAGINATED_LIST = \"fetchMerchantPaginatedList\";\nexport const ACTIVE_INACTIVE_MERCHANT = \"activeInactiveMerchant\";\nexport const INVITE_MERCHANT_FOR_MANAGED = \"inviteMerchantForManaged\";\nexport const INVITE_MERCHANT_FOR_OWNED = \"inviteMerchantForOwned\";\nexport const FETCH_INVITED_MERCHANTS_LIST = \"fetchInvitedMerchantList\";\nexport const INVITE_MERCHANT = \"inviteMerchant\";\n\n//Payment Pages\nexport const FETCH_PAYMENT_PAGE_LIST = \"fetchPaymentPageList\";\nexport const FETCH_PAYMENT_PAGE_DETAILS = \"fetchPaymentPageDetails\";\nexport const FETCH_PAYMENT_PAGE_TRANSACTIONS = \"fetchPaymentPageTransactions\";\nexport const EXPORT_PAYMENT_PAGE_TRANSACTIONS = \"exportPaymentPageTransactions\";\nexport const CANCEL_PAYMENT_PAGE =\"cancelPaymentPage\";\nexport const EXPORT_PAYMENT_PAGE_LIST =\"exportPaymentPageList\";\nexport const CHECK_PAYMENT_PAGE_CUTOM_URL_AVAILABLITY = \"checkPaymentPageCustomUrlAvailablity\";\n\n//Fee Management\nexport const FETCH_CHANNEL_LIST_FOR_FEE_MANAGEMENT = \"fetchChannelListForFeeManagement\";\nexport const FETCH_FEE_CONFIG_META = \"fetchFeeConfiMeta\";\nexport const FETCH_FEE_CONFIG_RECORDS = \"fetchFeeConfiRecords\";\nexport const FETCH_PAYMENT_METHODS_OF_PAYMENT_CHANNEL = \"fetchPaymentMethodsOfPaymentChannel\";\nexport const MERCHANT_RESEND_KYC = \"merchantResendKyc\";\nexport const MERCHANT_RESEND_INVITE = \"merchantResendInvite\";\nexport const DELETE_MERCHANT = \"deleteMerchant\";\nexport const FETCH_TOLERANCE_LEVEL = \"fetchToleranceLevel\";\n\n//remittances dashboard\nexport const FETCH_REMITTANCES_TRANSACTION_STATS = \"fetchRemittancesTransactionStats\";\nexport const FETCH_REMITTANCES_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS = \"fetchRemittancesTransactionDataForDoughnutCharts\";\nexport const FETCH_REMITTANCES_TRANSACTION_VOLUME_STACKED_BAR = \"fetchRemittancesTransactionStackedBar\";\nexport const FETCH_SETTLEMENTS_SUMMARY_RESULTS = \"fetchSettlementsSummaryResults\";\nexport const FETCH_SETTLEMENTS_SUMMARY_EXPAND_BY = \"fetchSettlementsSummaryExpandBy\";\nexport const FETCH_CROSS_BORDER_PAYMENT_METHODS = \"fetchCrossBorderPaymentMethods\";\nexport const CROSS_BORDER_UPDATE_ENABLE_AND_DEFAULT_STATUS = \"crossBorderUpdateEnableAndDefaultStatus\";\nexport const FETCH_REMITTANCE_SUMMARY = \"fetchRemittanceSummary\";\nexport const EXPORT_REMITTANCE_SUMMARY_INTO_EXCEL = \"exportRemittanceSummaryIntoExcel\";\nexport const FETCH_LEDGER = \"fetchLedger\";\nexport const DOWNLOAD_VA_EXCEL_LEDGER = \"downloadExcelLedger\";\n// remittance bank account\nexport const FETCH_REMITTANCES_BANK_ACCOUNT = \"fetchRemittancesBankAccount\";\nexport const POST_REMITTANCES_BANK_ACCOUNT = \"postRemittancesBankAccount\";\nexport const UPDATE_REMITTANCES_BANK_ACCOUNT = \"updateRemittancesBankAccount\";\nexport const FETCH_BANK_LIST = \"fetchBankList\";\n\n//subscription price\nexport const POST_SUBSCRIPTION_PRICE = \"addSubscriptionPrice\";\nexport const FETCH_SUBSCRIPTION_PRICE_LIST = \"fetchSubscriptionPriceList\";\nexport const DELETE_PRICE = \"deletePrice\";\n\n// subscription\nexport const POST_SUBSCRIPTION = \"addSubscription\";\nexport const FETCH_SUBSCRIPTION_LIST = \"fetchSubscriptionList\";\nexport const DELETE_SUBSCRIPTION = \"deleteSubscription\";\nexport const FETCH_ALL_PRICE = \"fetchAllPrice\";\nexport const FETCH_SUBSCRIPTION_DETAILS = \"fetchSubscriptionDetails\";\nexport const FETCH_SUBSCRIPTION_TRANSACTIONS = \"fetchSubscriptionTransactions\";\nexport const POST_COLLECT_PAYMENT = \"postCollectPayment\";\n\n//smart roiting\nexport const FETCH_TRANSACTION_ROUTES = \"fetchTransactionRoutes\";\nexport const POST_ROUTING_DETAILS = \"postRoutingDetails\";\nexport const UPDATE_ROUTING_DETAILS = \"updateRoutingDetails\";\nexport const DELETE_ROUTING_DETAILS = \"deleteRoutingDetails\";\nexport const FETCH_ALL_PAYMENT_CHANNEL_LIST = \"fetchAllPaymentChannelList\";\nexport const CHANGE_DEFAULT_ROUTING_DETAILS = \"changeDefaultRoutingDetails\";\n//File Management\nexport const FETCH_FILE_MANAGEMENT_DATA = \"fetchFileManagementData\";\nexport const POST_FILE_MANAGEMENT_DATA = \"postFileManagementData\";\n\nexport const GENERATE_QR_CODE = \"generateQRCode\";\n\n// Notifications\nexport const FETCH_NOTIFICATIONS = \"fetchNotifications\";\nexport const MARK_NOTIFICATION_READ = \"markNotificationRead\";\nexport const READ_ALL_NOTIFICATIONS = \"readAllNotifications\";\n\n// Invoices\nexport const FETCH_INVOICES = \"fetchInvoices\";\nexport const EXPORT_INVOICES = \"exportInvoices\";\nexport const FETCH_INVOICES_TEMPLATES = \"fetchInvoicesTemplates\";\nexport const FETCH_INVOICES_DETAILS = \"fetchInvoicesDetails\";\nexport const FETCH_INVOICES_TEMPLATE_DETAILS = \"fetchInvoiceTemplateDetails\";\nexport const INVOICES_REMINDER = \"invoicesReminder\";\nexport const INVOICE_VOID = \"invoicesVoid\";\nexport const INVOICE_UNVOID = \"invoicesUnvoid\";\nexport const MARK_SCHEDULE_SENT = \"markScheduleSent\";\nexport const CREATE_INVOICES = \"createInvoices\";\nexport const CREATE_INVOICES_TEMPLATE = \"createInvoicesTemplate\";\nexport const UPDATE_INVOICES_TEMPLATE = \"updateInvoicesTemplate\";\nexport const UPDATE_INVOICES = \"updateInvoices\";\nexport const INVOICE_TIMELINE = \"invoicesTimeline\";\nexport const DELETE_INVOICE_TEMPLATE = \"deleteInvoicesTemplate\";\nexport const BULK_INVOICE_IMPORT = \"bulkInvoiceImport\";\n","import Headers from '../headers';\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const FeeManagementService = {\n fetchChannelListForFeeManagement,\n fetchFeeConfigMeta,\n fetchFeeConfigRecords,\n updateFeeConfigMeta,\n updateFeeConfigRecord,\n updateFoodTechFeeConfigRecord,\n fetchPaymentMethodsOfPaymentChannel,\n createFeeConfigRecord,\n createFeeConfigRecordFoodTech,\n deleteFeeConfigRecord,\n updateToleranceLevel,\n fetchToleranceLevel\n};\n\nfunction fetchChannelListForFeeManagement(merchantUUId, iamportKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: { ...Headers.apiHeaders(),'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/channels?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchFeeConfigMeta(merchantUUId, iamportKey, pcKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/paychannel/${pcKey}/fee-config-metadata?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchFeeConfigRecords(iamportKey, params) {\n const requestOptions = {\n method: 'GET',\n headers: {...Headers.apiHeaders(),'X-Chaipay-Client-Key': iamportKey},\n credentials: 'include',\n };\n console.log(params);\n \n const queryParams = new URLSearchParams(params);\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/charge-config/all?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateFeeConfigMeta(merchantUUId, iamportKey, pcKey, environment, data) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(data),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/paychannel/${pcKey}/fee-config-metadata?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchToleranceLevel(iamportKey, pcKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: {...Headers.apiHeaders(),'X-Chaipay-Client-Key': iamportKey},\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({payment_channel_key: pcKey, environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/tolerance/get?${queryParams}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateToleranceLevel(iamportKey, data) {\n const requestOptions = {\n method: 'POST',\n headers: {...Headers.apiHeaders(),'X-Chaipay-Client-Key': iamportKey},\n body: JSON.stringify(data),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/tolerance/update`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateFeeConfigRecord(iamportKey, data) {\n const requestOptions = {\n method: 'POST',\n headers: {...Headers.apiHeaders(),'X-Chaipay-Client-Key': iamportKey},\n body: JSON.stringify(data),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/charge-config/update`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateFoodTechFeeConfigRecord(iamportKey, pcKey, environment, data) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(data),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/paychannel/${pcKey}/update-foodtech-fee-config-record?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchPaymentMethodsOfPaymentChannel(merchantUUId, iamportKey, pcKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/paychannel/${pcKey}/currency-mapping?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction createFeeConfigRecord(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'x-chaipay-client-key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/charge-config/create`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction createFeeConfigRecordFoodTech(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'x-chaipay-client-key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/charge-config/create`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction deleteFeeConfigRecord(merchantUUId, iamportKey, pcKey, environment, data) {\n const requestOptions = {\n method: 'DELETE',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(data),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/paychannel/${pcKey}/delete-fee-config-record?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { FeeManagementService } from '../../helpers/backend/fee_management.service';\nimport {\n FETCH_CHANNEL_LIST_FOR_FEE_MANAGEMENT,\n FETCH_FEE_CONFIG_META,\n FETCH_FEE_CONFIG_RECORDS,\n FETCH_PAYMENT_METHODS_OF_PAYMENT_CHANNEL,\n FETCH_TOLERANCE_LEVEL\n} from '../actions.type';\nimport {\n CREATE_FEE_CONFIG_RECORD_IN_STORE,\n DELETE_FEE_CONFIG_RECORD_IN_STORE,\n FEE_MANAGEMENT_ADD_CHANNEL_LIST_IN_STORE, \n FEE_MANAGEMENT_ADD_FEE_CONFIG_META_IN_STORE,\n FEE_MANAGEMENT_ADD_FEE_CONFIG_RECORDS_IN_STORE,\n UPDATE_FEE_CONFIG_PSP_EMAIL_DETAILS_IN_STORE,\n UPDATE_FEE_CONFIG_RECORD_IN_STORE,\n UPDATE_FEE_CONFIG_SFTP_DETAILS_IN_STORE,\n UPDATE_FEE_CONFIG_TOLERANCE_LEVEL_IN_STORE,\n UPDATE_PAYMENT_METHODS_IN_STORE,\n FEE_MANAGEMENT_ADD_TOLERANCE_LEVEL_IN_STORE,\n RESET_FEE_CONFIG_STATE,\n CREATE_FOOD_TECH_FEE_CONFIG_RECORD_IN_STORE,\n UPDATE_FOOD_TECH_FEE_CONFIG_RECORD_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n content: [],\n totalContent: 0,\n paymentChannelList:[],\n feeConfigMeta: {\n \"tolerance_level\": 0,\n \"merchant_email\": \"\",\n \"merchant_psp_email\": \"\",\n \"sftp_link\": \"\",\n \"sftp_username\": \"\",\n \"sftp_password\": \"\",\n \"is_psp_email_configured\": false,\n \"is_sftp_configured\": false\n },\n recon_email: \"\",\n recon_confirmation_code: \"\",\n recon_confirmation_link: \"\",\n paymentMethods: {},\n paymentMethodsList: []\n}\n\nexport const mutations = {\n [FEE_MANAGEMENT_ADD_CHANNEL_LIST_IN_STORE](state, newChannelListData) {\n\t\tstate.paymentChannelList = newChannelListData;\n\t},\n [FEE_MANAGEMENT_ADD_FEE_CONFIG_META_IN_STORE](state, feeConfigMeta) {\n\t\tstate.feeConfigMeta = {...state.feeConfigMeta, ...feeConfigMeta.fee_config_metadata};\n state.recon_email = feeConfigMeta.recon_email;\n state.recon_confirmation_code = feeConfigMeta.recon_confirmation_code;\n state.recon_confirmation_link = feeConfigMeta.recon_confirmation_link;\n\t},\n [FEE_MANAGEMENT_ADD_FEE_CONFIG_RECORDS_IN_STORE](state, feeConfigRecords) {\n\t\tstate.content = feeConfigRecords.charges;\n state.totalContent = feeConfigRecords.total;\n\t},\n [UPDATE_PAYMENT_METHODS_IN_STORE](state, paymentMethods) {\n if(paymentMethods.currency_data) {\n const arr = [];\n for(let key of Object.keys(paymentMethods.currency_data)) {\n arr.push({\n value: key,\n text: paymentMethods.currency_data[key]['display_name']\n })\n }\n state.paymentMethodsList = arr;\n }\n state.paymentMethods = paymentMethods\n },\n [FEE_MANAGEMENT_ADD_TOLERANCE_LEVEL_IN_STORE](state, tolerance_level) {\n state.feeConfigMeta.tolerance_level = tolerance_level\n\t},\n [RESET_FEE_CONFIG_STATE](state) {\n state.content = [];\n state.totalContent = 0;\n state.paymentChannelList =[]\n state.feeConfigMeta = {\n \"tolerance_level\": 0,\n \"merchant_email\": \"\",\n \"merchant_psp_email\": \"\",\n \"sftp_link\": \"\",\n \"sftp_username\": \"\",\n \"sftp_password\": \"\",\n \"is_psp_email_configured\": false,\n \"is_sftp_configured\": false\n }\n state.recon_email = \"\";\n state.recon_confirmation_code = \"\";\n state.recon_confirmation_link = \"\";\n state.paymentMethods = {}\n\t}\n}\n\nexport const getters = {\n// getPaymentLinksEntityDetails(state) {\n// return state.entityDetails;\n// }\n}\n\nexport const actions = {\n [FETCH_CHANNEL_LIST_FOR_FEE_MANAGEMENT]({ commit, rootState }) {\n\t\treturn new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n FeeManagementService.fetchChannelListForFeeManagement(merchantUUId, iamportKey, environment).then((response) => {\n commit(FEE_MANAGEMENT_ADD_CHANNEL_LIST_IN_STORE, response.content)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [FETCH_FEE_CONFIG_META]({ commit, rootState }, { pcKey }) {\n\t\treturn new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n commit(RESET_FEE_CONFIG_STATE)\n FeeManagementService.fetchFeeConfigMeta(merchantUUId, iamportKey, pcKey, environment).then((response) => {\n commit(FEE_MANAGEMENT_ADD_FEE_CONFIG_META_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [FETCH_TOLERANCE_LEVEL]({ commit, rootState }, pcKey) {\n\t\treturn new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n FeeManagementService.fetchToleranceLevel(iamportKey, pcKey, environment).then((response) => {\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [FETCH_FEE_CONFIG_RECORDS]({ commit, rootState }, queryParams) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n queryParams.environment = rootState.auth.environment\n FeeManagementService.fetchFeeConfigRecords(iamportKey, queryParams).then((response) => {\n \n commit(FEE_MANAGEMENT_ADD_FEE_CONFIG_RECORDS_IN_STORE, response.data)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [UPDATE_FEE_CONFIG_SFTP_DETAILS_IN_STORE]({ commit, rootState }, { configData, pcKey }) {\n return new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n const data = {\n \"update_action\": \"UPDATE_SFTP_DETAILS\",\n \"config_data\": configData,\n \"environment\": environment\n };\n\n FeeManagementService.updateFeeConfigMeta(merchantUUId, iamportKey, pcKey, environment, data).then((response) => {\n if(response.status_code == \"2000\") {\n commit(FEE_MANAGEMENT_ADD_FEE_CONFIG_META_IN_STORE, configData)\n }\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [UPDATE_FEE_CONFIG_PSP_EMAIL_DETAILS_IN_STORE]({ commit, rootState }, { configData, pcKey }) {\n return new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n const data = {\n \"update_action\": \"UPDATE_MERCHANT_PSP_EMAIL\",\n \"config_data\": configData,\n \"environment\": environment\n };\n\n FeeManagementService.updateFeeConfigMeta(merchantUUId, iamportKey, pcKey, environment, data).then((response) => {\n if(response.status_code == \"2000\") {\n commit(FEE_MANAGEMENT_ADD_FEE_CONFIG_META_IN_STORE, configData)\n }\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [UPDATE_FEE_CONFIG_TOLERANCE_LEVEL_IN_STORE]({ commit, rootState }, { toleranceLevel, pcKey }) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const data = {\n \"tolerance\": toleranceLevel,\n \"payment_channel_key\": pcKey,\n \"environment\": rootState.auth.environment\n };\n\n FeeManagementService.updateToleranceLevel(iamportKey, data).then((response) => {\n if(response.status_code == \"2000\") {\n commit(FEE_MANAGEMENT_ADD_TOLERANCE_LEVEL_IN_STORE, toleranceLevel)\n }\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [UPDATE_FEE_CONFIG_RECORD_IN_STORE]({ commit, rootState }, configData) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const data = {\n \"charge_config\": configData,\n \"environment\": rootState.auth.environment\n };\n\n FeeManagementService.updateFeeConfigRecord(iamportKey, data).then((response) => {\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [UPDATE_FOOD_TECH_FEE_CONFIG_RECORD_IN_STORE]({ commit, rootState }, {configData, paymentChannel}) {\n return new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const data = {\n \"config_data\": configData,\n \"environment\": environment\n };\n\n FeeManagementService.updateFoodTechFeeConfigRecord(iamportKey, paymentChannel, environment, data).then((response) => {\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [FETCH_PAYMENT_METHODS_OF_PAYMENT_CHANNEL]({ commit, rootState }, { pcKey }) {\n return new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n FeeManagementService.fetchPaymentMethodsOfPaymentChannel(merchantUUId, iamportKey, pcKey, environment).then((response) => {\n commit(UPDATE_PAYMENT_METHODS_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [CREATE_FEE_CONFIG_RECORD_IN_STORE]({ commit, rootState }, configData) {\n return new Promise((resolve, reject) => {\n\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const payload = {\n \"charge_config\": configData,\n \"environment\": rootState.auth.environment,\n // \"merchant_key\": \"KkKesAaEAgsQNheX\",\n // \"request_source\": \"portone-dev\",\n };\n\n // const data = {\n // \"config_data\": {\n // \"pm_key\": configData.paymentMethod,\n // \"currency\": configData.currency,\n // \"percent_fee\": parseFloat(configData.percentFee),\n // \"flat_fee\": parseFloat(configData.flatFee),\n // \"minimum_fee\": parseFloat(configData.minimumFee),\n // \"settlement_days\": configData.settlementCycleDays,\n // \"tax_percentage\": parseFloat(configData.tax),\n // \"is_apply_fee_enabled\": configData.status,\n // \"network_id\": configData.network_id,\n // \"rules\": configData.rules,\n // \"is_commercial\": configData.is_commercial\n // },\n // \"environment\": environment\n // };\n\n // if(configData.bank_name) {\n // data.config_data.bank_code = configData.bank_code.bank_code;\n // data.config_data.bank_name = configData.bank_name;\n // data.config_data.installment_term = configData.installment_term;\n // }\n\n FeeManagementService.createFeeConfigRecord(iamportKey, payload).then((response) => {\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [CREATE_FOOD_TECH_FEE_CONFIG_RECORD_IN_STORE]({ commit, rootState }, configData) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const payload = {\n \"charge_config\": configData,\n \"environment\": rootState.auth.environment,\n \"merchant_key\": \"KkKesAaEAgsQNheX\",\n \"request_source\": \"portone-dev\",\n };\n\n FeeManagementService.createFeeConfigRecordFoodTech(iamportKey, payload).then((response) => {\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n [DELETE_FEE_CONFIG_RECORD_IN_STORE]({ commit, rootState }, { data, pcKey }) {\n return new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n\n FeeManagementService.deleteFeeConfigRecord(merchantUUId, iamportKey, pcKey, environment, data).then((response) => {\n resolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n}\n\nexport const namespaced = true;\n","import moment from \"moment\";\nimport Headers from '../headers'\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const TransactionService = {\n getTransactionListForMerchant,\n resendWebhookDataByTransactionId,\n getChannelListForMerchant,\n fetchWebhookDataByTransactionId,\n fetchFailoverData,\n exportTransactionDataForMerchant,\n fetchTransactionDetails,\n updateTransactionStatus,\n uploadTransactionFile,\n getColumnListForMerchant,\n updateColumnListForMerchant,\n resetColumnListForMerchant\n};\n\nfunction getTransactionListForMerchant(merchantUUID, iamportKey, data) {\n const URI = data.isMasterMerchant ? `master-merchant/${iamportKey}/merchants/transactions` : `merchant/${merchantUUID}/payments`;\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(data.payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/${URI}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getColumnListForMerchant(subUserUuid, iamportKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/subUser/${subUserUuid}/custom-col-details?${queryParams}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateColumnListForMerchant(subUserUuid, iamportKey, payload) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n body: JSON.stringify(payload)\n };\n const queryParams = new URLSearchParams({environment: payload.environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/subUser/${subUserUuid}/custom-col-details?${queryParams}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction resetColumnListForMerchant(subUserUuid, iamportKey, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n credentials: 'include'\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/subUser/${subUserUuid}/reset-custom-col-config?${queryParams}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getChannelListForMerchant(merchantUUID, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/list-paychannels?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchWebhookDataByTransactionId(merchantUUID, iamportKey, orderRef) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/${iamportKey}/webhookdata/${orderRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchFailoverData(iamportKey, merchantOrderRef) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/txn-router/failover/${iamportKey}/get-txn-details/${merchantOrderRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction resendWebhookDataByTransactionId(merchantUUID, iamportKey, orderRef) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({order_ref: orderRef}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/send-webhook`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportTransactionDataForMerchant(merchantUUID, iamportKey, filters, sorting_data, isMasterMerchant, merchant_uuids, environment, from_Date, to_Date) {\n if(filters == undefined) filters = {};\n const toDate = !to_Date || to_Date === \"\" ? new Date() : to_Date;\n const fromDate = !from_Date || from_Date === \"\" ? new Date('2006-01-02') : from_Date;\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.key;\n });\n }else{\n uuidsToSend = [];\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment, to: toDate, from: fromDate, filters: filters != undefined ? filters: {}, sorting_data, merchant_keys:uuidsToSend}),\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/merchants/export-transactions`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"transactions-data_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n }else{\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment, to: moment(toDate).format('YYYY-MM-DD HH:mm:ss'), from: moment(fromDate).format('YYYY-MM-DD HH:mm:ss'), filters: filters != undefined ? filters: {}, sorting_data}),\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/merchant/${merchantUUID}/export-payments`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"transactions-data_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n }\n}\n\nfunction fetchTransactionDetails(merchantUUID, iamportKey, orderRef) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ order_ref: orderRef }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchant/${iamportKey}/transaction-details`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateTransactionStatus(merchantUUID, data) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(data),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/transaction/status`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction uploadTransactionFile(fileData,iamportKey) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(false), 'X-Chaipay-Client-Key': iamportKey },\n body: fileData,\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/third_party/transactions`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport Headers from '../headers';\n\nexport const RefundService = {\n createRefundForTransaction,\n fetchRefundDetailsForTransaction,\n updateRefundStatus\n};\n\nfunction createRefundForTransaction(transactionId, refundDetails) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(refundDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/refund/createRefund/${transactionId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchRefundDetailsForTransaction(transactionId) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/refund/getDataByTransaction/${transactionId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateRefundStatus(payload) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/refund/status`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n","import { TransactionService } from '../../helpers/backend/transaction.service';\nimport { RefundService } from '../../helpers/backend/refund.service';\n\nimport {\n FETCH_TRANSACTIONS,\n FETCH_CHANNEL_LIST,\n TRANSACTION_FILE_UPLOAD,\n FETCH_WEBHOOK_DATA_FOR_TRANSACTION,\n RESEND_WEBHOOK_DATA_FOR_TRANSACTION,\n SET_SELECTED_TRANSACTION_ID,\n CREATE_REFUND_FOR_TRANSACTION,\n FETCH_REFUND_DATA_FOR_TRANSACTION,\n EXPORT_TRANSACTIONS_INTO_EXCEL,\n FETCH_TRANSACTION_DETAILS,\n UPDATE_TRXN_STATUS,\n UPDATE_REFUND_STATUS,\n FETCH_FAILOVER_DATA_FOR_TRANSACTION,\n FETCH_COLUMN_LIST,\n UPDATE_COLUMN_LIST,\n RESET_COLUMN_LIST\n} from '../actions.type';\nimport {\n\tADD_TRANSACTIONS_IN_STORE,\n\tADD_CHANNEL_LIST_IN_STORE,\n\tUPDATE_TRXN_FETCHING_STATE,\n\tSET_SELECTED_TRANSACTION_ID_IN_STORE,\n\tSET_WEBHOOK_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE,\n\tADD_REFUND_DATA_FOR_SELECTED_TRANSACTION_IN_STORE,\n\tSET_TRANSACTION_DETAILS_IN_STORE,\n\tUPDATE_TRXN_STATUS_IN_STORE,\n\tSET_FAILOVER_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE\n} from '../mutations.type';\nimport { HmacSHA256 } from 'crypto-js';\nimport Base64 from 'crypto-js/enc-base64';\n\nexport const state = {\n\tisFetchingData: false,\n\tcontent: [],\n\ttotal_elements: 0,\n\ttotal_pages: 0,\n\tsize: 0,\n\tpage: 0,\n\tnumber_of_elements: 0,\n\tselectedTransactionID: undefined,\n\tpaymentChannelList:[],\n\twebhookDetailsForSelectedTransaction: {\n\t\tchannelEvents: [],\n\t\twebhookData: [],\n\t},\n\trefundData: null,\n\ttransactionData: {},\n\tfailoverTrasactions: null\n\n}\n\nexport const mutations = {\n\n\t[ADD_TRANSACTIONS_IN_STORE](state, newTransactionData) {\n\t\tstate.isFetchingData = newTransactionData.isFetchingData;\n\t\tstate.content = newTransactionData.content;\n\t\tstate.total_elements = newTransactionData.total_elements;\n\t\tstate.total_pages = newTransactionData.total_pages;\n\t\tstate.size = newTransactionData.size;\n\t\tstate.page = newTransactionData.page;\n\t\tstate.number_of_elements = newTransactionData.number_of_elements;\n\t},\n\t[ADD_CHANNEL_LIST_IN_STORE](state, newChannelListData) {\n\t\tstate.paymentChannelList = newChannelListData;\n\t},\n\t[UPDATE_TRXN_FETCHING_STATE](state, isFetching) {\n\t\tstate.isFetchingData = isFetching;\n\t},\n\t[SET_SELECTED_TRANSACTION_ID_IN_STORE](state, transactionID) {\n\t\tif(transactionID == undefined) {\n\t\t\tstate.webhookDetailsForSelectedTransaction = [];\n\t\t}\n\t\tstate.selectedTransactionID = transactionID;\n\t},\n\t[ADD_REFUND_DATA_FOR_SELECTED_TRANSACTION_IN_STORE](state, {transactionID, refundDetails}) {\n\t\tif(transactionID == undefined) {\n\t\t\tstate.refundData = null;\n\t\t}\n\t\tstate.refundData = refundDetails;\n\t},\n\t[SET_WEBHOOK_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE](state, webhookData) {\n\t\tstate.webhookDetailsForSelectedTransaction = webhookData ? webhookData : {channelEvents: [],webhookData: []};\n\t},\n\t[SET_FAILOVER_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE](state, failoverData) {\n\t\tstate.failoverTrasactions = failoverData;\n\t},\n\t[SET_TRANSACTION_DETAILS_IN_STORE](state, transactionData) {\n\t\tif(transactionData && transactionData.direct_bank_transfer_details && transactionData.direct_bank_transfer_details.payment_slip && !Array.isArray(transactionData.direct_bank_transfer_details.payment_slip)) {\n\t\t\ttransactionData.direct_bank_transfer_details.payment_slip = [transactionData.direct_bank_transfer_details.payment_slip];\n\t\t}\n\t\tstate.transactionData = transactionData;\n\t},\n\t[UPDATE_TRXN_STATUS_IN_STORE](state, status) {\n\t\tstate.transactionData.status = status;\n\t}\n}\n\nexport const getters = {\n\tgetTransactionsData(state) {\n\t\treturn state.transactionData;\n\t},\n\tgetTransactionsDataForSelectedTransactionID(state) {\n\t\tconst transactionID = state.selectedTransactionID;\n\t\tif(transactionID == undefined) {\n\t\t\treturn undefined;\n\t\t} else {\n return state.content.find((item) => item.order_ref === transactionID);\n }\n\t},\n\tgetRefundDataForSelectedTransactionID(state) {\n return state.selectedTransactionID && state.refundData ? state.refundData : undefined;\n\t}\n}\n\nexport const actions = {\n\n\t[FETCH_TRANSACTIONS]({ commit, rootState }, data) {\n\t\tcommit(UPDATE_TRXN_FETCHING_STATE, true)\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tdata.payload.environment = rootState.auth.environment;\n\t\t\tTransactionService.getTransactionListForMerchant(merchantUUID, iamportKey, data).then((response) => {\n\t\t\t\tif(response.content === null) {\n\t\t\t\t\tresponse.content = [];\n\t\t\t\t}\n\n\t\t\t\tcommit(ADD_TRANSACTIONS_IN_STORE, response)\n\t\t\t\tcommit(UPDATE_TRXN_FETCHING_STATE, false)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tcommit(UPDATE_TRXN_FETCHING_STATE, false)\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[TRANSACTION_FILE_UPLOAD](context, { fileData }) {\n\t\tconst iamportKey = context.rootState.auth.currentUser.iamportKey;\n\t\tconst environment = context.rootState.auth.environment;\n\t\tfileData['environment'] = environment;\n\t\tfileData.append('environment', environment);\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tTransactionService.uploadTransactionFile(fileData, iamportKey).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcontext.commit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[FETCH_COLUMN_LIST]({ rootState }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst subUserUuid = rootState.auth.currentUser.subUserUuid;\n\t\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tconst environment = rootState.auth.environment;\n\t\t\tTransactionService.getColumnListForMerchant(subUserUuid, iamportKey, environment).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[UPDATE_COLUMN_LIST]({ rootState }, payload) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst subUserUuid = rootState.auth.currentUser.subUserUuid;\n\t\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tpayload.environment = rootState.auth.environment;\n\t\t\tTransactionService.updateColumnListForMerchant(subUserUuid, iamportKey, payload).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[RESET_COLUMN_LIST]({ rootState }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst subUserUuid = rootState.auth.currentUser.subUserUuid;\n\t\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tconst environment = rootState.auth.environment;\n\t\t\tTransactionService.resetColumnListForMerchant(subUserUuid, iamportKey, environment).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[FETCH_CHANNEL_LIST]({ commit, rootState }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\t\tconst environment = rootState.auth.environment;\n\t\t\tTransactionService.getChannelListForMerchant(merchantUUID, environment).then((response) => {\n\t\t\t\tcommit(ADD_CHANNEL_LIST_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\n\t[FETCH_WEBHOOK_DATA_FOR_TRANSACTION]({ commit, rootState }, { order_ref, submerchant_key }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\t\tconst iamportKey = rootState.auth.currentUser.is_master_merchant ? submerchant_key : rootState.auth.currentUser.iamportKey;\n\t\t\tcommit(SET_WEBHOOK_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE, null)\n\t\t\tTransactionService.fetchWebhookDataByTransactionId(merchantUUID, iamportKey, order_ref).then((response) => {\n\t\t\t\tif(response === null) {\n\t\t\t\t\tresponse[\"webhookData\"] = [];\n\t\t\t\t\tresponse[\"channelEvents\"] = [];\n\t\t\t\t}\n\n\t\t\t\tcommit(SET_WEBHOOK_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE, response)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tcommit(SET_WEBHOOK_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE, null)\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[FETCH_FAILOVER_DATA_FOR_TRANSACTION]({ commit, rootState }, { merchant_order_ref, submerchant_key }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst iamportKey = rootState.auth.currentUser.is_master_merchant ? submerchant_key : rootState.auth.currentUser.iamportKey;\n\t\t\tTransactionService.fetchFailoverData(iamportKey, merchant_order_ref).then((response) => {\n\t\t\t\tcommit(SET_FAILOVER_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE, response.data)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tcommit(SET_FAILOVER_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE, null)\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[RESEND_WEBHOOK_DATA_FOR_TRANSACTION](context, order_ref ) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n TransactionService.resendWebhookDataByTransactionId(merchantUUID, iamportKey, order_ref).then((res) => {\n if(res.status_reason === \"SUCCESS\"){\n\t\t\t\t\tsetTimeout(() => { \n context.dispatch(`${FETCH_WEBHOOK_DATA_FOR_TRANSACTION}`, {\n\t\t\t\t\t\torder_ref: order_ref\n\t\t\t\t\t})}, 1000);\n }\n resolve(res);\n }).catch((error) => {\n // commit(SET_WEBHOOK_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE, null)\n console.log(\"error\", error)\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n\n\t[CREATE_REFUND_FOR_TRANSACTION]({ rootState, commit }, {order_ref, refundData}) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\trefundData.environment = rootState.auth.environment;\n\t\t\tRefundService.createRefundForTransaction(order_ref, refundData).then((response) => {\n\t\t\t\tcommit(ADD_REFUND_DATA_FOR_SELECTED_TRANSACTION_IN_STORE, {transactionId: order_ref, refundDetails: response})\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message);\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(errorObject);\n\t\t\t})\n\t\t})\n\t},\n\n\t[FETCH_REFUND_DATA_FOR_TRANSACTION]({ commit }, order_ref) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tRefundService.fetchRefundDetailsForTransaction(order_ref).then((response) => {\n\t\t\t\tcommit(ADD_REFUND_DATA_FOR_SELECTED_TRANSACTION_IN_STORE, {transactionId: order_ref, refundDetails: response})\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[SET_SELECTED_TRANSACTION_ID]({ commit }, transactionID ) {\n\t\tcommit(SET_SELECTED_TRANSACTION_ID_IN_STORE, transactionID)\n\t},\n\n\t[EXPORT_TRANSACTIONS_INTO_EXCEL]({ commit, rootState }, { filters, sorting_data, isMasterMerchant, merchant_uuids, fromDate, toDate }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\tconst iamportKey = rootState.auth.currentUser.iamportKey;\n\t\tconst environment = rootState.auth.environment;\n\t\tTransactionService.exportTransactionDataForMerchant(merchantUUID, iamportKey, filters, sorting_data, isMasterMerchant, merchant_uuids, environment, fromDate, toDate).then((response) => {\n\t\t\tresolve(response);\n\t\t}).catch((error) => {\n\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\treject(error);\n\t\t})\n\t\t})\n\t},\n\t[FETCH_TRANSACTION_DETAILS]({ commit, rootState }, { order_ref, submerchant_key }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t\t\tconst iamportKey = rootState.auth.currentUser.is_master_merchant ? submerchant_key : rootState.auth.currentUser.iamportKey;\n\t\t\tTransactionService.fetchTransactionDetails(merchantUUID, iamportKey, order_ref).then((response) => {\n\t\t\t\tcommit(SET_TRANSACTION_DETAILS_IN_STORE, response.content);\n\t\t\t\tif(!response.routing_enabled) {\n\t\t\t\t\tcommit(SET_FAILOVER_DETAILS_FOR_SELECTED_TRANSACTION_ID_IN_STORE, null)\n\t\t\t\t}\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\t[UPDATE_TRXN_STATUS]({commit, rootState}, { status, merchantOrderRef }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst paymentStatus = status ? \"Success\" : \"Failed\";\n\t\t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\n\t\t\tconst { iamportKey, iamportSecret } = rootState.auth.currentUser;\n\n\t\t\tconst mainParams = \"client_key=\"+encodeURIComponent(iamportKey)+\"&merchant_order_ref=\"+encodeURIComponent(merchantOrderRef)+\"&status=\"+encodeURIComponent(paymentStatus);\n\n\t\t\tconst hash = HmacSHA256(mainParams, iamportSecret);\n\t\t\tconst signatureHash = Base64.stringify(hash);\n\n\t\t\tconst data = {\n\t\t\t\t\"status\": paymentStatus,\n\t\t\t\t\"merchant_order_ref\": merchantOrderRef,\n\t\t\t\t\"signature\": signatureHash\n\t\t\t}\n\n\t\t\tTransactionService.updateTransactionStatus(merchantUUID, data).then((response) => {\n\t\t\t\tcommit(UPDATE_TRXN_STATUS_IN_STORE, paymentStatus);\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\t[UPDATE_REFUND_STATUS]({commit, rootState}, { status, refundId }) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tconst paymentStatus = status ? \"SUCCESS\" : \"FAIL\";\n\n\t\t\tconst { iamportKey, iamportSecret } = rootState.auth.currentUser;\n\n\t\t\tconst mainParams = \"client_key=\"+encodeURIComponent(iamportKey)+\"&refund_id=\"+encodeURIComponent(refundId)+\"&status=\"+encodeURIComponent(paymentStatus);\n\n\t\t\tconst hash = HmacSHA256(mainParams, iamportSecret);\n\t\t\tconst signatureHash = Base64.stringify(hash);\n\n\t\t\tconst data = {\n\t\t\t\t\"status\": paymentStatus,\n\t\t\t\t\"refund_id\": refundId,\n\t\t\t\t\"signature\": signatureHash\n\t\t\t}\n\n\t\t\tRefundService.updateRefundStatus(data).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t}\n}\n\nexport const namespaced = true;\n","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const NotificationService = {\n fetchNotifications,\n readNotification,\n readAllNotifications\n};\n\nfunction fetchNotifications(merchantUUID, payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n body: JSON.stringify(payload)\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/notifications`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction readNotification(merchantUUID, notificationUUID) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n credentials: 'include'\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/notifications/${notificationUUID}/mark-read`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction readAllNotifications(merchantUUID) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n credentials: 'include'\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/notifications/mark-all-read`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { NotificationService } from '@/helpers/backend/notifications.service';\nimport {\n FETCH_NOTIFICATIONS,\n MARK_NOTIFICATION_READ,\n READ_ALL_NOTIFICATIONS\n} from '../actions.type';\n\nimport {\n ADD_NOTIFICATIONS_IN_STORE,\n CLEAR_NOTIFICATION_STATE\n } from '../mutations.type';\n\nexport const state = {\n content: [],\n page: 1,\n size: 10,\n totalElements: 0\n};\n\nexport const mutations = {\n [ADD_NOTIFICATIONS_IN_STORE](state, notifications) {\n state.content = [...state.content, ...notifications.content];\n state.page = notifications.page;\n state.size = notifications.size;\n state.totalElements = notifications.total_elements;\n },\n [CLEAR_NOTIFICATION_STATE](state) {\n state.content = [];\n // state.page = 1;\n // state.size = 0;\n state.totalElements = 0;\n }\n}\n\nexport const getters = {\n moreNotificationsAvailable(state) {\n return state.totalElements > state.content.length;\n },\n}\n\nexport const actions = {\n\n [FETCH_NOTIFICATIONS](context, data) {\n if(!data.showNotifications || data.reset) {\n context.commit(CLEAR_NOTIFICATION_STATE)\n }\n delete data.showNotifications;\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n\n const payload = { ...data, environment: context.rootState.auth.environment };\n NotificationService.fetchNotifications(merchantUUID, payload).then((response) => {\n if(response.content) {\n context.commit(ADD_NOTIFICATIONS_IN_STORE, response)\n }\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [MARK_NOTIFICATION_READ](context, notificationUUID) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n\n NotificationService.readNotification(merchantUUID, notificationUUID).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [READ_ALL_NOTIFICATIONS](context) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n\n NotificationService.readAllNotifications(merchantUUID).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n}","module.exports = __webpack_public_path__ + \"img/uk.68b4d830.svg\";","import Headers from '../headers'\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const ReconTransactionService = {\n getReconTransactionListForMerchant,\n // getChannelListForMerchant,\n uploadReconTransactionFile\n};\n\nfunction getReconTransactionListForMerchant(payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/third_party/transactions/all`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// function getChannelListForMerchant(merchantUUID, environment) {\n// const requestOptions = {\n// method: 'GET',\n// headers: Headers.apiHeaders(),\n// credentials: 'include',\n// };\n// const queryParams = new URLSearchParams({environment});\n// return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/list-paychannels?` + queryParams, requestOptions).then((response) => {\n// if (response.ok) {\n// return response.json();\n// } else {\n// return response.text().then(text => {\n// throw new Error(text);\n// });\n// }\n// });\n// }\n\nfunction uploadReconTransactionFile(fileData,iamportKey) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(false), 'X-Chaipay-Client-Key': iamportKey },\n body: fileData,\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/third_party/transactions`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { ReconTransactionService } from '../../helpers/backend/recon_transaction.service';\nimport {\n FETCH_RECON_TRANSACTIONS,\n// FETCH_CHANNEL_LIST,\n RECON_TRANSACTION_FILE_UPLOAD,\n} from '../actions.type';\nimport {\n\tADD_RECON_TRANSACTIONS_IN_STORE,\n\t// ADD_CHANNEL_LIST_IN_STORE,\n} from '../mutations.type';\n\nexport const state = {\n\tcontent: [],\n\ttotal_elements: 0,\n\ttotal_pages: 0,\n\tsize: 0,\n\tpage: 0\n\n}\n\nexport const mutations = {\n\n\t[ADD_RECON_TRANSACTIONS_IN_STORE](state, newTransactionData) {\n\t\tstate.content = newTransactionData.data;\n\t\tstate.total_elements = newTransactionData.total_elements;\n\t\tstate.total_pages = newTransactionData.total_pages;\n\t\tstate.size = newTransactionData.size;\n\t\tstate.page = newTransactionData.page;\n\t},\n}\n\nexport const getters = {\n\tgetTransactionsData(state) {\n\t\treturn state.transactionData;\n\t},\n\tgetTransactionsDataForSelectedTransactionID(state) {\n\t\tconst transactionID = state.selectedTransactionID;\n\t\tif(transactionID == undefined) {\n\t\t\treturn undefined;\n\t\t} else {\n return state.content.find((item) => item.order_ref === transactionID);\n }\n\t},\n\tgetRefundDataForSelectedTransactionID(state) {\n return state.selectedTransactionID && state.refundData ? state.refundData : undefined;\n\t}\n}\n\nexport const actions = {\n\n\t[FETCH_RECON_TRANSACTIONS]({ commit, rootState }, payload) {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tpayload.merchant_key = rootState.auth.currentUser.iamportKey;\n\t\t\tpayload.environment = rootState.auth.environment;\n\n\t\t\tReconTransactionService.getReconTransactionListForMerchant(payload).then((response) => {\n\t\t\t\tif(response.data) {\n\t\t\t\t\tcommit(ADD_RECON_TRANSACTIONS_IN_STORE, response)\n\t\t\t\t}\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t[RECON_TRANSACTION_FILE_UPLOAD](context, { fileData }) {\n\t\tconst iamportKey = context.rootState.auth.currentUser.iamportKey;\n\t\tconst environment = context.rootState.auth.environment;\n\t\tfileData['environment'] = environment;\n\t\tfileData.append('environment', environment);\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tReconTransactionService.uploadReconTransactionFile(fileData, iamportKey).then((response) => {\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcontext.commit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n\n\t// [FETCH_CHANNEL_LIST]({ commit, rootState }) {\n\t// \treturn new Promise((resolve, reject) => {\n\t// \t\tconst merchantUUID = rootState.auth.currentUser.merchantUuid;\n\t// \t\tconst environment = rootState.auth.environment;\n\t// \t\tReconTransactionService.getChannelListForMerchant(merchantUUID, environment).then((response) => {\n\t// \t\t\tcommit(ADD_CHANNEL_LIST_IN_STORE, response)\n\t// \t\t\tresolve(response);\n\t// \t\t}).catch((error) => {\n\t// \t\t\tconst errorObject = JSON.parse(error.message)\n\t// \t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t// \t\t\treject(error);\n\t// \t\t})\n\t// \t})\n\t// },\n}\n\nexport const namespaced = true;\n","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const MerchantService = {\n fetchMerchantEntityDetails,\n updateMerchantEntityDetails,\n};\n\nfunction fetchMerchantEntityDetails(merchantUUID) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateMerchantEntityDetails(merchantUUID, entityDetails) {\n // entityDetails => name, brand_name, website_url\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(entityDetails),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { MerchantService } from '../../helpers/backend/merchant.service';\nimport { PaymentGatewayService } from '../../helpers/backend/payment_gateway.service';\nimport * as cloneDeep from \"lodash.clonedeep\";\nimport {\n UPDATE_MERCHANT_ENTITY_DETAILS,\n FETCH_MERCHANT_ENTITY_DETAILS,\n FETCH_PAYMENT_CHANNEL_CREDENTIALS,\n UPDATE_PAYMENT_CHANNEL_CREDENTIALS,\n FETCH_PAYOUT_CHANNEL_CREDENTIALS,\n UPDATE_PAYOUT_CHANNEL_CREDENTIALS,\n UPDATE_MERCHANT_LOGO,\n} from '../actions.type';\nimport {\n SET_ENTITY_DETAILS_IN_STORE,\n SET_LOGO_IN_STORE,\n UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE,\n UPDATE_PAYOUT_CHANNEL_DETAILS_IN_STORE,\n} from '../mutations.type';\n\nexport const state = {\n entityDetails: {\n name: \"\", brand_name: \"\", website_url: \"\", iamportSecret: \"\", isVerifyPayoutsEnabled:true, master_merchant_access:true, logo: \"\"\n },\n paymentChannelDetails: {\n },\n payoutChannelDetails: {\n },\n}\n\nexport const mutations = {\n [SET_ENTITY_DETAILS_IN_STORE](state, entityDetails) {\n state.entityDetails = { ...state.entityDetails, ...entityDetails };\n },\n [SET_LOGO_IN_STORE](state, logo) {\n state.entityDetails.logo = logo;\n },\n [UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE](state, { entityKey, entityDetails }) {\n state.paymentChannelDetails[entityKey] = entityDetails\n state.paymentChannelDetails = cloneDeep(state.paymentChannelDetails)\n },\n [UPDATE_PAYOUT_CHANNEL_DETAILS_IN_STORE](state, { entityKey, entityDetails }) {\n state.payoutChannelDetails[entityKey] = entityDetails\n state.payoutChannelDetails = cloneDeep(state.payoutChannelDetails)\n },\n}\n\nexport const getters = {\n getMerchantEntityDetails(state) {\n return state.entityDetails;\n },\n getPaymentChannelCredentials(state) {\n return state.paymentChannelDetails;\n },\n getPayoutChannelCredentials(state) {\n return state.payoutChannelDetails;\n }\n}\n\nexport const actions = {\n\n [UPDATE_MERCHANT_ENTITY_DETAILS](context, newEntityDetails) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n MerchantService.updateMerchantEntityDetails(merchantUUID, newEntityDetails).then((response) => {\n const entityDetails = response\n context.commit(SET_ENTITY_DETAILS_IN_STORE, entityDetails)\n resolve(entityDetails);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [UPDATE_MERCHANT_LOGO](context, logo) {\n context.commit(SET_LOGO_IN_STORE, logo)\n },\n\n [FETCH_MERCHANT_ENTITY_DETAILS](context) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n MerchantService.fetchMerchantEntityDetails(merchantUUID).then((response) => {\n const entityDetails = response\n context.commit(SET_ENTITY_DETAILS_IN_STORE, entityDetails)\n // context.commit(`auth/${SET_AUTH_USER}`, entityDetails, { root: true })\n resolve(entityDetails);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [UPDATE_PAYMENT_CHANNEL_CREDENTIALS](context, { channelId, payChannel }) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n context.commit(UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE, { entityKey: channelId, entityDetails: payChannel })\n const updatedCredentials = payChannel.creds;\n PaymentGatewayService.updatePaymentChannelCredentials(merchantUUID, channelId, updatedCredentials).then((response) => {\n context.dispatch(`${FETCH_PAYMENT_CHANNEL_CREDENTIALS}`);\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_PAYMENT_CHANNEL_CREDENTIALS](context) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n PaymentGatewayService.getPaymentChannelCredentials(merchantUUID).then((response) => {\n (response || []).forEach((payChannel) => {\n context.commit(UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE, {entityKey: payChannel.key, entityDetails: payChannel})\n });\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [UPDATE_PAYOUT_CHANNEL_CREDENTIALS](context, { channelId, payChannel }) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n context.commit(UPDATE_PAYOUT_CHANNEL_DETAILS_IN_STORE, { entityKey: channelId, entityDetails: payChannel })\n const updatedCredentials = payChannel.creds;\n PaymentGatewayService.updatePayoutChannelCredentials(merchantUUID, channelId, updatedCredentials).then((response) => {\n context.dispatch(`${FETCH_PAYOUT_CHANNEL_CREDENTIALS}`);\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_PAYOUT_CHANNEL_CREDENTIALS](context) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n PaymentGatewayService.getPayoutChannelCredentials(merchantUUID, environment).then((response) => {\n (response || []).forEach((payoutChannel) => {\n context.commit(UPDATE_PAYOUT_CHANNEL_DETAILS_IN_STORE, {entityKey: payoutChannel.key, entityDetails: payoutChannel})\n });\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n}\n\nexport const namespaced = true;\n","import { PaymentGatewayService } from '../../helpers/backend/payment_gateway.service';\nimport {\n FETCH_WEBHOOKS,\n ADD_WEBHOOK,\n UPDATE_WEBHOOK,\n DELETE_WEBHOOK,\n UPDATE_WEBHOOK_BY_FORM,\n UPDATE_SECRET_KEY_BY_FORM,\n} from '../actions.type';\nimport {\n ADD_WEBHOOKS_IN_STORE,\n ADD_WEBHOOK_IN_STORE,\n UPDATE_WEBHOOK_IN_STORE,\n UPDATE_WEBHOOK_BY_FORM_IN_STORE,\n UPDATE_SECRET_KEY_BY_FORM_IN_STORE,\n} from '../mutations.type';\n\nexport const state = {\n urls: [],\n}\n\nexport const mutations = {\n [ADD_WEBHOOKS_IN_STORE](state, webhookDetails) {\n state.urls = webhookDetails;\n },\n [ADD_WEBHOOK_IN_STORE](state, webhookDetail) {\n state.urls.push(webhookDetail);\n },\n [UPDATE_WEBHOOK_IN_STORE](state, webhookDetail) {\n state.urls = state.urls.map(data => {\n if (data.uuid === webhookDetail.uuid) {\n data.enabled = webhookDetail.enabled;\n }\n return data;\n });\n },\n [UPDATE_WEBHOOK_BY_FORM_IN_STORE](state, webhookDetail) {\n state.urls = state.urls.map(data => {\n if (data.uuid === webhookDetail.uuid) {\n data.name = webhookDetail.name;\n data.url = webhookDetail.url;\n data.type = webhookDetail.type;\n //data.enabled = webhookDetail.enabled;\n }\n return data;\n });\n },\n\n [UPDATE_SECRET_KEY_BY_FORM_IN_STORE](state, secretKeyDetail) {\n state.urls = state.urls.map(data => {\n if (data.iamportkey === secretKeyDetail.iamportkey) {\n data.secureSecret = secretKeyDetail.secureSecret;\n //data.enabled = webhookDetail.enabled;\n }\n return data;\n });\n },\n}\n\nexport const getters = {\n getRegisteredWebhookURLs(state) {\n return state.urls;\n },\n}\n\nexport const actions = {\n\n [FETCH_WEBHOOKS](context) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n PaymentGatewayService.getWebhooksData(merchantUUID, environment).then((response) => {\n const webhookDetails = response;\n context.commit(ADD_WEBHOOKS_IN_STORE, webhookDetails)\n resolve(webhookDetails);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [UPDATE_SECRET_KEY_BY_FORM](context, { secretKeyData }) {\n return new Promise((resolve, reject) => {\n let key = context.rootState.auth.currentUser.iamportKey;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n secretKeyData['environment'] = environment\n PaymentGatewayService.updateSecureSecretKeyData(merchantUUID, key, secretKeyData).then((response) => {\n const secretKeyDetail = response;\n context.commit(UPDATE_SECRET_KEY_BY_FORM_IN_STORE, secretKeyDetail)\n resolve(secretKeyDetail);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n\n\n [ADD_WEBHOOK](context, webhookData) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n webhookData['environment'] = environment\n PaymentGatewayService.addWebhookData(merchantUUID, webhookData).then((response) => {\n const webhookDetail = response;\n context.commit(ADD_WEBHOOK_IN_STORE, webhookDetail)\n resolve(webhookDetail);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n [DELETE_WEBHOOK](context, linkRef) {\n let key = context.rootState.auth.currentUser.iamportKey;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n return new Promise((resolve, reject) => {\n PaymentGatewayService.deleteWebhookData(merchantUUID, linkRef, key).then((response) => {\n console.log(\"response\");\n console.log(response);\n context.commit('notification/success', \"Webhook Deleted successfully\", { root: true })\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [UPDATE_WEBHOOK](context, webhookData) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n webhookData['environment'] = environment\n PaymentGatewayService.updateWebhookData(merchantUUID, webhookData).then((response) => {\n const webhookDetail = response;\n context.commit(UPDATE_WEBHOOK_IN_STORE, webhookDetail)\n resolve(webhookDetail);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n [UPDATE_WEBHOOK_BY_FORM](context, webhookData) {\n return new Promise((resolve, reject) => {\n let key = context.rootState.auth.currentUser.iamportKey;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n //const environment = context.rootState.auth.environment;\n //webhookData['environment'] = environment\n PaymentGatewayService.updateWebhookByFormData(merchantUUID, key, webhookData).then((response) => {\n const webhookDetail = response;\n context.commit(UPDATE_WEBHOOK_BY_FORM_IN_STORE, webhookDetail)\n resolve(webhookDetail);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n}\n\nexport const namespaced = true;\n","import Headers from '../headers';\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const DashboardRemittancesService = {\n fetchRemittancesTransactionsStats,\n // fetchTransactionVolume,\n // fetchTransactionSeasonality,\n fetchRemittancesTransactionVolForAllPieCharts,\n fetchRemittancesTransactionStackedBar\n};\n\nfunction fetchRemittancesTransactionsStats(merchantUUId, filters, from_date, to_date, isMasterMerchant, merchant_uuids, environment, currency) {\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,filters,\"uuids\":uuidsToSend, currency,\"from\":from_date,\"to\":to_date,\"is_base_currency\": true}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/cross-border/dashboard/transaction-metrics/${merchantUUId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchRemittancesTransactionVolForAllPieCharts(merchantUUId, filters, from_date, to_date, isMasterMerchant, merchant_uuids, environment, currency) {\n // const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,filters,\"uuids\":uuidsToSend, currency,\"from\":from_date,\"to\":to_date,\"groupby\":\"payment_methods\",\"is_base_currency\": true}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/cross-border/dashboard/pie-charts/${merchantUUId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n// function fetchTransactionVolume(merchantUUId, filter, isMasterMerchant, merchant_uuids, environment, currency) {\n// const offset = new Date().getTimezoneOffset();\n// if(isMasterMerchant){\n// if(merchant_uuids.length > 0){\n// var uuidsToSend = merchant_uuids.map(function (item) {\n// return item.uuid;\n// });\n// }else{\n// uuidsToSend = [];\n// }\n// }else{\n// uuidsToSend = [merchantUUId]\n// }\n// const requestOptions = {\n// method: 'POST',\n// headers: { 'Content-Type': 'application/json' },\n// body: JSON.stringify({environment,filter,offset,\"uuids\":uuidsToSend, currency}),\n// credentials: 'include',\n// };\n// return fetch(`${CHAIPAY_API_URL}/api/analytics/txn-volume-graph/${merchantUUId}`, requestOptions).then((response) => {\n// if (response.ok) {\n// return response.json();\n// } else {\n// return response.text().then(text => {\n// throw new Error(text);\n// });\n// }\n// });\n// }\n\n// function fetchTransactionSeasonality(merchantUUId, filter, isMasterMerchant, merchant_uuids, environment, currency) {\n// const offset = new Date().getTimezoneOffset();\n// if(isMasterMerchant){\n// if(merchant_uuids.length > 0){\n// var uuidsToSend = merchant_uuids.map(function (item) {\n// return item.uuid;\n// });\n// }else{\n// uuidsToSend = [];\n// }\n// }else{\n// uuidsToSend = [merchantUUId]\n// }\n// const requestOptions = {\n// method: 'POST',\n// headers: { 'Content-Type': 'application/json' },\n// body: JSON.stringify({environment,filter,offset,\"uuids\":uuidsToSend, currency}),\n// credentials: 'include',\n// };\n// return fetch(`${CHAIPAY_API_URL}/api/analytics/txn-volume-seasonality-graph/${merchantUUId}`, requestOptions).then((response) => {\n// if (response.ok) {\n// return response.json();\n// } else {\n// return response.text().then(text => {\n// throw new Error(text);\n// });\n// }\n// });\n// }\n\nfunction fetchRemittancesTransactionStackedBar(merchantUUId, filters, from_date, to_date, isMasterMerchant, merchant_uuids, environment, currency) {\n // const offset = new Date().getTimezoneOffset();\n const offset = 0;\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,filters,offset,\"uuids\":uuidsToSend, currency,\"from\":from_date,\"to\":to_date,\"is_base_currency\": true}),\n credentials: 'include',\n }\n return fetch(`${CHAIPAY_API_URL}/api/cross-border/dashboard/txn-stacked/${merchantUUId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n","import { DashboardRemittancesService } from '../../helpers/backend/dashboard_remittances.service';\nimport {\n FETCH_REMITTANCES_TRANSACTION_STATS,\n // FETCH_TRANSACTION_VOLUME,\n // FETCH_TRANSACTION_VOLUME_SEASONALITY,\n FETCH_REMITTANCES_TRANSACTION_VOLUME_STACKED_BAR,\n FETCH_REMITTANCES_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS,\n} from '../actions.type';\nimport {\n ADD_TRANSACTION_STATS_IN_STORE,\n // ADD_TRANSACTION_VOLUME_IN_STORE,\n // ADD_TRANSACTION_SEASONALITY_IN_STORE,\n ADD_TRANSACTION_VOLUME_BY_STATUS_IN_STORE,\n ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE,\n ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE,\n ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CURR_IN_STORE,\n ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CHANNE_IN_STORE,\n ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_METHOD_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n txn_stats: {},\n // txn_vol: { labels: [], datasets: [] },\n // txn_vol_seasonality: { labels: [], datasets: [] },\n txn_vol_by_status: { labels: [], datasets: [] },\n txn_vol_by_pmt_channel: { labels: [], datasets: [] },\n txn_vol_by_pmt_method: { labels: [], datasets: [] },\n txn_vol_stacked_bar: { labels: [], datasets: [] },\n txn_vol_stacked_bar_pmt_channel: { labels: [], datasets: [] },\n txn_vol_stacked_bar_pmt_method: { labels: [], datasets: [] },\n}\n\nexport const mutations = {\n [ADD_TRANSACTION_STATS_IN_STORE](state, stats) {\n state.txn_stats = stats\n },\n // [ADD_TRANSACTION_VOLUME_IN_STORE](state, txnVol) {\n // state.txn_vol = txnVol;\n // },\n // [ADD_TRANSACTION_SEASONALITY_IN_STORE](state, txnVolSeasonality) {\n // state.txn_vol_seasonality = txnVolSeasonality;\n // },\n [ADD_TRANSACTION_VOLUME_BY_STATUS_IN_STORE](state, txnVolByStatus) {\n state.txn_vol_by_status = txnVolByStatus;\n },\n [ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE](state, txnVolByChannel) {\n state.txn_vol_by_pmt_channel = txnVolByChannel;\n },\n [ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE](state, txnVolByMethod) {\n state.txn_vol_by_pmt_method = txnVolByMethod;\n },\n // [ADD_TRANSACTION_STACKED_BAR_IN_STORE](state, txnVolForStackedBar) {\n // state.txn_vol_stacked_bar = txnVolForStackedBar;\n // },\n [ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CURR_IN_STORE](state, txnVolForStackedBar) {\n state.txn_vol_stacked_bar = txnVolForStackedBar;\n },\n [ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CHANNE_IN_STORE](state, txnVolForStackedBar) {\n state.txn_vol_stacked_bar_pmt_channel = txnVolForStackedBar;\n },\n [ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_METHOD_IN_STORE](state, txnVolForStackedBar) {\n state.txn_vol_stacked_bar_pmt_method = txnVolForStackedBar;\n },\n \n}\n\nexport const getters = {}\n\nexport const actions = {\n\n [FETCH_REMITTANCES_TRANSACTION_STATS](context, {filter, from_date, to_date, isMasterMerchant, merchant_uuids, currency} = {}) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.iamportKey;\n // TODO: Remove exception for 'years' filter\n if (filter == 'years') {\n filter = 'months';\n }\n const environment = context.rootState.auth.environment;\n DashboardRemittancesService.fetchRemittancesTransactionsStats(merchantUUID, filter, from_date, to_date,isMasterMerchant, merchant_uuids, environment, currency).then((stats) => {\n context.commit(ADD_TRANSACTION_STATS_IN_STORE, stats)\n resolve(stats);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_REMITTANCES_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS](context, {filter, from_date, to_date, isMasterMerchant, merchant_uuids, currency} = {}) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n DashboardRemittancesService.fetchRemittancesTransactionVolForAllPieCharts(merchantUUID, filter, from_date, to_date, isMasterMerchant, merchant_uuids, environment, currency).then((txnData) => {\n context.commit(ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE, txnData.content.txnMetricsByChannel)\n context.commit(ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE, txnData.content.txnMetricsByMethod)\n context.commit(ADD_TRANSACTION_VOLUME_BY_STATUS_IN_STORE, txnData.content.txnMetricsByCurrency)\n resolve(txnData);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n // [FETCH_TRANSACTION_VOLUME](context, {filter, isMasterMerchant, merchant_uuids, currency} = {}) {\n // return new Promise((resolve, reject) => {\n // const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n // const environment = context.rootState.auth.environment;\n // DashboardService.fetchTransactionVolume(merchantUUID, filter, isMasterMerchant, merchant_uuids, environment, currency).then((response) => {\n // context.commit(ADD_TRANSACTION_VOLUME_IN_STORE, response.txnVolume)\n // resolve(response.txnVolume);\n // }).catch((error) => {\n // console.log('txnVolume error', error)\n // const errorObject = JSON.parse(error.message)\n // context.commit('notification/error', errorObject.Message, { root: true })\n // reject(error);\n // })\n // });\n // },\n\n // [FETCH_TRANSACTION_VOLUME_SEASONALITY](context, {filter, isMasterMerchant, merchant_uuids, currency} = {}) {\n // return new Promise((resolve, reject) => {\n // const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n // const environment = context.rootState.auth.environment;\n // DashboardService.fetchTransactionSeasonality(merchantUUID, filter, isMasterMerchant, merchant_uuids, environment, currency).then((response) => {\n // context.commit(ADD_TRANSACTION_SEASONALITY_IN_STORE, response.txnSeasonality)\n // resolve(response.txnSeasonality);\n // }).catch((error) => {\n // console.log('txnSeasonality error', error)\n // const errorObject = JSON.parse(error.message)\n // context.commit('notification/error', errorObject.Message, { root: true })\n // reject(error);\n // })\n // });\n // },\n\n [FETCH_REMITTANCES_TRANSACTION_VOLUME_STACKED_BAR](context, {filter, from_date, to_date, isMasterMerchant, merchant_uuids, currency} = {}) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n DashboardRemittancesService.fetchRemittancesTransactionStackedBar(merchantUUID, filter, from_date, to_date, isMasterMerchant, merchant_uuids, environment, currency).then((response) => {\n // context.commit(ADD_TRANSACTION_STACKED_BAR_IN_STORE, response.chartData)\n context.commit(ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CURR_IN_STORE, response.curChartData)\n context.commit(ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CHANNE_IN_STORE, response.pcChartData)\n context.commit(ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_METHOD_IN_STORE, response.pmChartData)\n resolve(response);\n }).catch((error) => {\n console.log('txnStackedBar error', error)\n //TODO: REMOVE THIS\n // context.commit(ADD_TRANSACTION_STACKED_BAR_IN_STORE, undefined)\n context.commit(ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CURR_IN_STORE, undefined)\n context.commit(ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_CHANNE_IN_STORE, undefined)\n context.commit(ADD_REMITTANCES_TRANSACTION_STACKED_BAR_BY_METHOD_IN_STORE, undefined)\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n}\n\nexport const namespaced = true;\n","module.exports = __webpack_public_path__ + \"img/belgium.477e53d6.svg\";","export const state = {\r\n layoutType: 'vertical',\r\n layoutWidth: 'fluid',\r\n leftSidebarType: 'light',\r\n topbar: 'light',\r\n loader: false\r\n}\r\n\r\nexport const mutations = {\r\n CHANGE_LAYOUT(state, layoutType) {\r\n state.layoutType = layoutType;\r\n },\r\n CHANGE_LAYOUT_WIDTH(state, layoutWidth) {\r\n state.layoutWidth = layoutWidth;\r\n },\r\n CHANGE_LEFT_SIDEBAR_TYPE(state, leftSidebarType) {\r\n state.leftSidebarType = leftSidebarType;\r\n },\r\n CHANGE_TOPBAR(state, topbar) {\r\n state.topbar = topbar;\r\n },\r\n LOADER(state, loader) {\r\n state.loader = loader\r\n }\r\n}\r\n\r\nexport const actions = {\r\n changeLayoutType({ commit }, { layoutType }) {\r\n commit('CHANGE_LAYOUT', layoutType);\r\n },\r\n\r\n changeLayoutWidth({ commit }, { layoutWidth }) {\r\n commit('CHANGE_LAYOUT_WIDTH', layoutWidth)\r\n },\r\n\r\n changeLeftSidebarType({ commit }, { leftSidebarType }) {\r\n commit('CHANGE_LEFT_SIDEBAR_TYPE', leftSidebarType)\r\n },\r\n\r\n changeTopbar({ commit }, { topbar }) {\r\n commit('CHANGE_TOPBAR', topbar)\r\n },\r\n\r\n changeLoaderValue({ commit }, { loader }) {\r\n commit('LOADER', loader)\r\n },\r\n}\r\n","module.exports = __webpack_public_path__ + \"img/australia.9377f492.svg\";","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nimport Headers from '../headers';\n\nexport const VirtualAccountService = {\n fetchVirtualAccounts,\n createVirtualAccount,\n fetchVirtualAccountsMasterMerchant\n};\n\nfunction fetchVirtualAccounts(key, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/payout/va?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n\nfunction createVirtualAccount(merchantUUID, key, virtualAccount) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(virtualAccount),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/payout/va`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction fetchVirtualAccountsMasterMerchant(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/master-merchant/${iamportKey}/merchants/payouts/va`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import {\n VirtualAccountService\n} from '../../helpers/backend/virtual_account.service';\nimport * as cloneDeep from \"lodash.clonedeep\";\nimport {\n FETCH_VIRTUAL_ACCOUNTS,\n CREATE_VIRTUAL_ACCOUNT,\n FETCH_VIRTUAL_ACCOUNTS_MASTER_MERCHANT\n} from '../actions.type';\nimport {\n UPDATE_VIRTUAL_ACCOUNT_IN_STORE,\n CREATE_VIRTUAL_ACCOUNT_IN_STORE,\n TOGGLE_VIRTUAL_LOADER_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n isFetchingData: false,\n\n virtualAccounts: [],\n}\n\nexport const mutations = {\n [TOGGLE_VIRTUAL_LOADER_IN_STORE](state,toggle){\n state.isFetchingData = toggle;\n },\n [UPDATE_VIRTUAL_ACCOUNT_IN_STORE](state, virtualAccounts) {\n state.virtualAccounts = cloneDeep(virtualAccounts)\n },\n [CREATE_VIRTUAL_ACCOUNT_IN_STORE](state, virtualAccounts) {\n state.virtualAccounts.push(virtualAccounts);\n },\n\n}\n\nexport const getters = {\n getVirtualAccounts(state) {\n return state.virtualAccounts;\n }\n}\n\nexport const actions = {\n [FETCH_VIRTUAL_ACCOUNTS](context) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n context.commit(TOGGLE_VIRTUAL_LOADER_IN_STORE, true);\n VirtualAccountService.fetchVirtualAccounts(key, environment).then((response) => {\n context.commit(TOGGLE_VIRTUAL_LOADER_IN_STORE, false);\n\n context.commit(UPDATE_VIRTUAL_ACCOUNT_IN_STORE, response.content);\n resolve(response);\n }).catch((error) => {\n context.commit(TOGGLE_VIRTUAL_LOADER_IN_STORE, false);\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, {\n root: true\n })\n reject(error);\n })\n })\n },\n\n [FETCH_VIRTUAL_ACCOUNTS_MASTER_MERCHANT](context, payload) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n payload.environment = context.rootState.auth.environment;\n context.commit(TOGGLE_VIRTUAL_LOADER_IN_STORE, true);\n VirtualAccountService.fetchVirtualAccountsMasterMerchant(key, payload).then((response) => {\n context.commit(TOGGLE_VIRTUAL_LOADER_IN_STORE, false);\n\n context.commit(UPDATE_VIRTUAL_ACCOUNT_IN_STORE, response.content.content);\n resolve(response);\n }).catch((error) => {\n context.commit(TOGGLE_VIRTUAL_LOADER_IN_STORE, false);\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, {\n root: true\n })\n reject(error);\n })\n })\n },\n\n [CREATE_VIRTUAL_ACCOUNT](context, virtualAccount) {\n return new Promise((resolve, reject) => {\n const key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n virtualAccount['environment'] = environment;\n VirtualAccountService.createVirtualAccount(merchantUUID, key, virtualAccount).then((response) => {\n context.dispatch(`${FETCH_VIRTUAL_ACCOUNTS}`);\n context.commit('notification/success', \"Virtual Account Created Successfully\", {\n root: true\n })\n resolve(response);\n\n }).catch((error) => {\n // const errorObject = JSON.parse(error.message)\n context.commit('notification/error', \"Something went wrong\", {\n root: true\n })\n reject(error);\n })\n })\n }\n}\nexport const namespaced = true;","var map = {\n\t\"./accounts.js\": \"260b2\",\n\t\"./accountstatement.js\": \"1171\",\n\t\"./auth.js\": \"11c0\",\n\t\"./beneficiary.js\": \"a2fe\",\n\t\"./cross_border_payment_methods.js\": \"0d31\",\n\t\"./dashboard.js\": \"d959\",\n\t\"./fee_management.js\": \"ac94\",\n\t\"./file_management.js\": \"8879\",\n\t\"./fireauth.js\": \"5a45\",\n\t\"./invoices.js\": \"02d3\",\n\t\"./layout.js\": \"c21a\",\n\t\"./master_merchant.js\": \"0d64\",\n\t\"./merchant.js\": \"bd45\",\n\t\"./notification.js\": \"2208\",\n\t\"./notifications.js\": \"b67d\",\n\t\"./payment_channels.js\": \"fb8c\",\n\t\"./payment_pages.js\": \"5fa8\",\n\t\"./paymentlinks.js\": \"a26f\",\n\t\"./payouts.js\": \"1930\",\n\t\"./recon_analytics.js\": \"8cac\",\n\t\"./recon_transactions.js\": \"bce0\",\n\t\"./reconciliation.js\": \"d46c\",\n\t\"./remittance_bank_accounts.js\": \"753d\",\n\t\"./remittance_reserve_ledger.js\": \"1e36\",\n\t\"./remittance_summary.js\": \"1981\",\n\t\"./remittances_dashboard.js\": \"c027\",\n\t\"./settlements.js\": \"6d12\",\n\t\"./smart_routing.js\": \"29d0\",\n\t\"./subscription.js\": \"1e93\",\n\t\"./subscription_price.js\": \"9328\",\n\t\"./transactions.js\": \"af70\",\n\t\"./virtualaccount.js\": \"c50a\",\n\t\"./webhook.js\": \"be09\"\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = \"cfa9\";","import Headers from '../headers';\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const ReconciliationService = {\n fetchReconciliationResults,\n fetchIngestionSummary,\n fetchReconciliations,\n fetchReconciliationSummaryResults,\n fetchReconciliationSummaryForPspResults,\n fetchPspResultsForReconciliationSummary,\n uploadFile,\n fileUpload,\n createReconciliation,\n reconciliationDetails,\n reconciliationTransactions,\n reconciliationSettlement,\n fetchReconciliationTransactions,\n fetchUnReconciledSettlements,\n downloadReconciliationTransactions,\n downloadUnReconciledSettlements,\n getChannelListForMerchant,\n getChannelList,\n exportFeeMismatchTransactions,\n exportReconSummery,\n getUserDataByPropertyType,\n getUserDataByPropertyTypeList,\n getReconMetabaseResult\n};\n\nfunction fetchReconciliationResults(iamportKey, payload) {\n\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/ingestion/list`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchIngestionSummary(iamportKey, payload) {\n\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n // let queryParams = \"\";\n // for (let key in payload) {\n // if (queryParams != \"\") {\n // queryParams += \"&\";\n // }\n // queryParams += (key + \"=\" + encodeURIComponent(payload[key]));\n // }\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/ingestion/summary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchReconciliations(iamportKey, payload) {\n\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/list`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchReconciliationSummaryResults(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/summary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchReconciliationSummaryForPspResults(merchantUUId, iamportKey, pageIndex, pagesize, from_date, to_date, frequency, recon_type, environment) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify({ key:iamportKey,recon_type:recon_type,from_date:from_date,to_date:to_date,frequency:frequency, page: pageIndex, pagesize, environment }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/summary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchPspResultsForReconciliationSummary(merchantUUId, iamportKey, from_date, to_date, recon_type, environment) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify({ key:iamportKey,recon_type:recon_type,from_date:from_date,to_date:to_date, environment }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/psp-wise/summary`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getChannelListForMerchant(iamportKey, environment, fileType, pageType, currency) {\n const requestOptions = {\n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n let params = { environment, pageType };\n if(fileType){\n params.fileType = fileType; \n }\n if(currency) {\n params.currency = currency; \n }\n const queryParams = new URLSearchParams(params);\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/channels?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getChannelList(iamportKey, environment) {\n const requestOptions = {\n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/data-sources?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getUserDataByPropertyType(iamportKey, data) {\n const requestOptions = {\n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n\n const queryParams = new URLSearchParams(data);\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/custom-data?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getUserDataByPropertyTypeList(iamportKey, data) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(data)\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/g/custom-data-v2`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchReconciliationTransactions(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/recon-dashboard-txns`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchUnReconciledSettlements(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/recon-dashboard-settlements`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction downloadReconciliationTransactions(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/export-recon-dashboard-txns`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = payload.status + \"_transactions_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction downloadUnReconciledSettlements(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/export-recon-dashboard-settlements`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = payload.status + \"_settlements_\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction uploadFile(merchantUUId, iamportKey, fileData) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(false), 'X-Chaipay-Client-Key': iamportKey },\n body: fileData,\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/upload-file`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fileUpload(iamportKey, fileData) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(false), 'X-Chaipay-Client-Key': iamportKey },\n body: fileData,\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/upload-file`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction createReconciliation(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n body: JSON.stringify(payload),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/create-recon`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction reconciliationDetails(iamportKey, ref) {\n const requestOptions = {\n method: 'GET',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include'\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/list/${ref}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction reconciliationTransactions(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(payload)\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/recon-dashboard-txns`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction reconciliationSettlement(iamportKey, payload) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(payload)\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${iamportKey}/recon-dashboard-settlements`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportFeeMismatchTransactions(iamportKey, environment, data) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(data)\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/fee-mismatch-transactions?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"Reconciliation summary\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction exportReconSummery(iamportKey, data) {\n const requestOptions = {\n method: 'POST',\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n body: JSON.stringify(data)\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/psp-wise/summary/download`, requestOptions).then((response) => {\n if (response.ok) {\n return response.blob().then((blob) => {\n var url = window.URL.createObjectURL(blob);\n var a = document.createElement('a');\n a.href = url;\n a.download = \"recon-summery\" + (new Date().toISOString()) + \".xlsx\";\n document.body.appendChild(a); // we need to append the element to the dom -> otherwise it will not work in firefox\n a.click();\n a.remove(); //afterwards we remove the element again\n });\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getReconMetabaseResult(iamportKey, environment, currency, frequency) {\n const requestOptions = {\n method: 'POST',\n body: JSON.stringify({ merchant_key:iamportKey,request_source:\"portone-dev\",environment, currency, frequency }),\n headers: { ...Headers.apiHeaders(), 'X-Chaipay-Client-Key': iamportKey },\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/recon/v3/analytics/dashboard`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import { ReconciliationService } from '../../helpers/backend/reconciliation.service';\nimport moment from 'moment';\nimport {\n FETCH_RECONCILIATION_RESULTS,\n FETCH_RECONCILIATIONS,\n FETCH_RECONCILIATION_SUMMARY_RESULTS,\n FETCH_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS,\n FETCH_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY,\n UPDATE_FILE_UPLOAD,\n FILE_UPLOAD,\n CREATE_RECON,\n RECON_DEATILS,\n RECON_TRANSACTIONS,\n RECON_SETTLEMENTS,\n FETCH_CHANNEL_LIST_FOR_RECON,\n FETCH_CHANNEL_LIST,\n CLEAR_RECON_DEATILS,\n EXPORT_MISMATCH_TRANSACTIONS_INTO_CSV,\n EXPORT_RECON_SUMMERY_INTO_CSV,\n FETCH_USER_DATA_BY_PROPERTY_TYPE,\n FETCH_RECONCILIATION_TRANSACTIONS,\n FETCH_UNRECONCILED_SETTLEMENT,\n DOWNLOAD_RECONCILIATION_TRANSACTIONS,\n DOWNLOAD_UNRECONCILED_SETTLEMENT,\n FETCH_INGESTION_SUMMARY,\n FETCH_RECON_METABASE_RESULT,\n FETCH_USER_DATA_BY_PROPERTY_TYPE_LIST\n} from '../actions.type';\n\nimport {\n ADD_RECONCILIATION_RESULTS_IN_STORE,\n ADD_RECONCILIATION_SUMMARY_RESULTS_IN_STORE,\n ADD_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS_IN_STORE,\n ADD_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY_IN_STORE,\n ADD_RECONCILIATION_SUMMARY_IN_STORE,\n // SET_UPLOADED_DATA_IN_STORE,\n UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE,\n SET_RECON_DEATILS_IN_STORE,\n SET_SELECTED_DATE_FOR_SUMMARY,\n RECON_ADD_CHANNEL_LIST_IN_STORE,\n CLEAR_RECON_DEATILS_IN_STORE,\n ADD_FOOD_TECH_STORE_LIST,\n RECON_METABASE_RESULT_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n isFetchingData: false,\n content: [],\n Summarycontent: [],\n pspcontent:[],\n total_elements: 0,\n total_pages: 0,\n size: 0,\n page: 0,\n number_of_elements: 0,\n // uploaded_data:[],\n recon_details:{},\n summary:[],\n storeList: [],\n selected_date_for_summary:\"\",\n paymentChannelList:[],\n reconMetabaseResult:\"\"\n}\n\nexport const mutations = {\n // [SET_UPLOADED_DATA_IN_STORE](state, entityDetails) {\n // state.uploaded_data = [];\n // state.uploaded_data.push(entityDetails.content.s3_key);\n // },\n [SET_SELECTED_DATE_FOR_SUMMARY](state, selected_value) {\n state.selected_date_for_summary = selected_value;\n },\n [RECON_ADD_CHANNEL_LIST_IN_STORE](state, newChannelListData) {\n\t\tstate.paymentChannelList = newChannelListData;\n\t},\n [RECON_METABASE_RESULT_IN_STORE](state, metabaseResult) {\n\t\tstate.reconMetabaseResult = metabaseResult;\n\t},\n [ADD_FOOD_TECH_STORE_LIST](state, {storeList, source_name}) {\n\t\tstate.storeList = storeList.map(element => {\n element.source_name = source_name;\n return element;\n });\n },\n [SET_RECON_DEATILS_IN_STORE](state, entityDetails) {\n state.recon_details = entityDetails\n },\n [CLEAR_RECON_DEATILS_IN_STORE](state) {\n state.recon_details = {}\n },\n [ADD_RECONCILIATION_RESULTS_IN_STORE](state, newTransactionData) {\n state.content = newTransactionData.recon_list;\n state.total_elements = newTransactionData.total;\n state.page = newTransactionData.page;\n state.number_of_elements = newTransactionData.total;\n },\n [ADD_RECONCILIATION_SUMMARY_RESULTS_IN_STORE](state, newTransactionData) {\n state.Summarycontent = newTransactionData;\n },\n [ADD_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS_IN_STORE](state, newTransactionData) {\n state.isFetchingData = newTransactionData.isFetchingData;\n state.Summarycontent = newTransactionData.content;\n state.total_elements = newTransactionData.total_elements;\n state.total_pages = newTransactionData.total_pages;\n state.size = newTransactionData.size;\n state.page = newTransactionData.page;\n state.number_of_elements = newTransactionData.number_of_elements;\n },\n [ADD_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY_IN_STORE](state, newTransactionData) {\n state.isFetchingData = newTransactionData.isFetchingData;\n state.pspcontent = newTransactionData.content;\n },\n [ADD_RECONCILIATION_SUMMARY_IN_STORE](state, newTransactionData) {\n state.isFetchingData = newTransactionData.isFetchingData;\n state.summary = newTransactionData.content;\n state.total_elements = newTransactionData.total_elements;\n state.total_pages = newTransactionData.total_pages;\n state.size = newTransactionData.size;\n state.page = newTransactionData.page;\n state.number_of_elements = newTransactionData.number_of_elements;\n },\n [UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE](state, isFetching) {\n state.isFetchingData = isFetching;\n }\n}\n\nexport const getters = {\n getPaymentLinksEntityDetails(state) {\n return state.entityDetails;\n },\n // aftercreateReconData(state) {\n // return state.uploaded_data;\n // },\n}\n\nexport const actions = {\n [UPDATE_FILE_UPLOAD](context, { fileData }) {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n const merchantUUId = context.rootState.auth.currentUser.merchantUuid;\n fileData['environment'] = environment;\n fileData.append('environment', environment);\n return new Promise((resolve, reject) => {\n ReconciliationService.uploadFile(merchantUUId, iamportKey, fileData).then((response) => {\n // context.commit(SET_UPLOADED_DATA_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n let errorObject;\n try {\n errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n } catch (e) {\n context.commit('notification/error', \"Server Error\", { root: true })\n }\n reject(error);\n })\n })\n },\n [FILE_UPLOAD](context, fileData) {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n\n fileData.append('environment', context.rootState.auth.environment);\n\n return new Promise((resolve, reject) => {\n ReconciliationService.fileUpload(iamportKey, fileData).then(resolve).catch(reject);\n })\n },\n [FETCH_CHANNEL_LIST_FOR_RECON]({ commit, rootState },{fileType = \"\", pageType, currency}) {\n\t\treturn new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tReconciliationService.getChannelListForMerchant(iamportKey, environment, fileType, pageType, currency).then((response) => {\n\t\t\t\tcommit(RECON_ADD_CHANNEL_LIST_IN_STORE, response.content)\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n [FETCH_CHANNEL_LIST]({ commit, rootState }) {\n return new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tReconciliationService.getChannelList(iamportKey, environment).then((response) => {\n\t\t\t\tcommit(RECON_ADD_CHANNEL_LIST_IN_STORE, response.data)\n\t\t\t\tresolve(response);\n\t\t\t}).catch(reject)\n\t\t})\n },\n [FETCH_USER_DATA_BY_PROPERTY_TYPE]({ commit, rootState }, data) {\n\t\treturn new Promise((resolve, reject) => {\n data.environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tReconciliationService.getUserDataByPropertyType(iamportKey, data).then((response) => {\n if(data.property_type === 'store_id') {\n commit(ADD_FOOD_TECH_STORE_LIST, {storeList: response.content, source_name: data.source_name})\n }\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n [FETCH_USER_DATA_BY_PROPERTY_TYPE_LIST]({ commit, rootState }, data) {\n\t\treturn new Promise((resolve, reject) => {\n data.environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tReconciliationService.getUserDataByPropertyTypeList(iamportKey, data).then((response) => {\n // if(data.property_type === 'store_id') {\n // commit(ADD_FOOD_TECH_STORE_LIST, {storeList: response.content, source_name: data.source_name})\n // }\n\t\t\t\tresolve(response);\n\t\t\t}).catch((error) => {\n console.log(error);\n \n\t\t\t\tconst errorObject = JSON.parse(error.message)\n\t\t\t\tcommit('notification/error', errorObject.Message, { root: true })\n\t\t\t\treject(error);\n\t\t\t})\n\t\t})\n\t},\n [CREATE_RECON](context, data) {\n data.environment = context.rootState.auth.environment;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n\n return new Promise((resolve, reject) => {\n ReconciliationService.createReconciliation(iamportKey, data).then(resolve).catch(reject);\n })\n },\n\n [RECON_DEATILS](context, ref) {\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n\n return new Promise((resolve, reject) => {\n ReconciliationService.reconciliationDetails(iamportKey, ref).then(resolve).catch(reject)\n })\n },\n\n [RECON_TRANSACTIONS](context, payload) {\n payload.environment = context.rootState.auth.environment;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n return new Promise((resolve, reject) => {\n ReconciliationService.reconciliationTransactions(iamportKey, payload).then((response) => {\n context.commit(SET_RECON_DEATILS_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n [RECON_SETTLEMENTS](context, payload) {\n payload.environment = context.rootState.auth.environment;\n const iamportKey = context.rootState.auth.currentUser.iamportKey;\n return new Promise((resolve, reject) => {\n ReconciliationService.reconciliationSettlement(iamportKey, payload).then((response) => {\n context.commit(SET_RECON_DEATILS_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(errorObject);\n })\n })\n },\n\n\n [FETCH_RECONCILIATION_RESULTS]({ commit, rootState }, payload) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n payload.environment = rootState.auth.environment;\n\n ReconciliationService.fetchReconciliationResults(iamportKey, payload).then((response) => {\n\n commit(ADD_RECONCILIATION_RESULTS_IN_STORE, response.data)\n resolve(response);\n }).catch(reject);\n })\n },\n [FETCH_INGESTION_SUMMARY]({ rootState }, payload) {\n console.log(payload);\n return new Promise((resolve, reject) => {\n payload.environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\n ReconciliationService.fetchIngestionSummary(iamportKey, payload).then(resolve).catch(reject);\n })\n },\n [FETCH_RECONCILIATIONS]({rootState }, payload) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n payload.environment = rootState.auth.environment;\n\n ReconciliationService.fetchReconciliations(iamportKey, payload).then(resolve).catch(reject);\n })\n },\n [FETCH_RECONCILIATION_SUMMARY_RESULTS]({ commit, rootState }, payload) {\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n payload.key = iamportKey;\n payload.environment = rootState.auth.environment;\n ReconciliationService.fetchReconciliationSummaryResults(iamportKey, payload).then((response) => {\n const paylinks_content = response.content.map((paylinks) => {\n return {\n date: moment(paylinks.key).format('MMM Do YYYY') || \"\",\n key: paylinks.key,\n total_amount: paylinks.provider_amount_stats.sum,\n total_count: paylinks.provider_amount_stats.count,\n fee_deduction_amount:paylinks.deducted_amount_stats.sum,\n fee_deduction_count:paylinks.deducted_amount_stats.count,\n expected_fee_amount:paylinks.expected_psp_fee_stats.sum,\n expected_fee_count:paylinks.expected_psp_fee_stats.count,\n miss_match_amount: paylinks.psp_fee_difference_stats.sum,\n miss_match_count:paylinks.psp_fee_difference_stats.count,\n tolerance_amount_stats: paylinks.tolerance_amount_stats.sum,\n tolerance_count_stats:paylinks.tolerance_amount_stats.count,\n trans_amount:paylinks.total_amount_stats.sum,\n trans_count:paylinks.total_amount_stats.count,\n refund_amount: paylinks.refund_amount_stats.sum,\n refund_count: paylinks.refund_amount_stats.count,\n settlement_amount: paylinks.settlement_amount_stats.sum - paylinks.refund_amount_stats.sum,\n settlement_count: paylinks.settlement_amount_stats.count,\n unSettlement_amount: paylinks.chaipay_amount_stats.sum,\n unSettlement_count: paylinks.chaipay_amount_stats.count, \n fee_amount:paylinks.deducted_amount_stats.sum,\n fee_count:paylinks.deducted_amount_stats.count, \n currency:paylinks.currency,\n other_adjustments: paylinks.other_adjustments\n };\n });\n commit(ADD_RECONCILIATION_SUMMARY_RESULTS_IN_STORE, paylinks_content)\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, false)\n resolve(paylinks_content);\n }).catch((error) => {\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS]({ commit, rootState }, { pageIndex, pagesize, from_date, to_date, frequency, recon_type }) {\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const environment = rootState.auth.environment;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n ReconciliationService.fetchReconciliationSummaryForPspResults(merchantUUId, iamportKey, pageIndex, pagesize, from_date, to_date, frequency, recon_type, environment).then((response) => {\n const paylinks_content = response.content.map((paylinks) => {\n return {\n date: moment(paylinks.key).format('MMM YYYY') || \"\",\n key:paylinks.key,\n fee_amount: paylinks.deducted_amount_stats.sum,\n total_amount: paylinks.provider_amount_stats.sum,\n settlement_amount: paylinks.settlement_amount_stats.sum,\n currency:paylinks.currency\n };\n });\n\n const paymentLinksData = {\n content: paylinks_content,\n total_elements: response.total_elements,\n total_pages: response.total_pages,\n size: response.size,\n page: response.page,\n number_of_elements: response.number_of_elements,\n }\n commit(ADD_RECONCILIATION_SUMMARY_FOR_PSP_RESULTS_IN_STORE, paymentLinksData)\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, false)\n resolve(paymentLinksData);\n }).catch((error) => {\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY]({ commit, rootState }, { from_date, to_date, recon_type }) {\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, true)\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n const environment = rootState.auth.environment;\n const merchantUUId = rootState.auth.currentUser.merchantUuid;\n ReconciliationService.fetchPspResultsForReconciliationSummary(merchantUUId, iamportKey, from_date, to_date, recon_type, environment).then((response) => {\n const paylinks_content = response.content.map((paylinks) => {\n return {\n key:paylinks.key,\n fee_amount: paylinks.deducted_amount_stats.sum,\n settlement_amount: paylinks.settlement_amount_stats.sum,\n total_amount:paylinks.provider_amount_stats.sum,\n currency:paylinks.currency\n };\n });\n\n const paymentLinksData = {\n content: paylinks_content\n }\n commit(ADD_PSP_RESULTS_FOR_RECONCILIATION_SUMMARY_IN_STORE, paymentLinksData)\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, false)\n resolve(paymentLinksData);\n }).catch((error) => {\n commit(UPDATE_RECONCILIATION_RESULTS_FETCHING_STATE, false)\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_RECONCILIATION_TRANSACTIONS]({ rootState }, payload) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n payload.environment = rootState.auth.environment;\n ReconciliationService.fetchReconciliationTransactions(iamportKey, payload).then((result) => {\n resolve(result);\n })\n .catch((error) => {\n reject(error);\n })\n })\n },\n\n [FETCH_UNRECONCILED_SETTLEMENT]({ rootState }, payload) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n payload.environment = rootState.auth.environment;\n ReconciliationService.fetchUnReconciledSettlements(iamportKey, payload).then((result) => {\n resolve(result);\n })\n .catch((error) => {\n reject(error);\n })\n })\n },\n\n [DOWNLOAD_RECONCILIATION_TRANSACTIONS]({ rootState }, payload) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n payload.environment = rootState.auth.environment;\n ReconciliationService.downloadReconciliationTransactions(iamportKey, payload).then((result) => {\n resolve(result);\n })\n .catch((error) => {\n reject(error);\n })\n })\n },\n\n [DOWNLOAD_UNRECONCILED_SETTLEMENT]({ rootState }, payload) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n payload.environment = rootState.auth.environment;\n ReconciliationService.downloadUnReconciledSettlements(iamportKey, payload).then((result) => {\n resolve(result);\n })\n .catch((error) => {\n reject(error);\n })\n })\n },\n\n [CLEAR_RECON_DEATILS]({ commit }) {\n commit(CLEAR_RECON_DEATILS_IN_STORE)\n },\n\n [EXPORT_MISMATCH_TRANSACTIONS_INTO_CSV]({ commit, rootState }, data) {\n\t\treturn new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\n ReconciliationService.exportFeeMismatchTransactions(iamportKey, environment, data).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n\t\t})\n\t},\n\n [EXPORT_RECON_SUMMERY_INTO_CSV]({ commit, rootState }, data) {\n return new Promise((resolve, reject) => {\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\n data.environment = rootState.auth.environment;\n ReconciliationService.exportReconSummery(iamportKey, data).then((response) => {\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n\t\t})\n },\n [FETCH_RECON_METABASE_RESULT]({ commit, rootState }, {currency, frequency}) {\n return new Promise((resolve, reject) => {\n const environment = rootState.auth.environment;\n const iamportKey = rootState.auth.currentUser.iamportKey;\n\t\t\tReconciliationService.getReconMetabaseResult(iamportKey, environment, currency, frequency).then((response) => {\n\t\t\t\tcommit(RECON_METABASE_RESULT_IN_STORE, response.data)\n\t\t\t\tresolve(response);\n\t\t\t}).catch(reject)\n\t\t})\n },\n}\n\nexport const namespaced = true;\n","import Headers from '../headers';\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const PaymentGatewayService = {\n getPaymentChannelCredentials,\n updatePaymentChannelCredentials,\n getWebhooksData,\n addWebhookData,\n deleteWebhookData,\n updateWebhookData,\n updateWebhookByFormData,\n getPayoutChannelCredentials,\n updatePayoutChannelCredentials,\n updateSecureSecretKeyData\n};\n\nfunction getPaymentChannelCredentials(merchantUUID) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/paychannels`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updatePaymentChannelCredentials(merchantUUID, pmtChannelId, channelDetails) {\n // channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ creds: channelDetails }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/paychannel/${pmtChannelId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getWebhooksData(merchantUUID, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/webhooks?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction addWebhookData(merchantUUID, webhookData) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n body: JSON.stringify(webhookData),\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/webhooks`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateWebhookData(merchantUUID, webhookData) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(webhookData),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/webhooks/${webhookData.uuid}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getPayoutChannelCredentials(merchantUUID, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment});\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/payout-channels?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updatePayoutChannelCredentials(merchantUUID, pmtChannelId, channelDetails) {\n // Channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ creds: channelDetails }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/paychannel/${pmtChannelId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction updateWebhookByFormData(merchantUUID, key, webhookData) {\n const requestOptions = {\n method: 'PUT',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(webhookData),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/update-webhook`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\n\nfunction deleteWebhookData(merchantUUID, linkRef, key) {\n const requestOptions = {\n method: 'DELETE',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/delete-webhook/${linkRef}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateSecureSecretKeyData(merchantUUID, key, secretKeyData) {\n // Channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ creds: secretKeyData }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${key}/reset-chaiport-securesecret`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}","import Headers from '../headers'\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const DashboardService = {\n fetchTransactionsStats,\n fetchLates_txn,\n fetchTransactionVolume,\n fetchTransactionSeasonality, \n fetchTransactionVolForAllPieCharts,\n fetchTransactionStackedBar,\n fetchTransactionsStatus,\n fetchTransactionVolForAllPieChartsMetrics,\n fetchTransactionsStatistics\n};\n\nfunction fetchTransactionsStats(merchantUUId, isMasterMerchant, merchant_uuids, environment, currency, from_date, to_date) {\n const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,offset,\"uuids\":uuidsToSend, currency, \"time_filter\": {\"to\": to_date,\"from\": from_date}}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUId}/analytics/net-transactions-data`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n })\n }\n });\n}\n\nfunction fetchLates_txn(merchantUUId, isMasterMerchant, merchant_uuids, environment) {\n // const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = []\n }\n\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,\"uuids\":uuidsToSend,}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUId}/analytics/latest-txns`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchTransactionsStatistics(merchantUUId, isMasterMerchant, merchant_uuids, environment, currency, from_date, to_date, time_bracket) {\n const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,offset,\"uuids\":uuidsToSend, currency,\"time_bracket\": time_bracket, \"time_filter\": {\"to\": to_date,\"from\": from_date}}),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUId}/analytics/txn-bar-chart-metrics`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchTransactionsStatus(merchantUUId, isMasterMerchant, merchant_uuids, environment, currency, from_date, to_date) {\n const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,offset,\"uuids\":uuidsToSend, currency,\"time_filter\": {\"to\": to_date,\"from\": from_date}}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUId}/analytics/txn-status-metrics`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchTransactionVolForAllPieCharts(merchantUUId, filter, aggtype, isMasterMerchant, merchant_uuids, environment, currency) {\n const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,filter,aggtype,offset,\"uuids\":uuidsToSend, currency}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/analytics/pie-charts/${merchantUUId}?`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchTransactionVolForAllPieChartsMetrics(merchantUUId, isMasterMerchant, merchant_uuids, environment, currency, from_date, to_date) {\n const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,offset,\"uuids\":uuidsToSend, currency , \"time_filter\": {\"to\": to_date,\"from\": from_date}}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUId}/analytics/pie-charts-metrics?`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchTransactionVolume(merchantUUId, filter, isMasterMerchant, merchant_uuids, environment, currency) {\n const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,filter,offset,\"uuids\":uuidsToSend, currency}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/analytics/txn-volume-graph/${merchantUUId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchTransactionSeasonality(merchantUUId, filter, isMasterMerchant, merchant_uuids, environment, currency) {\n const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,filter,offset,\"uuids\":uuidsToSend, currency}),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/api/analytics/txn-volume-seasonality-graph/${merchantUUId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction fetchTransactionStackedBar(merchantUUId, filter, isMasterMerchant, merchant_uuids, environment, currency) {\n const offset = new Date().getTimezoneOffset();\n if(isMasterMerchant){\n if(merchant_uuids.length > 0){\n var uuidsToSend = merchant_uuids.map(function (item) {\n return item.uuid;\n });\n }else{\n uuidsToSend = [];\n }\n }else{\n uuidsToSend = [merchantUUId]\n }\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment,filter,offset,\"uuids\":uuidsToSend, currency}),\n credentials: 'include',\n }\n return fetch(`${CHAIPAY_API_URL}/api/analytics/txn-volume-status-stacked/${merchantUUId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n","import { DashboardService } from '../../helpers/backend/dashboard.service';\nimport * as cloneDeep from \"lodash.clonedeep\";\nimport {\n FETCH_TRANSACTION_STATUS,\n FETCH_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS_METRICS,\n FETCH_TRANSACTION_STATISTICS,\n FETCH_TRANSACTION_STATS,\n FETCH_TRANSACTION_VOLUME,\n FETCH_TRANSACTION_VOLUME_SEASONALITY,\n FETCH_TRANSACTION_VOLUME_STACKED_BAR,\n FETCH_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS,\n FETCH_LATEST_TXNS\n} from '../actions.type';\nimport {\n ADD_TRANSACTION_STATS_IN_STORE, \n ADD_TRANSACTION_STATISTICS_IN_STORE,\n ADD_TRANSACTION_STATUS_IN_STORE,\n ADD_TRANSACTION_VOLUME_IN_STORE,\n ADD_TRANSACTION_SEASONALITY_IN_STORE,\n ADD_TRANSACTION_VOLUME_BY_STATUS_IN_STORE,\n ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE,\n ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE_NEW,\n ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE,\n ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE_NEW,\n ADD_TRANSACTION_STACKED_BAR_IN_STORE,\n UPDATE_DASHBOARD_FETCHING_STATE,\n ADD_LATEST_TXNS_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n txn_stats: {},\n txn_status:{},\n txn_vol: { labels: [], datasets: [] },\n txn_vol_seasonality: { labels: [], datasets: [] },\n txn_vol_by_status: { labels: [], datasets: [] },\n txn_vol_by_pmt_channel: { labels: [], datasets: [] },\n txn_vol_by_pmt_channel_new: {\n labels: [ 'No data'],\n datasets: [{\n label: 'pie chart',\n data: [1],\n count_data:[1],\n backgroundColor: [\n '#d2dee2'\n ],\n }]\n },\n txn_vol_by_pmt_method: { labels: [], datasets: [] },\n txn_vol_by_pmt_method_new: {\n labels: [ 'No data'],\n datasets: [{\n label: 'pie chart',\n data: [1],\n count_data:[1],\n backgroundColor: [\n '#d2dee2'\n ],\n }]\n },\n txn_vol_stacked_bar: { labels: [], datasets: [] },\n txn_vol_statistics_bar: { labels: [], datasets: [] },\n is_fetching_stacked_bar_data:false,\n is_fetching_status_data:false,\n is_fetching_pieChart_data:false,\n is_fetching_txn_stats_data: false,\n lates_txn:[]\n}\n\nexport const mutations = {\n [ADD_TRANSACTION_STATS_IN_STORE](state, stats) {\n state.txn_stats = stats;\n },\n [ADD_LATEST_TXNS_IN_STORE](state, newTransactionData) {\n state.lates_txn = newTransactionData;\n },\n [ADD_TRANSACTION_STATUS_IN_STORE](state, stats) {\n state.txn_status = stats;\n },\n [ADD_TRANSACTION_STATISTICS_IN_STORE](state, stats) {\n state.txn_vol_statistics_bar = stats;\n },\n [ADD_TRANSACTION_VOLUME_IN_STORE](state, txnVol) {\n state.txn_vol = txnVol;\n },\n [ADD_TRANSACTION_SEASONALITY_IN_STORE](state, txnVolSeasonality) {\n state.txn_vol_seasonality = txnVolSeasonality;\n },\n [ADD_TRANSACTION_VOLUME_BY_STATUS_IN_STORE](state, txnVolByStatus) {\n state.txn_vol_by_status = txnVolByStatus;\n },\n [ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE](state, txnVolByChannel) {\n state.txn_vol_by_pmt_channel = txnVolByChannel;\n },\n [ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE_NEW](state, txnVolByChannel) {\n state.txn_vol_by_pmt_channel_new = cloneDeep(txnVolByChannel);\n },\n [ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE](state, txnVolByMethod) {\n state.txn_vol_by_pmt_method = txnVolByMethod;\n },\n [ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE_NEW](state, txnVolByMethod) {\n state.txn_vol_by_pmt_method_new = cloneDeep(txnVolByMethod);\n },\n [ADD_TRANSACTION_STACKED_BAR_IN_STORE](state, txnVolForStackedBar) {\n state.txn_vol_stacked_bar = txnVolForStackedBar;\n },\n [UPDATE_DASHBOARD_FETCHING_STATE](state, felchedState) {\n if(felchedState.type == \"stack_bar\"){\n state.is_fetching_stacked_bar_data = felchedState.value;\n }else if(felchedState.type == 'status'){\n state.is_fetching_status_data = felchedState.value;\n }else if(felchedState.type == 'pieChart'){\n state.is_fetching_pieChart_data = felchedState.value;\n }else if(felchedState.type == 'txn_stats') {\n state.is_fetching_txn_stats_data = felchedState.value;\n }\n }\n}\n\nexport const getters = {\n isNavIsFatching(state) {\n return state.is_fetching_stacked_bar_data || state.is_fetching_status_data || state.is_fetching_pieChart_data ? true : false;\n },\n}\n\nexport const actions = {\n\n [FETCH_TRANSACTION_STATS](context, {isMasterMerchant, merchant_uuids, currency, from_date, to_date} = {}) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:true,type:'txn_stats'});\n DashboardService.fetchTransactionsStats(merchantUUID, isMasterMerchant, merchant_uuids, environment, currency, from_date, to_date).then((stats) => {\n context.commit(ADD_TRANSACTION_STATS_IN_STORE, stats)\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'txn_stats'});\n resolve(stats);\n }).catch((error) => {\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'txn_stats'});\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_LATEST_TXNS](context, {isMasterMerchant, merchant_uuids} = {}) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n DashboardService.fetchLates_txn(merchantUUID, isMasterMerchant, merchant_uuids, environment).then((response) => {\n if(response.content === null) {\n\t\t\t\t\tresponse.content = [];\n\t\t\t\t}\n context.commit(ADD_LATEST_TXNS_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_TRANSACTION_STATISTICS](context, {isMasterMerchant, merchant_uuids, currency, from_date, to_date, time_bracket} = {}) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:true,type:'stack_bar'});\n DashboardService.fetchTransactionsStatistics(merchantUUID, isMasterMerchant, merchant_uuids, environment, currency, from_date, to_date, time_bracket).then((stats) => {\n context.commit(ADD_TRANSACTION_STATISTICS_IN_STORE, stats)\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'stack_bar'});\n resolve(stats);\n }).catch((error) => {\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'stack_bar'});\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_TRANSACTION_STATUS](context, {isMasterMerchant, merchant_uuids, currency, from_date, to_date} = {}) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:true,type:'status'});\n DashboardService.fetchTransactionsStatus(merchantUUID, isMasterMerchant, merchant_uuids, environment, currency, from_date, to_date).then((stats) => {\n context.commit(ADD_TRANSACTION_STATUS_IN_STORE, stats)\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'status'});\n resolve(stats);\n }).catch((error) => {\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'status'});\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS](context, {filter, aggtype, isMasterMerchant, merchant_uuids, currency} = {}) {\n // context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:true,type:'pieChart'});\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n DashboardService.fetchTransactionVolForAllPieCharts(merchantUUID, filter, aggtype, isMasterMerchant, merchant_uuids, environment, currency).then((txnData) => {\n // context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'pieChart'});\n context.commit(ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE, txnData.txnVolumeByChannel)\n context.commit(ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE, txnData.txnVolumeByMethod)\n context.commit(ADD_TRANSACTION_VOLUME_BY_STATUS_IN_STORE, txnData.txnVolumeByStatus)\n resolve(txnData);\n }).catch((error) => {\n // context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'pieChart'});\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_TRANSACTION_DATA_FOR_DOUGHNUT_CHARTS_METRICS](context, {isMasterMerchant, merchant_uuids, currency, from_date, to_date} = {}) {\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:true,type:'pieChart'});\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n DashboardService.fetchTransactionVolForAllPieChartsMetrics(merchantUUID, isMasterMerchant, merchant_uuids, environment, currency, from_date, to_date).then((txnData) => {\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'pieChart'});\n context.commit(ADD_TRANSACTION_VOLUME_BY_CHANNEL_IN_STORE_NEW, txnData.txnVolumeByChannel)\n context.commit(ADD_TRANSACTION_VOLUME_BY_METHOD_IN_STORE_NEW, txnData.txnVolumeByMethod)\n resolve(txnData);\n }).catch((error) => {\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'pieChart'});\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_TRANSACTION_VOLUME](context, {filter, isMasterMerchant, merchant_uuids, currency} = {}) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n DashboardService.fetchTransactionVolume(merchantUUID, filter, isMasterMerchant, merchant_uuids, environment, currency).then((response) => {\n context.commit(ADD_TRANSACTION_VOLUME_IN_STORE, response.txnVolume)\n resolve(response.txnVolume);\n }).catch((error) => {\n console.log('txnVolume error', error)\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_TRANSACTION_VOLUME_SEASONALITY](context, {filter, isMasterMerchant, merchant_uuids, currency} = {}) {\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:true,type:'seasonality'});\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n DashboardService.fetchTransactionSeasonality(merchantUUID, filter, isMasterMerchant, merchant_uuids, environment, currency).then((response) => {\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'seasonality'});\n context.commit(ADD_TRANSACTION_SEASONALITY_IN_STORE, response.txnSeasonality)\n resolve(response.txnSeasonality);\n }).catch((error) => {\n console.log('txnSeasonality error', error)\n context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'seasonality'});\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n\n [FETCH_TRANSACTION_VOLUME_STACKED_BAR](context, {filter, isMasterMerchant, merchant_uuids, currency} = {}) {\n // context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:true,type:'stack_bar'});\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n DashboardService.fetchTransactionStackedBar(merchantUUID, filter, isMasterMerchant, merchant_uuids, environment, currency).then((response) => {\n // context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'stack_bar'});\n context.commit(ADD_TRANSACTION_STACKED_BAR_IN_STORE, response.chartData)\n resolve(response.chartData);\n }).catch((error) => {\n console.log('txnStackedBar error', error)\n //TODO: REMOVE THIS\n // context.commit(UPDATE_DASHBOARD_FETCHING_STATE, {value:false,type:'stack_bar'});\n context.commit(ADD_TRANSACTION_STACKED_BAR_IN_STORE, undefined)\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n });\n },\n}\n\nexport const namespaced = true;\n","module.exports = \"data:image/webp;base64,UklGRpwAAABXRUJQVlA4TJAAAAAvHwOFACdAmG1EMpUJzP99KKdBkG0DMqMRzPKIJ5O2MdK/VMn8K9r8x/8sMQsqKGgjRcICFrCABfx7u7cR/c/kP//5z3/+85///Oc///nPf/7zn//85//9VMsR/Oc///nPf/7zn//85z//+c9//vOf//y/n2Y5mv/85z//+c9//vOf//znP//5z3/+85//9xM=\"","module.exports = __webpack_public_path__ + \"img/mongolia.34b64d4c.svg\";","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARMAAAC3CAMAAAAGjUrGAAAAIVBMVEX////OESfOESbq6urssrfMAA3NFirMABTfpKnr7+/a2tqcCwSUAAABf0lEQVR4nO3SwQ3CMAAEQSeGJNB/wYgXMlsAPGYqOK1uHBurYxz7tvOx7cdQ5Nv2bvLrs/4VTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqTejc576zOcd1YXeMxWD3G/PWEvzM1CU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9KkNClNSpPSpDQpTUqT0qQ0KU1Kk9Kk5nhOVs8XvjdzZbCXb9MAAAAASUVORK5CYII=\"","module.exports = __webpack_public_path__ + \"img/cambodia.db440556.svg\";","import Headers from '../headers';\n\nexport const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\nexport const PaymentChannelService = {\n getPaymentChannelCredentials,\n getPreviewPaymentChannels,\n getPaymentChannelPayoutCredentials,\n getSelectedPaymentChannelCredentials,\n getPaymentOnboardingEntry,\n getPaymentMethodsCredentials,\n updatePaymentChannelCredential,\n addPaymentChannelCredential,\n updateEnableAndDefaultStatusForMethod,\n onboardingStatusCheckApi,\n updateInstalmentTypeData,\n addPaymentMethodImportCredData,\n getPreviewIamportCredsData\n};\n\nfunction getPaymentChannelCredentials(merchantUUID,country,paymentMethod, paymentType, environment) {\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment, \"countries\": country, \"pmt_method\": paymentMethod, \"pmt_type\": paymentType }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/list-pay-channels`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getPreviewPaymentChannels(merchantUUID, chaiPayKey, currency, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment, currency})\n return fetch(`${CHAIPAY_API_URL}/merchants/${chaiPayKey}/paymethodsbyKey?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction onboardingStatusCheckApi(merchantUUID, chaiPayKey, environment, psp) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({\"iamport_key\":chaiPayKey,\"env\":environment})\n return fetch(`${CHAIPAY_API_URL}/api/onboarding/${psp}/status?`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction getPaymentChannelPayoutCredentials(merchantUUID, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment})\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/list-payout-channels?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction getSelectedPaymentChannelCredentials(merchantUUID,channelName,payType, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment, payType})\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/pay-channels/${channelName}?`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction getPaymentOnboardingEntry(merchantUUID, iamport_key,environment, channelName) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({iamport_key,\"env\":environment})\n return fetch(`${CHAIPAY_API_URL}/api/onboarding/${channelName.toLowerCase()}?`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\nfunction getPaymentMethodsCredentials(merchantUUID, channel_key, environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment})\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/pay-methods/${channel_key}?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updatePaymentChannelCredential(merchantUUID, pmtChannelId, channelDetails, country, environment) {\n // channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({environment, creds: channelDetails, country: country }),\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/update-paychannel/${pmtChannelId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction addPaymentChannelCredential(merchantUUID, pmtChannelId, channelDetails, country, environment, is_va_flow) {\n // channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify({ environment, creds: channelDetails, country: country, is_va_flow: is_va_flow }),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/add-paychannel/${pmtChannelId}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateEnableAndDefaultStatusForMethod(merchantUUID, statusData, channelName) {\n // channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify( statusData ),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/update-pay-methods/${channelName}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction updateInstalmentTypeData(merchantUUID, reqData, channelName) {\n // channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify( reqData ),\n credentials: 'include',\n };\n\n return fetch(`${CHAIPAY_API_URL}/merchants/${merchantUUID}/update-pay-methods/${channelName}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n\nfunction addPaymentMethodImportCredData(channel_key, environment,reqData){\n // channel details vary from channel to channel\n const requestOptions = {\n method: 'POST',\n headers: Headers.apiHeaders(),\n body: JSON.stringify(reqData),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment})\n return fetch(`${CHAIPAY_API_URL}/merchants/creds/portone_kr/${channel_key}?`+ queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n\n}\nfunction getPreviewIamportCredsData(chaiPayKey,environment) {\n const requestOptions = {\n method: 'GET',\n headers: Headers.apiHeaders(),\n credentials: 'include',\n };\n const queryParams = new URLSearchParams({environment})\n return fetch(`${CHAIPAY_API_URL}/merchants/list-creds/portone_kr/${chaiPayKey}?` + queryParams, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n}\n","export const CHAIPAY_API_URL = process.env.VUE_APP_CHAIPAY_BACKEND_URL;\n\nexport const OnboardingFormService = {\n fetchonboardingformdata,\n addonboardingformdata,\n \n};\n\n// function fetchformdata() {\n// const requestOptions = {\n// method: 'GET',\n// headers: { 'Content-Type': 'application/json' },\n// credentials: 'include',\n// };\n// //const queryParams = new URLSearchParams({environment});\n// return fetch(`${CHAIPAY_API_URL}/onboarding/merchants/cadfc143-a968-41ed-b408-163cb5dffc44/GBPRIMEPAY?environment=sandbox`, requestOptions).then(async response => {\n// const data = await response.json();\n \n// if (!response.ok) {\n// // get error message from body or default to response statusText\n// const error = (data && data.message) || response.statusText;\n// this.errorMessage = error;\n// return Promise.reject(error);\n// }\n \n// //debugger;\n// this.formdata = data.formData.map( val =>{\n// console.log(typeof data.initialValues[val.fieldName]);\n\n// val.value = data.initialValues[val.fieldName] == undefined ? \"\" : data.initialValues[val.fieldName];\n// val.disabled = data.initialValues[val.fieldName] == undefined ? false : true;\n// return val\n\n// }) ;\n// })\n// .catch(error => {\n// this.errorMessage = error;\n// console.error(\"There was an error!\", error);\n// });\n \n \n// }\n\n\nfunction fetchonboardingformdata(merchantUUID, environment, channelName) {\n var queryParams = new URLSearchParams(window.location.search)\n channelName = queryParams.get(\"channelName\")\n const requestOptions = {\n method: 'GET',\n headers: { 'Content-Type': 'application/json' },\n credentials: 'include',\n };\n return fetch(`${CHAIPAY_API_URL}/onboarding/merchants/${merchantUUID}/${channelName}?environment=${environment}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n }\n\n\n function addonboardingformdata(merchantUUID, environment, reqBody) {\n\n // channel details vary from channel to channel\n var queryParams = new URLSearchParams(window.location.search)\n var channelName = queryParams.get(\"channelName\")\n const requestOptions = {\n method: 'POST',\n headers: { \n \"Accept\": \"application/json\",\n },\n body: reqBody,\n credentials: 'include',\n };\n \n return fetch(`${CHAIPAY_API_URL}/onboarding/merchants/${merchantUUID}/${channelName}?environment=${environment}`, requestOptions).then((response) => {\n if (response.ok) {\n return response.json();\n } else {\n return response.text().then(text => {\n if(response.status === 401 && JSON.parse(text).status_reason === 'INVALID_UNAUTHORIZED_JWT_TOKEN_ERROR') {\n window.location = window.location.origin + '/logout';\n }\n throw new Error(text);\n });\n }\n });\n }\n \n \n\n\n","import { PaymentChannelService } from '../../helpers/backend/payment_channel.service';\nimport { OnboardingFormService } from \"../../helpers/backend/onboarding_form.service\";\nimport * as cloneDeep from \"lodash.clonedeep\";\nimport {\n\tFETCH_ALL_PAYMENT_CHANNEL,\n FETCH_ALL_PAYMENT_CHANNEL_FOR_PREVIEW,\n FETCH_ALL_PAYMENT_PAYOUT_CHANNEL,\n\tFETCH_SELECTED_PAYMENT_CHANNEL_CREDENTIALS,\n\tFETCH_PAYMENT_METHODS_CREDENTIALS,\n FETCH_PAYMENT_METHODS_CREDENTIALS_COUNT,\n\tUPDATE_PAYMENT_METHOD_CREDENTIALS,\n\tADD_PAYMENT_METHOD_CREDENTIALS,\n\tUPDATE_ENABLE_AND_DEFAULT_STATUS,\n FETCH_PAYMENT_ONBOARDING,\n ONBOARDING_STATUS_CHECK,\n FETCH_ONBOARDING_FORM_DATA,\n ADD_ONBOARDING_FORM_DATA,\n UPDATE_INSTALMENT_TYPE_DATA,\n ADD_PAYMENT_METHOD_IMPORT_CREDENTIALS,\n FETCH_PREVIEW_IAMPORT_CREDENTIALS\n\n} from '../actions.type';\nimport {\n UPDATE_ALL_PAYMENT_CHANNEL_IN_STORE,\n CLEAR_ALL_PAYMENT_CHANNEL_IN_STORE,\n UPDATE_ALL_PREVIEW_PAYMENT_CHANNEL_IN_STORE,\n UPDATE_ALL_PAYMENT_PAYOUT_CHANNEL_IN_STORE,\n UPDATE_SELECTED_PAYMENT_CHANNEL_DETAILS_IN_STORE,\n UPDATE_PAYMENT_METHODS_DETAILS_IN_STORE,\n UPDATE_PAYMENT_METHODS_DETAILS_COUNT_IN_STORE,\n UPDATE_PAYMENT_ONBOARDING_DETAILS_IN_STORE,\n UPDATE_ONBOARDING_FORM_DATA ,\n UPDATE_PAYMENT_CHANNEL_ONBOARDING_FORM_DATA,\n ADD_IMPORT_CREDS_IN_STORE,\n UPDATE_IAMPORT_CREDENTIALS_IN_STORE\n} from '../mutations.type';\n\nexport const state = {\n\tchannels: {},\n payoutChannels:{},\n\tselectedChannelCreds: [],\n previewChannels: {},\n selectedChannelMethods: [],\n methosDetailsCount:{},\n onboardingDetailsEntry:{},\n onboardingFormData:{},\n reqBody:{},\n\n}\n\nexport const mutations = {\n [UPDATE_ALL_PAYMENT_CHANNEL_IN_STORE](state, { entityKey, entityDetails }) {\n state.channels[entityKey] = entityDetails\n state.channels = cloneDeep(state.channels)\n },\n\n [UPDATE_ONBOARDING_FORM_DATA](state, formdata) {\n state.onboardingFormData = formdata\n },\n\n [UPDATE_PAYMENT_CHANNEL_ONBOARDING_FORM_DATA](state, formvalues){\n state.reqBody = formvalues;\n },\n\n [CLEAR_ALL_PAYMENT_CHANNEL_IN_STORE](state, entityDetails) {\n state.channels = entityDetails\n },\n [UPDATE_ALL_PREVIEW_PAYMENT_CHANNEL_IN_STORE](state, entityDetails ) {\n state.previewChannels = entityDetails\n },\n [UPDATE_ALL_PAYMENT_PAYOUT_CHANNEL_IN_STORE](state, { entityKey, entityDetails }) {\n state.payoutChannels[entityKey] = entityDetails\n state.payoutChannels = cloneDeep(state.payoutChannels)\n },\n [UPDATE_SELECTED_PAYMENT_CHANNEL_DETAILS_IN_STORE](state, entityDetails ) {\n state.selectedChannelCreds = entityDetails\n entityDetails.forEach((channel) => {\n if(channel.is_enabled){\n state.methosDetailsCount[channel.key]={}\n }\n });\n },\n [UPDATE_PAYMENT_ONBOARDING_DETAILS_IN_STORE](state, entityDetails ) {\n state.onboardingDetailsEntry = entityDetails\n },\n [ADD_IMPORT_CREDS_IN_STORE](state, importCreds) {\n state.importCreds = importCreds;\n },\n [UPDATE_IAMPORT_CREDENTIALS_IN_STORE](state, iamportUpdateCreds) {\n for(let key in iamportUpdateCreds) {\n if(!iamportUpdateCreds[key].available.includes(iamportUpdateCreds[key].current)) {\n iamportUpdateCreds[key].current = \"NA\";\n }\n }\n state.iamportUpdateCreds = iamportUpdateCreds\n },\n [UPDATE_PAYMENT_METHODS_DETAILS_IN_STORE](state, entityDetails ) {\n state.selectedChannelMethods = cloneDeep(entityDetails) \n },\n [UPDATE_PAYMENT_METHODS_DETAILS_COUNT_IN_STORE](state, { response, channel_key } ) {\n var walletLength = response.filter(function(item){\n return item.sub_type == \"WALLET\";\n }).length;\n var cardLength = response.filter(function(item){\n return item.type == \"CARD\" && item.sub_type == \"INT_CREDIT_CARD\";\n }).length;\n var atmCardLength = response.filter(function(item){\n return item.type == \"CARD\" && item.sub_type == \"ATM_CARD\";\n }).length;\n var allLength = response.filter(function(item){\n return item.type == \"ALL\";\n }).length;\n var walletEnabledLength = response.filter(function(item){\n return item.sub_type == \"WALLET\" && item.is_enabled;\n }).length;\n var cardEnabledLength = response.filter(function(item){\n return item.type == \"CARD\" && item.sub_type == \"INT_CREDIT_CARD\" && item.is_enabled;\n }).length;\n var atmCardEnabledLength = response.filter(function(item){\n return item.type == \"CARD\" && item.sub_type == \"ATM_CARD\" && item.is_enabled;\n }).length;\n var allEnabledLength = response.filter(function(item){\n return item.type == \"ALL\" && item.is_enabled;\n }).length;\n var subScriptionEnabledLength = response.filter(function(item){\n return item.type == \"SUBSCRIPTION\" && item.is_enabled;\n }).length;\n var dataToStore = {\n wallet:walletLength,\n card:cardLength,\n atmCard:atmCardLength,\n all:allLength,\n walletEnabled:walletEnabledLength,\n cardEnabled:cardEnabledLength,\n atmCardEnabled:atmCardEnabledLength,\n allEnabled:allEnabledLength,\n subscriptionEnabled:subScriptionEnabledLength\n }\n state.methosDetailsCount[channel_key] = dataToStore\n state.methosDetailsCount = cloneDeep(state.methosDetailsCount)\n },\n}\n\nexport const getters = {\n listOfCountry(state) {\n const allChannel = state.selectedChannelCreds;\n const arrayOfCountry = [];\n if(allChannel.length > 0){\n allChannel.forEach((channel) => {\n if(channel.is_enabled){\n arrayOfCountry.push(channel.country)\n }\n });\n }\n return arrayOfCountry;\n },\n listOfCountryForAddCred(state) {\n const allChannel = state.selectedChannelCreds;\n const arrayOfCountry = [];\n if(allChannel.length > 0){\n allChannel.forEach((channel) => {\n if(!channel.is_enabled){\n if(channel.country == \"GLOBAL\") {\n if(channel.key === 'ASIAPAY_GLOBAL' || channel.key === 'GBPRIMEPAY' || channel.key === 'PAYLETTER') {\n arrayOfCountry.push({\n \"key\":channel.country,\n \"value\":\"GLOBAL\"\n });\n } else {\n arrayOfCountry.push({\n \"key\":channel.country,\n \"value\":\"All\"\n });\n }\n } else {\n let regionNames = new Intl.DisplayNames(['en'], {type: 'region'});\n arrayOfCountry.push({\n \"key\":channel.country,\n \"value\": regionNames.of(channel.country)\n });\n }\n }\n });\n }\n return arrayOfCountry;\n },\n paymentChaneelSetupdata(state) {\n var selectedChannel = {};\n for (var v in state.channels) {\n if(state.channels[v].is_enabled && state.channels[v].type !== \"External\" && state.channels[v].key !== \"ADYEN\") {\n selectedChannel[v] = state.channels[v];\n }\n }\n return selectedChannel;\n },\n reconChaneelSetupdata(state) {\n var selectedChannel = {};\n for (var v in state.channels) {\n if(state.channels[v].is_enabled && state.channels[v].type == \"External\") {\n selectedChannel[v] = state.channels[v];\n }\n }\n return selectedChannel;\n },\n walletsForPreview(state) {\n var wallets = [];\n for (var v in state.previewChannels[\"WALLET\"]) {\n if(state.previewChannels[\"WALLET\"][v].is_enabled) {\n wallets.push(state.previewChannels[\"WALLET\"][v])\n }\n }\n return wallets;\n },\n bnplForPreview(state) {\n var wallets = [];\n for (var v in state.previewChannels[\"BNPL\"]) {\n if(state.previewChannels[\"BNPL\"][v].is_enabled) {\n wallets.push(state.previewChannels[\"BNPL\"][v])\n }\n }\n return wallets;\n },\n qrCodeForPreview(state) {\n var wallets = [];\n for (var v in state.previewChannels[\"QR_CODE\"]) {\n if(state.previewChannels[\"QR_CODE\"][v].is_enabled) {\n wallets.push(state.previewChannels[\"QR_CODE\"][v])\n }\n }\n return wallets;\n },\n walletsForPreviewTopImages(state) {\n var walletsImg = [];\n for (var v in state.previewChannels[\"WALLET\"]) {\n if( v < 3) {\n walletsImg.push(state.previewChannels[\"WALLET\"][v].logo)\n }\n }\n return walletsImg;\n },\n bnplForPreviewTopImages(state) {\n var walletsImg = [];\n for (var v in state.previewChannels[\"BNPL\"]) {\n if( v < 3) {\n walletsImg.push(state.previewChannels[\"BNPL\"][v].logo)\n }\n }\n return walletsImg;\n },\n qrCodeForPreviewTopImages(state) {\n var walletsImg = [];\n for (var v in state.previewChannels[\"QR_CODE\"]) {\n if( v < 3) {\n walletsImg.push(state.previewChannels[\"QR_CODE\"][v].logo)\n }\n }\n return walletsImg;\n },\n atmCardsForPreview(state) {\n var cards = state.previewChannels[\"CARD\"];\n var cardsData = []\n for (var v in cards) {\n if( cards[v].is_enabled && cards[v].is_default && cards[v].sub_type == 'ATM_CARD') {\n cardsData.push(cards[v])\n }\n }\n return cardsData;\n },\n cardsForPreview(state) {\n var cards = state.previewChannels[\"CARD\"];\n var cardsData = []\n for (var v in cards) {\n if( cards[v].is_enabled && cards[v].is_default && cards[v].sub_type == 'INT_CREDIT_CARD' && cards[v].tokenization_possible) {\n cardsData.push(cards[v])\n }\n }\n return cardsData;\n },\n cardsForPreviewWithoutTokenization(state) {\n var cards = state.previewChannels[\"CARD\"];\n var cardsData = []\n for (var v in cards) {\n if( cards[v].is_enabled && cards[v].is_default && cards[v].sub_type == 'INT_CREDIT_CARD' && !cards[v].tokenization_possible) {\n cardsData.push(cards[v])\n }\n }\n return cardsData;\n },\n cryptoForPreviewWithoutTokenization(state) {\n var cryptos = state.previewChannels[\"CRYPTO\"];\n var cryptosData = []\n for (var v in cryptos) {\n if( cryptos[v].is_enabled && cryptos[v].is_default) {\n cryptosData.push(cryptos[v])\n }\n }\n return cryptosData;\n },\n codForPreview(state) {\n var cods = state.previewChannels[\"COD\"];\n var codsData = []\n for (var v in cods) {\n if( cods[v].is_enabled) {\n codsData.push(cods[v])\n }\n }\n return codsData;\n },\n bankTransferForPreview(state) {\n var bankTransfer = state.previewChannels[\"BANK_TRANSFER\"];\n var bankTransferData = []\n for (var v in bankTransfer) {\n if( bankTransfer[v].is_enabled && bankTransfer[v].is_default) {\n bankTransferData.push(bankTransfer[v])\n }\n }\n return bankTransferData;\n },\n bankTransferPreviewForDirect(state) {\n var bankTransfer = state.previewChannels[\"BANK_TRANSFER\"];\n var bankTransferData = []\n for (var v in bankTransfer) {\n if( bankTransfer[v].is_enabled && bankTransfer[v].is_default && bankTransfer[v].payment_channel_key == \"EPAY\") {\n bankTransferData.push(bankTransfer[v])\n }\n }\n return bankTransferData;\n },\n paymentChaneelNotSetupdata(state) {\n var selectedChannel = {};\n for (var v in state.channels) {\n if(!state.channels[v].is_enabled && state.channels[v].type !== \"External\" && state.channels[v].key !== 'ADYEN') {\n selectedChannel[v] = state.channels[v];\n }\n }\n return selectedChannel;\n },\n reconChaneelNotSetupdata(state) {\n var selectedChannel = {};\n for (var v in state.channels) {\n if(!state.channels[v].is_enabled && state.channels[v].type == \"External\") {\n selectedChannel[v] = state.channels[v];\n }\n }\n return selectedChannel;\n },\n topBarData(state) {\n var selectedChannel = {};\n var queryParams = new URLSearchParams(window.location.search)\n var qrcode_channelName = queryParams.get(\"channelName\")\n for (var v in state.channels) {\n if(state.channels[v].key == qrcode_channelName) {\n selectedChannel = state.channels[v];\n }\n }\n return selectedChannel;\n },\n topBarPayoutData(state) {\n var selectedChannel = {};\n var queryParams = new URLSearchParams(window.location.search)\n var qrcode_channelName = queryParams.get(\"channelName\")\n for (var v in state.channels) {\n if(state.channels[v].key == qrcode_channelName) {\n selectedChannel = state.channels[v];\n }\n }\n return selectedChannel;\n },\n dataForWalletType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfWallets = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"WALLET\"){\n arrayOfWallets.push(channel);\n }\n });\n }\n return arrayOfWallets;\n },\n dataForBnplType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfBnpls = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"BNPL\"){\n arrayOfBnpls.push(channel);\n }\n });\n }\n return arrayOfBnpls;\n },\n dataForEMIType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfEmis = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"EMI\"){\n arrayOfEmis.push(channel);\n }\n });\n }\n return arrayOfEmis;\n },\n dataForUPIType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfUpis = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"UPI\"){\n arrayOfUpis.push(channel);\n }\n });\n }\n return arrayOfUpis;\n },\n dataForNetBankingType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfNetBankings = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"NET_BANKING\"){\n arrayOfNetBankings.push(channel);\n }\n });\n }\n return arrayOfNetBankings;\n },\n\n dataForQRCodeType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfQRCodes = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"QR_CODE\"){\n arrayOfQRCodes.push(channel);\n }\n });\n }\n return arrayOfQRCodes;\n },\n\n dataForOTCType(state){\n const allMethods = state.selectedChannelMethods;\n const arrayOfOTC = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"OTC\"){\n arrayOfOTC.push(channel);\n }\n });\n }\n return arrayOfOTC;\n\n },\n\n dataForCryptoType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfCryptos = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"CRYPTO\"){\n arrayOfCryptos.push(channel);\n }\n });\n }\n return arrayOfCryptos;\n },\n dataForBankTransferType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfBankTransfer = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"BANK_TRANSFER\"){\n arrayOfBankTransfer.push(channel);\n }\n });\n }\n return arrayOfBankTransfer;\n },\n dataForCodType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfWallets = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"COD\"){\n arrayOfWallets.push(channel);\n }\n });\n }\n return arrayOfWallets;\n },\n dataForPayByBankType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfPayByBank = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"PAY_BY_BANK\"){\n arrayOfPayByBank.push(channel);\n }\n });\n }\n return arrayOfPayByBank;\n },\n\n dataForDirectBankTransferType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfWallets = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"DIRECT_BANK_TRANSFER\"){\n arrayOfWallets.push(channel);\n }\n });\n }\n return arrayOfWallets;\n },\n\n\n dataForAllType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfWallets = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"ALL\"){\n arrayOfWallets.push(channel);\n }\n });\n }\n return arrayOfWallets;\n },\n dataForCardType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfCards = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"CARD\" && channel.sub_type == \"INT_CREDIT_CARD\"){\n arrayOfCards.push(channel);\n }\n });\n }\n return arrayOfCards;\n },\n\n dataForSmartButtonType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfSmartCards = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"SMARTBUTTON\"){\n arrayOfSmartCards.push(channel);\n }\n });\n }\n return arrayOfSmartCards;\n },\n\n dataForCreditDebitCardType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfCards = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"CARD\" && channel.sub_type == \"INT_CREDIT_DEBIT_CARD\"){\n arrayOfCards.push(channel);\n }\n });\n }\n return arrayOfCards;\n },\n\n dataForUnionPayCardType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfCards = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"CARD\" && channel.sub_type == \"UNIONPAY_CARD\"){\n arrayOfCards.push(channel);\n }\n });\n }\n return arrayOfCards;\n },\n\n dataForInstallmentType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfInstallment = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"INSTALLMENT\"){\n arrayOfInstallment.push(channel);\n }\n });\n }\n return arrayOfInstallment;\n },\n dataForAtmCardType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfCards = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"CARD\" && channel.sub_type == \"ATM_CARD\"){\n arrayOfCards.push(channel);\n }\n });\n }\n return arrayOfCards;\n },\n dataForDebitCardType(state) {\n const allMethods = state.selectedChannelMethods;\n const arrayOfDebitCards = [];\n if(allMethods.length > 0){\n allMethods.forEach((channel) => {\n if(channel.type == \"CARD\" && channel.sub_type == \"INT_DEBIT_CARD\"){\n arrayOfDebitCards.push(channel);\n }\n });\n }\n return arrayOfDebitCards;\n },\n dataForVaBankTransferType(state) {\n return state.selectedChannelMethods.filter(channel => channel.type == \"VA_BANK_TRANSFER\");\n },\n dataForDirectDebitType(state) {\n return state.selectedChannelMethods.filter(channel => channel.type == \"DIRECT_DEBIT\");\n },\n dataForSubscriptionType(state) {\n return state.selectedChannelMethods.filter((channel) => channel.type === \"SUBSCRIPTION_CARD\");\n },\n dataForSubscriptionBankTransferType(state) {\n return state.selectedChannelMethods.filter((channel) => channel.type === \"SUBSCRIPTION_BANK_TRANSFER\");\n },\n dataForSubscriptionDirectDebitType(state) {\n return state.selectedChannelMethods.filter((channel) => channel.type === \"SUBSCRIPTION_DIRECT_DEBIT\");\n },\n dataForSubscriptionAllType(state) {\n return state.selectedChannelMethods.filter((channel) => channel.type === \"SUBSCRIPTION_ALL\");\n },\n}\n\nexport const actions = {\n [FETCH_ALL_PAYMENT_CHANNEL](context, { country , paymentMethod, merchant_uuids, paymentType }) {\n return new Promise((resolve, reject) => {\n context.commit(CLEAR_ALL_PAYMENT_CHANNEL_IN_STORE, {})\n let merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n if(merchant_uuids){\n merchantUUID = merchant_uuids;\n }\n const environment = context.rootState.auth.environment;\n PaymentChannelService.getPaymentChannelCredentials(merchantUUID,country,paymentMethod, paymentType, environment).then((response) => {\n (response || []).forEach((payChannel) => {\n context.commit(UPDATE_ALL_PAYMENT_CHANNEL_IN_STORE, {entityKey: payChannel.key, entityDetails: payChannel})\n });\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_ALL_PAYMENT_CHANNEL_FOR_PREVIEW](context, { chaiPayKey, currency, merchant_uuids }) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n if(merchant_uuids){\n chaiPayKey = merchant_uuids.key;\n }\n PaymentChannelService.getPreviewPaymentChannels(merchantUUID,chaiPayKey,currency, environment).then((response) => {\n context.commit(UPDATE_ALL_PREVIEW_PAYMENT_CHANNEL_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [ONBOARDING_STATUS_CHECK](context, { chaiPayKey, merchant_uuids, psp }) {\n return new Promise((resolve, reject) => {\n const environment = context.rootState.auth.environment;\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n if(merchant_uuids){\n chaiPayKey = merchant_uuids.key;\n }\n PaymentChannelService.onboardingStatusCheckApi(merchantUUID, chaiPayKey, environment, psp).then((response) => {\n // context.commit(UPDATE_ALL_PREVIEW_PAYMENT_CHANNEL_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_ALL_PAYMENT_PAYOUT_CHANNEL](context) {\n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n PaymentChannelService.getPaymentChannelPayoutCredentials(merchantUUID, environment).then((response) => {\n (response || []).forEach((payChannel) => {\n context.commit(UPDATE_ALL_PAYMENT_PAYOUT_CHANNEL_IN_STORE, {entityKey: payChannel.key, entityDetails: payChannel})\n });\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_SELECTED_PAYMENT_CHANNEL_CREDENTIALS](context, { channelName, payType, merchant_uuids }) {\n return new Promise((resolve, reject) => {\n if(merchant_uuids){\n var merchantUUID = merchant_uuids;\n }else{\n merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n }\n const environment = context.rootState.auth.environment;\n PaymentChannelService.getSelectedPaymentChannelCredentials(merchantUUID,channelName,payType, environment).then((response) => {\n context.commit(UPDATE_SELECTED_PAYMENT_CHANNEL_DETAILS_IN_STORE, response.content)\n // context.commit(UPDATE_PAYMENT_METHODS_DETAILS_IN_STORE, [])\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_PAYMENT_ONBOARDING](context, { channelName, payType, merchant_key }) {\n return new Promise((resolve, reject) => {\n let iamport_key;\n if(merchant_key){\n iamport_key = merchant_key;\n }else{\n iamport_key = context.rootState.auth.currentUser.iamportKey;\n }\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment;\n PaymentChannelService.getPaymentOnboardingEntry(merchantUUID, iamport_key, environment,channelName,payType).then((response) => {\n context.commit(UPDATE_PAYMENT_ONBOARDING_DETAILS_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_PAYMENT_METHODS_CREDENTIALS](context, { channel_key, merchant_uuids }) {\n return new Promise((resolve, reject) => {\n if(merchant_uuids){\n var merchantUUID = merchant_uuids;\n }else{\n merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n }\n const environment = context.rootState.auth.environment;\n PaymentChannelService.getPaymentMethodsCredentials(merchantUUID,channel_key, environment).then((response) => {\n context.commit(UPDATE_PAYMENT_METHODS_DETAILS_IN_STORE, response)\n context.commit(UPDATE_PAYMENT_METHODS_DETAILS_COUNT_IN_STORE, {response:response,channel_key:channel_key})\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [FETCH_PAYMENT_METHODS_CREDENTIALS_COUNT](context, { channel_key, merchant_uuids }) {\n return new Promise((resolve, reject) => {\n if(merchant_uuids){\n var merchantUUID = merchant_uuids;\n }else{\n merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n }\n const environment = context.rootState.auth.environment;\n PaymentChannelService.getPaymentMethodsCredentials(merchantUUID,channel_key, environment).then((response) => {\n context.commit(UPDATE_PAYMENT_METHODS_DETAILS_COUNT_IN_STORE, {response:response,channel_key:channel_key})\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [UPDATE_PAYMENT_METHOD_CREDENTIALS](context, { channelId, payChannel, payType, merchant_uuids }) {\n return new Promise((resolve, reject) => {\n if(merchant_uuids){\n var merchantUUID = merchant_uuids;\n }else{\n merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n }\n // context.commit(UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE, { entityKey: channelId, entityDetails: payChannel })\n const updatedCredentials = payChannel.creds;\n\t\t\tconst country = payChannel.country;\n const environment = context.rootState.auth.environment;\n PaymentChannelService.updatePaymentChannelCredential(merchantUUID, channelId, updatedCredentials, country, environment).then((response) => {\n // context.dispatch(`${FETCH_PAYMENT_CHANNEL_CREDENTIALS}`);\n\t\t\t\tvar queryParams = new URLSearchParams(window.location.search)\n\t\t\t\tcontext.dispatch(`${FETCH_SELECTED_PAYMENT_CHANNEL_CREDENTIALS}`, {\n\t\t\t\t\tchannelName: queryParams.get(\"channelName\"),\n\t\t\t\t\tpayType: payType,\n merchant_uuids\n\t\t\t\t});\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [ADD_PAYMENT_METHOD_CREDENTIALS](context, { channelId, payChannel, payType, is_va_flow, merchant_uuids }) {\n return new Promise((resolve, reject) => {\n if(merchant_uuids){\n var merchantUUID = merchant_uuids;\n }else{\n merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n }\n // context.commit(UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE, { entityKey: channelId, entityDetails: payChannel })\n const updatedCredentials = payChannel.creds;\n const country = payChannel.country;\n const environment = context.rootState.auth.environment;\n PaymentChannelService.addPaymentChannelCredential(merchantUUID, channelId, updatedCredentials, country, environment, is_va_flow).then((response) => {\n // context.dispatch(`${FETCH_PAYMENT_CHANNEL_CREDENTIALS}`);\n\t\t\t\tvar queryParams = new URLSearchParams(window.location.search)\n\t\t\t\tcontext.dispatch(`${FETCH_SELECTED_PAYMENT_CHANNEL_CREDENTIALS}`, {\n\t\t\t\t\tchannelName: queryParams.get(\"channelName\"),\n\t\t\t\t\tpayType: payType,\n merchant_uuids\n\t\t\t\t});\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n [UPDATE_ENABLE_AND_DEFAULT_STATUS](context, { statusData, countryForMethod, merchant_uuids }) {\n return new Promise((resolve, reject) => {\n if(merchant_uuids){\n var merchantUUID = merchant_uuids;\n }else{\n merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n }\n const environment = context.rootState.auth.environment;\n statusData['environment'] = environment;\n PaymentChannelService.updateEnableAndDefaultStatusForMethod(merchantUUID, statusData, countryForMethod).then((response) => {\n\t\t\t\tcontext.dispatch(`${FETCH_PAYMENT_METHODS_CREDENTIALS}`, {\n\t\t\t\t\tchannel_key:countryForMethod,\n merchant_uuids\n\t\t\t\t});\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.Message, { root: true })\n reject(error);\n })\n })\n },\n\n [FETCH_ONBOARDING_FORM_DATA](context, { merchant_uuids }) {\n \n return new Promise((resolve, reject) => {\n var merchantUUID = \"\";\n if(merchant_uuids){\n merchantUUID = merchant_uuids;\n }else{\n merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n }\n const environment = context.rootState.auth.environment;\n OnboardingFormService.fetchonboardingformdata(merchantUUID, environment).then((response) => {\n context.commit(UPDATE_ONBOARDING_FORM_DATA, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.message, { root: true })\n reject(error);\n })\n })\n },\n\n\n [ADD_ONBOARDING_FORM_DATA](context, {reqBody}) {\n \n return new Promise((resolve, reject) => {\n const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n const environment = context.rootState.auth.environment; \n OnboardingFormService.addonboardingformdata(merchantUUID, environment, reqBody).then((response) => {\n context.commit(UPDATE_PAYMENT_CHANNEL_ONBOARDING_FORM_DATA, {formvalues:response})\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n console.log(errorObject)\n context.commit('notification/error', errorObject.statusChannelReason, { root: true })\n reject(error);\n })\n })\n },\n [UPDATE_INSTALMENT_TYPE_DATA](context, {reqBody, channelName, merchant_uuids}) {\n return new Promise((resolve, reject) => {\n if(merchant_uuids){\n var merchantUUID = merchant_uuids;\n }else{\n merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n }\n // const merchantUUID = context.rootState.auth.currentUser.merchantUuid;\n reqBody.environment = context.rootState.auth.environment; \n PaymentChannelService.updateInstalmentTypeData(merchantUUID, reqBody, channelName).then((response) => {\n // context.commit(UPDATE_PAYMENT_CHANNEL_ONBOARDING_FORM_DATA, {formvalues:response})\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n console.log(errorObject)\n context.commit('notification/error', errorObject.statusChannelReason, { root: true })\n reject(error);\n })\n })\n },\n\n [ADD_PAYMENT_METHOD_IMPORT_CREDENTIALS](context, reqBody) {\n return new Promise((resolve, reject) => {\n \n // context.commit(UPDATE_PAYMENT_CHANNEL_DETAILS_IN_STORE, { entityKey: channelId, entityDetails: payChannel })\n const environment = context.rootState.auth.environment;\n const client_key = context.rootState.auth.currentUser.iamportKey;\n PaymentChannelService.addPaymentMethodImportCredData(client_key, environment, reqBody).then((response) => {\n // context.dispatch(`${FETCH_PAYMENT_CHANNEL_CREDENTIALS}`);\n context.commit(ADD_IMPORT_CREDS_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.error, { root: true })\n reject(error);\n })\n })\n },\n\n\n [FETCH_PREVIEW_IAMPORT_CREDENTIALS](context) {\n return new Promise((resolve, reject) => {\n const client_key = context.rootState.auth.currentUser.iamportKey;\n const environment = context.rootState.auth.environment;\n PaymentChannelService.getPreviewIamportCredsData(client_key, environment).then((response) => {\n context.commit(UPDATE_IAMPORT_CREDENTIALS_IN_STORE, response)\n resolve(response);\n }).catch((error) => {\n const errorObject = JSON.parse(error.message)\n context.commit('notification/error', errorObject.error, { root: true })\n reject(error);\n })\n })\n },\n\n}\n\nexport const namespaced = true;\n"],"sourceRoot":""}