@colijnit/transaction 255.1.28 → 255.1.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-transaction.umd.js +58 -14
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/core/base/transaction-payment-base.component.js +4 -4
- package/esm2015/lib/service/transaction-payment.service.js +39 -6
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +41 -11
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/base/transaction-payment-base.component.d.ts +2 -2
- package/lib/service/transaction-payment.service.d.ts +10 -2
- package/package.json +3 -3
|
@@ -33,8 +33,8 @@ export declare abstract class TransactionPaymentBaseComponent implements OnInit,
|
|
|
33
33
|
get cashRegisterNr(): number;
|
|
34
34
|
set cashRegisterGroupId(value: number);
|
|
35
35
|
get cashRegisterGroupId(): number;
|
|
36
|
-
set cashRegisterDrawerId(value:
|
|
37
|
-
get cashRegisterDrawerId():
|
|
36
|
+
set cashRegisterDrawerId(value: string);
|
|
37
|
+
get cashRegisterDrawerId(): string;
|
|
38
38
|
set printerName(value: string);
|
|
39
39
|
get printerName(): string;
|
|
40
40
|
set emailLayout(value: ReportLayoutSelectionEmail);
|
|
@@ -8,12 +8,16 @@ import { HttpClient } from '@angular/common/http';
|
|
|
8
8
|
import { ReportLayoutSelectionPrint } from '@colijnit/mainapi/build/model/report-layout-selection-print.bo';
|
|
9
9
|
import { ReportLayoutSelectionEmail } from '@colijnit/mainapi/build/model/report-layout-selection-email.bo';
|
|
10
10
|
import { DialogService } from "./dialog.service";
|
|
11
|
+
import { TransactionService } from "./transaction.service";
|
|
12
|
+
import { DatePipe } from "@angular/common";
|
|
11
13
|
export declare class TransactionPaymentService implements OnDestroy {
|
|
12
14
|
private _transactionEventService;
|
|
13
15
|
private _paymentConnectorService;
|
|
14
16
|
private _dictionaryService;
|
|
15
17
|
private _dialogService;
|
|
16
18
|
private _http;
|
|
19
|
+
private _transactionService;
|
|
20
|
+
private _datePipe;
|
|
17
21
|
amount: number;
|
|
18
22
|
amountToPay: number;
|
|
19
23
|
statusMessage: string;
|
|
@@ -22,10 +26,11 @@ export declare class TransactionPaymentService implements OnDestroy {
|
|
|
22
26
|
transactionUuid: string;
|
|
23
27
|
set currentPaymentMethod(value: PaymentMethod);
|
|
24
28
|
get currentPaymentMethod(): PaymentMethod;
|
|
29
|
+
set cashRegisterDrawerNr(value: string);
|
|
30
|
+
get cashRegisterDrawerNr(): string;
|
|
25
31
|
currencyId: number;
|
|
26
32
|
cashRegisterNr: number;
|
|
27
33
|
cashRegisterGroupId: number;
|
|
28
|
-
cashRegisterDrawerId: number;
|
|
29
34
|
printerName: string;
|
|
30
35
|
printerLayout: ReportLayoutSelectionPrint;
|
|
31
36
|
emailLayout: ReportLayoutSelectionEmail;
|
|
@@ -39,13 +44,15 @@ export declare class TransactionPaymentService implements OnDestroy {
|
|
|
39
44
|
pollingForStatusStarted: Subject<void>;
|
|
40
45
|
pollingForStatusEnded: Subject<void>;
|
|
41
46
|
doNotFetchAmountToPayForRemaining: boolean;
|
|
47
|
+
private _cashRegisterDrawerNr;
|
|
48
|
+
private _cashRegisterDrawerId;
|
|
42
49
|
private _currentPaymentMethod;
|
|
43
50
|
private _paymentResult;
|
|
44
51
|
private _paymentStatusInterval;
|
|
45
52
|
private _paymentStatusPollIntervalMs;
|
|
46
53
|
private _paymentStatusMaxPollInterval;
|
|
47
54
|
private _paymentStatusPollIntervalCount;
|
|
48
|
-
constructor(_transactionEventService: TransactionEventService, _paymentConnectorService: TransactionPaymentConnectorService, _dictionaryService: DictionaryService, _dialogService: DialogService, _http: HttpClient);
|
|
55
|
+
constructor(_transactionEventService: TransactionEventService, _paymentConnectorService: TransactionPaymentConnectorService, _dictionaryService: DictionaryService, _dialogService: DialogService, _http: HttpClient, _transactionService: TransactionService, _datePipe: DatePipe);
|
|
49
56
|
ngOnDestroy(): void;
|
|
50
57
|
handlePayment(): Promise<void>;
|
|
51
58
|
cancelPayment(): void;
|
|
@@ -55,4 +62,5 @@ export declare class TransactionPaymentService implements OnDestroy {
|
|
|
55
62
|
private _handlePaymentFailed;
|
|
56
63
|
private _clearInterval;
|
|
57
64
|
private _dataUriToBase64;
|
|
65
|
+
private setCashDrawerIdIfValifDrawer;
|
|
58
66
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transaction",
|
|
3
|
-
"version": "255.1.
|
|
3
|
+
"version": "255.1.30",
|
|
4
4
|
"description": "Colijn IT transaction module for Angular 12",
|
|
5
5
|
"repository": "npm/npm",
|
|
6
6
|
"author": "Colijn IT",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"@colijnit/corecomponents": ">=1.12.0",
|
|
15
15
|
"@colijnit/corecomponents_v12": ">=255.1.8",
|
|
16
16
|
"@colijnit/ioneconnector": ">=255.1.1",
|
|
17
|
-
"@colijnit/mainapi": ">=255.1.
|
|
17
|
+
"@colijnit/mainapi": ">=255.1.5",
|
|
18
18
|
"@colijnit/product": ">=255.1.1",
|
|
19
19
|
"@colijnit/relation": ">=255.1.2",
|
|
20
20
|
"@colijnit/relationapi": ">=255.1.1",
|
|
21
21
|
"@colijnit/sharedapi": ">=1.0.20",
|
|
22
|
-
"@colijnit/sharedcomponents": ">=255.1.
|
|
22
|
+
"@colijnit/sharedcomponents": ">=255.1.16",
|
|
23
23
|
"@colijnit/transactionapi": ">=255.1.12",
|
|
24
24
|
"@types/three": ">=0.125.0",
|
|
25
25
|
"@tweenjs/tween.js": ">=17.2.0",
|