@colijnit/transactionapi 1.1.13 → 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.
|
@@ -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 };
|