@colijnit/transactionapi 1.1.51 → 1.1.52
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/print-service-method.enum.d.ts +12 -0
- package/build/enum/print-service-method.enum.js +13 -0
- package/build/ione-api-transaction.d.ts +10 -0
- package/build/model/report/email-order-confirmation.d.ts +6 -0
- package/build/model/report/email-order-confirmation.js +6 -0
- package/build/model/report/pdf-order-confirmation.d.ts +4 -0
- package/build/model/report/pdf-order-confirmation.js +6 -0
- package/build/model/report/print-order-confirmation.d.ts +8 -0
- package/build/model/report/print-order-confirmation.js +6 -0
- package/build/transaction-auth.d.ts +13 -0
- package/build/transaction-auth.js +120 -0
- package/build/transaction-public.d.ts +10 -0
- package/build/transaction-public.js +70 -0
- package/build/transaction.d.ts +13 -0
- package/build/transaction.js +30 -0
- package/build/transaction.unit.test.js +165 -16
- package/package.json +1 -1
|
@@ -15,5 +15,6 @@ export declare enum ModuleName {
|
|
|
15
15
|
Document = "Document",
|
|
16
16
|
PurchaseAdvice = "PurchaseAdvice",
|
|
17
17
|
PurchasePortal = "PurchasePortal",
|
|
18
|
-
ReportingDocuments = "reportingDocuments"
|
|
18
|
+
ReportingDocuments = "reportingDocuments",
|
|
19
|
+
ReportingDocument = "reportingDocument"
|
|
19
20
|
}
|
|
@@ -17,4 +17,5 @@ export var ModuleName;
|
|
|
17
17
|
ModuleName["PurchaseAdvice"] = "PurchaseAdvice";
|
|
18
18
|
ModuleName["PurchasePortal"] = "PurchasePortal";
|
|
19
19
|
ModuleName["ReportingDocuments"] = "reportingDocuments";
|
|
20
|
+
ModuleName["ReportingDocument"] = "reportingDocument";
|
|
20
21
|
})(ModuleName || (ModuleName = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum PrintServiceMethod {
|
|
2
|
+
GetOrderConfirmationDefaultSendMethod = "getOrderConfirmationDefaultSendMethod",
|
|
3
|
+
GetPurchaseOrderDefaultSendMethod = "getPurchaseOrderDefaultSendMethod",
|
|
4
|
+
GetReminderPurchaseOrderDefaultSendMethod = "getReminderPurchaseOrderDefaultSendMethod",
|
|
5
|
+
GetDemandingDeliveryDefaultSendMethod = "getDemandingDeliveryDefaultSendMethod",
|
|
6
|
+
GetDeliveryNoteDefaultSendMethod = "getDeliveryNoteDefaultSendMethod",
|
|
7
|
+
GetDefaultEmailAddressListForOrderConfirmation = "getDefaultEmailAddressListForOrderConfirmation",
|
|
8
|
+
GetPurchaseOrderEmailLayouts = "getPurchaseOrderEmailLayouts",
|
|
9
|
+
PrintOrderConfirmation = "printOrderConfirmation",
|
|
10
|
+
EmailOrderConfirmation = "emailOrderConfirmation",
|
|
11
|
+
PdfOrderConfirmation = "pdfOrderConfirmation"
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var PrintServiceMethod;
|
|
2
|
+
(function (PrintServiceMethod) {
|
|
3
|
+
PrintServiceMethod["GetOrderConfirmationDefaultSendMethod"] = "getOrderConfirmationDefaultSendMethod";
|
|
4
|
+
PrintServiceMethod["GetPurchaseOrderDefaultSendMethod"] = "getPurchaseOrderDefaultSendMethod";
|
|
5
|
+
PrintServiceMethod["GetReminderPurchaseOrderDefaultSendMethod"] = "getReminderPurchaseOrderDefaultSendMethod";
|
|
6
|
+
PrintServiceMethod["GetDemandingDeliveryDefaultSendMethod"] = "getDemandingDeliveryDefaultSendMethod";
|
|
7
|
+
PrintServiceMethod["GetDeliveryNoteDefaultSendMethod"] = "getDeliveryNoteDefaultSendMethod";
|
|
8
|
+
PrintServiceMethod["GetDefaultEmailAddressListForOrderConfirmation"] = "getDefaultEmailAddressListForOrderConfirmation";
|
|
9
|
+
PrintServiceMethod["GetPurchaseOrderEmailLayouts"] = "getPurchaseOrderEmailLayouts";
|
|
10
|
+
PrintServiceMethod["PrintOrderConfirmation"] = "printOrderConfirmation";
|
|
11
|
+
PrintServiceMethod["EmailOrderConfirmation"] = "emailOrderConfirmation";
|
|
12
|
+
PrintServiceMethod["PdfOrderConfirmation"] = "pdfOrderConfirmation";
|
|
13
|
+
})(PrintServiceMethod || (PrintServiceMethod = {}));
|
|
@@ -196,5 +196,15 @@ export declare abstract class IoneApiTransaction {
|
|
|
196
196
|
abstract pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
197
197
|
abstract getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
198
198
|
abstract getDeliveryNotePrintLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
199
|
+
abstract emailOrderConfirmation(EmailOrderConfirmation: any): Promise<DataServiceResponseData>;
|
|
200
|
+
abstract pdfOrderConfirmation(PdfOrderConfirmation: any): Promise<DataServiceResponseData>;
|
|
201
|
+
abstract printOrderConfirmation(PrintOrderConfirmation: any): Promise<DataServiceResponseData>;
|
|
202
|
+
abstract getOrderConfirmationDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
203
|
+
abstract getPurchaseOrderDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
204
|
+
abstract getReminderPurchaseOrderDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
205
|
+
abstract getDemandingDeliveryDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
206
|
+
abstract getDeliveryNoteDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
207
|
+
abstract getDefaultEmailAddressListForOrderConfirmation(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
208
|
+
abstract getPurchaseOrderEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
199
209
|
protected endPoint: string;
|
|
200
210
|
}
|
|
@@ -61,6 +61,9 @@ import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-descr
|
|
|
61
61
|
import { SetTransactionDiscountsRequest } from './model/set-transaction-discounts-request';
|
|
62
62
|
import { GetPurchaseOrderConfirmation } from './model/get-purchase-order-confirmation';
|
|
63
63
|
import { ChangeLineSupplierRequest } from './model/change-line-supplier-request';
|
|
64
|
+
import { PrintOrderConfirmation } from "./model/report/print-order-confirmation";
|
|
65
|
+
import { EmailOrderConfirmation } from "./model/report/email-order-confirmation";
|
|
66
|
+
import { PdfOrderConfirmation } from "./model/report/pdf-order-confirmation";
|
|
64
67
|
import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
|
|
65
68
|
import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
|
|
66
69
|
import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
|
|
@@ -189,6 +192,16 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
189
192
|
pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
190
193
|
getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
191
194
|
getDeliveryNotePrintLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
195
|
+
getOrderConfirmationDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
196
|
+
getPurchaseOrderDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
197
|
+
getReminderPurchaseOrderDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
198
|
+
getDemandingDeliveryDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
199
|
+
getDeliveryNoteDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
200
|
+
getDefaultEmailAddressListForOrderConfirmation(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
201
|
+
getPurchaseOrderEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
202
|
+
printOrderConfirmation(printOrderConfirmation: PrintOrderConfirmation): Promise<DataServiceResponseData>;
|
|
203
|
+
emailOrderConfirmation(emailOrderConfirmation: EmailOrderConfirmation): Promise<DataServiceResponseData>;
|
|
204
|
+
pdfOrderConfirmation(pdfOrderConfirmation: PdfOrderConfirmation): Promise<DataServiceResponseData>;
|
|
192
205
|
private _getDomainCollection;
|
|
193
206
|
private _getMultipleDomainCollection;
|
|
194
207
|
private callGetNodeData;
|
|
@@ -71,6 +71,7 @@ import { PaymentMethod } from './enum/payment-method.enum';
|
|
|
71
71
|
import { PurchaseAdviceObjectName } from './enum/purchase-advice-object-name.enum';
|
|
72
72
|
import { PurchasePortal } from './model/purchase-portal-object-name.enum';
|
|
73
73
|
import { PurchaseAdviceMethod } from './enum/purchase-advice-method.enum';
|
|
74
|
+
import { PrintServiceMethod } from "./enum/print-service-method.enum";
|
|
74
75
|
import { ReportingMethod } from "./enum/reporting-method.enum";
|
|
75
76
|
var TransactionAuth = (function (_super) {
|
|
76
77
|
__extends(TransactionAuth, _super);
|
|
@@ -1319,6 +1320,125 @@ var TransactionAuth = (function (_super) {
|
|
|
1319
1320
|
};
|
|
1320
1321
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1321
1322
|
};
|
|
1323
|
+
TransactionAuth.prototype.getOrderConfirmationDefaultSendMethod = function (relationId) {
|
|
1324
|
+
var params = {
|
|
1325
|
+
relationId: relationId
|
|
1326
|
+
};
|
|
1327
|
+
var data = {
|
|
1328
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1329
|
+
methodName: PrintServiceMethod.GetOrderConfirmationDefaultSendMethod,
|
|
1330
|
+
refCursorAsArray: true,
|
|
1331
|
+
parameterValues: params
|
|
1332
|
+
};
|
|
1333
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1334
|
+
};
|
|
1335
|
+
TransactionAuth.prototype.getPurchaseOrderDefaultSendMethod = function (relationId) {
|
|
1336
|
+
var params = {
|
|
1337
|
+
relationId: relationId
|
|
1338
|
+
};
|
|
1339
|
+
var data = {
|
|
1340
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1341
|
+
methodName: PrintServiceMethod.GetPurchaseOrderDefaultSendMethod,
|
|
1342
|
+
refCursorAsArray: true,
|
|
1343
|
+
parameterValues: params
|
|
1344
|
+
};
|
|
1345
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1346
|
+
};
|
|
1347
|
+
TransactionAuth.prototype.getReminderPurchaseOrderDefaultSendMethod = function (relationId) {
|
|
1348
|
+
var params = {
|
|
1349
|
+
relationId: relationId
|
|
1350
|
+
};
|
|
1351
|
+
var data = {
|
|
1352
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1353
|
+
methodName: PrintServiceMethod.GetReminderPurchaseOrderDefaultSendMethod,
|
|
1354
|
+
refCursorAsArray: true,
|
|
1355
|
+
parameterValues: params
|
|
1356
|
+
};
|
|
1357
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1358
|
+
};
|
|
1359
|
+
TransactionAuth.prototype.getDemandingDeliveryDefaultSendMethod = function (relationId) {
|
|
1360
|
+
var params = {
|
|
1361
|
+
relationId: relationId
|
|
1362
|
+
};
|
|
1363
|
+
var data = {
|
|
1364
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1365
|
+
methodName: PrintServiceMethod.GetDemandingDeliveryDefaultSendMethod,
|
|
1366
|
+
refCursorAsArray: true,
|
|
1367
|
+
parameterValues: params
|
|
1368
|
+
};
|
|
1369
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1370
|
+
};
|
|
1371
|
+
TransactionAuth.prototype.getDeliveryNoteDefaultSendMethod = function (relationId) {
|
|
1372
|
+
var params = {
|
|
1373
|
+
relationId: relationId
|
|
1374
|
+
};
|
|
1375
|
+
var data = {
|
|
1376
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1377
|
+
methodName: PrintServiceMethod.GetDeliveryNoteDefaultSendMethod,
|
|
1378
|
+
refCursorAsArray: true,
|
|
1379
|
+
parameterValues: params
|
|
1380
|
+
};
|
|
1381
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1382
|
+
};
|
|
1383
|
+
TransactionAuth.prototype.getDefaultEmailAddressListForOrderConfirmation = function (transactionUUID) {
|
|
1384
|
+
var params = {
|
|
1385
|
+
transactionUUID: transactionUUID
|
|
1386
|
+
};
|
|
1387
|
+
var data = {
|
|
1388
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1389
|
+
methodName: PrintServiceMethod.GetDefaultEmailAddressListForOrderConfirmation,
|
|
1390
|
+
refCursorAsArray: true,
|
|
1391
|
+
parameterValues: params
|
|
1392
|
+
};
|
|
1393
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1394
|
+
};
|
|
1395
|
+
TransactionAuth.prototype.getPurchaseOrderEmailLayouts = function (transactionUUID) {
|
|
1396
|
+
var params = {
|
|
1397
|
+
transactionUUID: transactionUUID
|
|
1398
|
+
};
|
|
1399
|
+
var data = {
|
|
1400
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1401
|
+
methodName: PrintServiceMethod.GetPurchaseOrderEmailLayouts,
|
|
1402
|
+
refCursorAsArray: true,
|
|
1403
|
+
parameterValues: params
|
|
1404
|
+
};
|
|
1405
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1406
|
+
};
|
|
1407
|
+
TransactionAuth.prototype.printOrderConfirmation = function (printOrderConfirmation) {
|
|
1408
|
+
var params = {
|
|
1409
|
+
printerName: printOrderConfirmation.printerName,
|
|
1410
|
+
saveDefaultPrinterForUser: printOrderConfirmation.saveDefaultPrinterForUser,
|
|
1411
|
+
saveDefaultPrinterForAllUsers: printOrderConfirmation.saveDefaultPrinterForAllUsers,
|
|
1412
|
+
copies: printOrderConfirmation.copies,
|
|
1413
|
+
transId: printOrderConfirmation.transId,
|
|
1414
|
+
reportId: printOrderConfirmation.reportId,
|
|
1415
|
+
};
|
|
1416
|
+
var data = {
|
|
1417
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1418
|
+
methodName: PrintServiceMethod.PrintOrderConfirmation,
|
|
1419
|
+
refCursorAsArray: true,
|
|
1420
|
+
parameterValues: params
|
|
1421
|
+
};
|
|
1422
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1423
|
+
};
|
|
1424
|
+
TransactionAuth.prototype.emailOrderConfirmation = function (emailOrderConfirmation) {
|
|
1425
|
+
var data = {
|
|
1426
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1427
|
+
methodName: PrintServiceMethod.EmailOrderConfirmation,
|
|
1428
|
+
refCursorAsArray: true,
|
|
1429
|
+
parameterValues: emailOrderConfirmation
|
|
1430
|
+
};
|
|
1431
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1432
|
+
};
|
|
1433
|
+
TransactionAuth.prototype.pdfOrderConfirmation = function (pdfOrderConfirmation) {
|
|
1434
|
+
var data = {
|
|
1435
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1436
|
+
methodName: PrintServiceMethod.PdfOrderConfirmation,
|
|
1437
|
+
refCursorAsArray: true,
|
|
1438
|
+
parameterValues: pdfOrderConfirmation
|
|
1439
|
+
};
|
|
1440
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1441
|
+
};
|
|
1322
1442
|
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
1323
1443
|
var params = {
|
|
1324
1444
|
domainName: domainName,
|
|
@@ -190,6 +190,16 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
190
190
|
pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
191
191
|
getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
192
192
|
getDeliveryNotePrintLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
193
|
+
emailOrderConfirmation(EmailOrderConfirmation: any): Promise<DataServiceResponseData>;
|
|
194
|
+
pdfOrderConfirmation(PdfOrderConfirmation: any): Promise<DataServiceResponseData>;
|
|
195
|
+
printOrderConfirmation(PrintOrderConfirmation: any): Promise<DataServiceResponseData>;
|
|
196
|
+
getOrderConfirmationDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
197
|
+
getPurchaseOrderDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
198
|
+
getReminderPurchaseOrderDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
199
|
+
getDemandingDeliveryDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
200
|
+
getDeliveryNoteDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
201
|
+
getDefaultEmailAddressListForOrderConfirmation(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
202
|
+
getPurchaseOrderEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
193
203
|
private createServiceRequestData;
|
|
194
204
|
private _getDomainCollection;
|
|
195
205
|
private _getMultipleDomainCollection;
|
|
@@ -998,6 +998,76 @@ var TransactionPublic = (function (_super) {
|
|
|
998
998
|
});
|
|
999
999
|
});
|
|
1000
1000
|
};
|
|
1001
|
+
TransactionPublic.prototype.emailOrderConfirmation = function (EmailOrderConfirmation) {
|
|
1002
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1003
|
+
return __generator(this, function (_a) {
|
|
1004
|
+
return [2, null];
|
|
1005
|
+
});
|
|
1006
|
+
});
|
|
1007
|
+
};
|
|
1008
|
+
TransactionPublic.prototype.pdfOrderConfirmation = function (PdfOrderConfirmation) {
|
|
1009
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1010
|
+
return __generator(this, function (_a) {
|
|
1011
|
+
return [2, null];
|
|
1012
|
+
});
|
|
1013
|
+
});
|
|
1014
|
+
};
|
|
1015
|
+
TransactionPublic.prototype.printOrderConfirmation = function (PrintOrderConfirmation) {
|
|
1016
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1017
|
+
return __generator(this, function (_a) {
|
|
1018
|
+
return [2, null];
|
|
1019
|
+
});
|
|
1020
|
+
});
|
|
1021
|
+
};
|
|
1022
|
+
TransactionPublic.prototype.getOrderConfirmationDefaultSendMethod = function (relationId) {
|
|
1023
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1024
|
+
return __generator(this, function (_a) {
|
|
1025
|
+
return [2, null];
|
|
1026
|
+
});
|
|
1027
|
+
});
|
|
1028
|
+
};
|
|
1029
|
+
TransactionPublic.prototype.getPurchaseOrderDefaultSendMethod = function (relationId) {
|
|
1030
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1031
|
+
return __generator(this, function (_a) {
|
|
1032
|
+
return [2, null];
|
|
1033
|
+
});
|
|
1034
|
+
});
|
|
1035
|
+
};
|
|
1036
|
+
TransactionPublic.prototype.getReminderPurchaseOrderDefaultSendMethod = function (relationId) {
|
|
1037
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1038
|
+
return __generator(this, function (_a) {
|
|
1039
|
+
return [2, null];
|
|
1040
|
+
});
|
|
1041
|
+
});
|
|
1042
|
+
};
|
|
1043
|
+
TransactionPublic.prototype.getDemandingDeliveryDefaultSendMethod = function (relationId) {
|
|
1044
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1045
|
+
return __generator(this, function (_a) {
|
|
1046
|
+
return [2, null];
|
|
1047
|
+
});
|
|
1048
|
+
});
|
|
1049
|
+
};
|
|
1050
|
+
TransactionPublic.prototype.getDeliveryNoteDefaultSendMethod = function (relationId) {
|
|
1051
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1052
|
+
return __generator(this, function (_a) {
|
|
1053
|
+
return [2, null];
|
|
1054
|
+
});
|
|
1055
|
+
});
|
|
1056
|
+
};
|
|
1057
|
+
TransactionPublic.prototype.getDefaultEmailAddressListForOrderConfirmation = function (transactionUUID) {
|
|
1058
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1059
|
+
return __generator(this, function (_a) {
|
|
1060
|
+
return [2, null];
|
|
1061
|
+
});
|
|
1062
|
+
});
|
|
1063
|
+
};
|
|
1064
|
+
TransactionPublic.prototype.getPurchaseOrderEmailLayouts = function (transactionUUID) {
|
|
1065
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1066
|
+
return __generator(this, function (_a) {
|
|
1067
|
+
return [2, null];
|
|
1068
|
+
});
|
|
1069
|
+
});
|
|
1070
|
+
};
|
|
1001
1071
|
TransactionPublic.prototype.createServiceRequestData = function () {
|
|
1002
1072
|
var data = { languageCode: this.languageCode };
|
|
1003
1073
|
return data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -67,6 +67,9 @@ import { ChangeLineSupplierRequest } from './model/change-line-supplier-request'
|
|
|
67
67
|
import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
|
|
68
68
|
import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
|
|
69
69
|
import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
|
|
70
|
+
import { EmailOrderConfirmation } from "./model/report/email-order-confirmation";
|
|
71
|
+
import { PdfOrderConfirmation } from "./model/report/pdf-order-confirmation";
|
|
72
|
+
import { PrintOrderConfirmation } from "./model/report/print-order-confirmation";
|
|
70
73
|
export declare class Transaction {
|
|
71
74
|
readonly showLoader: Subject<boolean>;
|
|
72
75
|
readonly connectionAborted: Subject<void>;
|
|
@@ -208,6 +211,16 @@ export declare class Transaction {
|
|
|
208
211
|
pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
209
212
|
getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
210
213
|
getDeliveryNotePrintLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
214
|
+
emailOrderConfirmation(emailOrderConfirmation: EmailOrderConfirmation): Promise<DataServiceResponseData>;
|
|
215
|
+
pdfOrderConfirmation(pdfOrderConfirmation: PdfOrderConfirmation): Promise<DataServiceResponseData>;
|
|
216
|
+
printOrderConfirmation(printOrderConfirmation: PrintOrderConfirmation): Promise<DataServiceResponseData>;
|
|
217
|
+
getOrderConfirmationDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
218
|
+
getPurchaseOrderDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
219
|
+
getReminderPurchaseOrderDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
220
|
+
getDemandingDeliveryDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
221
|
+
getDeliveryNoteDefaultSendMethod(relationId: number): Promise<DataServiceResponseData>;
|
|
222
|
+
getDefaultEmailAddressListForOrderConfirmation(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
223
|
+
getPurchaseOrderEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
211
224
|
static createConnector(options: Options): IoneApiTransaction;
|
|
212
225
|
private _handleConnectionReset;
|
|
213
226
|
}
|
package/build/transaction.js
CHANGED
|
@@ -524,6 +524,36 @@ var Transaction = (function () {
|
|
|
524
524
|
});
|
|
525
525
|
});
|
|
526
526
|
};
|
|
527
|
+
Transaction.prototype.emailOrderConfirmation = function (emailOrderConfirmation) {
|
|
528
|
+
return this.transaction.emailOrderConfirmation(emailOrderConfirmation);
|
|
529
|
+
};
|
|
530
|
+
Transaction.prototype.pdfOrderConfirmation = function (pdfOrderConfirmation) {
|
|
531
|
+
return this.transaction.pdfOrderConfirmation(pdfOrderConfirmation);
|
|
532
|
+
};
|
|
533
|
+
Transaction.prototype.printOrderConfirmation = function (printOrderConfirmation) {
|
|
534
|
+
return this.transaction.printOrderConfirmation(printOrderConfirmation);
|
|
535
|
+
};
|
|
536
|
+
Transaction.prototype.getOrderConfirmationDefaultSendMethod = function (relationId) {
|
|
537
|
+
return this.transaction.getOrderConfirmationDefaultSendMethod(relationId);
|
|
538
|
+
};
|
|
539
|
+
Transaction.prototype.getPurchaseOrderDefaultSendMethod = function (relationId) {
|
|
540
|
+
return this.transaction.getPurchaseOrderDefaultSendMethod(relationId);
|
|
541
|
+
};
|
|
542
|
+
Transaction.prototype.getReminderPurchaseOrderDefaultSendMethod = function (relationId) {
|
|
543
|
+
return this.transaction.getReminderPurchaseOrderDefaultSendMethod(relationId);
|
|
544
|
+
};
|
|
545
|
+
Transaction.prototype.getDemandingDeliveryDefaultSendMethod = function (relationId) {
|
|
546
|
+
return this.transaction.getDemandingDeliveryDefaultSendMethod(relationId);
|
|
547
|
+
};
|
|
548
|
+
Transaction.prototype.getDeliveryNoteDefaultSendMethod = function (relationId) {
|
|
549
|
+
return this.transaction.getDeliveryNoteDefaultSendMethod(relationId);
|
|
550
|
+
};
|
|
551
|
+
Transaction.prototype.getDefaultEmailAddressListForOrderConfirmation = function (transactionUUID) {
|
|
552
|
+
return this.transaction.getDefaultEmailAddressListForOrderConfirmation(transactionUUID);
|
|
553
|
+
};
|
|
554
|
+
Transaction.prototype.getPurchaseOrderEmailLayouts = function (transactionUUID) {
|
|
555
|
+
return this.transaction.getPurchaseOrderEmailLayouts(transactionUUID);
|
|
556
|
+
};
|
|
527
557
|
Transaction.createConnector = function (options) {
|
|
528
558
|
if ((options.username && options.password) || options.session) {
|
|
529
559
|
return new TransactionAuth();
|
|
@@ -45,6 +45,9 @@ import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
|
45
45
|
import { DocDeliveryBatch } from './model/doc-delivery-batch.bo';
|
|
46
46
|
import { PurchaseAdviceLine } from './model/purchase-advice-line.bo';
|
|
47
47
|
import { GetPurchaseOrderConfirmation } from './model/get-purchase-order-confirmation';
|
|
48
|
+
import { PrintOrderConfirmation } from "./model/report/print-order-confirmation";
|
|
49
|
+
import { EmailOrderConfirmation } from "./model/report/email-order-confirmation";
|
|
50
|
+
import { PdfOrderConfirmation } from "./model/report/pdf-order-confirmation";
|
|
48
51
|
var options = {
|
|
49
52
|
url: 'http',
|
|
50
53
|
ajaxUrl: 'http'
|
|
@@ -265,7 +268,7 @@ describe("TransactionAPI", function () {
|
|
|
265
268
|
getPurchasePortalLine = new GetPurchasePortalLine();
|
|
266
269
|
purchasePortalFilter = new PurchasePortalFilters();
|
|
267
270
|
purchasePortalFilter.purchaseOrderNo = "15461";
|
|
268
|
-
purchasePortalFilter.lineId = "
|
|
271
|
+
purchasePortalFilter.lineId = "3";
|
|
269
272
|
getPurchasePortalLine.transIdPurchase = 108937;
|
|
270
273
|
getPurchasePortalLine.selOrdered = "F";
|
|
271
274
|
getPurchasePortalLine.selPurchaseResp = "T";
|
|
@@ -283,16 +286,10 @@ describe("TransactionAPI", function () {
|
|
|
283
286
|
return [4, transaction.lockPurchasePortalLines(purchasePortalLine.transIdPurchase, purchasePortalLine.lineId)];
|
|
284
287
|
case 2:
|
|
285
288
|
lockResponse = _a.sent();
|
|
286
|
-
if (!(lockResponse.validationResult && lockResponse.validationResult.success)) return [3,
|
|
287
|
-
return [4, transaction.commit()];
|
|
288
|
-
case 3:
|
|
289
|
-
_a.sent();
|
|
290
|
-
_a.label = 4;
|
|
291
|
-
case 4:
|
|
292
|
-
if (!(lockResponse.validationResult && lockResponse.validationResult.success)) return [3, 8];
|
|
289
|
+
if (!(lockResponse.validationResult && lockResponse.validationResult.success)) return [3, 6];
|
|
293
290
|
docBatchArray = new DocDeliveryBatch();
|
|
294
291
|
docBatchArray.deliveryBatch = "batch3";
|
|
295
|
-
docBatchArray.docAmount =
|
|
292
|
+
docBatchArray.docAmount = 10;
|
|
296
293
|
docBatchArray.docAmountOrg = 0;
|
|
297
294
|
docBatchArray.confirmedPrice = 10;
|
|
298
295
|
docBatchArray.reference = "Test ref";
|
|
@@ -301,17 +298,17 @@ describe("TransactionAPI", function () {
|
|
|
301
298
|
docBatchArray.docDateOrg = new Date();
|
|
302
299
|
purchasePortalLine.docBatchArray.push(docBatchArray);
|
|
303
300
|
return [4, transaction.updatePurchasePortalLines(purchasePortalLine)];
|
|
304
|
-
case
|
|
301
|
+
case 3:
|
|
305
302
|
result = _a.sent();
|
|
306
|
-
if (!(result.validationResult && result.validationResult.success)) return [3,
|
|
303
|
+
if (!(result.validationResult && result.validationResult.success)) return [3, 5];
|
|
307
304
|
return [4, transaction.commit()];
|
|
308
|
-
case
|
|
305
|
+
case 4:
|
|
309
306
|
_a.sent();
|
|
310
|
-
_a.label =
|
|
311
|
-
case
|
|
307
|
+
_a.label = 5;
|
|
308
|
+
case 5:
|
|
312
309
|
expect(result).toBeDefined();
|
|
313
|
-
_a.label =
|
|
314
|
-
case
|
|
310
|
+
_a.label = 6;
|
|
311
|
+
case 6: return [2];
|
|
315
312
|
}
|
|
316
313
|
});
|
|
317
314
|
}); });
|
|
@@ -720,4 +717,156 @@ describe("TransactionAPI", function () {
|
|
|
720
717
|
}
|
|
721
718
|
});
|
|
722
719
|
}); });
|
|
720
|
+
it('printOrderConfirmation', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
721
|
+
var printReport, result;
|
|
722
|
+
return __generator(this, function (_a) {
|
|
723
|
+
switch (_a.label) {
|
|
724
|
+
case 0:
|
|
725
|
+
printReport = new PrintOrderConfirmation();
|
|
726
|
+
printReport.printerName = "test";
|
|
727
|
+
printReport.saveDefaultPrinterForAllUsers = true;
|
|
728
|
+
printReport.saveDefaultPrinterForUser = false;
|
|
729
|
+
printReport.copies = 10;
|
|
730
|
+
printReport.transId = 10;
|
|
731
|
+
printReport.reportId = 10;
|
|
732
|
+
return [4, transaction.printOrderConfirmation(printReport)];
|
|
733
|
+
case 1:
|
|
734
|
+
result = _a.sent();
|
|
735
|
+
expect(result).toBeDefined();
|
|
736
|
+
return [2];
|
|
737
|
+
}
|
|
738
|
+
});
|
|
739
|
+
}); });
|
|
740
|
+
it('emailOrderConfirmation', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
741
|
+
var emailReport, result;
|
|
742
|
+
return __generator(this, function (_a) {
|
|
743
|
+
switch (_a.label) {
|
|
744
|
+
case 0:
|
|
745
|
+
emailReport = new EmailOrderConfirmation();
|
|
746
|
+
emailReport.toAddresses = "lars.vdv@colijn-it.nl";
|
|
747
|
+
emailReport.bccAddresses = "stefan@colijn-it.nl";
|
|
748
|
+
emailReport.reportId = 2013;
|
|
749
|
+
emailReport.transId = 111418;
|
|
750
|
+
return [4, transaction.emailOrderConfirmation(emailReport)];
|
|
751
|
+
case 1:
|
|
752
|
+
result = _a.sent();
|
|
753
|
+
expect(result).toBeDefined();
|
|
754
|
+
return [2];
|
|
755
|
+
}
|
|
756
|
+
});
|
|
757
|
+
}); });
|
|
758
|
+
it('pdfOrderConfirmation', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
759
|
+
var pdfReport, result;
|
|
760
|
+
return __generator(this, function (_a) {
|
|
761
|
+
switch (_a.label) {
|
|
762
|
+
case 0:
|
|
763
|
+
pdfReport = new PdfOrderConfirmation();
|
|
764
|
+
pdfReport.transId = 10;
|
|
765
|
+
pdfReport.reportId = 10;
|
|
766
|
+
return [4, transaction.pdfOrderConfirmation(pdfReport)];
|
|
767
|
+
case 1:
|
|
768
|
+
result = _a.sent();
|
|
769
|
+
expect(result).toBeDefined();
|
|
770
|
+
return [2];
|
|
771
|
+
}
|
|
772
|
+
});
|
|
773
|
+
}); });
|
|
774
|
+
it('getOrderConfirmationDefaultSendMethod', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
775
|
+
var relationId, result;
|
|
776
|
+
return __generator(this, function (_a) {
|
|
777
|
+
switch (_a.label) {
|
|
778
|
+
case 0:
|
|
779
|
+
relationId = 1603;
|
|
780
|
+
return [4, transaction.getOrderConfirmationDefaultSendMethod(relationId)];
|
|
781
|
+
case 1:
|
|
782
|
+
result = _a.sent();
|
|
783
|
+
expect(result).toBeDefined();
|
|
784
|
+
return [2];
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
}); });
|
|
788
|
+
it('getPurchaseOrderDefaultSendMethod', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
789
|
+
var relationId, result;
|
|
790
|
+
return __generator(this, function (_a) {
|
|
791
|
+
switch (_a.label) {
|
|
792
|
+
case 0:
|
|
793
|
+
relationId = 1603;
|
|
794
|
+
return [4, transaction.getPurchaseOrderDefaultSendMethod(relationId)];
|
|
795
|
+
case 1:
|
|
796
|
+
result = _a.sent();
|
|
797
|
+
expect(result).toBeDefined();
|
|
798
|
+
return [2];
|
|
799
|
+
}
|
|
800
|
+
});
|
|
801
|
+
}); });
|
|
802
|
+
it('getReminderPurchaseOrderDefaultSendMethod', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
803
|
+
var relationId, result;
|
|
804
|
+
return __generator(this, function (_a) {
|
|
805
|
+
switch (_a.label) {
|
|
806
|
+
case 0:
|
|
807
|
+
relationId = 1603;
|
|
808
|
+
return [4, transaction.getReminderPurchaseOrderDefaultSendMethod(relationId)];
|
|
809
|
+
case 1:
|
|
810
|
+
result = _a.sent();
|
|
811
|
+
expect(result).toBeDefined();
|
|
812
|
+
return [2];
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
}); });
|
|
816
|
+
it('getDemandingDeliveryDefaultSendMethod', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
817
|
+
var relationId, result;
|
|
818
|
+
return __generator(this, function (_a) {
|
|
819
|
+
switch (_a.label) {
|
|
820
|
+
case 0:
|
|
821
|
+
relationId = 1603;
|
|
822
|
+
return [4, transaction.getDemandingDeliveryDefaultSendMethod(relationId)];
|
|
823
|
+
case 1:
|
|
824
|
+
result = _a.sent();
|
|
825
|
+
expect(result).toBeDefined();
|
|
826
|
+
return [2];
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
}); });
|
|
830
|
+
it('getDeliveryNoteDefaultSendMethod', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
831
|
+
var relationId, result;
|
|
832
|
+
return __generator(this, function (_a) {
|
|
833
|
+
switch (_a.label) {
|
|
834
|
+
case 0:
|
|
835
|
+
relationId = 1603;
|
|
836
|
+
return [4, transaction.getDeliveryNoteDefaultSendMethod(relationId)];
|
|
837
|
+
case 1:
|
|
838
|
+
result = _a.sent();
|
|
839
|
+
expect(result).toBeDefined();
|
|
840
|
+
return [2];
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
}); });
|
|
844
|
+
it('getDefaultEmailAddressListForOrderConfirmation', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
845
|
+
var transactionUUID, result;
|
|
846
|
+
return __generator(this, function (_a) {
|
|
847
|
+
switch (_a.label) {
|
|
848
|
+
case 0:
|
|
849
|
+
transactionUUID = "cb94b56e-4bd0-4837-aa3a-17609d4ff889";
|
|
850
|
+
return [4, transaction.getDefaultEmailAddressListForOrderConfirmation(transactionUUID)];
|
|
851
|
+
case 1:
|
|
852
|
+
result = _a.sent();
|
|
853
|
+
expect(result).toBeDefined();
|
|
854
|
+
return [2];
|
|
855
|
+
}
|
|
856
|
+
});
|
|
857
|
+
}); });
|
|
858
|
+
it('getPurchaseOrderEmailLayouts', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
859
|
+
var transactionUUID, result;
|
|
860
|
+
return __generator(this, function (_a) {
|
|
861
|
+
switch (_a.label) {
|
|
862
|
+
case 0:
|
|
863
|
+
transactionUUID = "76d28628-3d1c-4432-b80b-f318232a07de";
|
|
864
|
+
return [4, transaction.getPurchaseOrderEmailLayouts(transactionUUID)];
|
|
865
|
+
case 1:
|
|
866
|
+
result = _a.sent();
|
|
867
|
+
expect(result).toBeDefined();
|
|
868
|
+
return [2];
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
}); });
|
|
723
872
|
});
|