interface PriceFunction {
    currencyCode: string;
    function: string;
}

Properties

currencyCode: string

Currency code compliant to ISO 4217.

function: string

To calculate a Price based on the score, use +, -, * and parentheses. The score is inserted with x. The function returns the cent amount.

For example, to charge $1.99 for a score of `1`, $3.99 for a score of `2`, \$5.99 for a score of `3` and onwards, the function is: `(200 * x) - 1)`. To charge $4.50, $6.00, and \$7.50 for express shipping, the function is: `(150 * x) + 300`.

Generated using TypeDoc