🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@openfn/language-beyonic

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openfn/language-beyonic

beyonic Language Pack for OpenFn

Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
9
-91.09%
Maintainers
4
Weekly downloads
 
Created
Source

Language Beyonic

Language Pack for building expressions and operations for working with the beyonic API.

Documentation

Sample configuration

{
  "apiUrl": "https://beyonic.com/api",
  "apiToken": "cdjhiooiSIUJHDYSYUIHASIOHKAANOAJJjsiujhaka"
}

Payments API

createPayment(...)

createPayment(fields(
  field("phonenumber", "+256773712831"),
  field("first_name", "Gideon"),
  field("last_name", "Zelalem"),
  field("amount", 100.2),
  field("currency", "USD"),
  field("account", 1),
  field("description", "Long-term contract for Arseal"),
  field("payment_type", "money"),
  field("callback_url", "https://my.website/payments/callback")
))

Collection Requests API

createCollectionRequest(...)

createCollectionRequest(fields(
  field("instructions", "Send me some money, please!"),
  field("phonenumber", "+256773712831"),
  field("amount", 5.0),
  field("currency", "USD")
))

Contacts API

createContact(...)

createContact(fields(
  field("first_name", "Granit"),
  field("last_name", "Xhaka"),
  field("phone_number", "+256773712831"),
  field("email", "granit@arsenal.com")
))

Development

Clone the adaptors monorepo. Follow the Getting Started guide inside to get set up.

Run tests using pnpm run test or pnpm run test:watch

Build the project using pnpm build.

To just build the docs run pnpm build docs

FAQs

Package last updated on 11 Nov 2022

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