4.0.0 • Published 1 year ago

splitit-onboarding-typescript-sdk v4.0.0

Weekly downloads
-
License
Unlicense
Repository
github
Last release
1 year ago

splitit-onboarding-typescript-sdk@4.0.0

This library that utilizes axios. The generated Node module can be used in the following environments:

Environment

  • Node.js
  • Webpack
  • Browserify

Language level

  • ES5 - you must have a Promises/A+ library installed
  • ES6

Module system

  • CommonJS
  • ES6 module system

Building

To build and compile the typescript sources to javascript use:

npm install
npm run build

Consuming

navigate to the folder of your consuming project and run the following command.

npm install splitit-onboarding-typescript-sdk@4.0.0 --save

Getting Started

import { Splitit } from "splitit-onboarding-typescript-sdk"

const splitit = new Splitit({
    // Defining the base path is optional and defaults to https://onboarding-v2.sandbox.splitit.com
    // basePath: "https://onboarding-v2.sandbox.splitit.com",
    oauthClientId: 'CLIENT_ID',
    oauthClientSecret: 'CLIENT_SECRET',
})

const getCountriesResponse = await splitit.data.getCountries()

console.log(getCountriesResponse)

Documentation for API Endpoints

All URIs are relative to https://onboarding-v2.sandbox.splitit.com

ClassMethodHTTP requestDescription
DataApigetCountriesGET /api/data/get-countries
DataApigetCurrenciesGET /api/data/get-currencies
DataApigetProcessorsGET /api/data/get-processors
DataApigetVerticalsGET /api/data/get-verticals
DataApistatusLegendGET /api/data/status-legend
MerchantsApicreatePOST /api/merchants/create
MerchantsApicreateDeveloperPOST /api/merchants/create/developer
MerchantsApigetGET /api/merchants/get
MerchantsApigetDetailsGET /api/merchants/get-details
1.1.0

1 year ago

4.0.0

1 year ago

3.0.0

1 year ago

2.0.0

1 year ago

1.0.0

1 year ago