Implementation of a generic backend of eshop in Crystal
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
132 B

5 years ago
  1. require "json"
  2. require "./product"
  3. class InvoiceLine
  4. JSON.mapping(
  5. item: Product,
  6. quantity: Float64
  7. )
  8. end