@colijnit/transactionapi 1.1.134 → 1.1.135

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.
@@ -94,6 +94,7 @@ export declare class TransactionLineInfo extends BusinessObject {
94
94
  set configuration(value: string);
95
95
  configurationReadable: string;
96
96
  get isArticle(): boolean;
97
+ get isPayment(): boolean;
97
98
  get isText(): boolean;
98
99
  get decimalsForAmountChange(): number;
99
100
  get displayNetLineTotal(): number;
@@ -50,6 +50,9 @@ class TransactionLineInfo extends business_object_1.BusinessObject {
50
50
  get isArticle() {
51
51
  return this.lineType === transaction_line_type_enum_1.TransactionLineType.ArticleLine;
52
52
  }
53
+ get isPayment() {
54
+ return this.lineType === transaction_line_type_enum_1.TransactionLineType.PaymentLine;
55
+ }
53
56
  get isText() {
54
57
  return this.lineType === transaction_line_type_enum_1.TransactionLineType.TextLine;
55
58
  }
@@ -105,6 +108,11 @@ __decorate([
105
108
  __metadata("design:type", Boolean),
106
109
  __metadata("design:paramtypes", [])
107
110
  ], TransactionLineInfo.prototype, "isArticle", null);
111
+ __decorate([
112
+ no_db_field_decorator_1.NoDbField(),
113
+ __metadata("design:type", Boolean),
114
+ __metadata("design:paramtypes", [])
115
+ ], TransactionLineInfo.prototype, "isPayment", null);
108
116
  __decorate([
109
117
  no_db_field_decorator_1.NoDbField(),
110
118
  __metadata("design:type", Boolean),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/transactionapi",
3
- "version": "1.1.134",
3
+ "version": "1.1.135",
4
4
  "scripts": {
5
5
  "build": "grunt clean && tsc",
6
6
  "browserify": "browserify build/connector.js --s colijn -o dist/out-tsc/bundle.js",