import { Buyer, BuyerCreationInfo, BuyerEndpoint } from './buyer'; import { Endpoint } from './endpoint'; import { Resource } from './resource'; import { Seller, SellerCreationInfo, SellerEndpoint } from './seller'; import { BankAccountTokenCreationInfo, CardTokenCreationInfo, Token, TokenEndpoint } from './token'; import { Transaction, TransactionCreationInfo, TransactionEndpoint } from './transaction'; import { Zoop } from './zoop'; export interface Marketplace extends Resource { resource: 'marketplace'; name: string; type: string; description: string | null; is_active: boolean; is_verified: boolean; account_balance: string; current_balance: string; decline_on_fail_security_code: boolean; decline_on_fail_zip_code: boolean; support_email: string; phone_number: string | null; statement_descriptor?: string; website: string | null; facebook: string | null; twitter: string | null; customer: any; api_keys: any[]; transfer_enabled: boolean; debit_enabled: boolean; default_debit: any | null; default_credit: any | null; created_at: string; updated_at: string; metadata: any; } export declare class MarketplaceEndpoint extends Endpoint { constructor(zoop: Zoop, id: string); buyer(id: string): BuyerEndpoint; seller(id: string): SellerEndpoint; transaction(id: string): TransactionEndpoint; token(id: string): TokenEndpoint; get(): Promise; listBuyers(query?: object): AsyncIterableIterator; listSellers(query?: object): AsyncIterableIterator; listTransactions(query?: object): AsyncIterableIterator; createBuyer(buyerInfo: BuyerCreationInfo): Promise; createSeller(sellerInfo: SellerCreationInfo): Promise; createTransaction(transactionInfo: TransactionCreationInfo): Promise; createCardToken(tokenInfo: CardTokenCreationInfo): Promise; createBankAccountToken(tokenInfo: BankAccountTokenCreationInfo): Promise; }