Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: migrated core utils and MifosPayApplication to kotlin #1482

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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
Loading