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: core module api to kotlin #1510

Merged
merged 1 commit into from
Feb 5, 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.

Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package org.mifos.mobilewallet.core.data.fineract.api

/**
* Created by naman on 17/6/17.
*/
object ApiEndPoints {
//This class contains all the Constants for API End Points
const val AUTHENTICATION = "authentication"
const val REGISTRATION = "registration"
const val CLIENTS = "clients"
const val SAVINGS_ACCOUNTS = "savingsaccounts"
const val TRANSACTIONS = "transactions"
const val RECURRING_ACCOUNTS = "recurringdepositaccounts"
const val SEARCH = "search"
const val BENEFICIARIES = "beneficiaries"
const val ACCOUNT_TRANSFER = "accounttransfers"
const val DOCUMENTS = "documents"
const val DATATABLES = "datatables"
const val TWOFACTOR = "twofactor"
const val RUN_REPORT = "runreports"
const val USER = "users"
const val STANDING_INSTRUCTION = "standinginstructions"
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package org.mifos.mobilewallet.core.data.fineract.api

/**
* Created by naman on 17/6/17.
*/
class BaseURL {
val url: String
get() = PROTOCOL_HTTPS + API_ENDPOINT + API_PATH
val selfServiceUrl: String
get() = PROTOCOL_HTTPS + API_ENDPOINT_SELF + API_PATH_SELF

companion object {
const val PROTOCOL_HTTPS = "https://"
const val API_ENDPOINT = "venus.mifos.community"
const val API_PATH = "/fineract-provider/api/v1/"

//self service url
const val API_ENDPOINT_SELF = "venus.mifos.community"
const val API_PATH_SELF = "/fineract-provider/api/v1/self/"
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.mifos.mobilewallet.core.data.fineract.api

/**
* Created by ankur on 21/May/2018
*/
class GenericResponse {
var responseFields = HashMap<String, Any>()
override fun toString(): String {
return "GenericResponse{" +
"responseFields=" + responseFields +
'}'
}
}