@colijnit/transactionapi 1.1.11 → 1.1.14
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/discount-type.enum.d.ts +9 -0
- package/build/enum/discount-type.enum.js +10 -0
- package/build/enum/master-data-object-name.enum.d.ts +3 -1
- package/build/enum/master-data-object-name.enum.js +2 -0
- package/build/enum/operation-name.enum.d.ts +3 -1
- package/build/enum/operation-name.enum.js +2 -0
- package/build/enum/public-service-method.d.ts +2 -1
- package/build/enum/public-service-method.js +1 -0
- package/build/enum/transaction-method.enum.d.ts +17 -4
- package/build/enum/transaction-method.enum.js +16 -3
- package/build/enum/transaction-object-name.enum.d.ts +3 -0
- package/build/enum/transaction-object-name.enum.js +4 -0
- package/build/ione-api-transaction.d.ts +36 -4
- package/build/model/change-line-assembly-time-request.d.ts +5 -0
- package/build/model/change-line-assembly-time-request.js +6 -0
- package/build/model/change-line-collection-code-request.d.ts +5 -0
- package/build/model/change-line-collection-code-request.js +6 -0
- package/build/model/change-line-commission-code-request.d.ts +5 -0
- package/build/model/change-line-commission-code-request.js +6 -0
- package/build/model/change-line-delivery-date-request.d.ts +5 -0
- package/build/model/change-line-delivery-date-request.js +20 -0
- package/build/model/change-line-delivery-method-request.d.ts +5 -0
- package/build/model/change-line-delivery-method-request.js +6 -0
- package/build/model/change-line-discount-request.d.ts +8 -0
- package/build/model/change-line-discount-request.js +6 -0
- package/build/model/change-line-edit-time-request.d.ts +5 -0
- package/build/model/change-line-edit-time-request.js +6 -0
- package/build/model/change-line-price-list-request.d.ts +5 -0
- package/build/model/change-line-price-list-request.js +6 -0
- package/build/model/change-line-price-request.d.ts +5 -0
- package/build/model/change-line-price-request.js +6 -0
- package/build/model/change-line-quantity-request.d.ts +5 -0
- package/build/model/change-line-quantity-request.js +6 -0
- package/build/model/change-line-reference-request.d.ts +5 -0
- package/build/model/change-line-reference-request.js +6 -0
- package/build/model/change-line-sequence-request.d.ts +6 -0
- package/build/model/change-line-sequence-request.js +6 -0
- package/build/model/change-line-supplier-article-number-request.d.ts +5 -0
- package/build/model/change-line-supplier-article-number-request.js +6 -0
- package/build/model/change-line-vat-request.d.ts +5 -0
- package/build/model/change-line-vat-request.js +6 -0
- package/build/model/change-line-warehouse-request.d.ts +5 -0
- package/build/model/change-line-warehouse-request.js +6 -0
- package/build/model/price-list.d.ts +2 -0
- package/build/model/price-list.js +18 -0
- package/build/model/resolve-pending-reason-request.bo.d.ts +1 -1
- package/build/model/resolve-pending-reason-request.bo.js +4 -4
- package/build/model/search-transaction-request.d.ts +43 -0
- package/build/model/search-transaction-request.js +38 -0
- package/build/model/transaction-info-response.bo.js +2 -0
- package/build/model/transaction-line-info.bo.d.ts +25 -4
- package/build/model/transaction-list-object.bo.d.ts +53 -0
- package/build/model/transaction-list-object.bo.js +121 -0
- package/build/model/vat.d.ts +15 -0
- package/build/model/vat.js +43 -0
- package/build/transaction-auth.d.ts +36 -4
- package/build/transaction-auth.js +145 -16
- package/build/transaction-public.d.ts +36 -4
- package/build/transaction-public.js +89 -17
- package/build/transaction.d.ts +36 -4
- package/build/transaction.js +53 -4
- package/build/transaction.unit.test.js +52 -0
- package/package.json +1 -1
|
@@ -30,7 +30,9 @@ var TransactionInfoResponse = (function (_super) {
|
|
|
30
30
|
__extends(TransactionInfoResponse, _super);
|
|
31
31
|
function TransactionInfoResponse() {
|
|
32
32
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
33
|
+
_this.transactionInfo = new TransactionInfo();
|
|
33
34
|
_this.transactionLines = [];
|
|
35
|
+
_this.transactionTotal = new TransactionTotal();
|
|
34
36
|
_this.lineOperationStatuses = [];
|
|
35
37
|
return _this;
|
|
36
38
|
}
|
|
@@ -1,35 +1,56 @@
|
|
|
1
1
|
import { BusinessObject } from "./business-object";
|
|
2
|
-
import { CommissionCodeType } from "../enum/refcode/commission-code-type.enum";
|
|
3
2
|
import { TransactionLineType } from "../enum/transaction-line-type.enum";
|
|
4
3
|
import { TextKindType } from "../enum/text-kind-type.enum";
|
|
5
4
|
export declare class TransactionLineInfo extends BusinessObject {
|
|
6
|
-
articleBoundConcatenatedText: string;
|
|
7
5
|
uuid: string;
|
|
8
6
|
lineNr: number;
|
|
9
7
|
previousLineNr: number;
|
|
10
8
|
nextLineNr: number;
|
|
11
9
|
lineType: TransactionLineType;
|
|
12
|
-
|
|
10
|
+
state: string;
|
|
13
11
|
articleNumber: string;
|
|
12
|
+
articleFreePrice: boolean;
|
|
13
|
+
articleFreeSupplier: boolean;
|
|
14
|
+
articleFreeDescription: boolean;
|
|
15
|
+
articleFreeCommissionCode: boolean;
|
|
14
16
|
amount: number;
|
|
15
17
|
price: number;
|
|
16
18
|
priceListCode: string;
|
|
17
19
|
lineDiscount: number;
|
|
20
|
+
lineDiscountCode: string;
|
|
21
|
+
lineDiscountReason: string;
|
|
18
22
|
quantumDiscount: number;
|
|
23
|
+
quantumDiscountCode: string;
|
|
24
|
+
quantumDiscountReason: string;
|
|
19
25
|
specialDiscount: number;
|
|
26
|
+
specialDiscountCode: string;
|
|
27
|
+
specialDiscountReason: string;
|
|
20
28
|
discountAmount: number;
|
|
29
|
+
discountAmountCode: string;
|
|
30
|
+
discountAmountReason: string;
|
|
21
31
|
surchargeAmount: number;
|
|
22
32
|
assemblyCost: number;
|
|
23
33
|
vatId: number;
|
|
34
|
+
vatCode: string;
|
|
24
35
|
priceDeclaration: string;
|
|
25
36
|
netto: boolean;
|
|
26
37
|
warehouseNumber: number;
|
|
27
|
-
commissionCode:
|
|
38
|
+
commissionCode: string;
|
|
39
|
+
deliveryMethodCode: string;
|
|
40
|
+
deliveryDate: Date;
|
|
41
|
+
assemblyTime: number;
|
|
42
|
+
editTime: number;
|
|
43
|
+
supplierArticleNumber: string;
|
|
44
|
+
reference: string;
|
|
45
|
+
collectionCode: string;
|
|
28
46
|
goodDescription: string;
|
|
29
47
|
grossLineTotal: number;
|
|
30
48
|
netLineTotal: number;
|
|
31
49
|
lineTotalDiscountAmount: number;
|
|
50
|
+
articleBoundConcatenatedText: string;
|
|
51
|
+
hasInvoices: boolean;
|
|
32
52
|
text: string;
|
|
53
|
+
showOnDocuments: number;
|
|
33
54
|
textKind: TextKindType;
|
|
34
55
|
refLineNr: number;
|
|
35
56
|
articleBound: boolean;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
import { TransactionKind } from "../enum/transaction-kind.enum";
|
|
3
|
+
import { PriorityType } from "../enum/priority-type.enum";
|
|
4
|
+
import { CoDocument } from "./co-document";
|
|
5
|
+
export declare class TransactionListObject extends BusinessObject {
|
|
6
|
+
transId: number;
|
|
7
|
+
transType: string;
|
|
8
|
+
transNr: number;
|
|
9
|
+
relationNr: number;
|
|
10
|
+
relationName: string;
|
|
11
|
+
adres: string;
|
|
12
|
+
branchNr: string;
|
|
13
|
+
transDate: Date;
|
|
14
|
+
handledBy: number;
|
|
15
|
+
deliveryDate: Date;
|
|
16
|
+
deliveryMethod: string;
|
|
17
|
+
contactPerson: number;
|
|
18
|
+
transactionKind: TransactionKind;
|
|
19
|
+
active: string;
|
|
20
|
+
deliveryDateDefinitive: string;
|
|
21
|
+
deliveryDateConfirmed: string;
|
|
22
|
+
transactionDefinitive: boolean;
|
|
23
|
+
relationReference: string;
|
|
24
|
+
userReference: string;
|
|
25
|
+
serviceReport: string;
|
|
26
|
+
servicePriority: PriorityType;
|
|
27
|
+
timeToFirstResponse: string;
|
|
28
|
+
execName: string;
|
|
29
|
+
execImage: CoDocument;
|
|
30
|
+
assProduct: string;
|
|
31
|
+
assProductType: string;
|
|
32
|
+
serviceStatus: string;
|
|
33
|
+
executionDate: Date;
|
|
34
|
+
transitionDate: Date;
|
|
35
|
+
closed: boolean;
|
|
36
|
+
paused: boolean;
|
|
37
|
+
sourceGoodId: number;
|
|
38
|
+
sourceDocId: number;
|
|
39
|
+
createdBy: string;
|
|
40
|
+
get closedAsString(): string;
|
|
41
|
+
get statusOfSalesOrder(): string;
|
|
42
|
+
get isDefinitiveDate(): boolean;
|
|
43
|
+
constructor();
|
|
44
|
+
getId(): string;
|
|
45
|
+
getLettersForSearchResult(): string;
|
|
46
|
+
getRelationNr(): number;
|
|
47
|
+
getTransDate(): Date;
|
|
48
|
+
getDeliveryDate(): Date;
|
|
49
|
+
getIsDefinitive(): boolean;
|
|
50
|
+
getAdres(): string;
|
|
51
|
+
getHandledBy(): number;
|
|
52
|
+
getStatusForSalesOrder(): string;
|
|
53
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
};
|
|
23
|
+
import { BusinessObject } from "./business-object";
|
|
24
|
+
import { DateField } from "../factory/decorators/date-field.decorator";
|
|
25
|
+
import { BooleanText } from "../factory/decorators/boolean.decorator";
|
|
26
|
+
var TransactionListObject = (function (_super) {
|
|
27
|
+
__extends(TransactionListObject, _super);
|
|
28
|
+
function TransactionListObject() {
|
|
29
|
+
var _this = _super.call(this) || this;
|
|
30
|
+
_this.closed = false;
|
|
31
|
+
return _this;
|
|
32
|
+
}
|
|
33
|
+
Object.defineProperty(TransactionListObject.prototype, "closedAsString", {
|
|
34
|
+
get: function () {
|
|
35
|
+
return closed ? "FINISHED" : "OPEN";
|
|
36
|
+
},
|
|
37
|
+
enumerable: true,
|
|
38
|
+
configurable: true
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(TransactionListObject.prototype, "statusOfSalesOrder", {
|
|
41
|
+
get: function () {
|
|
42
|
+
if (!this.paused) {
|
|
43
|
+
return !this.closed ? 'OPEN' : "CLOSED";
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
return 'PAUSED';
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(TransactionListObject.prototype, "isDefinitiveDate", {
|
|
53
|
+
get: function () {
|
|
54
|
+
return this.deliveryDateDefinitive ? true : false;
|
|
55
|
+
},
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true
|
|
58
|
+
});
|
|
59
|
+
TransactionListObject.prototype.getId = function () {
|
|
60
|
+
return this.transId + "";
|
|
61
|
+
};
|
|
62
|
+
TransactionListObject.prototype.getLettersForSearchResult = function () {
|
|
63
|
+
return this.relationName;
|
|
64
|
+
};
|
|
65
|
+
TransactionListObject.prototype.getRelationNr = function () {
|
|
66
|
+
return this.relationNr;
|
|
67
|
+
};
|
|
68
|
+
TransactionListObject.prototype.getTransDate = function () {
|
|
69
|
+
return this.transDate;
|
|
70
|
+
};
|
|
71
|
+
TransactionListObject.prototype.getDeliveryDate = function () {
|
|
72
|
+
return this.deliveryDate;
|
|
73
|
+
};
|
|
74
|
+
TransactionListObject.prototype.getIsDefinitive = function () {
|
|
75
|
+
return this.deliveryDateDefinitive ? true : false;
|
|
76
|
+
};
|
|
77
|
+
TransactionListObject.prototype.getAdres = function () {
|
|
78
|
+
return this.adres;
|
|
79
|
+
};
|
|
80
|
+
TransactionListObject.prototype.getHandledBy = function () {
|
|
81
|
+
return this.handledBy;
|
|
82
|
+
};
|
|
83
|
+
TransactionListObject.prototype.getStatusForSalesOrder = function () {
|
|
84
|
+
if (!this.paused) {
|
|
85
|
+
return !this.closed ? 'OPEN' : "CLOSED";
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return 'PAUSED';
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
__decorate([
|
|
92
|
+
DateField(),
|
|
93
|
+
__metadata("design:type", Date)
|
|
94
|
+
], TransactionListObject.prototype, "transDate", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
DateField(),
|
|
97
|
+
__metadata("design:type", Date)
|
|
98
|
+
], TransactionListObject.prototype, "deliveryDate", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
BooleanText("J"),
|
|
101
|
+
__metadata("design:type", Boolean)
|
|
102
|
+
], TransactionListObject.prototype, "transactionDefinitive", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
DateField(),
|
|
105
|
+
__metadata("design:type", Date)
|
|
106
|
+
], TransactionListObject.prototype, "executionDate", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
DateField(),
|
|
109
|
+
__metadata("design:type", Date)
|
|
110
|
+
], TransactionListObject.prototype, "transitionDate", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
BooleanText("T"),
|
|
113
|
+
__metadata("design:type", Boolean)
|
|
114
|
+
], TransactionListObject.prototype, "closed", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
BooleanText("T"),
|
|
117
|
+
__metadata("design:type", Boolean)
|
|
118
|
+
], TransactionListObject.prototype, "paused", void 0);
|
|
119
|
+
return TransactionListObject;
|
|
120
|
+
}(BusinessObject));
|
|
121
|
+
export { TransactionListObject };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
import { VatType } from "../enum/vat-type.enum";
|
|
3
|
+
export declare class Vat extends BusinessObject {
|
|
4
|
+
vatId: number;
|
|
5
|
+
vatCode: number;
|
|
6
|
+
vatType: VatType;
|
|
7
|
+
percentage: number;
|
|
8
|
+
startDate: Date;
|
|
9
|
+
endDate: Date;
|
|
10
|
+
description: string;
|
|
11
|
+
vatTypedescription: string;
|
|
12
|
+
vatCodeExternal: string;
|
|
13
|
+
ledgers: any;
|
|
14
|
+
getId(): number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
};
|
|
23
|
+
import { BusinessObject } from "./business-object";
|
|
24
|
+
import { DateField } from "../factory/decorators/date-field.decorator";
|
|
25
|
+
var Vat = (function (_super) {
|
|
26
|
+
__extends(Vat, _super);
|
|
27
|
+
function Vat() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
Vat.prototype.getId = function () {
|
|
31
|
+
return this.vatCode;
|
|
32
|
+
};
|
|
33
|
+
__decorate([
|
|
34
|
+
DateField(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], Vat.prototype, "startDate", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
DateField(),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], Vat.prototype, "endDate", void 0);
|
|
41
|
+
return Vat;
|
|
42
|
+
}(BusinessObject));
|
|
43
|
+
export { Vat };
|
|
@@ -5,10 +5,27 @@ import { SequenceName } from "./enum/sequence-name.enum";
|
|
|
5
5
|
import { TransactionLineType } from "./enum/transaction-line-type.enum";
|
|
6
6
|
import { SetTransactionDeliveryOptionsRequest } from "./model/set-transaction-delivery-options-request.bo";
|
|
7
7
|
import { RelationRequest } from "./model/relation-request";
|
|
8
|
-
import {
|
|
8
|
+
import { ResolveLinePendingReasonRequest } from "./model/resolve-pending-reason-request.bo";
|
|
9
9
|
import { DataServiceResponseData } from "./model/data-service-response-data";
|
|
10
|
+
import { ChangeLineSequenceRequest } from "./model/change-line-sequence-request";
|
|
11
|
+
import { ChangeLineQuantityRequest } from "./model/change-line-quantity-request";
|
|
12
|
+
import { ChangeLineCommissionCodeRequest } from "./model/change-line-commission-code-request";
|
|
13
|
+
import { ChangeLineWarehouseRequest } from "./model/change-line-warehouse-request";
|
|
14
|
+
import { ChangeLinePriceRequest } from "./model/change-line-price-request";
|
|
15
|
+
import { ChangeLinePriceListRequest } from "./model/change-line-price-list-request";
|
|
16
|
+
import { ChangeLineVatRequest } from "./model/change-line-vat-request";
|
|
17
|
+
import { ChangeLineDiscountRequest } from "./model/change-line-discount-request";
|
|
18
|
+
import { ChangeLineDeliveryMethodRequest } from "./model/change-line-delivery-method-request";
|
|
19
|
+
import { ChangeLineDeliveryDateRequest } from "./model/change-line-delivery-date-request";
|
|
20
|
+
import { ChangeLineAssemblyTimeRequest } from "./model/change-line-assembly-time-request";
|
|
21
|
+
import { ChangeLineEditTimeRequest } from "./model/change-line-edit-time-request";
|
|
22
|
+
import { ChangeLineSupplierArticleNumberRequest } from "./model/change-line-supplier-article-number-request";
|
|
23
|
+
import { ChangeLineReferenceRequest } from "./model/change-line-reference-request";
|
|
24
|
+
import { ChangeLineCollectionCodeRequest } from "./model/change-line-collection-code-request";
|
|
25
|
+
import { SearchTransactionRequest } from "./model/search-transaction-request";
|
|
10
26
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
11
27
|
private _boSerializer;
|
|
28
|
+
searchTransactions(request: SearchTransactionRequest): Promise<DataServiceResponseData>;
|
|
12
29
|
getArticleFullObject(id: number): Promise<DataServiceResponseData>;
|
|
13
30
|
getGoodIdFromArticleNr(sku: string): Promise<DataServiceResponseData>;
|
|
14
31
|
getSingleImage(nodeId: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
@@ -34,14 +51,29 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
34
51
|
setTransactionDeliveryOptions(request: SetTransactionDeliveryOptionsRequest): Promise<DataServiceResponseData>;
|
|
35
52
|
addTransactionLine(uuid: string, lineType: TransactionLineType, articleNumber: string, amount: number, warehouseNr?: number, commissionCode?: string, isReturn?: boolean, aboveLineNr?: number, belowLineNr?: number): Promise<DataServiceResponseData>;
|
|
36
53
|
addTextLineToTransaction(uuid: string, showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<DataServiceResponseData>;
|
|
37
|
-
changeLineSequence(
|
|
54
|
+
changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
38
55
|
cancelAddTransactionLine(lineUuid: string): Promise<DataServiceResponseData>;
|
|
39
56
|
deleteTransactionLine(transactionUuid: string, lineUuid: string): Promise<DataServiceResponseData>;
|
|
40
|
-
|
|
41
|
-
|
|
57
|
+
changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
58
|
+
changeLineCommissionCode(request: ChangeLineCommissionCodeRequest): Promise<DataServiceResponseData>;
|
|
59
|
+
changeLineWarehouse(request: ChangeLineWarehouseRequest): Promise<DataServiceResponseData>;
|
|
60
|
+
changeLinePrice(request: ChangeLinePriceRequest): Promise<DataServiceResponseData>;
|
|
61
|
+
changeLinePriceList(request: ChangeLinePriceListRequest): Promise<DataServiceResponseData>;
|
|
62
|
+
changeLineVat(request: ChangeLineVatRequest): Promise<DataServiceResponseData>;
|
|
63
|
+
changeLineDiscount(request: ChangeLineDiscountRequest): Promise<DataServiceResponseData>;
|
|
64
|
+
changeLineDeliveryMethod(request: ChangeLineDeliveryMethodRequest): Promise<DataServiceResponseData>;
|
|
65
|
+
changeLineDeliveryDate(request: ChangeLineDeliveryDateRequest): Promise<DataServiceResponseData>;
|
|
66
|
+
changeLineAssemblyTime(request: ChangeLineAssemblyTimeRequest): Promise<DataServiceResponseData>;
|
|
67
|
+
changeLineEditTime(request: ChangeLineEditTimeRequest): Promise<DataServiceResponseData>;
|
|
68
|
+
changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
69
|
+
changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
70
|
+
changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
71
|
+
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
|
|
42
72
|
getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
|
|
43
73
|
getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
|
|
44
74
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
75
|
+
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
76
|
+
getVatList(onlyValid: boolean): Promise<DataServiceResponseData>;
|
|
45
77
|
insertCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
46
78
|
updateCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
47
79
|
getDeliveryMethods(): Promise<DataServiceResponseData>;
|
|
@@ -64,6 +64,7 @@ import { OperationName } from "./enum/operation-name.enum";
|
|
|
64
64
|
import { LogisticsMethod } from "./enum/logistics-method.enum";
|
|
65
65
|
import { BackendServiceName } from "./enum/backend-service-name.enum";
|
|
66
66
|
import { BusinessObjectSerializerService } from "./service/business-object-serializer.service";
|
|
67
|
+
import { TransactionObjectName } from "./enum/transaction-object-name.enum";
|
|
67
68
|
var TransactionAuth = (function (_super) {
|
|
68
69
|
__extends(TransactionAuth, _super);
|
|
69
70
|
function TransactionAuth() {
|
|
@@ -71,6 +72,9 @@ var TransactionAuth = (function (_super) {
|
|
|
71
72
|
_this._boSerializer = new BusinessObjectSerializerService();
|
|
72
73
|
return _this;
|
|
73
74
|
}
|
|
75
|
+
TransactionAuth.prototype.searchTransactions = function (request) {
|
|
76
|
+
return this.selectMultiple(ModuleName.Transaction, TransactionObjectName.TransactionListObject, "", request);
|
|
77
|
+
};
|
|
74
78
|
TransactionAuth.prototype.getArticleFullObject = function (id) {
|
|
75
79
|
var data = {
|
|
76
80
|
moduleName: ModuleName.Articles,
|
|
@@ -319,17 +323,11 @@ var TransactionAuth = (function (_super) {
|
|
|
319
323
|
};
|
|
320
324
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
321
325
|
};
|
|
322
|
-
TransactionAuth.prototype.changeLineSequence = function (
|
|
323
|
-
var params = {
|
|
324
|
-
lineUuid: lineUuid,
|
|
325
|
-
transactionUuid: uuid,
|
|
326
|
-
aboveLineNr: aboveLineNr,
|
|
327
|
-
belowLineNr: belowLineNr
|
|
328
|
-
};
|
|
326
|
+
TransactionAuth.prototype.changeLineSequence = function (request) {
|
|
329
327
|
var data = {
|
|
330
328
|
moduleName: ModuleName.Transaction,
|
|
331
329
|
methodName: TransactionMethod.ChangeLineSequence,
|
|
332
|
-
parameterValues:
|
|
330
|
+
parameterValues: request,
|
|
333
331
|
refCursorAsArray: true,
|
|
334
332
|
};
|
|
335
333
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
@@ -359,16 +357,128 @@ var TransactionAuth = (function (_super) {
|
|
|
359
357
|
};
|
|
360
358
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
361
359
|
};
|
|
362
|
-
TransactionAuth.prototype.
|
|
363
|
-
var
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
360
|
+
TransactionAuth.prototype.changeLineQuantity = function (request) {
|
|
361
|
+
var data = {
|
|
362
|
+
moduleName: ModuleName.Transaction,
|
|
363
|
+
methodName: TransactionMethod.ChangeLineQuantity,
|
|
364
|
+
parameterValues: request,
|
|
365
|
+
refCursorAsArray: true,
|
|
367
366
|
};
|
|
367
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
368
|
+
};
|
|
369
|
+
TransactionAuth.prototype.changeLineCommissionCode = function (request) {
|
|
368
370
|
var data = {
|
|
369
371
|
moduleName: ModuleName.Transaction,
|
|
370
|
-
methodName: TransactionMethod.
|
|
371
|
-
parameterValues:
|
|
372
|
+
methodName: TransactionMethod.ChangeLineCommissionCode,
|
|
373
|
+
parameterValues: request,
|
|
374
|
+
refCursorAsArray: true,
|
|
375
|
+
};
|
|
376
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
377
|
+
};
|
|
378
|
+
TransactionAuth.prototype.changeLineWarehouse = function (request) {
|
|
379
|
+
var data = {
|
|
380
|
+
moduleName: ModuleName.Transaction,
|
|
381
|
+
methodName: TransactionMethod.ChangeLineWarehouse,
|
|
382
|
+
parameterValues: request,
|
|
383
|
+
refCursorAsArray: true,
|
|
384
|
+
};
|
|
385
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
386
|
+
};
|
|
387
|
+
TransactionAuth.prototype.changeLinePrice = function (request) {
|
|
388
|
+
var data = {
|
|
389
|
+
moduleName: ModuleName.Transaction,
|
|
390
|
+
methodName: TransactionMethod.ChangeLinePrice,
|
|
391
|
+
parameterValues: request,
|
|
392
|
+
refCursorAsArray: true,
|
|
393
|
+
};
|
|
394
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
395
|
+
};
|
|
396
|
+
TransactionAuth.prototype.changeLinePriceList = function (request) {
|
|
397
|
+
var data = {
|
|
398
|
+
moduleName: ModuleName.Transaction,
|
|
399
|
+
methodName: TransactionMethod.ChangeLinePriceList,
|
|
400
|
+
parameterValues: request,
|
|
401
|
+
refCursorAsArray: true,
|
|
402
|
+
};
|
|
403
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
404
|
+
};
|
|
405
|
+
TransactionAuth.prototype.changeLineVat = function (request) {
|
|
406
|
+
var data = {
|
|
407
|
+
moduleName: ModuleName.Transaction,
|
|
408
|
+
methodName: TransactionMethod.ChangeLineVat,
|
|
409
|
+
parameterValues: request,
|
|
410
|
+
refCursorAsArray: true,
|
|
411
|
+
};
|
|
412
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
413
|
+
};
|
|
414
|
+
TransactionAuth.prototype.changeLineDiscount = function (request) {
|
|
415
|
+
var data = {
|
|
416
|
+
moduleName: ModuleName.Transaction,
|
|
417
|
+
methodName: TransactionMethod.ChangeLineDiscount,
|
|
418
|
+
parameterValues: request,
|
|
419
|
+
refCursorAsArray: true,
|
|
420
|
+
};
|
|
421
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
422
|
+
};
|
|
423
|
+
TransactionAuth.prototype.changeLineDeliveryMethod = function (request) {
|
|
424
|
+
var data = {
|
|
425
|
+
moduleName: ModuleName.Transaction,
|
|
426
|
+
methodName: TransactionMethod.ChangeLineDeliveryMethod,
|
|
427
|
+
parameterValues: request,
|
|
428
|
+
refCursorAsArray: true,
|
|
429
|
+
};
|
|
430
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
431
|
+
};
|
|
432
|
+
TransactionAuth.prototype.changeLineDeliveryDate = function (request) {
|
|
433
|
+
var data = {
|
|
434
|
+
moduleName: ModuleName.Transaction,
|
|
435
|
+
methodName: TransactionMethod.ChangeLineDeliveryDate,
|
|
436
|
+
parameterValues: request,
|
|
437
|
+
refCursorAsArray: true,
|
|
438
|
+
};
|
|
439
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
440
|
+
};
|
|
441
|
+
TransactionAuth.prototype.changeLineAssemblyTime = function (request) {
|
|
442
|
+
var data = {
|
|
443
|
+
moduleName: ModuleName.Transaction,
|
|
444
|
+
methodName: TransactionMethod.ChangeLineAssemblyTime,
|
|
445
|
+
parameterValues: request,
|
|
446
|
+
refCursorAsArray: true,
|
|
447
|
+
};
|
|
448
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
449
|
+
};
|
|
450
|
+
TransactionAuth.prototype.changeLineEditTime = function (request) {
|
|
451
|
+
var data = {
|
|
452
|
+
moduleName: ModuleName.Transaction,
|
|
453
|
+
methodName: TransactionMethod.ChangeLineEditTime,
|
|
454
|
+
parameterValues: request,
|
|
455
|
+
refCursorAsArray: true,
|
|
456
|
+
};
|
|
457
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
458
|
+
};
|
|
459
|
+
TransactionAuth.prototype.changeLineSupplierArticleNumber = function (request) {
|
|
460
|
+
var data = {
|
|
461
|
+
moduleName: ModuleName.Transaction,
|
|
462
|
+
methodName: TransactionMethod.ChangeLineSupplierArticleNumber,
|
|
463
|
+
parameterValues: request,
|
|
464
|
+
refCursorAsArray: true,
|
|
465
|
+
};
|
|
466
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
467
|
+
};
|
|
468
|
+
TransactionAuth.prototype.changeLineReference = function (request) {
|
|
469
|
+
var data = {
|
|
470
|
+
moduleName: ModuleName.Transaction,
|
|
471
|
+
methodName: TransactionMethod.ChangeLineReference,
|
|
472
|
+
parameterValues: request,
|
|
473
|
+
refCursorAsArray: true,
|
|
474
|
+
};
|
|
475
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
476
|
+
};
|
|
477
|
+
TransactionAuth.prototype.changeLineCollectionCode = function (request) {
|
|
478
|
+
var data = {
|
|
479
|
+
moduleName: ModuleName.Transaction,
|
|
480
|
+
methodName: TransactionMethod.ChangeLineCollectionCode,
|
|
481
|
+
parameterValues: request,
|
|
372
482
|
refCursorAsArray: true,
|
|
373
483
|
};
|
|
374
484
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
@@ -376,7 +486,7 @@ var TransactionAuth = (function (_super) {
|
|
|
376
486
|
TransactionAuth.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
377
487
|
var data = {
|
|
378
488
|
moduleName: ModuleName.Transaction,
|
|
379
|
-
methodName: TransactionMethod.
|
|
489
|
+
methodName: TransactionMethod.ResolveLinePendingReason,
|
|
380
490
|
parameterValues: pendingLineValues,
|
|
381
491
|
refCursorAsArray: true,
|
|
382
492
|
};
|
|
@@ -434,6 +544,25 @@ var TransactionAuth = (function (_super) {
|
|
|
434
544
|
});
|
|
435
545
|
});
|
|
436
546
|
};
|
|
547
|
+
TransactionAuth.prototype.getPriceLists = function (code) {
|
|
548
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
549
|
+
var params;
|
|
550
|
+
return __generator(this, function (_a) {
|
|
551
|
+
params = {};
|
|
552
|
+
if (code) {
|
|
553
|
+
params.code = code;
|
|
554
|
+
}
|
|
555
|
+
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PriceList, undefined, params)];
|
|
556
|
+
});
|
|
557
|
+
});
|
|
558
|
+
};
|
|
559
|
+
TransactionAuth.prototype.getVatList = function (onlyValid) {
|
|
560
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
561
|
+
return __generator(this, function (_a) {
|
|
562
|
+
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.Vat, onlyValid ? OperationName.AllValidVatRecords : OperationName.AllVatRecords)];
|
|
563
|
+
});
|
|
564
|
+
});
|
|
565
|
+
};
|
|
437
566
|
TransactionAuth.prototype.insertCustomer = function (customer) {
|
|
438
567
|
return __awaiter(this, void 0, void 0, function () {
|
|
439
568
|
var _a, _b, _c, data;
|
|
@@ -4,11 +4,28 @@ import { SequenceName } from "./enum/sequence-name.enum";
|
|
|
4
4
|
import { TransactionLineType } from "./enum/transaction-line-type.enum";
|
|
5
5
|
import { SetTransactionDeliveryOptionsRequest } from "./model/set-transaction-delivery-options-request.bo";
|
|
6
6
|
import { RelationRequest } from "./model/relation-request";
|
|
7
|
-
import {
|
|
7
|
+
import { ResolveLinePendingReasonRequest } from "./model/resolve-pending-reason-request.bo";
|
|
8
8
|
import { DataServiceResponseData } from "./model/data-service-response-data";
|
|
9
9
|
import { CustomerFullObject } from "./model/customer-full-object.bo";
|
|
10
|
+
import { ChangeLineSequenceRequest } from "./model/change-line-sequence-request";
|
|
11
|
+
import { ChangeLineCommissionCodeRequest } from "./model/change-line-commission-code-request";
|
|
12
|
+
import { ChangeLineWarehouseRequest } from "./model/change-line-warehouse-request";
|
|
13
|
+
import { ChangeLinePriceRequest } from "./model/change-line-price-request";
|
|
14
|
+
import { ChangeLinePriceListRequest } from "./model/change-line-price-list-request";
|
|
15
|
+
import { ChangeLineVatRequest } from "./model/change-line-vat-request";
|
|
16
|
+
import { ChangeLineDiscountRequest } from "./model/change-line-discount-request";
|
|
17
|
+
import { ChangeLineDeliveryMethodRequest } from "./model/change-line-delivery-method-request";
|
|
18
|
+
import { ChangeLineDeliveryDateRequest } from "./model/change-line-delivery-date-request";
|
|
19
|
+
import { ChangeLineAssemblyTimeRequest } from "./model/change-line-assembly-time-request";
|
|
20
|
+
import { ChangeLineEditTimeRequest } from "./model/change-line-edit-time-request";
|
|
21
|
+
import { ChangeLineSupplierArticleNumberRequest } from "./model/change-line-supplier-article-number-request";
|
|
22
|
+
import { ChangeLineReferenceRequest } from "./model/change-line-reference-request";
|
|
23
|
+
import { ChangeLineCollectionCodeRequest } from "./model/change-line-collection-code-request";
|
|
24
|
+
import { ChangeLineQuantityRequest } from "./model/change-line-quantity-request";
|
|
25
|
+
import { SearchTransactionRequest } from "./model/search-transaction-request";
|
|
10
26
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
11
27
|
protected endPoint: string;
|
|
28
|
+
searchTransactions(request: SearchTransactionRequest): Promise<DataServiceResponseData>;
|
|
12
29
|
getGoodIdFromArticleNr(sku: string): Promise<DataServiceResponseData>;
|
|
13
30
|
getArticleFullObject(goodId: number): Promise<DataServiceResponseData>;
|
|
14
31
|
getArticlePrice(goodId: number, branchNr: string, currencyId: number): Promise<DataServiceResponseData>;
|
|
@@ -35,16 +52,31 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
35
52
|
setTransactionDeliveryOptions(request: SetTransactionDeliveryOptionsRequest): Promise<DataServiceResponseData>;
|
|
36
53
|
addTransactionLine(uuid: string, lineType: TransactionLineType, articleNumber: string, amount: number, warehouseNr?: number, commissionCode?: string, isReturn?: boolean, aboveLineNr?: number, belowLineNr?: number): Promise<DataServiceResponseData>;
|
|
37
54
|
addTextLineToTransaction(uuid: string, showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<DataServiceResponseData>;
|
|
38
|
-
changeLineSequence(
|
|
55
|
+
changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
56
|
+
changeLineCommissionCode(request: ChangeLineCommissionCodeRequest): Promise<DataServiceResponseData>;
|
|
57
|
+
changeLineWarehouse(request: ChangeLineWarehouseRequest): Promise<DataServiceResponseData>;
|
|
58
|
+
changeLinePrice(request: ChangeLinePriceRequest): Promise<DataServiceResponseData>;
|
|
59
|
+
changeLinePriceList(request: ChangeLinePriceListRequest): Promise<DataServiceResponseData>;
|
|
60
|
+
changeLineVat(request: ChangeLineVatRequest): Promise<DataServiceResponseData>;
|
|
61
|
+
changeLineDiscount(request: ChangeLineDiscountRequest): Promise<DataServiceResponseData>;
|
|
62
|
+
changeLineDeliveryMethod(request: ChangeLineDeliveryMethodRequest): Promise<DataServiceResponseData>;
|
|
63
|
+
changeLineDeliveryDate(request: ChangeLineDeliveryDateRequest): Promise<DataServiceResponseData>;
|
|
64
|
+
changeLineAssemblyTime(request: ChangeLineAssemblyTimeRequest): Promise<DataServiceResponseData>;
|
|
65
|
+
changeLineEditTime(request: ChangeLineEditTimeRequest): Promise<DataServiceResponseData>;
|
|
66
|
+
changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
67
|
+
changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
68
|
+
changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
39
69
|
cancelAddTransactionLine(lineUuid: string): Promise<DataServiceResponseData>;
|
|
40
70
|
deleteTransactionLine(transactionUuid: string, lineUuid: string): Promise<DataServiceResponseData>;
|
|
41
|
-
|
|
42
|
-
resolvePendingLineReason(pendingLineValues:
|
|
71
|
+
changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
72
|
+
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
|
|
43
73
|
getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
|
|
44
74
|
getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
|
|
45
75
|
insertCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
46
76
|
updateCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
47
77
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
78
|
+
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
79
|
+
getVatList(onlyValid: boolean): Promise<DataServiceResponseData>;
|
|
48
80
|
getDeliveryMethods(): Promise<DataServiceResponseData>;
|
|
49
81
|
getDeliveryOptions(): Promise<DataServiceResponseData>;
|
|
50
82
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|