1.9.5 • Published 5 years ago

supremepay_admin_api v1.9.5

Weekly downloads
2
License
Unlicense
Repository
-
Last release
5 years ago

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

ClassMethodHTTP requestDescription
NodeSwaggerApi.AccountTypeApicreateTypePOST /bank/account/type
NodeSwaggerApi.AccountTypeApicreateTypeImagePOST /bank/account/type/image
NodeSwaggerApi.AccountTypeApideleteAccountTypesDELETE /bank/account/type/{id}
NodeSwaggerApi.AccountTypeApigetAccountTypesGET /bank/account/type
NodeSwaggerApi.AccountTypeApiupdateTypePUT /bank/account/type
NodeSwaggerApi.AdminAccountApicallDeleteDELETE /admin/accounts/{accountid}
NodeSwaggerApi.AdminAccountApilistGET /admin/accounts/list
NodeSwaggerApi.AdminAccountApiresetPasswordPUT /admin/accounts/password/reset/{id}
NodeSwaggerApi.AdminAccountApiupdatePUT /admin/accounts
NodeSwaggerApi.AdminAccountApiupdateAvatarPUT /admin/accounts/avatar
NodeSwaggerApi.AdminAccountApiupdatePasswordPUT /admin/accounts/password
NodeSwaggerApi.AdminauthApiloginPOST /admin/auth/login
NodeSwaggerApi.AdminauthApiregisterPOST /admin/auth/register
NodeSwaggerApi.AdminauthApiregisterAdminPOST /admin/auth/register/admin
NodeSwaggerApi.CompanyApideleteContactDELETE /admin/company/profile/contacts/{id}
NodeSwaggerApi.CompanyApideleteImageDELETE /admin/company/profile/images/{id}
NodeSwaggerApi.CompanyApiupdateImagePUT /admin/company/profile/images
NodeSwaggerApi.CompanyApiupdateProfilePOST /admin/company/profile
NodeSwaggerApi.CompanyApiviewProfileGET /admin/company/profile
NodeSwaggerApi.CountryCodeApiavailableCountriesGET /country
NodeSwaggerApi.CountryCodeApicreateCountryCodePOST /country
NodeSwaggerApi.CountryCodeApideleteCodeDELETE /country/{id}
NodeSwaggerApi.CountryCodeApiupdateCountryCodePUT /country
NodeSwaggerApi.DashboardApigetAdminActivitesGET /dashboard/users/admin/activities
NodeSwaggerApi.DashboardApigetBorrowersUsersGET /dashboard/users/borrowers/stats
NodeSwaggerApi.DashboardApigetBorrowersUsersCountGET /dashboard/users/borrowers/stats/count
NodeSwaggerApi.DashboardApigetLoanCountGET /dashboard/loans/stats
NodeSwaggerApi.DashboardApigetLoanPaymentsHistoryGET /dashboard/payments/history
NodeSwaggerApi.DashboardApigetRegisterdUsersCountGET /dashboard/users/stats/count
NodeSwaggerApi.DashboardApigetRegisteredUsersGET /dashboard/users/stats/test
NodeSwaggerApi.DashboardApigetRegisteredUsersListGET /dashboard/users/stats
NodeSwaggerApi.DashboardApigetUsersActivitiesGET /dashboard/users/activities
NodeSwaggerApi.DashboardApigetUsersLoginHistoryGET /dashboard/users/login/history
NodeSwaggerApi.DocumentChargeApideleteDocumentChargeDELETE /loans/documents/charges/{id}
NodeSwaggerApi.DocumentChargeApigetDocumentChargeDetailsGET /loans/documents/charge
NodeSwaggerApi.DocumentChargeApigetDocumentChargeDetailsByIdGET /loans/documents/charges/{id}
NodeSwaggerApi.DocumentChargeApisaveDocumentChargePOST /loans/documents/charges
NodeSwaggerApi.DocumentChargeApiupdateDocumentChargePUT /loans/documents/charges
NodeSwaggerApi.DocumentChargeHistoryApigetDocumentChargeHistoryGET /loans/documents/history
NodeSwaggerApi.DocumentChargeHistoryApigetDocumentChargeHistoryByIdGET /loans/documents/history/{id}
NodeSwaggerApi.EmploymentApigetEmploymentDetailAdminPOST /employment/details
NodeSwaggerApi.LoansApiaddAdditionalChargesPOST /loans/process/charges/additionals
NodeSwaggerApi.LoansApicreateLoanPaymentPOST /loans/payments
NodeSwaggerApi.LoansApideleteAdditionalChargesDELETE /loans/process/charges/additionals/{id}
NodeSwaggerApi.LoansApideleteKycReferenceDELETE /loans/process/kyc/{id}
NodeSwaggerApi.LoansApideleteLoanProfileDELETE /loans/profile/{id}
NodeSwaggerApi.LoansApideleteLoanSchemeDELETE /loans/schemes/{id}
NodeSwaggerApi.LoansApideleteRequestedLoanDELETE /loans/process/{id}
NodeSwaggerApi.LoansApigetAdditionalChargesbyLoanIdGET /loans/process/charges/additionals/{id}
NodeSwaggerApi.LoansApigetKycReferenceByUserIdGET /loans/process/users/kyc/{id}
NodeSwaggerApi.LoansApigetKycReferencesByLoanIdGET /loans/process/kyc/{id}
NodeSwaggerApi.LoansApigetLaonPaymentGET /loans/payments
NodeSwaggerApi.LoansApigetLoanProfileDetailsGET /loans/profile
NodeSwaggerApi.LoansApigetLoanProfileDetailsByIdGET /loans/profile/{id}
NodeSwaggerApi.LoansApigetLoanSchemeByIdGET /loans/schemes/{id}
NodeSwaggerApi.LoansApigetRequestedLoanByIdGET /loans/process/{id}
NodeSwaggerApi.LoansApigetRequestedLoanDetailsGET /loans/process
NodeSwaggerApi.LoansApigetRequestedLoanUsersGET /loans/process/users
NodeSwaggerApi.LoansApigetUserByLoanIdGET /loans/process/users/{id}
NodeSwaggerApi.LoansApigetUserLoanSchemeGET /loans/schemes
NodeSwaggerApi.LoansApigetUsersOtherLoansbyIdGET /loans/process/users/{id}/other/loans
NodeSwaggerApi.LoansApisaveLoanSchemePOST /loans/schemes
NodeSwaggerApi.LoansApisetDefaultLoanSchemePUT /loans/schemes/default
NodeSwaggerApi.LoansApiupdateAdditionalChargesPUT /loans/process/charges/additionals
NodeSwaggerApi.LoansApiupdateKycReferenceStatusPUT /loans/process/status/kyc
NodeSwaggerApi.LoansApiupdateLoanSchemePUT /loans/schemes
NodeSwaggerApi.LoansApiupdateLoanStatusPUT /loans/process/status
NodeSwaggerApi.LoansApiupdateRequestedLoanPUT /loans/process
NodeSwaggerApi.LoansApiupdateloanProfilePUT /loans/profile
NodeSwaggerApi.MerchantProfileApideleteMerchantDELETE /admin/merchants/{id}
NodeSwaggerApi.MerchantProfileApigetMerchantDetailsByIdGET /admin/merchants/{id}
NodeSwaggerApi.MerchantProfileApigetMerchantsDetailsGET /admin/merchants
NodeSwaggerApi.MerchantProfileApisaveMerchantPOST /admin/merchants
NodeSwaggerApi.MerchantProfileApiupdateMerchantPUT /admin/merchants
NodeSwaggerApi.MerchantProfileApiupdateMerchantImagePUT /admin/merchants/image
NodeSwaggerApi.NotificationsApisendNotificationsPOST /notifications/send
NodeSwaggerApi.PayeeCategoryApiavailableCategoriesGET /paying/categories
NodeSwaggerApi.PayeeCategoryApicreatePayingCateogoryPOST /paying/categories
NodeSwaggerApi.PayeeCategoryApicreatePayingCateogoryImagePOST /paying/categories/image
NodeSwaggerApi.PayeeCategoryApideletePayingCategoryDELETE /paying/categories/{id}
NodeSwaggerApi.PayeeCategoryApiupdatePayingCateogoryPUT /paying/categories
NodeSwaggerApi.PromotionApicreatePromotionPOST /promotion/create
NodeSwaggerApi.PromotionApicreatePromotionImagePUT /promotion/images
NodeSwaggerApi.PromotionApideletePromotionDELETE /promotion/{promo_code}
NodeSwaggerApi.PromotionApideletePromotionImagePOST /promotion/images/remove
NodeSwaggerApi.PromotionApigetPromotionByPromoCodeGET /promotion/bypromocode/{promo_code}
NodeSwaggerApi.PromotionApigetPromotionsGET /promotion/allpromotion
NodeSwaggerApi.PromotionApiupdatePromotionPUT /promotion
NodeSwaggerApi.SearchApisearchUsersGET /search/users
NodeSwaggerApi.ServiceProviderApicreateServiceProviderPOST /service/providers
NodeSwaggerApi.ServiceProviderApideleteServiceProviderDELETE /service/providers/{id}
NodeSwaggerApi.ServiceProviderApigetServiceProvidersGET /service/providers
NodeSwaggerApi.ServiceProviderApiserviceProviderImagePOST /service/providers/image
NodeSwaggerApi.ServiceProviderApiupdateServiceProviderPUT /service/providers
NodeSwaggerApi.TemplatesApigetTemplatesGET /admin/templates
NodeSwaggerApi.TemplatesApigetTemplatesCategoriesGET /admin/templates/categories
NodeSwaggerApi.VersionApicheckVersionPOST /version/check
NodeSwaggerApi.VersionApicreateVersionPOST /version
NodeSwaggerApi.VersionApideleteVersionDELETE /version/{id}
NodeSwaggerApi.VersionApigetVersionsGET /version

Documentation for Models

Documentation for Authorization

api_key

  • Type: API key
  • API key parameter name: authorization
  • Location: HTTP header
1.9.5

5 years ago

1.9.4

5 years ago