0.2.1 • Published 11 months ago

@openfn/language-beyonic v0.2.1

Weekly downloads
-
License
LGPLv3
Repository
github
Last release
11 months ago

Language Beyonic

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

Documentation

Configuration

View all the required and optional properties for state.configuration in the official configuration-schema definition.

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

0.2.1

11 months ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago