/** * Copyright (c) 2020 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'; import IAddress from '../types/address.interface'; import Currency from './currencies'; import { IOrganizationFees } from '../types/organization.fees'; export default class Organizations extends Model { protected static adapter: any; id: string; name: string; commercial_name: string; document: string; document_type: string; status: string; is_marketplace?: boolean; redirect_url?: string; company_type: string; auto_transfer?: boolean; description?: string; avatar?: { url: string; key: string; }; brand?: { url: string; key: string; }; legal_representative?: { legal_name: string; legal_document: string; legal_document_type: string; }; address: IAddress; currency: Currency; /** * Get the balance of Organization * @param id - Id of organization */ static getBalance(id: string): Promise<{ data: { currency: string; available_amount: number; }; }>; /** * Get the available payment methods of Organization * @param id - Id of organization */ static fees(id: string): Promise; created_at: Date; updated_at: Date; deleted_at: Date; }