New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

digitalfemsa

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digitalfemsa

OpenAPI client for digitalfemsa

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
176
increased by30.37%
Maintainers
1
Weekly downloads
 
Created
Source

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:

APIDescriptionService NameSupported version
Payments APIOur classic integration for online payments. Current supported versionPayments APIv2.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: "frank@google.com",
  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

Keywords

FAQs

Package last updated on 13 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc