5729d087b0
WHAT: project selection moved to navigation panel WHY: preparing for multiple project state Change-Id: I434c73c25b3fec85fc7226a8400cf280b379b537
57 lines
1.4 KiB
TypeScript
57 lines
1.4 KiB
TypeScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import {
|
|
AccountBalance,
|
|
CreditCard,
|
|
PaymentsApi,
|
|
PaymentsHistoryItem,
|
|
ProjectUsageAndCharges,
|
|
TokenDeposit,
|
|
} from '@/types/payments';
|
|
|
|
/**
|
|
* Mock for PaymentsApi
|
|
*/
|
|
export class PaymentsMock implements PaymentsApi {
|
|
setupAccount(): Promise<void> {
|
|
throw new Error('Method not implemented');
|
|
}
|
|
|
|
getBalance(): Promise<AccountBalance> {
|
|
return Promise.resolve(new AccountBalance());
|
|
}
|
|
|
|
projectsUsageAndCharges(): Promise<ProjectUsageAndCharges[]> {
|
|
return Promise.resolve([]);
|
|
}
|
|
|
|
addCreditCard(token: string): Promise<void> {
|
|
throw new Error('Method not implemented');
|
|
}
|
|
|
|
removeCreditCard(cardId: string): Promise<void> {
|
|
throw new Error('Method not implemented');
|
|
}
|
|
|
|
listCreditCards(): Promise<CreditCard[]> {
|
|
return Promise.resolve([]);
|
|
}
|
|
|
|
makeCreditCardDefault(cardId: string): Promise<void> {
|
|
throw new Error('Method not implemented');
|
|
}
|
|
|
|
paymentsHistory(): Promise<PaymentsHistoryItem[]> {
|
|
return Promise.resolve([]);
|
|
}
|
|
|
|
makeTokenDeposit(amount: number): Promise<TokenDeposit> {
|
|
return Promise.resolve(new TokenDeposit(amount, 'testAddress', 'testLink'));
|
|
}
|
|
|
|
getPaywallStatus(userId: string): Promise<boolean> {
|
|
throw new Error('Method not implemented');
|
|
}
|
|
}
|