47a766328f
WHAT: 1. Deposit & Billing history view was divided to be shown separately as Deposit History and Billing History 2. Datepicker was removed from billing page WHY: billing UX enhancements Change-Id: Ie183849ef0965169997674ce37b71db38a562fc2
53 lines
1.3 KiB
TypeScript
53 lines
1.3 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'));
|
|
}
|
|
}
|