1.1.3 • Published 3 years ago

ampsalesfunnels-products v1.1.3

Weekly downloads
-
License
SEE LICENSE IN li...
Repository
-
Last release
3 years ago

ampsalesfunnels-products

Functions

Typedefs

getProducts(dirname) ⇒ Array.<Product>

Kind: global function

ParamTypeDescription
dirnamestringpath to the directory containing the products.json file

getProduct(sku, dirname) ⇒ Product

Kind: global function
Returns: Product - the product

ParamTypeDescription
skustringunique identifier for the product (stock-keeping unit)
dirnamestringpath to the directory containing the products.json file

ProductType : "PHYSICAL" | "DIGITAL" | "SERVICE"

Kind: global typedef

Product : object

Kind: global typedef
Properties

NameTypeDescription
skustringunique identifier for the product (stock-keeping unit)
currency_codestringthe code for the currency to pay in, e.g. USD
amountnumberprice of the product
namestringproduct name
descriptionstringproduct description (optional)
typeProductTypethe type of product: PHYSICALDIGITALSERVICE
image_urlstringUrl of product image
home_urlstringUrl of the product page
emailstringName of the Mailgen email file for the product
email_subjectstringEmail subject for the product

© 2021 Dellariva Solutions