@ausgaben/models
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -42,6 +42,6 @@ 'use strict'; | ||
_this.balance = (0, _tcomb.Integer)(balance, ['Report', 'amount:Integer']); | ||
_this.income = (0, _tcomb.Integer)(income, ['Report', 'amount:Integer']); | ||
_this.spendings = (0, _tcomb.Integer)(spendings, ['Report', 'amount:Integer']); | ||
_this.savings = (0, _tcomb.Integer)(savings, ['Report', 'amount:Integer']); | ||
_this.balance = (0, _tcomb.Integer)(balance, ['Report', 'balance:Integer']); | ||
_this.income = (0, _tcomb.Integer)(income, ['Report', 'income:Integer']); | ||
_this.spendings = (0, _tcomb.Integer)(spendings, ['Report', 'spendings:Integer']); | ||
_this.savings = (0, _tcomb.Integer)(savings, ['Report', 'savings:Integer']); | ||
_this.checkingAccount = (0, _models.ReferenceType)(checkingAccount, ['Report', 'checkingAccount:ReferenceValue']); | ||
@@ -67,3 +67,3 @@ return _this; | ||
ReportJSONType(data); | ||
return new Report(_get(Report.__proto__ || Object.getPrototypeOf(Report), 'fromJSON', this).call(this, data), { | ||
return new Report(_extends(_get(Report.__proto__ || Object.getPrototypeOf(Report), 'fromJSON', this).call(this, data), { | ||
balance: data.balance, | ||
@@ -74,3 +74,3 @@ income: data.income, | ||
checkingAccount: _models.Reference.fromJSON(data.checkingAccount) | ||
}); | ||
})); | ||
} | ||
@@ -77,0 +77,0 @@ }, { |
{ | ||
"name": "@ausgaben/models", | ||
"description": "A collection of models", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
32351