admin-api-aurum-connector
Version:
Module to connect to the Admin API Aurum Core
92 lines (84 loc) • 2.83 kB
JavaScript
module.exports = {
configuration: {
production: {
environment: "production",
company: "casher_prod",
},
test: {
environment: "test",
company: "casher_test",
},
dev: {
environment: "dev",
mgtwUrl: "https://aurum-admin-dev.imony.net:9095",
branchId: "eMaCKHWPSuCGWmPzNn3DTvma2xR9AyNqX5bX",
miscellaneousEnviroment: "a7a05468-ed13-48ce-8a13-920baac8cdc4",
authentication: {
consumerKey: "HW74O2iZwU_kFs6Ym0wrZArOjqka",
consumerSecret: "IWDJ_KLL_DhCIcmAdugWNfVKyoca",
endpoint: "https://auth-dev.imony.net/token",
},
user: {
status: "{mgtwUrl}/adminportal/1.0.0/accountholder/{accountHolderId}/{branchId}",
cancel: "{mgtwUrl}/adminportal/1.0.0/accountholder/cancel/{branchId}"
},
card: {
assignation: {
endpoint: "{mgtwUrl}/cards/1.0.0/card/assignation"
},
lock: {
endpoint: "{mgtwUrl}/cards/1.0.0/card/lock"
},
unlock: {
endpoint: "{mgtwUrl}/cards/1.0.0/card/unlock"
}
},
accounts: {
updateAccount: {
endpoint: "{mgtwUrl}/adminportal/1.0.0/account/{accountId}"
},
},
investment: {
getCategories: {
endpoint: "{mgtwUrl}/investments/1.0.0/products/{branchId}/categories"
},
getProductDetail: {
endpoint: "{mgtwUrl}/investments/1.0.0/products/{branchId}/{productId}"
},
getProductMiscellaneous: {
endpoint: "{mgtwUrl}/investments/1.0.0/commissions/{branchId}/{productId}"
},
getProducts: {
endpoint: "{mgtwUrl}/investments/1.0.0/products/{branchId}?categoryId={categoryId}"
},
createInvestment: {
endpoint: "{mgtwUrl}/investments/1.0.0/investment/{branchId}",
yieldPaymentOption: 1
},
updateInvestment: {
endpoint: "{mgtwUrl}/investments/1.0.0/investmentMng/{branchId}/{accountHolderId}"
},
getInvestments: {
endpoint: "{mgtwUrl}/investments/1.0.0/investmentMng/{branchId}"
},
getInvestmentDetail: {
endpoint: "{mgtwUrl}/investments/1.0.0/investmentMng/detail"
},
simulation: {
endpoint: "{mgtwUrl}/investments/1.0.0/investment/plan/simulation/{branchId}"
}
},
catalog: {
getCatalog: {
endpoint: "{mgtwUrl}/adminportal/1.0.0/portal/catalog/{branchId}/{catalogType}"
},
getMiscellaneous: {
endpoint: "{mgtwUrl}/adminportal/1.0.0/portal/miscellaneous/{miscellaneousEnviroment}/{miscellaneousType}"
},
getFinancialVariables: {
endpoint: "{mgtwUrl}/adminportal/1.0.0/portal/catalog/financial-variables/list"
}
}
},
},
};