Skip to content

Commit

Permalink
refactor #1481: migrated core utils and MifosPayApplication to kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
PratyushSingh07 authored and therajanmaurya committed Jan 22, 2024
1 parent 6cc1954 commit c978d14
Show file tree
Hide file tree
Showing 12 changed files with 268 additions and 338 deletions.

This file was deleted.

54 changes: 54 additions & 0 deletions core/src/main/java/org/mifos/mobilewallet/core/utils/Constants.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package org.mifos.mobilewallet.core.utils

import java.util.Arrays
import java.util.Collections

/**
* Created by naman on 17/6/17.
*/
object Constants {
const val BASIC = "Basic "
const val SAVINGS = "savingsAccounts"
const val TRANSACTIONS = "transactions"
const val WALLET_ACCOUNT_SAVINGS_PRODUCT_ID = 1
const val MIFOS_MERCHANT_SAVINGS_PRODUCT_ID = 165 // 372
const val MIFOS_CONSUMER_SAVINGS_PRODUCT_ID = 165 // 373
private const val MOBILE_WALLET_ROLE_ID = 471
private const val SUPER_USER_ROLE_ID = 1
@JvmField
val NEW_USER_ROLE_IDS: Collection<Int> = Collections.unmodifiableList(
Arrays.asList(MOBILE_WALLET_ROLE_ID, SUPER_USER_ROLE_ID)
)
const val ENTITY_TYPE_CLIENTS = "clients"
const val FETCH_ACCOUNT_TRANSFER_USECASE = "FetchAccountTransfer"
const val NO_SAVED_CARDS = "No saved cards."
const val MIFOS_PASSWORD = "mifos:password"
const val ERROR_VERIFYING_USER = "Error verifying user"
const val ERROR_REGISTERING_USER = "Error registering user"
const val NO_CLIENTS_FOUND = "No clients found"
const val ERROR_SEARCHING_CLIENTS = "Error searching clients"
const val CLIENTS = "clients"
const val NO_ACCOUNTS_FOUND = "No accounts found"
const val ERROR_FETCHING_ACCOUNTS = "Error fetching accounts"
const val ERROR_MAKING_TRANSFER = "Error making transfer"
const val WALLET_TRANSFER = "Wallet transfer"
const val ERROR_ADDING_BENEFICIARY = "Error adding beneficiary"
const val ERROR_FETCHING_BENEFICIARIES = "Error fetching beneficiaries"
const val ERROR_FETCHING_TO_ACCOUNT = "Error fetching to account"
const val NO_WALLET_FOUND = "No wallet found"
const val ERROR_FETCHING_FROM_ACCOUNT = "Error fetching from account"
const val ERROR_FETCHING_CLIENT_DATA = "Error fetching client data"
const val NO_CLIENT_FOUND = "No client found"
const val ERROR_LOGGING_IN = "Error logging in"
const val ERROR_FETCHING_REMOTE_ACCOUNT_TRANSACTIONS =
"Error fetching remote account transactions"
const val PDF = "PDF"
const val ERROR_FETCHING_ACCOUNT = "Error fetching account"
const val NO_ACCOUNT_FOUND = "No account found"
const val INVOICE_DOES_NOT_EXIST = "Invoice does not exist."
const val INVALID_UPL = "Invalid UPL"
const val MERCHANT = "merchant"
const val FETCH_CLIENT_DETAILS_USE_CASE = "Fetch Client Details UseCase"
const val ERROR_FETCHING_NOTIFICATIONS = "Error fetching notifications"
const val UNAUTHORIZED_ERROR = "401 Unauthorized"
}
165 changes: 0 additions & 165 deletions core/src/main/java/org/mifos/mobilewallet/core/utils/DateHelper.java

This file was deleted.

Loading

0 comments on commit c978d14

Please sign in to comment.