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.

10 lines
209 B

5 years ago
  1. require "json"
  2. require "./invoice_line"
  3. require "./address"
  4. class Invoice
  5. JSON.mapping(
  6. items: Array(InvoiceLine),
  7. invoicing_address: Address,
  8. delivery_address: Address
  9. )
  10. end