Implementation of a generic backend of eshop in Crystal
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

22 líneas
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