Skip to content

martinic/openwhisk-fastspring-classic-gross-pricing-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openwhisk-fastspring-classic-gross-pricing-mode

Greenkeeper badge

An OpenWhisk FastSpring classic gross pricing mode for Contextual Stores. Exchange Rates are coming from the European Central Bank on a hourly basis. So scheduling this script once per hour is good enough.

Prerequisites

  • OpenWhisk command line interface (CLI) called wsk
  • npm install -g bestzip

Installation

  • npm install
  • npm run create

##usege

  • npm run update (Only for development)
  • npm run invoke

or with node.js

  • node index.js params.json

config

COB & CLP currency rates are not supported by the European Central Bank yet.

FastSpring: username/password exchangeratesapi.io: access_key for paid account

json input (params.json)

{
  "credentials": {
    "username": "NVC9SLWFTU-NJYEB9DIUSW",
    "password": "BXpeGA_aQVmm9zXLP_YwEQ",
    "access_key": "f25ca0cd88590a81bcbb476d08da89bd"
  },
  "settings":{
    "price_decoration": false,
    "base_currency": "USD",
    "currencies": ["JPY","CNY","SGD","CZK","HKD","MXN","CAD","ZAR","NZD","AUD","GBP","DKK","SEK","BRL","CHF","EUR","RUB","PLN","INR","USD","KRW","NOK","THB"]
  }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages