import-from-woocommerce-to-fortnox-cron-v1

v1.js

Cron to perform multiple imports from woocommerce to fortnox. Imports orders to fortox.
Should be run with command line arguments.

Example:
node import-from-woocommerce-to-fortnox-cron-v1.js \
conf-airtable-base-name= \
conf-airtable-table-name= \
conf-airtable-view-name= \
conf-airtable-api-key= \
conf-airtable-table-key= \
conf-airtable-key-name= \
conf-airtable-key-value= \
type=order

ac-apps-minimal-utils-airtable

utils/airtable.js

Utilities for airtable.

Example:
app.utils.airtable.getOptions(options, prefix);

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Install from:

https://www.npmjs.com/package/ac-apps-minimal-utils-airtable
https://github.com/animatedcreativity/ac-apps-minimal-utils-airtable

Available Methods: getOptions

getOptions

function(options, prefix) {
  var list = {};
  for (var key in options) {
    if (key.split(prefix +

import-from-woocommerce-to-fortnox-v1

v1.js

Imports from woocommerce to fortnox. Imports orders to fortnox. You can also import a single order by specifying wc-order-number.
Should be run with command line arguments.

Example:
node import-from-woocommerce-to-fortnox-v1.js \
wc-api-url=https://SITE/wp-json/wc/v3 \
wc-consumer-key= \
wc-consumer-secret= \
type=order \
fn-api-url=

ac-apps-minimal-utils-url

utils/url.js

Helps with URL functions.

Example:
app.utils.url.domain(link);

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Install from:

https://www.npmjs.com/package/ac-apps-minimal-utils-url
https://github.com/animatedcreativity/ac-apps-minimal-utils-url

Available Methods: domain

domain

function(link) {
  return new URL(link).hostname;
}

Happy Coding!

MIT License: https://choosealicense.com/licenses/mit/

Copyright 2022 Animated Creativity

Permission …

ac-apps-minimal-api-fortnox

api/fortnox.js

Makes it easy to work with Fortnox API.

Example:
app.api.fortnox.createOrder(options, order);
app.api.fortnox.updateCustomer(options, customer);
app.api.fortnox.getCustomers(options, email);

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Install from:

https://www.npmjs.com/package/ac-apps-minimal-api-fortnox
https://github.com/animatedcreativity/ac-apps-minimal-api-fortnox

Available Methods: createOrder, updateCustomer, createCustomer, getCustomers

createOrder

async function(options, newFnOrder) {

ac-apps-minimal-utils-relatedfields

utils/relatedFields.js

Helps to parse left to right sync related fields.

Example:
app.utils.relatedFields.parse("Model+sku,regular_price_sek+price");
Will return: { Model: 'sku', regular_price_sek: 'price' }

A module for ac-bundle-app, published by ac-bundle-module. namespace: ac-apps-minimal

Install from:

https://www.npmjs.com/package/ac-apps-minimal-utils-relatedfields
https://github.com/animatedcreativity/ac-apps-minimal-utils-relatedfields

Available Methods: parse

parse

function(str) {
  if