Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 425 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 425 Bytes

Simple Checkout Basket Manager

Requirments

Elixir 1.6.0

Usage

Basic operations:

  • Checkout.init([%Rule.Tshirt{}, %Rule.Voucher{}])
  • Checkout.scan("TSHIRT")
  • Checkout.scan("MUG")
  • Checkout.scan("VOUCHER")
  • Checkout.remove("VOUCHER")
  • Checkout.show()
  • Checkout.summary()
  • Checkout.reset([%Rule.Tshirt{}, %Rule.Voucher{}])

Documentation can be found at https://rurkss.github.io/basket_doc/api-reference.html