npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

digitalfemsa

v1.0.0

Published

OpenAPI client for digitalfemsa

Downloads

542

Readme

DigitalFemsa API library for Node.js

Node.js CI Coverage Status Downloads npm bundle size (scoped) Version Try on RunKit

This is the officially supported Node.js library for using DigitalFemsa's APIs.

Supported API versions

The library supports all APIs under the following services:

| API | Description | Service Name | Supported version | |---------------------------------------------------------------------------------------------| ----------- |-------|-------------------| | Payments API | Our classic integration for online payments. Current supported version | Payments API | v2.1.0 |

For more information, refer to our documentation.

Prerequisites

Installation

Install the Node.JS package:

npm install --save digitalfemsa

Alternatively, you can download the release on GitHub.

Updating

To update the Node.JS package:

npm update digitalfemsa

Check for breaking changes on the releases page.

Using the library

In order to submit http request to DigitalFemsa API you need to initialize the client. The following example makes a order request:

import { CustomersApi, Configuration, Customer, CustomerResponse } from "digitalfemsa";

const apikey = "key_xxxxx";
const config = new Configuration({ accessToken: apikey });
const client = new CustomersApi(config);

const customer: Customer = {
  name: "John Constantine",
  email: "[email protected]",
  phone: "+5215555555555"
}

client.createCustomer(customer).then(response => {
  const customerResponse = response.data as CustomerResponse;
  console.log(customerResponse.id);
}).catch(error => {
  console.error("here", error);
});

Running the tests

Navigate to digitalfemsa-node folder and run the following commands.

npm run build
npm run test

Contributing

We encourage you to contribute to this repository, so everyone can benefit from new features, bug fixes, and any other improvements. Have a look at our contributing guidelines to find out how to raise a pull request.

Support

If you have a feature request, or spotted a bug or a technical problem, create an issue here.

For other questions, contact our Support Team.

Licence

This repository is available under the MIT license.

See also