1.0.0 • Published 7 years ago

estudiamas-spei-gateway v1.0.0

Weekly downloads
3
License
Unlicense
Repository
-
Last release
7 years ago

estudiamas-spei-gateway

EstudiamasSpeiGateway - JavaScript client for estudiamas-spei-gateway Services to access to SPEI ecosystem This SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.JavascriptClientCodegen For more information, please visit http://tcpip.tech

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 estudiamas-spei-gateway --save

git

If the library is hosted at a git repository, e.g. https://github.com/GIT_USER_ID/GIT_REPO_ID then install it via:

    npm install GIT_USER_ID/GIT_REPO_ID --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):

browserify main.js > bundle.js

Then include bundle.js in the HTML pages.

Getting Started

Please follow the installation instruction and execute the following JS code:

var EstudiamasSpeiGateway = require('estudiamas-spei-gateway');

var api = new EstudiamasSpeiGateway.ApplicationsApi()

var applicationToken = "applicationToken_example"; // {String} Application authentication token

var applicationCode = "applicationCode_example"; // {String} Application code

api.getApplicationBalance(applicationToken, applicationCode).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://sandbox.spei-gateway.tcpip.tech

ClassMethodHTTP requestDescription
EstudiamasSpeiGateway.ApplicationsApigetApplicationBalanceGET /api/1.0/applications/{applicationCode}/balanceUse this endpoint to get application's balance
EstudiamasSpeiGateway.CepApidownloadCepPDFGET /api/1.0/applications/{applicationCode}/cepUse this endpoint for get CEP in PDF format
EstudiamasSpeiGateway.ClabesApiactiveCLABEPUT /api/1.0/applications/{applicationCode}/customers/{customerCode}/clabesUse this endpoint to activate CLABE account
EstudiamasSpeiGateway.ClabesApiasignClabeToCustomerPOST /api/1.0/applications/{applicationCode}/customers/{customerCode}/clabesUse this endpoint to assign a new CLABE to given customer
EstudiamasSpeiGateway.ClabesApiinactiveCLABEDELETE /api/1.0/applications/{applicationCode}/customers/{customerCode}/clabesUse this endpoint to inactive CLABE account
EstudiamasSpeiGateway.CustomersApigetCustomerBalanceGET /api/1.0/applications/{applicationCode}/customers/{customerCode}/balanceUse this endpoint to get customer's balance
EstudiamasSpeiGateway.CustomersApiregisterOrganizationCustomerPOST /api/1.0/applications/{applicationCode}/customers/organizationUse this endpoint register an organization as customer
EstudiamasSpeiGateway.CustomersApiregisterPersonCustomerPOST /api/1.0/applications/{applicationCode}/customers/personUse this endpoint register a person as customer
EstudiamasSpeiGateway.SpeiApirequestPayoutSpeiPOST /api/1.0/applications/{applicationCode}/customers/{customerCode}/clabes/{clabe}Use this endpoint request a new SPEI

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.