add bitcoin shop config and payment method enablement
This commit is contained in:
@@ -196,7 +196,9 @@ export class ShopSettingsService {
|
||||
}: ShopSettings): ShopSettingsView {
|
||||
const setupChecklist = this.buildSetupChecklist({ logoStorageKey, faviconStorageKey, simplexLink, shippingNote });
|
||||
|
||||
const { shopName, shopFiatCurrency, monero } = this.configService.get('shopSettings') as Config['shopSettings'];
|
||||
const { shopName, shopFiatCurrency, monero, bitcoin } = this.configService.get(
|
||||
'shopSettings'
|
||||
) as Config['shopSettings'];
|
||||
|
||||
const logoUrl = logoStorageKey ? getShopBrandingPublicUrl(logoStorageKey) : null;
|
||||
const faviconUrl = faviconStorageKey ? getShopBrandingPublicUrl(faviconStorageKey) : null;
|
||||
@@ -208,6 +210,7 @@ export class ShopSettingsService {
|
||||
shopName,
|
||||
shopFiatCurrency,
|
||||
monero,
|
||||
bitcoin,
|
||||
logoUrl,
|
||||
faviconUrl,
|
||||
simplexLink,
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import { ConfirmationTier } from '../../../types/ConfirmationTier';
|
||||
|
||||
export interface ShopSettingsBitcoinView {
|
||||
confirmationTiers: ConfirmationTier[];
|
||||
}
|
||||
@@ -1,12 +1,14 @@
|
||||
import { ShopFiatCurrency } from '../../../types/ShopFiatCurrency';
|
||||
import { SetupChecklist } from './SetupChecklist';
|
||||
import { ShopSettingsMoneroView } from './ShopSettingsMoneroView';
|
||||
import { ShopSettingsBitcoinView } from './ShopSettingsBitcoinView';
|
||||
|
||||
export interface ShopSettingsView {
|
||||
id: string | null;
|
||||
shopName: string;
|
||||
shopFiatCurrency: ShopFiatCurrency;
|
||||
monero: ShopSettingsMoneroView;
|
||||
bitcoin: ShopSettingsBitcoinView;
|
||||
logoUrl: string | null;
|
||||
faviconUrl: string | null;
|
||||
simplexLink: string | null;
|
||||
|
||||
Reference in New Issue
Block a user