2019-11-27 14:57:56 +00:00
|
|
|
// Copyright (C) 2019 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
2020-05-12 18:16:04 +01:00
|
|
|
import {
|
|
|
|
AccountBalance,
|
|
|
|
CreditCard,
|
|
|
|
PaymentsApi,
|
2020-05-21 18:01:56 +01:00
|
|
|
PaymentsHistoryItem,
|
2020-05-12 18:16:04 +01:00
|
|
|
ProjectUsageAndCharges,
|
|
|
|
TokenDeposit,
|
|
|
|
} from '@/types/payments';
|
2019-11-27 14:57:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Mock for PaymentsApi
|
|
|
|
*/
|
|
|
|
export class PaymentsMock implements PaymentsApi {
|
|
|
|
setupAccount(): Promise<void> {
|
|
|
|
throw new Error('Method not implemented');
|
|
|
|
}
|
|
|
|
|
2020-05-12 18:16:04 +01:00
|
|
|
getBalance(): Promise<AccountBalance> {
|
|
|
|
return Promise.resolve(new AccountBalance());
|
2019-11-27 14:57:56 +00:00
|
|
|
}
|
|
|
|
|
2020-03-26 13:34:16 +00:00
|
|
|
projectsUsageAndCharges(): Promise<ProjectUsageAndCharges[]> {
|
2019-11-27 14:57:56 +00:00
|
|
|
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');
|
|
|
|
}
|
|
|
|
|
2020-05-21 18:01:56 +01:00
|
|
|
paymentsHistory(): Promise<PaymentsHistoryItem[]> {
|
2019-11-27 14:57:56 +00:00
|
|
|
return Promise.resolve([]);
|
|
|
|
}
|
|
|
|
|
|
|
|
makeTokenDeposit(amount: number): Promise<TokenDeposit> {
|
2020-03-12 15:32:40 +00:00
|
|
|
return Promise.resolve(new TokenDeposit(amount, 'testAddress', 'testLink'));
|
2019-11-27 14:57:56 +00:00
|
|
|
}
|
2020-07-10 14:05:17 +01:00
|
|
|
|
2020-08-20 20:38:17 +01:00
|
|
|
getPaywallStatus(userId: string): Promise<boolean> {
|
2020-07-10 14:05:17 +01:00
|
|
|
throw new Error('Method not implemented');
|
|
|
|
}
|
2019-11-27 14:57:56 +00:00
|
|
|
}
|