@comparaonline/offers-models

Models for comparaonline offers

Usage no npm install needed!

<script type="module">
  import comparaonlineOffersModels from 'https://cdn.skypack.dev/@comparaonline/offers-models';
</script>

README

Offers Model Package

This library contains the types definition for the models wich are part of the market-place offers cycle.

How to use:

Add the @comparaonline/offers-models to project.

  • Use as the example:
import { Country } from '@comparaonline/offers-models'

const chile:Country = { code: 'cl', name: 'Chile' };

Contains Types definition for:

  • BusinessUnit
  • Company
  • Country
  • Config: Generic Config for Entity
    • ConfigMoney
    • ConfigMoneyInstallment
    • ConfigNumber
    • ConfigPercentage
  • Division
  • Format: Generic Format Unit
    • FormatMoney
    • FormatNumber
    • FormatPercentage
    • FormatUnit
  • Entity: Generic entity model
    • EntityMoneyInstallment
    • EntityList
    • EntityMoney
    • EntityNumber
    • EntityPercentage
    • EntityTerm
  • EntityFilter
  • Filter
  • Offer
  • Product
  • ProductAttribute: Generic product attribute model.
    • MoneyInstallmentAttribute
    • IntegerAttribute
    • StringAttribute
    • ListAttribute
    • MoneyAttribute
    • TermAttribute