@colijnit/transactionapi 1.1.25 → 1.1.28
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/build/enum/module-name.enum.d.ts +2 -1
- package/build/enum/module-name.enum.js +1 -0
- package/build/enum/payment-method.enum.d.ts +2 -1
- package/build/enum/payment-method.enum.js +1 -0
- package/build/ione-api-transaction.d.ts +8 -0
- package/build/model/create-payment-link-request.d.ts +5 -0
- package/build/model/create-payment-link-request.js +6 -0
- package/build/model/create-payment-link-result.bo.d.ts +7 -0
- package/build/model/create-payment-link-result.bo.js +22 -0
- package/build/model/doc-delivery-batch.bo.d.ts +11 -0
- package/build/model/doc-delivery-batch.bo.js +22 -0
- package/build/model/get-purchase-portal-line.d.ts +14 -0
- package/build/model/get-purchase-portal-line.js +6 -0
- package/build/model/purchase-portal-filters.bo.d.ts +23 -0
- package/build/model/purchase-portal-filters.bo.js +22 -0
- package/build/model/purchase-portal-line.bo.d.ts +53 -0
- package/build/model/purchase-portal-line.bo.js +22 -0
- package/build/model/purchase-portal-object-name.enum.d.ts +3 -0
- package/build/model/purchase-portal-object-name.enum.js +4 -0
- package/build/transaction-auth.d.ts +8 -0
- package/build/transaction-auth.js +58 -0
- package/build/transaction-public.d.ts +8 -0
- package/build/transaction-public.js +20 -0
- package/build/transaction.d.ts +8 -0
- package/build/transaction.js +31 -0
- package/build/transaction.unit.test.js +121 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare enum PaymentMethod {
|
|
2
2
|
CreateOutstandingEntry = "createOutstandingEntry",
|
|
3
|
-
RegisterSalesOrderPayment = "registerSalesOrderPayment"
|
|
3
|
+
RegisterSalesOrderPayment = "registerSalesOrderPayment",
|
|
4
|
+
CreateIonePaymentLinkAndQRCode = "createIonePaymentLinkAndQRCode"
|
|
4
5
|
}
|
|
@@ -2,4 +2,5 @@ export var PaymentMethod;
|
|
|
2
2
|
(function (PaymentMethod) {
|
|
3
3
|
PaymentMethod["CreateOutstandingEntry"] = "createOutstandingEntry";
|
|
4
4
|
PaymentMethod["RegisterSalesOrderPayment"] = "registerSalesOrderPayment";
|
|
5
|
+
PaymentMethod["CreateIonePaymentLinkAndQRCode"] = "createIonePaymentLinkAndQRCode";
|
|
5
6
|
})(PaymentMethod || (PaymentMethod = {}));
|
|
@@ -29,6 +29,9 @@ import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-p
|
|
|
29
29
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
30
30
|
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
31
31
|
import { PaymentRequest } from './model/payment-request';
|
|
32
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
33
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
34
|
+
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
32
35
|
export declare abstract class IoneApiTransaction {
|
|
33
36
|
readonly showLoader: Subject<boolean>;
|
|
34
37
|
readonly connectionAborted: Subject<void>;
|
|
@@ -85,6 +88,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
85
88
|
abstract setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
86
89
|
abstract createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
87
90
|
abstract registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
91
|
+
abstract createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
88
92
|
abstract getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
89
93
|
abstract changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
90
94
|
abstract changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
@@ -106,5 +110,9 @@ export declare abstract class IoneApiTransaction {
|
|
|
106
110
|
abstract getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
107
111
|
abstract receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
108
112
|
abstract receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
113
|
+
abstract getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
114
|
+
abstract updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
115
|
+
abstract lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
116
|
+
abstract deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
109
117
|
protected endPoint: string;
|
|
110
118
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BusinessObject } from './business-object';
|
|
15
|
+
var CreatePaymentLinkResult = (function (_super) {
|
|
16
|
+
__extends(CreatePaymentLinkResult, _super);
|
|
17
|
+
function CreatePaymentLinkResult() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return CreatePaymentLinkResult;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { CreatePaymentLinkResult };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
export declare class DocDeliveryBatch extends BusinessObject {
|
|
3
|
+
deliveryBatch: string;
|
|
4
|
+
docAmountOrg: number;
|
|
5
|
+
docAmount: number;
|
|
6
|
+
docDateOrg: number;
|
|
7
|
+
docDate: number;
|
|
8
|
+
reference: string;
|
|
9
|
+
confirmedPrice: number;
|
|
10
|
+
deleteLine: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BusinessObject } from "./business-object";
|
|
15
|
+
var DocDeliveryBatch = (function (_super) {
|
|
16
|
+
__extends(DocDeliveryBatch, _super);
|
|
17
|
+
function DocDeliveryBatch() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return DocDeliveryBatch;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { DocDeliveryBatch };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PurchasePortalFilters } from "./purchase-portal-filters.bo";
|
|
2
|
+
export declare class GetPurchasePortalLine {
|
|
3
|
+
transIdPurchase: number;
|
|
4
|
+
selOrdered: string;
|
|
5
|
+
selPurchaseResp: string;
|
|
6
|
+
selPurchaseRespNotToDo: string;
|
|
7
|
+
selTranspNot: string;
|
|
8
|
+
selTranspNotToDo: string;
|
|
9
|
+
selRepReceived: string;
|
|
10
|
+
onlyInContainer: string;
|
|
11
|
+
docKind: string;
|
|
12
|
+
filterObject: PurchasePortalFilters;
|
|
13
|
+
containerId: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
export declare class PurchasePortalFilters extends BusinessObject {
|
|
3
|
+
supplierNo: string;
|
|
4
|
+
purchaseOrderDate: string;
|
|
5
|
+
purchaseOrderNo: string;
|
|
6
|
+
deliveryState: string;
|
|
7
|
+
articleNo: string;
|
|
8
|
+
superArticle: string;
|
|
9
|
+
turnOverGroup: string;
|
|
10
|
+
deliveryDate: string;
|
|
11
|
+
deliveryDateConfirmed: string;
|
|
12
|
+
serialNo: string;
|
|
13
|
+
batchNo: string;
|
|
14
|
+
branchNo: string;
|
|
15
|
+
wareHouseNo: string;
|
|
16
|
+
reference: string;
|
|
17
|
+
processingState: number;
|
|
18
|
+
tag: string;
|
|
19
|
+
acceptanceProcessingState: number;
|
|
20
|
+
supplierGroupNo: string;
|
|
21
|
+
purchasePersonNo: string;
|
|
22
|
+
deliveryBatch: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BusinessObject } from "./business-object";
|
|
15
|
+
var PurchasePortalFilters = (function (_super) {
|
|
16
|
+
__extends(PurchasePortalFilters, _super);
|
|
17
|
+
function PurchasePortalFilters() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return PurchasePortalFilters;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { PurchasePortalFilters };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
import { DocDeliveryBatch } from "./doc-delivery-batch.bo";
|
|
3
|
+
export declare class PurchasePortalLine extends BusinessObject {
|
|
4
|
+
transIdPurchase: number;
|
|
5
|
+
transIdSales: string;
|
|
6
|
+
lineId: string;
|
|
7
|
+
transNo: string;
|
|
8
|
+
lineNo: string;
|
|
9
|
+
transactionDate: string;
|
|
10
|
+
supplierNo: string;
|
|
11
|
+
supplierName: string;
|
|
12
|
+
articleNo: string;
|
|
13
|
+
description: string;
|
|
14
|
+
volume: string;
|
|
15
|
+
currencyPurchCode: string;
|
|
16
|
+
noDecimalsPurch: string;
|
|
17
|
+
grossOrderPrice: string;
|
|
18
|
+
discountOrderPrice: string;
|
|
19
|
+
netOrderPrice: string;
|
|
20
|
+
currencyConfCode: string;
|
|
21
|
+
noDecimalsConf: string;
|
|
22
|
+
confirmedPrice: string;
|
|
23
|
+
amountOrdered: string;
|
|
24
|
+
amountConfirmed: string;
|
|
25
|
+
amountConfirmedOrg: string;
|
|
26
|
+
amountAccepted: string;
|
|
27
|
+
amountAcceptedOrg: string;
|
|
28
|
+
amountShipped: string;
|
|
29
|
+
amountShippedOrg: string;
|
|
30
|
+
amountShippedTotal: string;
|
|
31
|
+
amountToBeShipped: string;
|
|
32
|
+
amountSignedIn: string;
|
|
33
|
+
amountToBeConfirmed: string;
|
|
34
|
+
deliveryDate: Date;
|
|
35
|
+
deliveryDateConfirmed: Date;
|
|
36
|
+
deliveryDateConfirmedOrg: string;
|
|
37
|
+
transportDate: string;
|
|
38
|
+
arrivalDate: string;
|
|
39
|
+
amountShippingTimes: string;
|
|
40
|
+
selected: string;
|
|
41
|
+
reference: string;
|
|
42
|
+
referenceOriginal: string;
|
|
43
|
+
referenceFromHeader: string;
|
|
44
|
+
user: string;
|
|
45
|
+
docKind: string;
|
|
46
|
+
containerId: string;
|
|
47
|
+
deleteDoc: string;
|
|
48
|
+
articleRelatedText: string;
|
|
49
|
+
articleNoSupplier: string;
|
|
50
|
+
deliveryBatchOrg: string;
|
|
51
|
+
deliveryBatch: string;
|
|
52
|
+
docBatchArray: DocDeliveryBatch[];
|
|
53
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BusinessObject } from "./business-object";
|
|
15
|
+
var PurchasePortalLine = (function (_super) {
|
|
16
|
+
__extends(PurchasePortalLine, _super);
|
|
17
|
+
function PurchasePortalLine() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return PurchasePortalLine;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { PurchasePortalLine };
|
|
@@ -28,6 +28,9 @@ import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-
|
|
|
28
28
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
29
29
|
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
30
30
|
import { PaymentRequest } from './model/payment-request';
|
|
31
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
32
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
33
|
+
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
31
34
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
32
35
|
private _boSerializer;
|
|
33
36
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -94,11 +97,16 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
94
97
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
95
98
|
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
96
99
|
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
100
|
+
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
97
101
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
98
102
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
99
103
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
100
104
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
101
105
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
106
|
+
getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
107
|
+
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
108
|
+
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
109
|
+
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
102
110
|
private _getDomainCollection;
|
|
103
111
|
private _getMultipleDomainCollection;
|
|
104
112
|
private callGetNodeData;
|
|
@@ -68,6 +68,7 @@ import { TransactionObjectName } from './enum/transaction-object-name.enum';
|
|
|
68
68
|
import { TagObjectName } from './enum/tag-object-name.enum';
|
|
69
69
|
import { TagOperationName } from './enum/tag-operation-name.enum';
|
|
70
70
|
import { PaymentMethod } from './enum/payment-method.enum';
|
|
71
|
+
import { PurchasePortal } from "./model/purchase-portal-object-name.enum";
|
|
71
72
|
var TransactionAuth = (function (_super) {
|
|
72
73
|
__extends(TransactionAuth, _super);
|
|
73
74
|
function TransactionAuth() {
|
|
@@ -701,6 +702,20 @@ var TransactionAuth = (function (_super) {
|
|
|
701
702
|
};
|
|
702
703
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
703
704
|
};
|
|
705
|
+
TransactionAuth.prototype.createIonePaymentLinkAndQRCode = function (request) {
|
|
706
|
+
var params = {
|
|
707
|
+
transUUID: request.transUUID,
|
|
708
|
+
amount: request.amount,
|
|
709
|
+
paymentMethodCode: request.paymentMethodCode
|
|
710
|
+
};
|
|
711
|
+
var data = {
|
|
712
|
+
moduleName: ModuleName.Accounting,
|
|
713
|
+
methodName: PaymentMethod.CreateIonePaymentLinkAndQRCode,
|
|
714
|
+
parameterValues: params,
|
|
715
|
+
refCursorAsArray: true
|
|
716
|
+
};
|
|
717
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
718
|
+
};
|
|
704
719
|
TransactionAuth.prototype.getPaymentMethods = function () {
|
|
705
720
|
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PaymentMethod);
|
|
706
721
|
};
|
|
@@ -748,6 +763,49 @@ var TransactionAuth = (function (_super) {
|
|
|
748
763
|
};
|
|
749
764
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
750
765
|
};
|
|
766
|
+
TransactionAuth.prototype.getPurchasePortalLines = function (purchasePortalLine) {
|
|
767
|
+
var params = {
|
|
768
|
+
transIdPurchase: purchasePortalLine.transIdPurchase,
|
|
769
|
+
selOrdered: purchasePortalLine.selOrdered,
|
|
770
|
+
selPurchaseResp: purchasePortalLine.selPurchaseResp,
|
|
771
|
+
selPurchaseRespNotToDo: purchasePortalLine.selPurchaseRespNotToDo,
|
|
772
|
+
selTranspNot: purchasePortalLine.selTranspNot,
|
|
773
|
+
selTranspNotToDo: purchasePortalLine.selTranspNotToDo,
|
|
774
|
+
selRepReceived: purchasePortalLine.selRepReceived,
|
|
775
|
+
onlyInContainer: purchasePortalLine.onlyInContainer,
|
|
776
|
+
docKind: purchasePortalLine.docKind,
|
|
777
|
+
filterObject: purchasePortalLine.filterObject,
|
|
778
|
+
containerId: purchasePortalLine.containerId,
|
|
779
|
+
};
|
|
780
|
+
return this.selectMultiple(ModuleName.PurchasePortal, PurchasePortal.PurchaseOrderLine, "", params);
|
|
781
|
+
};
|
|
782
|
+
TransactionAuth.prototype.updatePurchasePortalLines = function (request) {
|
|
783
|
+
var data = {
|
|
784
|
+
moduleName: ModuleName.PurchasePortal,
|
|
785
|
+
objectName: PurchasePortal.PurchaseOrderLine,
|
|
786
|
+
refCursorAsArray: true,
|
|
787
|
+
object: request
|
|
788
|
+
};
|
|
789
|
+
return this._call(DataServiceMethod.UpdateObject, data);
|
|
790
|
+
};
|
|
791
|
+
TransactionAuth.prototype.lockPurchasePortalLines = function (request) {
|
|
792
|
+
var data = {
|
|
793
|
+
moduleName: ModuleName.PurchasePortal,
|
|
794
|
+
objectName: PurchasePortal.PurchaseOrderLine,
|
|
795
|
+
refCursorAsArray: true,
|
|
796
|
+
parameterValues: request
|
|
797
|
+
};
|
|
798
|
+
return this._call(DataServiceMethod.LockObject, data);
|
|
799
|
+
};
|
|
800
|
+
TransactionAuth.prototype.deletePurchasePortalLines = function (request) {
|
|
801
|
+
var data = {
|
|
802
|
+
moduleName: ModuleName.PurchasePortal,
|
|
803
|
+
objectName: PurchasePortal.PurchaseOrderLine,
|
|
804
|
+
refCursorAsArray: true,
|
|
805
|
+
parameterValues: request
|
|
806
|
+
};
|
|
807
|
+
return this._call(DataServiceMethod.InsertObject, data);
|
|
808
|
+
};
|
|
751
809
|
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
752
810
|
var params = {
|
|
753
811
|
domainName: domainName,
|
|
@@ -28,6 +28,9 @@ import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-p
|
|
|
28
28
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
29
29
|
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
30
30
|
import { PaymentRequest } from './model/payment-request';
|
|
31
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
32
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
33
|
+
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
31
34
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
32
35
|
protected endPoint: string;
|
|
33
36
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -95,11 +98,16 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
95
98
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
96
99
|
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
97
100
|
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
101
|
+
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
98
102
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
99
103
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
100
104
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
101
105
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
102
106
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
107
|
+
getPurchasePortalLines(purchaseOrderLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
108
|
+
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
109
|
+
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
110
|
+
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
103
111
|
private createServiceRequestData;
|
|
104
112
|
private _getDomainCollection;
|
|
105
113
|
private _getMultipleDomainCollection;
|
|
@@ -678,6 +678,10 @@ var TransactionPublic = (function (_super) {
|
|
|
678
678
|
console.warn('registerSalesOrderPayment not implemented');
|
|
679
679
|
return Promise.resolve(new DataServiceResponseData());
|
|
680
680
|
};
|
|
681
|
+
TransactionPublic.prototype.createIonePaymentLinkAndQRCode = function (request) {
|
|
682
|
+
console.warn('createIonePaymentLinkAndQRCode not implemented');
|
|
683
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
684
|
+
};
|
|
681
685
|
TransactionPublic.prototype.getPaymentMethods = function () {
|
|
682
686
|
console.warn('registerSalesOrderPayment not implemented');
|
|
683
687
|
return Promise.resolve(new DataServiceResponseData());
|
|
@@ -718,6 +722,22 @@ var TransactionPublic = (function (_super) {
|
|
|
718
722
|
});
|
|
719
723
|
});
|
|
720
724
|
};
|
|
725
|
+
TransactionPublic.prototype.getPurchasePortalLines = function (purchaseOrderLine) {
|
|
726
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
727
|
+
return __generator(this, function (_a) {
|
|
728
|
+
return [2, null];
|
|
729
|
+
});
|
|
730
|
+
});
|
|
731
|
+
};
|
|
732
|
+
TransactionPublic.prototype.updatePurchasePortalLines = function (request) {
|
|
733
|
+
return null;
|
|
734
|
+
};
|
|
735
|
+
TransactionPublic.prototype.lockPurchasePortalLines = function (request) {
|
|
736
|
+
return null;
|
|
737
|
+
};
|
|
738
|
+
TransactionPublic.prototype.deletePurchasePortalLines = function (request) {
|
|
739
|
+
return null;
|
|
740
|
+
};
|
|
721
741
|
TransactionPublic.prototype.createServiceRequestData = function () {
|
|
722
742
|
var data = { languageCode: this.languageCode };
|
|
723
743
|
return data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -31,6 +31,9 @@ import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-g
|
|
|
31
31
|
import { PaymentRequest } from './model/payment-request';
|
|
32
32
|
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
33
33
|
import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-transaction-definitive-request';
|
|
34
|
+
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
35
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
36
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
34
37
|
export declare class Transaction {
|
|
35
38
|
readonly showLoader: Subject<boolean>;
|
|
36
39
|
readonly connectionAborted: Subject<void>;
|
|
@@ -117,7 +120,12 @@ export declare class Transaction {
|
|
|
117
120
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
118
121
|
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
119
122
|
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
123
|
+
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
120
124
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
125
|
+
getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
126
|
+
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
127
|
+
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
128
|
+
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
121
129
|
static createConnector(options: Options): IoneApiTransaction;
|
|
122
130
|
private _handleConnectionReset;
|
|
123
131
|
}
|
package/build/transaction.js
CHANGED
|
@@ -287,9 +287,40 @@ var Transaction = (function () {
|
|
|
287
287
|
Transaction.prototype.registerSalesOrderPayment = function (request) {
|
|
288
288
|
return this.transaction.registerSalesOrderPayment(request);
|
|
289
289
|
};
|
|
290
|
+
Transaction.prototype.createIonePaymentLinkAndQRCode = function (request) {
|
|
291
|
+
return this.transaction.createIonePaymentLinkAndQRCode(request);
|
|
292
|
+
};
|
|
290
293
|
Transaction.prototype.getPaymentMethods = function () {
|
|
291
294
|
return this.transaction.getPaymentMethods();
|
|
292
295
|
};
|
|
296
|
+
Transaction.prototype.getPurchasePortalLines = function (purchasePortalLine) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
298
|
+
return __generator(this, function (_a) {
|
|
299
|
+
return [2, this.transaction.getPurchasePortalLines(purchasePortalLine)];
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
Transaction.prototype.updatePurchasePortalLines = function (request) {
|
|
304
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
305
|
+
return __generator(this, function (_a) {
|
|
306
|
+
return [2, this.transaction.updatePurchasePortalLines(request)];
|
|
307
|
+
});
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
Transaction.prototype.lockPurchasePortalLines = function (request) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
312
|
+
return __generator(this, function (_a) {
|
|
313
|
+
return [2, this.transaction.lockPurchasePortalLines(request)];
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
};
|
|
317
|
+
Transaction.prototype.deletePurchasePortalLines = function (request) {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
319
|
+
return __generator(this, function (_a) {
|
|
320
|
+
return [2, this.transaction.deletePurchasePortalLines(request)];
|
|
321
|
+
});
|
|
322
|
+
});
|
|
323
|
+
};
|
|
293
324
|
Transaction.createConnector = function (options) {
|
|
294
325
|
if ((options.username && options.password) || options.session) {
|
|
295
326
|
return new TransactionAuth();
|
|
@@ -39,6 +39,10 @@ import { RelationRequest } from './model/relation-request';
|
|
|
39
39
|
import { TransactionKind } from './enum/transaction-kind.enum';
|
|
40
40
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
41
41
|
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
42
|
+
import { PurchasePortalFilters } from "./model/purchase-portal-filters.bo";
|
|
43
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
44
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
45
|
+
import { DocDeliveryBatch } from "./model/doc-delivery-batch.bo";
|
|
42
46
|
var options = {
|
|
43
47
|
url: 'http',
|
|
44
48
|
ajaxUrl: 'http'
|
|
@@ -196,6 +200,123 @@ describe("TransactionAPI", function () {
|
|
|
196
200
|
}
|
|
197
201
|
});
|
|
198
202
|
}); });
|
|
203
|
+
it('getPurchasePortalLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
204
|
+
var purchasePortalFilter, purchasePortalLine, result;
|
|
205
|
+
return __generator(this, function (_a) {
|
|
206
|
+
switch (_a.label) {
|
|
207
|
+
case 0:
|
|
208
|
+
purchasePortalFilter = new PurchasePortalFilters();
|
|
209
|
+
purchasePortalFilter.purchaseOrderNo = "15461";
|
|
210
|
+
purchasePortalFilter.supplierNo = null;
|
|
211
|
+
purchasePortalFilter.purchaseOrderDate = null;
|
|
212
|
+
purchasePortalFilter.deliveryState = null;
|
|
213
|
+
purchasePortalFilter.articleNo = null;
|
|
214
|
+
purchasePortalFilter.turnOverGroup = null;
|
|
215
|
+
purchasePortalFilter.deliveryDate = null;
|
|
216
|
+
purchasePortalFilter.deliveryDateConfirmed = null;
|
|
217
|
+
purchasePortalFilter.serialNo = null;
|
|
218
|
+
purchasePortalFilter.batchNo = null;
|
|
219
|
+
purchasePortalFilter.branchNo = null;
|
|
220
|
+
purchasePortalFilter.wareHouseNo = null;
|
|
221
|
+
purchasePortalFilter.reference = null;
|
|
222
|
+
purchasePortalFilter.processingState = null;
|
|
223
|
+
purchasePortalFilter.tag = null;
|
|
224
|
+
purchasePortalFilter.acceptanceProcessingState = null;
|
|
225
|
+
purchasePortalFilter.supplierGroupNo = null;
|
|
226
|
+
purchasePortalFilter.purchasePersonNo = null;
|
|
227
|
+
purchasePortalFilter.deliveryBatch = null;
|
|
228
|
+
purchasePortalLine = new GetPurchasePortalLine();
|
|
229
|
+
purchasePortalLine.transIdPurchase = 108937;
|
|
230
|
+
purchasePortalLine.selOrdered = "F";
|
|
231
|
+
purchasePortalLine.selPurchaseResp = "T";
|
|
232
|
+
purchasePortalLine.selPurchaseRespNotToDo = "F";
|
|
233
|
+
purchasePortalLine.selTranspNot = "F";
|
|
234
|
+
purchasePortalLine.selTranspNotToDo = "F";
|
|
235
|
+
purchasePortalLine.selRepReceived = "F";
|
|
236
|
+
purchasePortalLine.onlyInContainer = "F";
|
|
237
|
+
purchasePortalLine.docKind = "IB";
|
|
238
|
+
purchasePortalLine.filterObject = purchasePortalFilter;
|
|
239
|
+
purchasePortalLine.containerId = null;
|
|
240
|
+
return [4, transaction.getPurchasePortalLines(purchasePortalLine)];
|
|
241
|
+
case 1:
|
|
242
|
+
result = _a.sent();
|
|
243
|
+
expect(result).toBeDefined();
|
|
244
|
+
return [2];
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}); });
|
|
248
|
+
it('updatePurchaseOrderLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
249
|
+
var docBatchArray, purchasePortalLine, result;
|
|
250
|
+
return __generator(this, function (_a) {
|
|
251
|
+
switch (_a.label) {
|
|
252
|
+
case 0:
|
|
253
|
+
docBatchArray = new DocDeliveryBatch();
|
|
254
|
+
docBatchArray.deliveryBatch = "batch3";
|
|
255
|
+
docBatchArray.docAmount = 1;
|
|
256
|
+
docBatchArray.confirmedPrice = 10;
|
|
257
|
+
docBatchArray.reference = "Test ref";
|
|
258
|
+
docBatchArray.deleteLine = "F";
|
|
259
|
+
docBatchArray.docAmount = 2;
|
|
260
|
+
docBatchArray.docDate = 1656626400000;
|
|
261
|
+
docBatchArray.docDateOrg = 1656626400000;
|
|
262
|
+
purchasePortalLine = new PurchasePortalLine();
|
|
263
|
+
purchasePortalLine.transIdPurchase = 108937;
|
|
264
|
+
purchasePortalLine.transIdSales = null;
|
|
265
|
+
purchasePortalLine.lineId = null;
|
|
266
|
+
purchasePortalLine.transNo = null;
|
|
267
|
+
purchasePortalLine.lineNo = null;
|
|
268
|
+
purchasePortalLine.transactionDate = null;
|
|
269
|
+
purchasePortalLine.supplierNo = null;
|
|
270
|
+
purchasePortalLine.supplierName = null;
|
|
271
|
+
purchasePortalLine.articleNo = null;
|
|
272
|
+
purchasePortalLine.description = null;
|
|
273
|
+
purchasePortalLine.volume = null;
|
|
274
|
+
purchasePortalLine.currencyPurchCode = null;
|
|
275
|
+
purchasePortalLine.noDecimalsPurch = null;
|
|
276
|
+
purchasePortalLine.grossOrderPrice = null;
|
|
277
|
+
purchasePortalLine.discountOrderPrice = null;
|
|
278
|
+
purchasePortalLine.netOrderPrice = null;
|
|
279
|
+
purchasePortalLine.currencyConfCode = null;
|
|
280
|
+
purchasePortalLine.noDecimalsConf = null;
|
|
281
|
+
purchasePortalLine.confirmedPrice = null;
|
|
282
|
+
purchasePortalLine.amountOrdered = null;
|
|
283
|
+
purchasePortalLine.amountConfirmed = null;
|
|
284
|
+
purchasePortalLine.amountConfirmedOrg = null;
|
|
285
|
+
purchasePortalLine.amountAccepted = null;
|
|
286
|
+
purchasePortalLine.amountAcceptedOrg = null;
|
|
287
|
+
purchasePortalLine.amountShipped = null;
|
|
288
|
+
purchasePortalLine.amountShippedOrg = null;
|
|
289
|
+
purchasePortalLine.amountShippedTotal = null;
|
|
290
|
+
purchasePortalLine.amountToBeShipped = null;
|
|
291
|
+
purchasePortalLine.amountSignedIn = null;
|
|
292
|
+
purchasePortalLine.amountToBeConfirmed = null;
|
|
293
|
+
purchasePortalLine.deliveryDate = null;
|
|
294
|
+
purchasePortalLine.deliveryDateConfirmed = null;
|
|
295
|
+
purchasePortalLine.deliveryDateConfirmedOrg = null;
|
|
296
|
+
purchasePortalLine.transportDate = null;
|
|
297
|
+
purchasePortalLine.arrivalDate = null;
|
|
298
|
+
purchasePortalLine.amountShippingTimes = null;
|
|
299
|
+
purchasePortalLine.selected = null;
|
|
300
|
+
purchasePortalLine.reference = null;
|
|
301
|
+
purchasePortalLine.referenceOriginal = null;
|
|
302
|
+
purchasePortalLine.referenceFromHeader = null;
|
|
303
|
+
purchasePortalLine.user = null;
|
|
304
|
+
purchasePortalLine.docKind = null;
|
|
305
|
+
purchasePortalLine.containerId = null;
|
|
306
|
+
purchasePortalLine.deleteDoc = null;
|
|
307
|
+
purchasePortalLine.articleRelatedText = null;
|
|
308
|
+
purchasePortalLine.articleNoSupplier = null;
|
|
309
|
+
purchasePortalLine.deliveryBatchOrg = null;
|
|
310
|
+
purchasePortalLine.deliveryBatch = null;
|
|
311
|
+
purchasePortalLine.docBatchArray = [docBatchArray];
|
|
312
|
+
return [4, transaction.updatePurchasePortalLines(purchasePortalLine)];
|
|
313
|
+
case 1:
|
|
314
|
+
result = _a.sent();
|
|
315
|
+
expect(result).toBeDefined();
|
|
316
|
+
return [2];
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}); });
|
|
199
320
|
it('getSequenceValue', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
200
321
|
var result;
|
|
201
322
|
return __generator(this, function (_a) {
|