@colijnit/transaction 261.20.60 → 261.20.62
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/fesm2022/colijnit-transaction.mjs +478 -363
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +19 -2
- package/lib/component/payment/style/_layout.scss +18 -0
- package/lib/component/payment/style/_material-definition.scss +2 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/style/_layout.scss +17 -0
- package/lib/component/transaction-cash-register-order/transaction-cash-register-payment-dialog/style/_material-definition.scss +1 -0
- package/package.json +1 -1
- package/colijnit-transaction-261.20.60.tgz +0 -0
package/index.d.ts
CHANGED
|
@@ -1501,6 +1501,8 @@ declare class TransactionConnectorAdapterService {
|
|
|
1501
1501
|
getDefaultEmailAddressListForWorkOrder(transactionUUID: string, showLoader?: boolean): Promise<string[]>;
|
|
1502
1502
|
previewWorkOrder(pdfWorkOrderRequest: PdfWorkOrderRequest, showLoader?: boolean): Promise<PdfWorkOrderResponse>;
|
|
1503
1503
|
roundUp(amount: number, paymentMethodCode: string, showLoader?: boolean): Promise<number>;
|
|
1504
|
+
cancelPspTransaction(pspTransactionUuid: string): Promise<boolean>;
|
|
1505
|
+
createQRCode(width: number, height: number, data: string): Promise<string>;
|
|
1504
1506
|
private _openPdfContent;
|
|
1505
1507
|
private _handleLocalPrintFile;
|
|
1506
1508
|
private _handleExceptionFromResponse;
|
|
@@ -1974,6 +1976,8 @@ declare class TransactionConnectorService {
|
|
|
1974
1976
|
getDefaultEmailAddressListForWorkOrder(transactionUUID: string, showLoader?: boolean): Promise<ReportLayoutSelectionEmail[]>;
|
|
1975
1977
|
previewWorkOrder(pdfWorkOrderRequest: PdfWorkOrderRequest, showLoader?: boolean): Promise<PdfWorkOrderResponse>;
|
|
1976
1978
|
roundUp(amount: number, paymentMethodCode: string, showLoader?: boolean): Promise<number>;
|
|
1979
|
+
cancelPspTransaction(pspTransactionUuid: string): Promise<boolean>;
|
|
1980
|
+
createQRCode(width: number, height: number, data: string): Promise<string>;
|
|
1977
1981
|
static ɵfac: i0.ɵɵFactoryDeclaration<TransactionConnectorService, never>;
|
|
1978
1982
|
static ɵprov: i0.ɵɵInjectableDeclaration<TransactionConnectorService>;
|
|
1979
1983
|
}
|
|
@@ -2828,6 +2832,8 @@ declare class TransactionService extends PendingReasonService {
|
|
|
2828
2832
|
previewWorkOrder(pdfWorkOrderRequest: PdfWorkOrderRequest, showLoader?: boolean): Promise<PdfWorkOrderResponse>;
|
|
2829
2833
|
sendPackageInformationToLSP(request: TransactionLspInformationRequest): Promise<TransactionInfoResponse>;
|
|
2830
2834
|
roundUp(amount: number, paymentMethodCode: string, showLoader?: boolean): Promise<number>;
|
|
2835
|
+
cancelPspTransaction(pspTransactionUuid: string): Promise<boolean>;
|
|
2836
|
+
createQRCode(width: number, height: number, data: string): Promise<string>;
|
|
2831
2837
|
protected _handleBeforeRememberCurrentTransaction(transactionInfoResponse: TransactionInfoResponse): Promise<void>;
|
|
2832
2838
|
protected _handleAfterRememberCurrentTransaction(): Promise<void>;
|
|
2833
2839
|
private _checkAndSaveLinesForAIConfirmation;
|
|
@@ -3258,8 +3264,11 @@ declare class TransactionPaymentService implements OnDestroy {
|
|
|
3258
3264
|
qrCodeImage: string;
|
|
3259
3265
|
qrCodeUrl: string;
|
|
3260
3266
|
showPspQrCode: boolean;
|
|
3267
|
+
showPspActions: boolean;
|
|
3261
3268
|
getDepositAmount: boolean;
|
|
3262
3269
|
cancelUrl: string;
|
|
3270
|
+
paymentUrl: string;
|
|
3271
|
+
pspTransactionUuid: string;
|
|
3263
3272
|
shouldContinue: boolean;
|
|
3264
3273
|
payed: Subject<void>;
|
|
3265
3274
|
paymentFailed: Subject<void>;
|
|
@@ -3278,13 +3287,14 @@ declare class TransactionPaymentService implements OnDestroy {
|
|
|
3278
3287
|
constructor(_transactionEventService: TransactionEventService, _paymentConnectorService: TransactionPaymentConnectorService, _dictionaryService: DictionaryService, _dialogService: TransactionDialogService, _transactionService: TransactionService, _datePipe: DatePipe);
|
|
3279
3288
|
ngOnDestroy(): void;
|
|
3280
3289
|
handlePayment(): Promise<void>;
|
|
3281
|
-
cancelPayment(): void
|
|
3290
|
+
cancelPayment(): Promise<void>;
|
|
3282
3291
|
roundUp(): Promise<void>;
|
|
3283
3292
|
preparePaymentInfo(): Promise<void>;
|
|
3284
3293
|
private _waitForPinPaymentStatus;
|
|
3285
3294
|
private _handlePayment;
|
|
3286
3295
|
private _handlePaymentFailed;
|
|
3287
3296
|
private _clearInterval;
|
|
3297
|
+
private _clearPspTransactionData;
|
|
3288
3298
|
private _dataUriToBase64;
|
|
3289
3299
|
private _setCashDrawerIdIfValidDrawer;
|
|
3290
3300
|
private _handleCashLimitCheck;
|
|
@@ -3389,8 +3399,12 @@ declare abstract class TransactionPaymentBaseComponent implements OnInit, OnDest
|
|
|
3389
3399
|
declare class PaymentComponent extends TransactionPaymentBaseComponent {
|
|
3390
3400
|
showClass: boolean;
|
|
3391
3401
|
depositAmount: number;
|
|
3402
|
+
qrCodeImageSrc: string;
|
|
3392
3403
|
cashRegisterSelected(cashRegister: CashRegister, index: number): Promise<void>;
|
|
3393
3404
|
onDepositPaymentFetched(depositAmount: number): void;
|
|
3405
|
+
handlePaymentUrlClicked(): void;
|
|
3406
|
+
handleShowQrCode(): Promise<void>;
|
|
3407
|
+
private _dataUriToBase64;
|
|
3394
3408
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentComponent, never>;
|
|
3395
3409
|
static ɵcmp: i0.ɵɵComponentDeclaration<PaymentComponent, "co-payment", never, {}, {}, never, never, false, never>;
|
|
3396
3410
|
}
|
|
@@ -15707,6 +15721,9 @@ declare class TransactionCashRegisterPaymentDialogComponent extends TransactionP
|
|
|
15707
15721
|
private _changePaymentState;
|
|
15708
15722
|
handleVoucherValidated(voucher: Voucher): void;
|
|
15709
15723
|
handleVoucherPopupClose(): void;
|
|
15724
|
+
handlePaymentUrlClicked(): void;
|
|
15725
|
+
handleShowQrCode(): Promise<void>;
|
|
15726
|
+
private _dataUriToBase64;
|
|
15710
15727
|
static ɵfac: i0.ɵɵFactoryDeclaration<TransactionCashRegisterPaymentDialogComponent, never>;
|
|
15711
15728
|
static ɵcmp: i0.ɵɵComponentDeclaration<TransactionCashRegisterPaymentDialogComponent, "co-transaction-cash-register-payment-dialog", never, { "relation": { "alias": "relation"; "required": false; }; "transactionNr": { "alias": "transactionNr"; "required": false; }; "paymentViewModel": { "alias": "paymentViewModel"; "required": false; }; }, { "closeDialog": "closeDialog"; "posOrderPayed": "posOrderPayed"; }, never, never, false, never>;
|
|
15712
15729
|
}
|
|
@@ -15733,7 +15750,7 @@ declare class TransactionCashRegisterPaymentButtonsComponent {
|
|
|
15733
15750
|
toCashRegisterOrderClicked: EventEmitter<void>;
|
|
15734
15751
|
changePaymentMethodClicked: EventEmitter<void>;
|
|
15735
15752
|
constructor(paymentService: TransactionPaymentService);
|
|
15736
|
-
handleCancelPayment(): void
|
|
15753
|
+
handleCancelPayment(): Promise<void>;
|
|
15737
15754
|
static ɵfac: i0.ɵɵFactoryDeclaration<TransactionCashRegisterPaymentButtonsComponent, never>;
|
|
15738
15755
|
static ɵcmp: i0.ɵɵComponentDeclaration<TransactionCashRegisterPaymentButtonsComponent, "co-transaction-cash-register-payment-buttons", never, {}, { "toCashRegisterOrderClicked": "toCashRegisterOrderClicked"; "changePaymentMethodClicked": "changePaymentMethodClicked"; }, never, never, false, never>;
|
|
15739
15756
|
}
|
|
@@ -139,5 +139,23 @@
|
|
|
139
139
|
grid-row: 1 / 3;
|
|
140
140
|
max-width: $tp-payment-keypad-max-width;
|
|
141
141
|
}
|
|
142
|
+
|
|
143
|
+
.action-button-wrapper {
|
|
144
|
+
display: flex;
|
|
145
|
+
flex-direction: row;
|
|
146
|
+
align-content: center;
|
|
147
|
+
justify-content: start;
|
|
148
|
+
gap: 0.25em;
|
|
149
|
+
margin: 1em 0;
|
|
150
|
+
|
|
151
|
+
.action-button {
|
|
152
|
+
display: flex;
|
|
153
|
+
width: 150px;
|
|
154
|
+
background: $tp-payment-color-action;
|
|
155
|
+
color: white;
|
|
156
|
+
padding: 0.25em 0.5em;
|
|
157
|
+
border-radius: 0.25em;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
142
160
|
}
|
|
143
161
|
}
|
|
@@ -33,6 +33,23 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
|
|
36
|
+
.action-button-wrapper {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-direction: row;
|
|
39
|
+
align-content: center;
|
|
40
|
+
justify-content: start;
|
|
41
|
+
gap: 0.25em;
|
|
42
|
+
margin: 1em 0;
|
|
43
|
+
|
|
44
|
+
.action-button {
|
|
45
|
+
display: flex;
|
|
46
|
+
width: 150px;
|
|
47
|
+
background: $tp-transaction-cash-register-color-action;
|
|
48
|
+
color: white;
|
|
49
|
+
padding: 0.25em 0.5em;
|
|
50
|
+
border-radius: 0.25em;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
36
53
|
.co-transaction-cash-register-payment-voucher{
|
|
37
54
|
|
|
38
55
|
.voucher-input {
|
|
@@ -37,6 +37,7 @@ $tp-transaction-cash-register-payment-dialog-button-border-width: 2px !default;
|
|
|
37
37
|
$tp-transaction-cash-register-payment-dialog-button-border-color: #0084de !default;
|
|
38
38
|
$tp-transaction-cash-register-payment-dialog-button-icon-color: #0084de !default;
|
|
39
39
|
$tp-transaction-cash-register-payment-dialog-receipt-button-min-width: 135px !default;
|
|
40
|
+
$tp-transaction-cash-register-color-action: #1A73E8;
|
|
40
41
|
|
|
41
42
|
$tp-transaction-cash-register-payment-dialog-button-border: 2px solid #0084de !default;
|
|
42
43
|
$tp-transaction-cash-register-payment-dialog-button-border-disabled: 2px solid rgba(#0084de, 0.5) !default;
|
package/package.json
CHANGED
|
Binary file
|