mp--merchants--merchant-service-api-types
v1.0.2
Published
Merchant Service API client for Typescript
Downloads
4
Readme
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.