supremepay_admin_api v1.9.5
node_swagger_api
NodeSwaggerApi - JavaScript client for node_swagger_api Supreme Pay with Swagger This SDK is automatically generated by the Swagger Codegen project:
- API version: 1.9.4
- Package version: 1.9.4
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install node_swagger_api --save
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
Finally, switch to the directory you want to use your node_swagger_api from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
You should now be able to require('node_swagger_api')
in javascript files from the directory you ran the last
command above from.
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/node_swagger_api then install it via:
npm install YOUR_USERNAME/node_swagger_api --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file, that's to say your javascript file where you actually
use this library):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error: Cannot resolve module", most certainly you should disable AMD loader. Add/merge the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Getting Started
Please follow the installation instruction and execute the following JS code:
var NodeSwaggerApi = require('node_swagger_api');
var defaultClient = NodeSwaggerApi.ApiClient.instance;
// Configure API key authorization: api_key
var api_key = defaultClient.authentications['api_key'];
api_key.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//api_key.apiKeyPrefix['authorization'] = "Token"
var api = new NodeSwaggerApi.AccountTypeApi()
var details = new NodeSwaggerApi.PreferredAccountType(); // {PreferredAccountType} account types details
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.createType(details, callback);
Documentation for API Endpoints
All URIs are relative to https://api.supremepay.lk:3011/api/admin
Class | Method | HTTP request | Description |
---|---|---|---|
NodeSwaggerApi.AccountTypeApi | createType | POST /bank/account/type | |
NodeSwaggerApi.AccountTypeApi | createTypeImage | POST /bank/account/type/image | |
NodeSwaggerApi.AccountTypeApi | deleteAccountTypes | DELETE /bank/account/type/{id} | |
NodeSwaggerApi.AccountTypeApi | getAccountTypes | GET /bank/account/type | |
NodeSwaggerApi.AccountTypeApi | updateType | PUT /bank/account/type | |
NodeSwaggerApi.AdminAccountApi | callDelete | DELETE /admin/accounts/{accountid} | |
NodeSwaggerApi.AdminAccountApi | list | GET /admin/accounts/list | |
NodeSwaggerApi.AdminAccountApi | resetPassword | PUT /admin/accounts/password/reset/{id} | |
NodeSwaggerApi.AdminAccountApi | update | PUT /admin/accounts | |
NodeSwaggerApi.AdminAccountApi | updateAvatar | PUT /admin/accounts/avatar | |
NodeSwaggerApi.AdminAccountApi | updatePassword | PUT /admin/accounts/password | |
NodeSwaggerApi.AdminauthApi | login | POST /admin/auth/login | |
NodeSwaggerApi.AdminauthApi | register | POST /admin/auth/register | |
NodeSwaggerApi.AdminauthApi | registerAdmin | POST /admin/auth/register/admin | |
NodeSwaggerApi.CompanyApi | deleteContact | DELETE /admin/company/profile/contacts/{id} | |
NodeSwaggerApi.CompanyApi | deleteImage | DELETE /admin/company/profile/images/{id} | |
NodeSwaggerApi.CompanyApi | updateImage | PUT /admin/company/profile/images | |
NodeSwaggerApi.CompanyApi | updateProfile | POST /admin/company/profile | |
NodeSwaggerApi.CompanyApi | viewProfile | GET /admin/company/profile | |
NodeSwaggerApi.CountryCodeApi | availableCountries | GET /country | |
NodeSwaggerApi.CountryCodeApi | createCountryCode | POST /country | |
NodeSwaggerApi.CountryCodeApi | deleteCode | DELETE /country/{id} | |
NodeSwaggerApi.CountryCodeApi | updateCountryCode | PUT /country | |
NodeSwaggerApi.DashboardApi | getAdminActivites | GET /dashboard/users/admin/activities | |
NodeSwaggerApi.DashboardApi | getBorrowersUsers | GET /dashboard/users/borrowers/stats | |
NodeSwaggerApi.DashboardApi | getBorrowersUsersCount | GET /dashboard/users/borrowers/stats/count | |
NodeSwaggerApi.DashboardApi | getLoanCount | GET /dashboard/loans/stats | |
NodeSwaggerApi.DashboardApi | getLoanPaymentsHistory | GET /dashboard/payments/history | |
NodeSwaggerApi.DashboardApi | getRegisterdUsersCount | GET /dashboard/users/stats/count | |
NodeSwaggerApi.DashboardApi | getRegisteredUsers | GET /dashboard/users/stats/test | |
NodeSwaggerApi.DashboardApi | getRegisteredUsersList | GET /dashboard/users/stats | |
NodeSwaggerApi.DashboardApi | getUsersActivities | GET /dashboard/users/activities | |
NodeSwaggerApi.DashboardApi | getUsersLoginHistory | GET /dashboard/users/login/history | |
NodeSwaggerApi.DocumentChargeApi | deleteDocumentCharge | DELETE /loans/documents/charges/{id} | |
NodeSwaggerApi.DocumentChargeApi | getDocumentChargeDetails | GET /loans/documents/charge | |
NodeSwaggerApi.DocumentChargeApi | getDocumentChargeDetailsById | GET /loans/documents/charges/{id} | |
NodeSwaggerApi.DocumentChargeApi | saveDocumentCharge | POST /loans/documents/charges | |
NodeSwaggerApi.DocumentChargeApi | updateDocumentCharge | PUT /loans/documents/charges | |
NodeSwaggerApi.DocumentChargeHistoryApi | getDocumentChargeHistory | GET /loans/documents/history | |
NodeSwaggerApi.DocumentChargeHistoryApi | getDocumentChargeHistoryById | GET /loans/documents/history/{id} | |
NodeSwaggerApi.EmploymentApi | getEmploymentDetailAdmin | POST /employment/details | |
NodeSwaggerApi.LoansApi | addAdditionalCharges | POST /loans/process/charges/additionals | |
NodeSwaggerApi.LoansApi | createLoanPayment | POST /loans/payments | |
NodeSwaggerApi.LoansApi | deleteAdditionalCharges | DELETE /loans/process/charges/additionals/{id} | |
NodeSwaggerApi.LoansApi | deleteKycReference | DELETE /loans/process/kyc/{id} | |
NodeSwaggerApi.LoansApi | deleteLoanProfile | DELETE /loans/profile/{id} | |
NodeSwaggerApi.LoansApi | deleteLoanScheme | DELETE /loans/schemes/{id} | |
NodeSwaggerApi.LoansApi | deleteRequestedLoan | DELETE /loans/process/{id} | |
NodeSwaggerApi.LoansApi | getAdditionalChargesbyLoanId | GET /loans/process/charges/additionals/{id} | |
NodeSwaggerApi.LoansApi | getKycReferenceByUserId | GET /loans/process/users/kyc/{id} | |
NodeSwaggerApi.LoansApi | getKycReferencesByLoanId | GET /loans/process/kyc/{id} | |
NodeSwaggerApi.LoansApi | getLaonPayment | GET /loans/payments | |
NodeSwaggerApi.LoansApi | getLoanProfileDetails | GET /loans/profile | |
NodeSwaggerApi.LoansApi | getLoanProfileDetailsById | GET /loans/profile/{id} | |
NodeSwaggerApi.LoansApi | getLoanSchemeById | GET /loans/schemes/{id} | |
NodeSwaggerApi.LoansApi | getRequestedLoanById | GET /loans/process/{id} | |
NodeSwaggerApi.LoansApi | getRequestedLoanDetails | GET /loans/process | |
NodeSwaggerApi.LoansApi | getRequestedLoanUsers | GET /loans/process/users | |
NodeSwaggerApi.LoansApi | getUserByLoanId | GET /loans/process/users/{id} | |
NodeSwaggerApi.LoansApi | getUserLoanScheme | GET /loans/schemes | |
NodeSwaggerApi.LoansApi | getUsersOtherLoansbyId | GET /loans/process/users/{id}/other/loans | |
NodeSwaggerApi.LoansApi | saveLoanScheme | POST /loans/schemes | |
NodeSwaggerApi.LoansApi | setDefaultLoanScheme | PUT /loans/schemes/default | |
NodeSwaggerApi.LoansApi | updateAdditionalCharges | PUT /loans/process/charges/additionals | |
NodeSwaggerApi.LoansApi | updateKycReferenceStatus | PUT /loans/process/status/kyc | |
NodeSwaggerApi.LoansApi | updateLoanScheme | PUT /loans/schemes | |
NodeSwaggerApi.LoansApi | updateLoanStatus | PUT /loans/process/status | |
NodeSwaggerApi.LoansApi | updateRequestedLoan | PUT /loans/process | |
NodeSwaggerApi.LoansApi | updateloanProfile | PUT /loans/profile | |
NodeSwaggerApi.MerchantProfileApi | deleteMerchant | DELETE /admin/merchants/{id} | |
NodeSwaggerApi.MerchantProfileApi | getMerchantDetailsById | GET /admin/merchants/{id} | |
NodeSwaggerApi.MerchantProfileApi | getMerchantsDetails | GET /admin/merchants | |
NodeSwaggerApi.MerchantProfileApi | saveMerchant | POST /admin/merchants | |
NodeSwaggerApi.MerchantProfileApi | updateMerchant | PUT /admin/merchants | |
NodeSwaggerApi.MerchantProfileApi | updateMerchantImage | PUT /admin/merchants/image | |
NodeSwaggerApi.NotificationsApi | sendNotifications | POST /notifications/send | |
NodeSwaggerApi.PayeeCategoryApi | availableCategories | GET /paying/categories | |
NodeSwaggerApi.PayeeCategoryApi | createPayingCateogory | POST /paying/categories | |
NodeSwaggerApi.PayeeCategoryApi | createPayingCateogoryImage | POST /paying/categories/image | |
NodeSwaggerApi.PayeeCategoryApi | deletePayingCategory | DELETE /paying/categories/{id} | |
NodeSwaggerApi.PayeeCategoryApi | updatePayingCateogory | PUT /paying/categories | |
NodeSwaggerApi.PromotionApi | createPromotion | POST /promotion/create | |
NodeSwaggerApi.PromotionApi | createPromotionImage | PUT /promotion/images | |
NodeSwaggerApi.PromotionApi | deletePromotion | DELETE /promotion/{promo_code} | |
NodeSwaggerApi.PromotionApi | deletePromotionImage | POST /promotion/images/remove | |
NodeSwaggerApi.PromotionApi | getPromotionByPromoCode | GET /promotion/bypromocode/{promo_code} | |
NodeSwaggerApi.PromotionApi | getPromotions | GET /promotion/allpromotion | |
NodeSwaggerApi.PromotionApi | updatePromotion | PUT /promotion | |
NodeSwaggerApi.SearchApi | searchUsers | GET /search/users | |
NodeSwaggerApi.ServiceProviderApi | createServiceProvider | POST /service/providers | |
NodeSwaggerApi.ServiceProviderApi | deleteServiceProvider | DELETE /service/providers/{id} | |
NodeSwaggerApi.ServiceProviderApi | getServiceProviders | GET /service/providers | |
NodeSwaggerApi.ServiceProviderApi | serviceProviderImage | POST /service/providers/image | |
NodeSwaggerApi.ServiceProviderApi | updateServiceProvider | PUT /service/providers | |
NodeSwaggerApi.TemplatesApi | getTemplates | GET /admin/templates | |
NodeSwaggerApi.TemplatesApi | getTemplatesCategories | GET /admin/templates/categories | |
NodeSwaggerApi.VersionApi | checkVersion | POST /version/check | |
NodeSwaggerApi.VersionApi | createVersion | POST /version | |
NodeSwaggerApi.VersionApi | deleteVersion | DELETE /version/{id} | |
NodeSwaggerApi.VersionApi | getVersions | GET /version |
Documentation for Models
- NodeSwaggerApi.Admin
- NodeSwaggerApi.AdminHistory
- NodeSwaggerApi.AdminPassword
- NodeSwaggerApi.AvatarSuccess
- NodeSwaggerApi.BankAccount
- NodeSwaggerApi.BankProfile
- NodeSwaggerApi.CardAccount
- NodeSwaggerApi.CardAddress
- NodeSwaggerApi.CardAddressResponse
- NodeSwaggerApi.CommonError
- NodeSwaggerApi.CommonSuccess
- NodeSwaggerApi.CompanyProfile
- NodeSwaggerApi.CompanyProfileContacts
- NodeSwaggerApi.CompanyProfileImages
- NodeSwaggerApi.CountryCode
- NodeSwaggerApi.CreditScore
- NodeSwaggerApi.DashboardAccount
- NodeSwaggerApi.DocumentCharge
- NodeSwaggerApi.DocumentChargeHistory
- NodeSwaggerApi.EmpInformation
- NodeSwaggerApi.EmpInformationReferences
- NodeSwaggerApi.GetVersion
- NodeSwaggerApi.GetVersionResult
- NodeSwaggerApi.HistoryUser
- NodeSwaggerApi.IPGProfile
- NodeSwaggerApi.InstallmentCalculate
- NodeSwaggerApi.InstallmentDetails
- NodeSwaggerApi.JPAccount
- NodeSwaggerApi.JPBank
- NodeSwaggerApi.JPDeviceSignature
- NodeSwaggerApi.JPUser
- NodeSwaggerApi.KycReference
- NodeSwaggerApi.Language
- NodeSwaggerApi.LankaClearChallenge
- NodeSwaggerApi.LateLoanTemp
- NodeSwaggerApi.LoanAdditionalCharges
- NodeSwaggerApi.LoanDashboardCard
- NodeSwaggerApi.LoanInstallment
- NodeSwaggerApi.LoanPayment
- NodeSwaggerApi.LoanPaymentWithLoan
- NodeSwaggerApi.LoanPaymentsHistory
- NodeSwaggerApi.LoanProfile
- NodeSwaggerApi.LoanScheme
- NodeSwaggerApi.LoanSchemeAvailableTerms
- NodeSwaggerApi.LoanSummary
- NodeSwaggerApi.LoginHistory
- NodeSwaggerApi.MWalletProfile
- NodeSwaggerApi.MerchantProfile
- NodeSwaggerApi.MessageTemplate
- NodeSwaggerApi.MessageTemplateCategory
- NodeSwaggerApi.Notifications
- NodeSwaggerApi.OtpCheck
- NodeSwaggerApi.OtpRequest
- NodeSwaggerApi.OverLoanTemp
- NodeSwaggerApi.Payee
- NodeSwaggerApi.PayeeCategory
- NodeSwaggerApi.PayeeResponse
- NodeSwaggerApi.PayeeWithImage
- NodeSwaggerApi.PreferredAccountType
- NodeSwaggerApi.Preloan
- NodeSwaggerApi.PreloanRequset
- NodeSwaggerApi.PrimaryAccount
- NodeSwaggerApi.PromoImageDelete
- NodeSwaggerApi.Promotion
- NodeSwaggerApi.PromotionImages
- NodeSwaggerApi.RecoveryPassword
- NodeSwaggerApi.ResetPassword
- NodeSwaggerApi.ServiceProvider
- NodeSwaggerApi.SmsVerification
- NodeSwaggerApi.Transaction
- NodeSwaggerApi.UnsubscribeToken
- NodeSwaggerApi.UpdateGender
- NodeSwaggerApi.UpdateMarital
- NodeSwaggerApi.UserAddress
- NodeSwaggerApi.UserHistory
- NodeSwaggerApi.UserLedger
- NodeSwaggerApi.UserLogin
- NodeSwaggerApi.UserPassword
- NodeSwaggerApi.UserProfile
- NodeSwaggerApi.UserToken
- NodeSwaggerApi.VerifyAccount
- NodeSwaggerApi.Version
- NodeSwaggerApi.VersionCheck
- NodeSwaggerApi.VersionDeleteResult
Documentation for Authorization
api_key
- Type: API key
- API key parameter name: authorization
- Location: HTTP header