From 6e473de6ec8fe864a47a456440543864cf0c7679 Mon Sep 17 00:00:00 2001 From: Rene Vergara Date: Mon, 18 Jul 2022 15:29:27 -0500 Subject: [PATCH] Add payment confirmation flag --- src/app/business/business.component.ts | 2 ++ src/app/fullnode.service.ts | 1 + src/app/header/header.component.ts | 1 + src/app/items/item-list/item-list.component.ts | 1 + src/app/login/login.component.ts | 1 + src/app/order/order.service.ts | 1 + src/app/owner.model.ts | 1 + src/app/receipt.service.ts | 1 + src/app/user.service.ts | 1 + src/app/viewer/viewer.component.ts | 1 + 10 files changed, 11 insertions(+) diff --git a/src/app/business/business.component.ts b/src/app/business/business.component.ts index 0832821..24ea02c 100644 --- a/src/app/business/business.component.ts +++ b/src/app/business/business.component.ts @@ -66,6 +66,7 @@ export class BusinessComponent implements OnInit { zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' } public countriesUpdate: Observable; @@ -173,6 +174,7 @@ export class BusinessComponent implements OnInit { zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }; this.userService.addOwner(this.owner); diff --git a/src/app/fullnode.service.ts b/src/app/fullnode.service.ts index bc3cdee..7c9ff44 100644 --- a/src/app/fullnode.service.ts +++ b/src/app/fullnode.service.ts @@ -47,6 +47,7 @@ export class FullnodeService{ zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }; diff --git a/src/app/header/header.component.ts b/src/app/header/header.component.ts index d7e57fa..ed47260 100644 --- a/src/app/header/header.component.ts +++ b/src/app/header/header.component.ts @@ -40,6 +40,7 @@ export class HeaderComponent implements OnInit, OnDestroy { zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }; private session: string | null = ''; diff --git a/src/app/items/item-list/item-list.component.ts b/src/app/items/item-list/item-list.component.ts index edc7136..04a10ca 100644 --- a/src/app/items/item-list/item-list.component.ts +++ b/src/app/items/item-list/item-list.component.ts @@ -47,6 +47,7 @@ export class ItemListComponent implements OnInit{ zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }; public ownerUpdate: Observable; diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts index 5f983b1..4016a68 100644 --- a/src/app/login/login.component.ts +++ b/src/app/login/login.component.ts @@ -60,6 +60,7 @@ export class LoginComponent implements OnInit, AfterViewInit { zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }; private FullnodeSub: Subscription = new Subscription(); diff --git a/src/app/order/order.service.ts b/src/app/order/order.service.ts index ab6cda3..fe3e567 100644 --- a/src/app/order/order.service.ts +++ b/src/app/order/order.service.ts @@ -48,6 +48,7 @@ export class OrderService { zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }, order: { diff --git a/src/app/owner.model.ts b/src/app/owner.model.ts index cb310d4..79b1bf8 100644 --- a/src/app/owner.model.ts +++ b/src/app/owner.model.ts @@ -21,5 +21,6 @@ export interface Owner { zats: boolean; invoices: boolean; expiration: string; + payconf: boolean; viewkey: string; } diff --git a/src/app/receipt.service.ts b/src/app/receipt.service.ts index ce5d314..cf17190 100644 --- a/src/app/receipt.service.ts +++ b/src/app/receipt.service.ts @@ -38,6 +38,7 @@ export class ReceiptService { zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }, order: { diff --git a/src/app/user.service.ts b/src/app/user.service.ts index 32df39e..618d740 100644 --- a/src/app/user.service.ts +++ b/src/app/user.service.ts @@ -44,6 +44,7 @@ export class UserService{ zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }, txs : [], diff --git a/src/app/viewer/viewer.component.ts b/src/app/viewer/viewer.component.ts index 420dfb0..84c7675 100644 --- a/src/app/viewer/viewer.component.ts +++ b/src/app/viewer/viewer.component.ts @@ -50,6 +50,7 @@ export class ViewerComponent implements OnInit { zats: false, invoices: false, expiration: new Date(Date.now()).toISOString(), + payconf: false, viewkey: '' }; public price: number = 1;