UNPKG

pricing4ts

Version:

![NPM Version](https://img.shields.io/npm/v/pricing4ts) Pricing4TS is a TypeScript-based toolkit designed to enhance the server-side functionality of a pricing-driven SaaS by enabling the seamless integration of pricing plans into the application logic. T

33 lines 3.06 kB
testName,pricingPath,expected ---------- createdAt ----------,-,- Given a pricing with a Date createdAt field should parse,tests/resources/pricing/positive/createdAt/pricing-date-createdAt.yml,Test Given a pricing with a string createdAt field should parse,tests/resources/pricing/positive/createdAt/pricing-string-createdAt.yml,Test ---------- feature.expression ----------,-,- Given a feature with a null expression field should parse,tests/resources/pricing/positive/feature/expression/expression-is-null.yml,Null expression ---------- feature.type ----------,-,- Given a payment feature should parse,tests/resources/pricing/positive/feature/type/payment-feature.yml,Test ---------- plan.features ----------,-,- Given no features plan features value should default to root features values,tests/resources/pricing/positive/plan/features/null-features-defaults-to-root-features.yml,Test ---------- saasName ----------,-,- Given a pricing with a name of exactly 3 characters should parse,tests/resources/pricing/positive/saasName/pricing-lower-limit-name.yml,ASD Given a pricing with a name of exactly 50 characters should parse,tests/resources/pricing/positive/saasName/pricing-top-limit-name.yml,This string reaches the name limit of Pricing2Yaml ---------- tags ----------,-,- Given pricing with a tags array should parse,tests/resources/pricing/positive/tags/pricing-tags.yml,Test ---------- billing ----------,-,- Given pricing without specific billing configuration should parse,tests/resources/pricing/positive/billing/no-billing-set.yml,Test Given pricing with single entry billing configuration should parse,tests/resources/pricing/positive/billing/single-entry-billing.yml,Test Given pricing with multi billing configuration should parse,tests/resources/pricing/positive/billing/multi-billing.yml,Test ---------- url ----------,-,- Given pricing without specific url should parse,tests/resources/pricing/positive/url/no-url.yml,Test Given pricing with http url should parse,tests/resources/pricing/positive/url/http-url.yml,Test Given pricing with https url should parse,tests/resources/pricing/positive/url/https-url.yml,Test ---------- plans.private ----------,-,- Given plan without private flag should parse,tests/resources/pricing/positive/plan/private/no-private.yml,Test Given plan with true private flag should parse,tests/resources/pricing/positive/plan/private/is-private.yml,Test Given plan with false private flag should parse,tests/resources/pricing/positive/plan/private/is-not-private.yml,Test ---------- plans.private ----------,-,- Given add-on without private flag should parse,tests/resources/pricing/positive/addOn/private/no-private.yml,Test Given add-on with true private flag should parse,tests/resources/pricing/positive/addOn/private/is-private.yml,Test Given add-on with false private flag should parse,tests/resources/pricing/positive/addOn/private/is-not-private.yml,Test ---------- variables ----------,-,- Given plan with formula price should parse,tests/resources/pricing/positive/variables/pricing-with-variables.yml,Test