// Copyright (C) 2019 Storj Labs, Inc. // See LICENSE for copying information. import { AccountBalance, BillingHistoryItem, CreditCard, PaymentsApi, ProjectUsageAndCharges, TokenDeposit, } from '@/types/payments'; /** * Mock for PaymentsApi */ export class PaymentsMock implements PaymentsApi { setupAccount(): Promise { throw new Error('Method not implemented'); } getBalance(): Promise { return Promise.resolve(new AccountBalance()); } projectsUsageAndCharges(): Promise { return Promise.resolve([]); } addCreditCard(token: string): Promise { throw new Error('Method not implemented'); } removeCreditCard(cardId: string): Promise { throw new Error('Method not implemented'); } listCreditCards(): Promise { return Promise.resolve([]); } makeCreditCardDefault(cardId: string): Promise { throw new Error('Method not implemented'); } billingHistory(): Promise { return Promise.resolve([]); } makeTokenDeposit(amount: number): Promise { return Promise.resolve(new TokenDeposit(amount, 'testAddress', 'testLink')); } }