@colijnit/transaction 12.1.100 → 12.1.101
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 +167 -69
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.js +7 -5
- package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +6 -5
- package/esm2015/lib/component/payment/payment.component.js +62 -14
- package/esm2015/lib/component/transaction-card/transaction-card/transaction-card.component.js +2 -2
- package/esm2015/lib/component/transaction-card/transaction-card/transaction-card.module.js +9 -11
- package/esm2015/lib/component/transaction-header/transaction-header-order/transaction-header-order.component.js +3 -3
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +10 -8
- package/esm2015/lib/component/transaction-header-fields/transaction-header-currency.component.js +9 -8
- package/esm2015/lib/component/transaction-header-fields/transaction-header-price-kind.component.js +9 -8
- package/esm2015/lib/component/transaction-line/transaction-goods-allocation-line/transaction-goods-allocation-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-goods-allocation-line/transaction-goods-allocation-line.module.js +10 -11
- package/esm2015/lib/component/transaction-line/transaction-invoice-line/transaction-invoice-line.module.js +13 -14
- package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-line/transaction-line.module.js +5 -7
- package/esm2015/lib/component/transaction-line/transaction-order-delivery-line/transaction-order-delivery-line.module.js +3 -4
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.module.js +12 -13
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-method.component.js +3 -3
- package/esm2015/lib/component/transaction-lines/transaction-lines.component.js +2 -2
- package/esm2015/lib/component/transaction-lines/transaction-lines.module.js +4 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-delivery/transaction-quick-access-order-delivery.component.js +3 -3
- package/esm2015/lib/res/dictionary/dictionaries.js +2 -2
- package/esm2015/lib/service/payment.service.js +25 -11
- package/esm2015/lib/service/transaction-connector-adapter.service.js +28 -3
- package/esm2015/lib/service/transaction-connector.service.js +1 -9
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +143 -63
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.d.ts +6 -6
- package/lib/component/deposit-payment/deposit-payment.component.d.ts +5 -4
- package/lib/component/payment/payment.component.d.ts +4 -0
- package/lib/component/payment/style/_layout.scss +6 -0
- package/lib/component/payment/style/_material-definition.scss +5 -0
- package/lib/component/payment/style/_theme.scss +3 -0
- package/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.d.ts +7 -7
- package/lib/component/transaction-header-fields/transaction-header-currency.component.d.ts +5 -5
- package/lib/component/transaction-header-fields/transaction-header-price-kind.component.d.ts +5 -5
- package/lib/res/dictionary/dictionaries.d.ts +1 -0
- package/lib/service/payment.service.d.ts +8 -3
- package/lib/service/transaction-connector-adapter.service.d.ts +4 -1
- package/lib/service/transaction-connector.service.d.ts +0 -2
- package/package.json +2 -2
package/lib/component/checkout/checkout-overview-payment/checkout-overview-payment.component.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from
|
|
2
|
-
import { Address } from
|
|
3
|
-
import { TransactionInfoResponse } from
|
|
4
|
-
import { Icon } from
|
|
5
|
-
import { RelationAnyType } from
|
|
6
|
-
import { TransactionService } from
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Address } from '@colijnit/relationapi/build/model/address.bo';
|
|
3
|
+
import { TransactionInfoResponse } from '@colijnit/transactionapi/build/model/transaction-info-response.bo';
|
|
4
|
+
import { Icon } from '../../../enum/icon.enum';
|
|
5
|
+
import { RelationAnyType } from '../../../model/relation-any-type';
|
|
6
|
+
import { TransactionService } from '../../../service/transaction.service';
|
|
7
7
|
export declare class CheckoutOverviewPaymentComponent implements OnInit {
|
|
8
8
|
private _transactionService;
|
|
9
9
|
readonly icons: typeof Icon;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { DepositPaymentViewModel } from
|
|
3
|
-
import { PaymentViewmodel } from
|
|
4
|
-
import { PaymentService } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DepositPaymentViewModel } from '../../model/deposit-payment-view-model';
|
|
3
|
+
import { PaymentViewmodel } from '../../model/payment.viewmodel';
|
|
4
|
+
import { PaymentService } from '../../service/payment.service';
|
|
5
5
|
export declare class DepositPaymentComponent implements OnInit {
|
|
6
6
|
private _paymentService;
|
|
7
|
+
branch: string;
|
|
7
8
|
transactionUuid: string;
|
|
8
9
|
showClass(): boolean;
|
|
9
10
|
paymentMethods: PaymentViewmodel[];
|
|
@@ -12,7 +12,9 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
12
12
|
private _sharedService;
|
|
13
13
|
private _paymentService;
|
|
14
14
|
readonly icons: typeof Icon;
|
|
15
|
+
transId: number;
|
|
15
16
|
transactionUuid: string;
|
|
17
|
+
branch: string;
|
|
16
18
|
set amount(value: number);
|
|
17
19
|
get amount(): number;
|
|
18
20
|
currencyId: number;
|
|
@@ -30,6 +32,7 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
30
32
|
qrCodeImage: string;
|
|
31
33
|
showLoader: boolean;
|
|
32
34
|
amountToPay: number;
|
|
35
|
+
statusMessage: string;
|
|
33
36
|
private _amount;
|
|
34
37
|
private _paymentStatusInterval;
|
|
35
38
|
private _paymentStatusPollIntervalMs;
|
|
@@ -46,6 +49,7 @@ export declare class PaymentComponent implements OnInit, OnDestroy {
|
|
|
46
49
|
private _getDepositPaymentInfo;
|
|
47
50
|
private _dataUriToBase64;
|
|
48
51
|
private _waitForPaymentStatus;
|
|
52
|
+
private _waitForPinPaymentStatus;
|
|
49
53
|
private _clearInterval;
|
|
50
54
|
/**
|
|
51
55
|
*
|
|
@@ -84,6 +84,12 @@
|
|
|
84
84
|
.payment-to-pay-button {
|
|
85
85
|
grid-column: 1 / 1;
|
|
86
86
|
grid-row: 3 / 3;
|
|
87
|
+
.payment-error-message {
|
|
88
|
+
margin: $tp-payment-error-margin;
|
|
89
|
+
font-family: $tp-payment-error-font-family;
|
|
90
|
+
font-size: $tp-payment-error-font-size;
|
|
91
|
+
font-style: $tp-payment-error-font-style;
|
|
92
|
+
}
|
|
87
93
|
.co-button {
|
|
88
94
|
justify-content: center;
|
|
89
95
|
border-radius: 5px;
|
|
@@ -18,3 +18,8 @@ $tp-payment-amount-color: rgba(0, 0, 0, 0.5) !default;
|
|
|
18
18
|
$tp-payment-amount-border: 1px solid !default;
|
|
19
19
|
$tp-payment-amount-border-color: $tp-color-border !default;
|
|
20
20
|
$tp-payment-amount-background-color: #dedede5c !default;
|
|
21
|
+
$tp-payment-error-margin: 5px 0 !default;
|
|
22
|
+
$tp-payment-error-font-family: $tp-font-family !default;
|
|
23
|
+
$tp-payment-error-font-size: $tp-font-size !default;
|
|
24
|
+
$tp-payment-error-font-style: italic !default;
|
|
25
|
+
$tp-payment-error-font-color: $tp-color-error !default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TransactionBaseComponent } from
|
|
2
|
-
import { Icon } from
|
|
3
|
-
import { IconCacheService } from
|
|
4
|
-
import { TransactionService } from
|
|
5
|
-
import { PaymentService } from
|
|
6
|
-
import { DepositPaymentViewModel } from
|
|
7
|
-
import { PaymentViewmodel } from
|
|
1
|
+
import { TransactionBaseComponent } from '../../core/base/transaction-base.component';
|
|
2
|
+
import { Icon } from '../../../enum/icon.enum';
|
|
3
|
+
import { IconCacheService } from '../../../service/icon-cache.service';
|
|
4
|
+
import { TransactionService } from '../../../service/transaction.service';
|
|
5
|
+
import { PaymentService } from '../../../service/payment.service';
|
|
6
|
+
import { DepositPaymentViewModel } from '../../../model/deposit-payment-view-model';
|
|
7
|
+
import { PaymentViewmodel } from '../../../model/payment.viewmodel';
|
|
8
8
|
import { DictionaryService } from '../../../service/dictionary.service';
|
|
9
9
|
export declare class TransactionHeaderPaymentComponent extends TransactionBaseComponent {
|
|
10
10
|
protected dictionaryService: DictionaryService;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { TransactionService } from
|
|
3
|
-
import { RelationService } from
|
|
4
|
-
import { TransactionFilterPopupBaseComponent } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TransactionService } from '../../service/transaction.service';
|
|
3
|
+
import { RelationService } from '../../service/relation.service';
|
|
4
|
+
import { TransactionFilterPopupBaseComponent } from '../core/base/transaction-filter-popup-base.component';
|
|
5
5
|
import { DictionaryService } from '../../service/dictionary.service';
|
|
6
6
|
import { Currency } from '@colijnit/mainapi/build/model/currency.bo';
|
|
7
7
|
export declare class TransactionHeaderCurrencyComponent extends TransactionFilterPopupBaseComponent<Currency> implements OnInit {
|
|
@@ -12,5 +12,5 @@ export declare class TransactionHeaderCurrencyComponent extends TransactionFilte
|
|
|
12
12
|
constructor(dictionaryService: DictionaryService, transactionService: TransactionService, _relationService: RelationService);
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
commitTransactionCurrency(currency: number): Promise<boolean>;
|
|
15
|
-
protected
|
|
15
|
+
protected transactionSet(): void;
|
|
16
16
|
}
|
package/lib/component/transaction-header-fields/transaction-header-price-kind.component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OnInit } from
|
|
2
|
-
import { TransactionService } from
|
|
3
|
-
import { RelationService } from
|
|
4
|
-
import { TransactionFilterPopupBaseComponent } from
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TransactionService } from '../../service/transaction.service';
|
|
3
|
+
import { RelationService } from '../../service/relation.service';
|
|
4
|
+
import { TransactionFilterPopupBaseComponent } from '../core/base/transaction-filter-popup-base.component';
|
|
5
5
|
import { DictionaryService } from '../../service/dictionary.service';
|
|
6
6
|
import { SalesPerson } from '@colijnit/relationapi/build/model/sales-person.bo';
|
|
7
7
|
export declare class TransactionHeaderPriceKindComponent extends TransactionFilterPopupBaseComponent<SalesPerson> implements OnInit {
|
|
@@ -12,5 +12,5 @@ export declare class TransactionHeaderPriceKindComponent extends TransactionFilt
|
|
|
12
12
|
constructor(dictionaryService: DictionaryService, transactionService: TransactionService, _relationService: RelationService);
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
commitTransactionPriceKind(priceKind: string): Promise<boolean>;
|
|
15
|
-
protected
|
|
15
|
+
protected transactionSet(): void;
|
|
16
16
|
}
|
|
@@ -16337,6 +16337,7 @@ export declare class Dictionaries {
|
|
|
16337
16337
|
TRANSACTION_NOT_DEFINITIVE_SPECIFY_ON_HOLD_CODE: string;
|
|
16338
16338
|
TRANSACTION_NO_DIRECT_SELL_ADD_WHEN_ALREADY_ORDERED_FOR_SUPPLIER: string;
|
|
16339
16339
|
TRANSACTION_NO_DIRECT_SELL_WHEN_ALREADY_ORDERED_FOR_SUPPLIER: string;
|
|
16340
|
+
TRANSACTION_NO_PARTIAL_DELIVERY: string;
|
|
16340
16341
|
TRANSACTION_NR_EXISTS: string;
|
|
16341
16342
|
TRANSACTION_NUMBER2: string;
|
|
16342
16343
|
TRANSACTION_NUMBER: string;
|
|
@@ -7,16 +7,21 @@ import { SelectMultipleCacheService } from '../cache/service/select-multiple-cac
|
|
|
7
7
|
import { PaymentViewmodel } from '../model/payment.viewmodel';
|
|
8
8
|
import { SharedService } from './shared.service';
|
|
9
9
|
import { TransactionDepositPaymentInfo } from '@colijnit/transactionapi/build/model/transaction-deposit-payment-info.bo';
|
|
10
|
+
import { PspTransactionStatus } from '@colijnit/transactionapi/build/model/psp-transaction-status.bo';
|
|
11
|
+
import { SelectMultipleParameterizedCacheService } from '../cache/service/select-multiple-parameterized-cache.service';
|
|
10
12
|
export declare class PaymentService {
|
|
11
13
|
private _adapterService;
|
|
12
14
|
private _selectMultipleCacheService;
|
|
15
|
+
private _selectMultipleParameterizedCacheService;
|
|
13
16
|
private _transactionService;
|
|
14
17
|
private _sharedService;
|
|
15
|
-
constructor(_adapterService: TransactionConnectorAdapterService, _selectMultipleCacheService: SelectMultipleCacheService, _transactionService: TransactionService, _sharedService: SharedService);
|
|
18
|
+
constructor(_adapterService: TransactionConnectorAdapterService, _selectMultipleCacheService: SelectMultipleCacheService, _selectMultipleParameterizedCacheService: SelectMultipleParameterizedCacheService, _transactionService: TransactionService, _sharedService: SharedService);
|
|
16
19
|
registerSalesOrderPayment(uuid: string, amount: number, currencyId: number, paymentMethod: string, cashRegisterGroupId: number): Promise<boolean>;
|
|
17
20
|
createIonePaymentLinkAndQRCode(uuid: string, amount: number, paymentMethodCode: string): Promise<CreatePaymentLinkResult>;
|
|
21
|
+
doPinPayment(transId: number, paymentMethodCode: string, cashRegisterNr: number, cashRegisterGroupId: number, amount: number): Promise<string>;
|
|
18
22
|
getPaymentLinkStatus(paymentLinkUUID: string): Promise<PaymentLinkStatus>;
|
|
23
|
+
getPspTransactionStatus(pspTransactionUuid: string): Promise<PspTransactionStatus>;
|
|
19
24
|
getDepositPaymentInfo(uuid: string): Promise<TransactionDepositPaymentInfo>;
|
|
20
|
-
getPaymentMethods(): Promise<PaymentMethod[]>;
|
|
21
|
-
getPaymentMethodsViewModels(): Promise<PaymentViewmodel[]>;
|
|
25
|
+
getPaymentMethods(branchNr: string): Promise<PaymentMethod[]>;
|
|
26
|
+
getPaymentMethodsViewModels(branchNr: string): Promise<PaymentViewmodel[]>;
|
|
22
27
|
}
|
|
@@ -81,6 +81,7 @@ import { HistoricReport } from '@colijnit/transactionapi/build/model/historic-re
|
|
|
81
81
|
import { Printer } from '@colijnit/mainapi/build/model/printer.bo';
|
|
82
82
|
import { Currency } from '@colijnit/mainapi/build/model/currency.bo';
|
|
83
83
|
import { PaymentCondition } from '@colijnit/mainapi/build/model/payment-condition.bo';
|
|
84
|
+
import { PspTransactionStatus } from '@colijnit/transactionapi/build/model/psp-transaction-status.bo';
|
|
84
85
|
export declare class TransactionConnectorAdapterService {
|
|
85
86
|
private _optionsService;
|
|
86
87
|
private _selectMultipleCacheService;
|
|
@@ -125,7 +126,7 @@ export declare class TransactionConnectorAdapterService {
|
|
|
125
126
|
getOnHoldCodes(): Promise<OnHoldCode[]>;
|
|
126
127
|
getWarehouses(branchNr?: string): Promise<Warehouse[]>;
|
|
127
128
|
getHistoricStateValues(): Promise<CodeDescription[]>;
|
|
128
|
-
getPaymentMethods(): Promise<PaymentMethod[]>;
|
|
129
|
+
getPaymentMethods(branchNr: string): Promise<PaymentMethod[]>;
|
|
129
130
|
commit(): Promise<boolean>;
|
|
130
131
|
rollback(): Promise<boolean>;
|
|
131
132
|
createTransaction(kind: TransactionKind, branchNr: string): Promise<TransactionInfoResponse>;
|
|
@@ -183,7 +184,9 @@ export declare class TransactionConnectorAdapterService {
|
|
|
183
184
|
changeTransactionLineCollectionCode(uuid: string, lineUuid: string, code: string): Promise<TransactionInfoResponse>;
|
|
184
185
|
registerSalesOrderPayment(uuid: string, amount: number, currencyId: number, paymentMethod: string, cashRegisterGroupId: number): Promise<DataServiceResponseData>;
|
|
185
186
|
createIonePaymentLinkAndQRCode(uuid: string, amount: number, paymentMethodCode: string): Promise<CreatePaymentLinkResult>;
|
|
187
|
+
doPinPayment(transId: number, paymentMethodCode: string, cashRegisterNr: number, cashRegisterGroupId: number, amount: number): Promise<string>;
|
|
186
188
|
getPaymentLinkStatus(paymentLinkUUID: string): Promise<PaymentLinkStatus>;
|
|
189
|
+
getPspTransactionStatus(pspTransactionUuid: string): Promise<PspTransactionStatus>;
|
|
187
190
|
getDepositPaymentInfo(uuid: string): Promise<TransactionDepositPaymentInfo>;
|
|
188
191
|
getGoodsReceiptHistory(transId: number, lineNr: number): Promise<GoodsReceiptHistory>;
|
|
189
192
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<TransactionInfoResponse>;
|
|
@@ -22,7 +22,6 @@ import { Warehouse } from '@colijnit/transactionapi/build/model/warehouse.bo';
|
|
|
22
22
|
import { CodeDescription } from '@colijnit/transactionapi/build/model/code-description';
|
|
23
23
|
import { ReceiveGoodsForPurchaseOrderRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-request.bo';
|
|
24
24
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from '@colijnit/transactionapi/build/model/receive-goods-for-purchase-order-correction-request.bo';
|
|
25
|
-
import { PaymentMethod } from '@colijnit/transactionapi/build/model/payment-method.bo';
|
|
26
25
|
import { GetPurchasePortalLine } from '@colijnit/transactionapi/build/model/get-purchase-portal-line';
|
|
27
26
|
import { PurchasePortalLine } from '@colijnit/transactionapi/build/model/purchase-portal-line.bo';
|
|
28
27
|
import { CreatePaymentLinkResult } from '@colijnit/transactionapi/build/model/create-payment-link-result.bo';
|
|
@@ -135,7 +134,6 @@ export declare class TransactionConnectorService {
|
|
|
135
134
|
getOnHoldCodes(): Promise<OnHoldCode[]>;
|
|
136
135
|
getWarehouses(branchNr?: string): Promise<Warehouse[]>;
|
|
137
136
|
getHistoricStateValues(): Promise<CodeDescription[]>;
|
|
138
|
-
getPaymentMethods(): Promise<PaymentMethod[]>;
|
|
139
137
|
changeTransactionLineCommissionCode(uuid: string, lineUuid: string, code: string): Promise<TransactionInfoResponse>;
|
|
140
138
|
changeTransactionLineSupplier(uuid: string, lineUuid: string, id: number): Promise<TransactionInfoResponse>;
|
|
141
139
|
changeTransactionLineWarehouse(uuid: string, lineUuid: string, warehouseNumber: number): Promise<TransactionInfoResponse>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@colijnit/transaction",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.101",
|
|
4
4
|
"description": "Colijn IT transaction module for Angular 12",
|
|
5
5
|
"repository": "npm/npm",
|
|
6
6
|
"author": "Colijn IT",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@colijnit/relationapi": ">=1.0.5",
|
|
19
19
|
"@colijnit/sharedapi": ">=1.0.10",
|
|
20
20
|
"@colijnit/sharedcomponents": ">=1.0.40",
|
|
21
|
-
"@colijnit/transactionapi": ">=1.1.
|
|
21
|
+
"@colijnit/transactionapi": ">=1.1.78",
|
|
22
22
|
"@syncfusion/ej2-angular-buttons": ">=19.3.44",
|
|
23
23
|
"@syncfusion/ej2-angular-calendars": ">=19.3.44",
|
|
24
24
|
"@syncfusion/ej2-angular-dropdowns": ">=19.3.45",
|