@colijnit/transactionapi 1.1.50 → 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/enum/public-service-method.d.ts +5 -0
- package/build/enum/public-service-method.js +5 -0
- package/build/enum/reporting-method.enum.d.ts +7 -0
- package/build/enum/reporting-method.enum.js +8 -0
- package/build/ione-api-transaction.d.ts +18 -0
- package/build/model/delivery-order-status.bo.d.ts +5 -0
- package/build/model/delivery-order-status.bo.js +22 -0
- package/build/model/email-delivery-note-request.bo.d.ts +6 -0
- package/build/model/email-delivery-note-request.bo.js +22 -0
- package/build/model/pdf-delivery-note-request.bo.d.ts +5 -0
- package/build/model/pdf-delivery-note-request.bo.js +22 -0
- package/build/model/print-delivery-note-request.bo.d.ts +6 -0
- package/build/model/print-delivery-note-request.bo.js +22 -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/model/reporting-document-base-request.bo.d.ts +5 -0
- package/build/model/reporting-document-base-request.bo.js +22 -0
- package/build/model/reporting-document-email-base-request.bo.d.ts +5 -0
- package/build/model/reporting-document-email-base-request.bo.js +22 -0
- package/build/model/reporting-document-pdf-base-request.bo.d.ts +3 -0
- package/build/model/reporting-document-pdf-base-request.bo.js +22 -0
- package/build/model/reporting-document-print-base-request.bo.d.ts +7 -0
- package/build/model/reporting-document-print-base-request.bo.js +22 -0
- package/build/model/transaction-line-reporting-request.bo.d.ts +5 -0
- package/build/model/transaction-line-reporting-request.bo.js +22 -0
- package/build/transaction-auth.d.ts +21 -0
- package/build/transaction-auth.js +182 -1
- package/build/transaction-public.d.ts +18 -0
- package/build/transaction-public.js +115 -0
- package/build/transaction.d.ts +21 -0
- package/build/transaction.js +65 -0
- package/build/transaction.unit.test.js +178 -17
- 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 = {}));
|
|
@@ -68,6 +68,11 @@ export declare enum PublicServiceMethod {
|
|
|
68
68
|
GetPurchaseAdviceLines = "getPurchaseAdviceLines",
|
|
69
69
|
GeneratePurchaseOrders = "generatePurchaseOrders",
|
|
70
70
|
GenerateAndSendPurchaseOrders = "generateAndSendPurchaseOrders",
|
|
71
|
+
PrintDeliveryNote = "printDeliveryNote",
|
|
72
|
+
EmailDeliveryNote = "emailDeliveryNote",
|
|
73
|
+
PdfDeliveryNote = "pdfDeliveryNote",
|
|
74
|
+
GetDeliveryNoteEmailLayouts = "getDeliveryNoteEmailLayouts",
|
|
75
|
+
GetDeliveryNotePrintLayouts = "getDeliveryNotePrintLayouts",
|
|
71
76
|
GetCustomerGroups = "getCustomerGroups",
|
|
72
77
|
Commit = "commit",
|
|
73
78
|
GetCashRegisters = "getCashRegisters",
|
|
@@ -69,6 +69,11 @@ export var PublicServiceMethod;
|
|
|
69
69
|
PublicServiceMethod["GetPurchaseAdviceLines"] = "getPurchaseAdviceLines";
|
|
70
70
|
PublicServiceMethod["GeneratePurchaseOrders"] = "generatePurchaseOrders";
|
|
71
71
|
PublicServiceMethod["GenerateAndSendPurchaseOrders"] = "generateAndSendPurchaseOrders";
|
|
72
|
+
PublicServiceMethod["PrintDeliveryNote"] = "printDeliveryNote";
|
|
73
|
+
PublicServiceMethod["EmailDeliveryNote"] = "emailDeliveryNote";
|
|
74
|
+
PublicServiceMethod["PdfDeliveryNote"] = "pdfDeliveryNote";
|
|
75
|
+
PublicServiceMethod["GetDeliveryNoteEmailLayouts"] = "getDeliveryNoteEmailLayouts";
|
|
76
|
+
PublicServiceMethod["GetDeliveryNotePrintLayouts"] = "getDeliveryNotePrintLayouts";
|
|
72
77
|
PublicServiceMethod["GetCustomerGroups"] = "getCustomerGroups";
|
|
73
78
|
PublicServiceMethod["Commit"] = "commit";
|
|
74
79
|
PublicServiceMethod["GetCashRegisters"] = "getCashRegisters";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare enum ReportingMethod {
|
|
2
|
+
PrintDeliveryNote = "printDeliveryNote",
|
|
3
|
+
EmailDeliveryNote = "emailDeliveryNote",
|
|
4
|
+
PdfDeliveryNote = "pdfDeliveryNote",
|
|
5
|
+
GetDeliveryNoteEmailLayouts = "getDeliveryNoteEmailLayouts",
|
|
6
|
+
GetDeliveryNotePrintLayouts = "getDeliveryNotePrintLayouts"
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var ReportingMethod;
|
|
2
|
+
(function (ReportingMethod) {
|
|
3
|
+
ReportingMethod["PrintDeliveryNote"] = "printDeliveryNote";
|
|
4
|
+
ReportingMethod["EmailDeliveryNote"] = "emailDeliveryNote";
|
|
5
|
+
ReportingMethod["PdfDeliveryNote"] = "pdfDeliveryNote";
|
|
6
|
+
ReportingMethod["GetDeliveryNoteEmailLayouts"] = "getDeliveryNoteEmailLayouts";
|
|
7
|
+
ReportingMethod["GetDeliveryNotePrintLayouts"] = "getDeliveryNotePrintLayouts";
|
|
8
|
+
})(ReportingMethod || (ReportingMethod = {}));
|
|
@@ -62,6 +62,9 @@ import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-descr
|
|
|
62
62
|
import { SetTransactionDiscountsRequest } from './model/set-transaction-discounts-request';
|
|
63
63
|
import { GetPurchaseOrderConfirmation } from './model/get-purchase-order-confirmation';
|
|
64
64
|
import { ChangeLineSupplierRequest } from './model/change-line-supplier-request';
|
|
65
|
+
import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
|
|
66
|
+
import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
|
|
67
|
+
import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
|
|
65
68
|
export declare abstract class IoneApiTransaction {
|
|
66
69
|
readonly showLoader: Subject<boolean>;
|
|
67
70
|
readonly connectionAborted: Subject<void>;
|
|
@@ -188,5 +191,20 @@ export declare abstract class IoneApiTransaction {
|
|
|
188
191
|
abstract getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
189
192
|
abstract generatePurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
|
|
190
193
|
abstract generateAndSendPurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
|
|
194
|
+
abstract printDeliveryNote(request: PrintDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
195
|
+
abstract emailDeliveryNote(request: EmailDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
196
|
+
abstract pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
197
|
+
abstract getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
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>;
|
|
191
209
|
protected endPoint: string;
|
|
192
210
|
}
|
|
@@ -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 { TransactionLineStatusBase } from "./transaction-line-status-base.bo";
|
|
15
|
+
var DeliveryOrderStatus = (function (_super) {
|
|
16
|
+
__extends(DeliveryOrderStatus, _super);
|
|
17
|
+
function DeliveryOrderStatus() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return DeliveryOrderStatus;
|
|
21
|
+
}(TransactionLineStatusBase));
|
|
22
|
+
export { DeliveryOrderStatus };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReportingDocumentEmailBaseRequest } from "./reporting-document-email-base-request.bo";
|
|
2
|
+
import { TransactionLineReportingRequest } from "./transaction-line-reporting-request.bo";
|
|
3
|
+
export declare class EmailDeliveryNoteRequest extends ReportingDocumentEmailBaseRequest {
|
|
4
|
+
parkForDigitalSignature: boolean;
|
|
5
|
+
transactionLines: TransactionLineReportingRequest[];
|
|
6
|
+
}
|
|
@@ -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 { ReportingDocumentEmailBaseRequest } from "./reporting-document-email-base-request.bo";
|
|
15
|
+
var EmailDeliveryNoteRequest = (function (_super) {
|
|
16
|
+
__extends(EmailDeliveryNoteRequest, _super);
|
|
17
|
+
function EmailDeliveryNoteRequest() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return EmailDeliveryNoteRequest;
|
|
21
|
+
}(ReportingDocumentEmailBaseRequest));
|
|
22
|
+
export { EmailDeliveryNoteRequest };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ReportingDocumentPdfBaseRequest } from "./reporting-document-pdf-base-request.bo";
|
|
2
|
+
import { TransactionLineReportingRequest } from "./transaction-line-reporting-request.bo";
|
|
3
|
+
export declare class PdfDeliveryNoteRequest extends ReportingDocumentPdfBaseRequest {
|
|
4
|
+
transactionLines: TransactionLineReportingRequest[];
|
|
5
|
+
}
|
|
@@ -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 { ReportingDocumentPdfBaseRequest } from "./reporting-document-pdf-base-request.bo";
|
|
15
|
+
var PdfDeliveryNoteRequest = (function (_super) {
|
|
16
|
+
__extends(PdfDeliveryNoteRequest, _super);
|
|
17
|
+
function PdfDeliveryNoteRequest() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return PdfDeliveryNoteRequest;
|
|
21
|
+
}(ReportingDocumentPdfBaseRequest));
|
|
22
|
+
export { PdfDeliveryNoteRequest };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReportingDocumentPrintBaseRequest } from "./reporting-document-print-base-request.bo";
|
|
2
|
+
import { TransactionLineReportingRequest } from "./transaction-line-reporting-request.bo";
|
|
3
|
+
export declare class PrintDeliveryNoteRequest extends ReportingDocumentPrintBaseRequest {
|
|
4
|
+
parkForDigitalSignature: boolean;
|
|
5
|
+
transactionLines: TransactionLineReportingRequest[];
|
|
6
|
+
}
|
|
@@ -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 { ReportingDocumentPrintBaseRequest } from "./reporting-document-print-base-request.bo";
|
|
15
|
+
var PrintDeliveryNoteRequest = (function (_super) {
|
|
16
|
+
__extends(PrintDeliveryNoteRequest, _super);
|
|
17
|
+
function PrintDeliveryNoteRequest() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return PrintDeliveryNoteRequest;
|
|
21
|
+
}(ReportingDocumentPrintBaseRequest));
|
|
22
|
+
export { PrintDeliveryNoteRequest };
|
|
@@ -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 ReportingDocumentBaseRequest = (function (_super) {
|
|
16
|
+
__extends(ReportingDocumentBaseRequest, _super);
|
|
17
|
+
function ReportingDocumentBaseRequest() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return ReportingDocumentBaseRequest;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { ReportingDocumentBaseRequest };
|
|
@@ -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 { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
|
|
15
|
+
var ReportingDocumentEmailBaseRequest = (function (_super) {
|
|
16
|
+
__extends(ReportingDocumentEmailBaseRequest, _super);
|
|
17
|
+
function ReportingDocumentEmailBaseRequest() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return ReportingDocumentEmailBaseRequest;
|
|
21
|
+
}(ReportingDocumentBaseRequest));
|
|
22
|
+
export { ReportingDocumentEmailBaseRequest };
|
|
@@ -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 { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
|
|
15
|
+
var ReportingDocumentPdfBaseRequest = (function (_super) {
|
|
16
|
+
__extends(ReportingDocumentPdfBaseRequest, _super);
|
|
17
|
+
function ReportingDocumentPdfBaseRequest() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return ReportingDocumentPdfBaseRequest;
|
|
21
|
+
}(ReportingDocumentBaseRequest));
|
|
22
|
+
export { ReportingDocumentPdfBaseRequest };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
|
|
2
|
+
export declare class ReportingDocumentPrintBaseRequest extends ReportingDocumentBaseRequest {
|
|
3
|
+
printerName: string;
|
|
4
|
+
saveDefaultPrinterForUser: boolean;
|
|
5
|
+
saveDefaultPrinterForAllUsers: boolean;
|
|
6
|
+
copies: number;
|
|
7
|
+
}
|
|
@@ -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 { ReportingDocumentBaseRequest } from "./reporting-document-base-request.bo";
|
|
15
|
+
var ReportingDocumentPrintBaseRequest = (function (_super) {
|
|
16
|
+
__extends(ReportingDocumentPrintBaseRequest, _super);
|
|
17
|
+
function ReportingDocumentPrintBaseRequest() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return ReportingDocumentPrintBaseRequest;
|
|
21
|
+
}(ReportingDocumentBaseRequest));
|
|
22
|
+
export { ReportingDocumentPrintBaseRequest };
|
|
@@ -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 TransactionLineReportingRequest = (function (_super) {
|
|
16
|
+
__extends(TransactionLineReportingRequest, _super);
|
|
17
|
+
function TransactionLineReportingRequest() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return TransactionLineReportingRequest;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { TransactionLineReportingRequest };
|
|
@@ -61,6 +61,12 @@ 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";
|
|
67
|
+
import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
|
|
68
|
+
import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
|
|
69
|
+
import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
|
|
64
70
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
65
71
|
private _boSerializer;
|
|
66
72
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -181,6 +187,21 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
181
187
|
getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
182
188
|
generatePurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
|
|
183
189
|
generateAndSendPurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
|
|
190
|
+
printDeliveryNote(request: PrintDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
191
|
+
emailDeliveryNote(request: EmailDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
192
|
+
pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
193
|
+
getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
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>;
|
|
184
205
|
private _getDomainCollection;
|
|
185
206
|
private _getMultipleDomainCollection;
|
|
186
207
|
private callGetNodeData;
|
|
@@ -71,6 +71,8 @@ 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";
|
|
75
|
+
import { ReportingMethod } from "./enum/reporting-method.enum";
|
|
74
76
|
var TransactionAuth = (function (_super) {
|
|
75
77
|
__extends(TransactionAuth, _super);
|
|
76
78
|
function TransactionAuth() {
|
|
@@ -1043,7 +1045,7 @@ var TransactionAuth = (function (_super) {
|
|
|
1043
1045
|
};
|
|
1044
1046
|
var data = {
|
|
1045
1047
|
moduleName: ModuleName.Transaction,
|
|
1046
|
-
methodName: TransactionMethod.
|
|
1048
|
+
methodName: TransactionMethod.GetDeliveryOrderStatus,
|
|
1047
1049
|
parameterValues: paramValues,
|
|
1048
1050
|
refCursorAsArray: true
|
|
1049
1051
|
};
|
|
@@ -1258,6 +1260,185 @@ var TransactionAuth = (function (_super) {
|
|
|
1258
1260
|
};
|
|
1259
1261
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1260
1262
|
};
|
|
1263
|
+
TransactionAuth.prototype.printDeliveryNote = function (request) {
|
|
1264
|
+
var paramValues = {
|
|
1265
|
+
request: request
|
|
1266
|
+
};
|
|
1267
|
+
var data = {
|
|
1268
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1269
|
+
methodName: ReportingMethod.PrintDeliveryNote,
|
|
1270
|
+
parameterValues: paramValues,
|
|
1271
|
+
refCursorAsArray: true
|
|
1272
|
+
};
|
|
1273
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1274
|
+
};
|
|
1275
|
+
TransactionAuth.prototype.emailDeliveryNote = function (request) {
|
|
1276
|
+
var paramValues = {
|
|
1277
|
+
request: request
|
|
1278
|
+
};
|
|
1279
|
+
var data = {
|
|
1280
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1281
|
+
methodName: ReportingMethod.EmailDeliveryNote,
|
|
1282
|
+
parameterValues: paramValues,
|
|
1283
|
+
refCursorAsArray: true
|
|
1284
|
+
};
|
|
1285
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1286
|
+
};
|
|
1287
|
+
TransactionAuth.prototype.pdfDeliveryNote = function (request) {
|
|
1288
|
+
var paramValues = {
|
|
1289
|
+
request: request
|
|
1290
|
+
};
|
|
1291
|
+
var data = {
|
|
1292
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1293
|
+
methodName: ReportingMethod.PdfDeliveryNote,
|
|
1294
|
+
parameterValues: paramValues,
|
|
1295
|
+
refCursorAsArray: true
|
|
1296
|
+
};
|
|
1297
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1298
|
+
};
|
|
1299
|
+
TransactionAuth.prototype.getDeliveryNoteEmailLayouts = function (transactionUUID) {
|
|
1300
|
+
var paramValues = {
|
|
1301
|
+
transactionUUID: transactionUUID
|
|
1302
|
+
};
|
|
1303
|
+
var data = {
|
|
1304
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1305
|
+
methodName: ReportingMethod.GetDeliveryNoteEmailLayouts,
|
|
1306
|
+
parameterValues: paramValues,
|
|
1307
|
+
refCursorAsArray: true
|
|
1308
|
+
};
|
|
1309
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
1310
|
+
};
|
|
1311
|
+
TransactionAuth.prototype.getDeliveryNotePrintLayouts = function (transactionUUID) {
|
|
1312
|
+
var paramValues = {
|
|
1313
|
+
transactionUUID: transactionUUID
|
|
1314
|
+
};
|
|
1315
|
+
var data = {
|
|
1316
|
+
moduleName: ModuleName.ReportingDocuments,
|
|
1317
|
+
methodName: ReportingMethod.GetDeliveryNotePrintLayouts,
|
|
1318
|
+
parameterValues: paramValues,
|
|
1319
|
+
refCursorAsArray: true
|
|
1320
|
+
};
|
|
1321
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
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
|
+
};
|
|
1261
1442
|
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
1262
1443
|
var params = {
|
|
1263
1444
|
domainName: domainName,
|
|
@@ -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 { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
|
|
65
|
+
import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
|
|
66
|
+
import { PdfDeliveryNoteRequest } from "./model/pdf-delivery-note-request.bo";
|
|
64
67
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
65
68
|
protected endPoint: string;
|
|
66
69
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -182,6 +185,21 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
182
185
|
getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
183
186
|
generatePurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
|
|
184
187
|
generateAndSendPurchaseOrders(purchaseAdviceLines: PurchaseAdviceLine[]): Promise<DataServiceResponseData>;
|
|
188
|
+
printDeliveryNote(request: PrintDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
189
|
+
emailDeliveryNote(request: EmailDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
190
|
+
pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
191
|
+
getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
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>;
|
|
185
203
|
private createServiceRequestData;
|
|
186
204
|
private _getDomainCollection;
|
|
187
205
|
private _getMultipleDomainCollection;
|
|
@@ -953,6 +953,121 @@ var TransactionPublic = (function (_super) {
|
|
|
953
953
|
});
|
|
954
954
|
});
|
|
955
955
|
};
|
|
956
|
+
TransactionPublic.prototype.printDeliveryNote = function (request) {
|
|
957
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
958
|
+
var data;
|
|
959
|
+
return __generator(this, function (_a) {
|
|
960
|
+
data = __assign({}, this.createServiceRequestData());
|
|
961
|
+
return [2, this._call(PublicServiceMethod.PrintDeliveryNote, data)];
|
|
962
|
+
});
|
|
963
|
+
});
|
|
964
|
+
};
|
|
965
|
+
TransactionPublic.prototype.emailDeliveryNote = function (request) {
|
|
966
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
967
|
+
var data;
|
|
968
|
+
return __generator(this, function (_a) {
|
|
969
|
+
data = __assign({}, this.createServiceRequestData());
|
|
970
|
+
return [2, this._call(PublicServiceMethod.EmailDeliveryNote, data)];
|
|
971
|
+
});
|
|
972
|
+
});
|
|
973
|
+
};
|
|
974
|
+
TransactionPublic.prototype.pdfDeliveryNote = function (request) {
|
|
975
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
976
|
+
var data;
|
|
977
|
+
return __generator(this, function (_a) {
|
|
978
|
+
data = __assign({}, this.createServiceRequestData());
|
|
979
|
+
return [2, this._call(PublicServiceMethod.PdfDeliveryNote, data)];
|
|
980
|
+
});
|
|
981
|
+
});
|
|
982
|
+
};
|
|
983
|
+
TransactionPublic.prototype.getDeliveryNoteEmailLayouts = function (transactionUUID) {
|
|
984
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
985
|
+
var data;
|
|
986
|
+
return __generator(this, function (_a) {
|
|
987
|
+
data = __assign({}, this.createServiceRequestData());
|
|
988
|
+
return [2, this._call(PublicServiceMethod.GetDeliveryNoteEmailLayouts, data)];
|
|
989
|
+
});
|
|
990
|
+
});
|
|
991
|
+
};
|
|
992
|
+
TransactionPublic.prototype.getDeliveryNotePrintLayouts = function (transactionUUID) {
|
|
993
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
994
|
+
var data;
|
|
995
|
+
return __generator(this, function (_a) {
|
|
996
|
+
data = __assign({}, this.createServiceRequestData());
|
|
997
|
+
return [2, this._call(PublicServiceMethod.GetDeliveryNotePrintLayouts, data)];
|
|
998
|
+
});
|
|
999
|
+
});
|
|
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
|
+
};
|
|
956
1071
|
TransactionPublic.prototype.createServiceRequestData = function () {
|
|
957
1072
|
var data = { languageCode: this.languageCode };
|
|
958
1073
|
return data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -64,6 +64,12 @@ import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-descr
|
|
|
64
64
|
import { SetTransactionDiscountsRequest } from './model/set-transaction-discounts-request';
|
|
65
65
|
import { GetPurchaseOrderConfirmation } from './model/get-purchase-order-confirmation';
|
|
66
66
|
import { ChangeLineSupplierRequest } from './model/change-line-supplier-request';
|
|
67
|
+
import { PrintDeliveryNoteRequest } from "./model/print-delivery-note-request.bo";
|
|
68
|
+
import { EmailDeliveryNoteRequest } from "./model/email-delivery-note-request.bo";
|
|
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";
|
|
67
73
|
export declare class Transaction {
|
|
68
74
|
readonly showLoader: Subject<boolean>;
|
|
69
75
|
readonly connectionAborted: Subject<void>;
|
|
@@ -200,6 +206,21 @@ export declare class Transaction {
|
|
|
200
206
|
generateCommissionOrders(transId: number, onlyGenerateForDirectSellSuppliers: boolean): Promise<DataServiceResponseData>;
|
|
201
207
|
lockPurchasePortalLines(transIdPurchase: number, lineId: number): Promise<DataServiceResponseData>;
|
|
202
208
|
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
209
|
+
printDeliveryNote(request: PrintDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
210
|
+
emailDeliveryNote(request: EmailDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
211
|
+
pdfDeliveryNote(request: PdfDeliveryNoteRequest): Promise<DataServiceResponseData>;
|
|
212
|
+
getDeliveryNoteEmailLayouts(transactionUUID: string): Promise<DataServiceResponseData>;
|
|
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>;
|
|
203
224
|
static createConnector(options: Options): IoneApiTransaction;
|
|
204
225
|
private _handleConnectionReset;
|
|
205
226
|
}
|
package/build/transaction.js
CHANGED
|
@@ -489,6 +489,71 @@ var Transaction = (function () {
|
|
|
489
489
|
});
|
|
490
490
|
});
|
|
491
491
|
};
|
|
492
|
+
Transaction.prototype.printDeliveryNote = function (request) {
|
|
493
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
494
|
+
return __generator(this, function (_a) {
|
|
495
|
+
return [2, this.transaction.printDeliveryNote(request)];
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
};
|
|
499
|
+
Transaction.prototype.emailDeliveryNote = function (request) {
|
|
500
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
501
|
+
return __generator(this, function (_a) {
|
|
502
|
+
return [2, this.transaction.emailDeliveryNote(request)];
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
};
|
|
506
|
+
Transaction.prototype.pdfDeliveryNote = function (request) {
|
|
507
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
508
|
+
return __generator(this, function (_a) {
|
|
509
|
+
return [2, this.transaction.pdfDeliveryNote(request)];
|
|
510
|
+
});
|
|
511
|
+
});
|
|
512
|
+
};
|
|
513
|
+
Transaction.prototype.getDeliveryNoteEmailLayouts = function (transactionUUID) {
|
|
514
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
515
|
+
return __generator(this, function (_a) {
|
|
516
|
+
return [2, this.transaction.getDeliveryNoteEmailLayouts(transactionUUID)];
|
|
517
|
+
});
|
|
518
|
+
});
|
|
519
|
+
};
|
|
520
|
+
Transaction.prototype.getDeliveryNotePrintLayouts = function (transactionUUID) {
|
|
521
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
522
|
+
return __generator(this, function (_a) {
|
|
523
|
+
return [2, this.transaction.getDeliveryNotePrintLayouts(transactionUUID)];
|
|
524
|
+
});
|
|
525
|
+
});
|
|
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
|
+
};
|
|
492
557
|
Transaction.createConnector = function (options) {
|
|
493
558
|
if ((options.username && options.password) || options.session) {
|
|
494
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'
|
|
@@ -85,7 +88,7 @@ var publicOptions = {
|
|
|
85
88
|
describe("TransactionAPI", function () {
|
|
86
89
|
var transaction;
|
|
87
90
|
beforeEach(function () {
|
|
88
|
-
transaction = new Transaction(
|
|
91
|
+
transaction = new Transaction(developRemoteOptions);
|
|
89
92
|
jest.setTimeout(130000);
|
|
90
93
|
});
|
|
91
94
|
it('getPostalCodeRetrieval_shouldContainCityMiddelburg', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -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
|
}); });
|
|
@@ -627,6 +624,18 @@ describe("TransactionAPI", function () {
|
|
|
627
624
|
}
|
|
628
625
|
});
|
|
629
626
|
}); });
|
|
627
|
+
it('getDeliveryOrderStatus', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
628
|
+
var response;
|
|
629
|
+
return __generator(this, function (_a) {
|
|
630
|
+
switch (_a.label) {
|
|
631
|
+
case 0: return [4, transaction.getDeliveryOrderStatus(111395, 1)];
|
|
632
|
+
case 1:
|
|
633
|
+
response = _a.sent();
|
|
634
|
+
expect(response.validationResult.success).toBeTruthy();
|
|
635
|
+
return [2];
|
|
636
|
+
}
|
|
637
|
+
});
|
|
638
|
+
}); });
|
|
630
639
|
it('getPurchaseAdviceLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
631
640
|
var filterObject, result;
|
|
632
641
|
return __generator(this, function (_a) {
|
|
@@ -708,4 +717,156 @@ describe("TransactionAPI", function () {
|
|
|
708
717
|
}
|
|
709
718
|
});
|
|
710
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
|
+
}); });
|
|
711
872
|
});
|