2.0.0 • Published 3 years ago

mp--operations--merchant-service-api-types v2.0.0

Weekly downloads
-
License
AGPL-3.0-or-later
Repository
github
Last release
3 years ago

Merchants Service API Types

Summary

Merchant Service API client for Typescript

Get started with Merchant Service API Types

Installing & usage API-client

$ npm i mp--merchants--merchant-service-api-types
// app.ts
import { MerchantsDataProvider } from 'mp--merchants--merchant-service-api-types';

const merchantsDataProvider = new MerchantsDataProvider(process.env.MERCHANTS_API_URL);
const allMerchants = await merchantsDataProvider.findAll();

// app.test.ts
import { MerchantFactory } from 'mp--merchants--merchant-service-api-types';
const merchant = MerchantFactory.spawnOne();

Contributing

General folders layout

.vscode

  • configs for Visual Studio Code.

src

  • * - implementation of the service.