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.
 
 

22 lines
319 B

require "json"
enum Country
FR,
NL,
DE,
IT,
EI,
GB,
end
class Address
JSON.mapping(
name: String,
address1: String,
address2: {type: String, nilable: true},
postcode: String,
city: String,
country: Country,
is_default: Bool
)
end