/** * Copyright (c) 2022 The Nuinalp Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ import { Model } from '@nuinalp/api-core/browser'; export default class Customer extends Model { protected static adapter: any; id: string; name: string; alias?: string; email: string; phone_number: string; department?: string; document: string; document_type: string; type: 'business' | 'personal'; designation?: string; allow_access_portal?: boolean; note?: string; website?: string; skype?: string; facebook?: string; twitter?: string; fax?: string; id_currency: string; id_language: string; language: { id: string; name: string; code: string; }; billing_address: { id: string; street: string; city: string; postal_code: string; type: "billing" | "shipping"; neighborhood: string; number: string; complement?: string; country: { id: string; name: string; code: string; }; state: { id: string; name: string; code: string; }; }; shipping_address: { id: string; street: string; street2: string; city: string; postal_code: string; neighborhood: string; type: "billing" | "shipping"; number: string; complement?: string; country: { id: string; name: string; code: string; }; state: { id: string; name: string; code: string; }; }; currency: { id: string; name: string; code: string; symbol_native: string; }; metadata?: Record; created_at: Date; updated_at: Date; deleted_at: Date; }