export type Error = { readonly code: string readonly message: readonly string[] } export type Order = { readonly id: string readonly number: string readonly merchant_id: string readonly submitted_at: string readonly total: number } export type OrderForm = { readonly total: number } export type JSONValue = | string | number | boolean | { readonly [x: string]: JSONValue } | readonly JSONValue[]