Settings
This commit is contained in:
parent
0060ea16d8
commit
3b1366baba
|
|
@ -60,10 +60,12 @@ abstract class CompanyGatewayEntity extends Object
|
||||||
showBillingAddress: true,
|
showBillingAddress: true,
|
||||||
showShippingAddress: false,
|
showShippingAddress: false,
|
||||||
updateDetails: true,
|
updateDetails: true,
|
||||||
customValue1: '',
|
|
||||||
customValue2: '',
|
|
||||||
config: '',
|
config: '',
|
||||||
feesAndLimitsMap: BuiltMap<String, FeesAndLimitsSettings>(),
|
feesAndLimitsMap: BuiltMap<String, FeesAndLimitsSettings>(),
|
||||||
|
customValue1: '',
|
||||||
|
customValue2: '',
|
||||||
|
customValue3: '',
|
||||||
|
customValue4: '',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -92,6 +94,10 @@ abstract class CompanyGatewayEntity extends Object
|
||||||
@BuiltValueField(wireName: 'update_details')
|
@BuiltValueField(wireName: 'update_details')
|
||||||
bool get updateDetails;
|
bool get updateDetails;
|
||||||
|
|
||||||
|
|
||||||
|
@BuiltValueField(wireName: 'fees_and_limits')
|
||||||
|
BuiltMap<String, FeesAndLimitsSettings> get feesAndLimitsMap;
|
||||||
|
|
||||||
@nullable
|
@nullable
|
||||||
@BuiltValueField(wireName: 'custom_value1')
|
@BuiltValueField(wireName: 'custom_value1')
|
||||||
String get customValue1;
|
String get customValue1;
|
||||||
|
|
@ -100,8 +106,14 @@ abstract class CompanyGatewayEntity extends Object
|
||||||
@BuiltValueField(wireName: 'custom_value2')
|
@BuiltValueField(wireName: 'custom_value2')
|
||||||
String get customValue2;
|
String get customValue2;
|
||||||
|
|
||||||
@BuiltValueField(wireName: 'fees_and_limits')
|
@nullable
|
||||||
BuiltMap<String, FeesAndLimitsSettings> get feesAndLimitsMap;
|
@BuiltValueField(wireName: 'custom_value3')
|
||||||
|
String get customValue3;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value4')
|
||||||
|
String get customValue4;
|
||||||
|
|
||||||
|
|
||||||
String get config;
|
String get config;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,18 @@ class _$CompanyGatewayEntitySerializer
|
||||||
..add(serializers.serialize(object.customValue2,
|
..add(serializers.serialize(object.customValue2,
|
||||||
specifiedType: const FullType(String)));
|
specifiedType: const FullType(String)));
|
||||||
}
|
}
|
||||||
|
if (object.customValue3 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value3')
|
||||||
|
..add(serializers.serialize(object.customValue3,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.customValue4 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value4')
|
||||||
|
..add(serializers.serialize(object.customValue4,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
..add('isChanged')
|
..add('isChanged')
|
||||||
|
|
@ -256,6 +268,13 @@ class _$CompanyGatewayEntitySerializer
|
||||||
result.updateDetails = serializers.deserialize(value,
|
result.updateDetails = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
break;
|
break;
|
||||||
|
case 'fees_and_limits':
|
||||||
|
result.feesAndLimitsMap.replace(serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(BuiltMap, const [
|
||||||
|
const FullType(String),
|
||||||
|
const FullType(FeesAndLimitsSettings)
|
||||||
|
])) as BuiltMap<dynamic, dynamic>);
|
||||||
|
break;
|
||||||
case 'custom_value1':
|
case 'custom_value1':
|
||||||
result.customValue1 = serializers.deserialize(value,
|
result.customValue1 = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
|
|
@ -264,12 +283,13 @@ class _$CompanyGatewayEntitySerializer
|
||||||
result.customValue2 = serializers.deserialize(value,
|
result.customValue2 = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
case 'fees_and_limits':
|
case 'custom_value3':
|
||||||
result.feesAndLimitsMap.replace(serializers.deserialize(value,
|
result.customValue3 = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(BuiltMap, const [
|
specifiedType: const FullType(String)) as String;
|
||||||
const FullType(String),
|
break;
|
||||||
const FullType(FeesAndLimitsSettings)
|
case 'custom_value4':
|
||||||
])) as BuiltMap<dynamic, dynamic>);
|
result.customValue4 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
case 'config':
|
case 'config':
|
||||||
result.config = serializers.deserialize(value,
|
result.config = serializers.deserialize(value,
|
||||||
|
|
@ -667,11 +687,15 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
|
||||||
@override
|
@override
|
||||||
final bool updateDetails;
|
final bool updateDetails;
|
||||||
@override
|
@override
|
||||||
|
final BuiltMap<String, FeesAndLimitsSettings> feesAndLimitsMap;
|
||||||
|
@override
|
||||||
final String customValue1;
|
final String customValue1;
|
||||||
@override
|
@override
|
||||||
final String customValue2;
|
final String customValue2;
|
||||||
@override
|
@override
|
||||||
final BuiltMap<String, FeesAndLimitsSettings> feesAndLimitsMap;
|
final String customValue3;
|
||||||
|
@override
|
||||||
|
final String customValue4;
|
||||||
@override
|
@override
|
||||||
final String config;
|
final String config;
|
||||||
@override
|
@override
|
||||||
|
|
@ -702,9 +726,11 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
|
||||||
this.showBillingAddress,
|
this.showBillingAddress,
|
||||||
this.showShippingAddress,
|
this.showShippingAddress,
|
||||||
this.updateDetails,
|
this.updateDetails,
|
||||||
|
this.feesAndLimitsMap,
|
||||||
this.customValue1,
|
this.customValue1,
|
||||||
this.customValue2,
|
this.customValue2,
|
||||||
this.feesAndLimitsMap,
|
this.customValue3,
|
||||||
|
this.customValue4,
|
||||||
this.config,
|
this.config,
|
||||||
this.isChanged,
|
this.isChanged,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
|
|
@ -762,9 +788,11 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
|
||||||
showBillingAddress == other.showBillingAddress &&
|
showBillingAddress == other.showBillingAddress &&
|
||||||
showShippingAddress == other.showShippingAddress &&
|
showShippingAddress == other.showShippingAddress &&
|
||||||
updateDetails == other.updateDetails &&
|
updateDetails == other.updateDetails &&
|
||||||
|
feesAndLimitsMap == other.feesAndLimitsMap &&
|
||||||
customValue1 == other.customValue1 &&
|
customValue1 == other.customValue1 &&
|
||||||
customValue2 == other.customValue2 &&
|
customValue2 == other.customValue2 &&
|
||||||
feesAndLimitsMap == other.feesAndLimitsMap &&
|
customValue3 == other.customValue3 &&
|
||||||
|
customValue4 == other.customValue4 &&
|
||||||
config == other.config &&
|
config == other.config &&
|
||||||
isChanged == other.isChanged &&
|
isChanged == other.isChanged &&
|
||||||
createdAt == other.createdAt &&
|
createdAt == other.createdAt &&
|
||||||
|
|
@ -796,21 +824,27 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
0,
|
$jc(
|
||||||
gateway
|
$jc(
|
||||||
|
0,
|
||||||
|
gateway
|
||||||
|
.hashCode),
|
||||||
|
gatewayId
|
||||||
|
.hashCode),
|
||||||
|
acceptedCreditCards
|
||||||
.hashCode),
|
.hashCode),
|
||||||
gatewayId
|
showBillingAddress
|
||||||
.hashCode),
|
.hashCode),
|
||||||
acceptedCreditCards
|
showShippingAddress
|
||||||
.hashCode),
|
.hashCode),
|
||||||
showBillingAddress
|
updateDetails
|
||||||
.hashCode),
|
.hashCode),
|
||||||
showShippingAddress
|
feesAndLimitsMap
|
||||||
.hashCode),
|
.hashCode),
|
||||||
updateDetails.hashCode),
|
customValue1.hashCode),
|
||||||
customValue1.hashCode),
|
customValue2.hashCode),
|
||||||
customValue2.hashCode),
|
customValue3.hashCode),
|
||||||
feesAndLimitsMap.hashCode),
|
customValue4.hashCode),
|
||||||
config.hashCode),
|
config.hashCode),
|
||||||
isChanged.hashCode),
|
isChanged.hashCode),
|
||||||
createdAt.hashCode),
|
createdAt.hashCode),
|
||||||
|
|
@ -831,9 +865,11 @@ class _$CompanyGatewayEntity extends CompanyGatewayEntity {
|
||||||
..add('showBillingAddress', showBillingAddress)
|
..add('showBillingAddress', showBillingAddress)
|
||||||
..add('showShippingAddress', showShippingAddress)
|
..add('showShippingAddress', showShippingAddress)
|
||||||
..add('updateDetails', updateDetails)
|
..add('updateDetails', updateDetails)
|
||||||
|
..add('feesAndLimitsMap', feesAndLimitsMap)
|
||||||
..add('customValue1', customValue1)
|
..add('customValue1', customValue1)
|
||||||
..add('customValue2', customValue2)
|
..add('customValue2', customValue2)
|
||||||
..add('feesAndLimitsMap', feesAndLimitsMap)
|
..add('customValue3', customValue3)
|
||||||
|
..add('customValue4', customValue4)
|
||||||
..add('config', config)
|
..add('config', config)
|
||||||
..add('isChanged', isChanged)
|
..add('isChanged', isChanged)
|
||||||
..add('createdAt', createdAt)
|
..add('createdAt', createdAt)
|
||||||
|
|
@ -880,6 +916,14 @@ class CompanyGatewayEntityBuilder
|
||||||
set updateDetails(bool updateDetails) =>
|
set updateDetails(bool updateDetails) =>
|
||||||
_$this._updateDetails = updateDetails;
|
_$this._updateDetails = updateDetails;
|
||||||
|
|
||||||
|
MapBuilder<String, FeesAndLimitsSettings> _feesAndLimitsMap;
|
||||||
|
MapBuilder<String, FeesAndLimitsSettings> get feesAndLimitsMap =>
|
||||||
|
_$this._feesAndLimitsMap ??=
|
||||||
|
new MapBuilder<String, FeesAndLimitsSettings>();
|
||||||
|
set feesAndLimitsMap(
|
||||||
|
MapBuilder<String, FeesAndLimitsSettings> feesAndLimitsMap) =>
|
||||||
|
_$this._feesAndLimitsMap = feesAndLimitsMap;
|
||||||
|
|
||||||
String _customValue1;
|
String _customValue1;
|
||||||
String get customValue1 => _$this._customValue1;
|
String get customValue1 => _$this._customValue1;
|
||||||
set customValue1(String customValue1) => _$this._customValue1 = customValue1;
|
set customValue1(String customValue1) => _$this._customValue1 = customValue1;
|
||||||
|
|
@ -888,13 +932,13 @@ class CompanyGatewayEntityBuilder
|
||||||
String get customValue2 => _$this._customValue2;
|
String get customValue2 => _$this._customValue2;
|
||||||
set customValue2(String customValue2) => _$this._customValue2 = customValue2;
|
set customValue2(String customValue2) => _$this._customValue2 = customValue2;
|
||||||
|
|
||||||
MapBuilder<String, FeesAndLimitsSettings> _feesAndLimitsMap;
|
String _customValue3;
|
||||||
MapBuilder<String, FeesAndLimitsSettings> get feesAndLimitsMap =>
|
String get customValue3 => _$this._customValue3;
|
||||||
_$this._feesAndLimitsMap ??=
|
set customValue3(String customValue3) => _$this._customValue3 = customValue3;
|
||||||
new MapBuilder<String, FeesAndLimitsSettings>();
|
|
||||||
set feesAndLimitsMap(
|
String _customValue4;
|
||||||
MapBuilder<String, FeesAndLimitsSettings> feesAndLimitsMap) =>
|
String get customValue4 => _$this._customValue4;
|
||||||
_$this._feesAndLimitsMap = feesAndLimitsMap;
|
set customValue4(String customValue4) => _$this._customValue4 = customValue4;
|
||||||
|
|
||||||
String _config;
|
String _config;
|
||||||
String get config => _$this._config;
|
String get config => _$this._config;
|
||||||
|
|
@ -944,9 +988,11 @@ class CompanyGatewayEntityBuilder
|
||||||
_showBillingAddress = _$v.showBillingAddress;
|
_showBillingAddress = _$v.showBillingAddress;
|
||||||
_showShippingAddress = _$v.showShippingAddress;
|
_showShippingAddress = _$v.showShippingAddress;
|
||||||
_updateDetails = _$v.updateDetails;
|
_updateDetails = _$v.updateDetails;
|
||||||
|
_feesAndLimitsMap = _$v.feesAndLimitsMap?.toBuilder();
|
||||||
_customValue1 = _$v.customValue1;
|
_customValue1 = _$v.customValue1;
|
||||||
_customValue2 = _$v.customValue2;
|
_customValue2 = _$v.customValue2;
|
||||||
_feesAndLimitsMap = _$v.feesAndLimitsMap?.toBuilder();
|
_customValue3 = _$v.customValue3;
|
||||||
|
_customValue4 = _$v.customValue4;
|
||||||
_config = _$v.config;
|
_config = _$v.config;
|
||||||
_isChanged = _$v.isChanged;
|
_isChanged = _$v.isChanged;
|
||||||
_createdAt = _$v.createdAt;
|
_createdAt = _$v.createdAt;
|
||||||
|
|
@ -986,9 +1032,11 @@ class CompanyGatewayEntityBuilder
|
||||||
showBillingAddress: showBillingAddress,
|
showBillingAddress: showBillingAddress,
|
||||||
showShippingAddress: showShippingAddress,
|
showShippingAddress: showShippingAddress,
|
||||||
updateDetails: updateDetails,
|
updateDetails: updateDetails,
|
||||||
|
feesAndLimitsMap: feesAndLimitsMap.build(),
|
||||||
customValue1: customValue1,
|
customValue1: customValue1,
|
||||||
customValue2: customValue2,
|
customValue2: customValue2,
|
||||||
feesAndLimitsMap: feesAndLimitsMap.build(),
|
customValue3: customValue3,
|
||||||
|
customValue4: customValue4,
|
||||||
config: config,
|
config: config,
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,10 @@ abstract class DocumentEntity extends Object
|
||||||
width: 0,
|
width: 0,
|
||||||
height: 0,
|
height: 0,
|
||||||
size: 0,
|
size: 0,
|
||||||
|
customValue1: '',
|
||||||
|
customValue2: '',
|
||||||
|
customValue3: '',
|
||||||
|
customValue4: '',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -90,6 +94,30 @@ abstract class DocumentEntity extends Object
|
||||||
@BuiltValueField(wireName: 'is_default')
|
@BuiltValueField(wireName: 'is_default')
|
||||||
bool get isDefault;
|
bool get isDefault;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value1')
|
||||||
|
String get customValue1;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value2')
|
||||||
|
String get customValue2;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value3')
|
||||||
|
String get customValue3;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value4')
|
||||||
|
String get customValue4;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'project_id')
|
||||||
|
String get projectId;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'vendor_id')
|
||||||
|
String get vendorId;
|
||||||
|
|
||||||
DocumentEntity get clone => rebuild((b) => b
|
DocumentEntity get clone => rebuild((b) => b
|
||||||
..id = BaseEntity.nextId
|
..id = BaseEntity.nextId
|
||||||
..isChanged = false
|
..isChanged = false
|
||||||
|
|
|
||||||
|
|
@ -150,6 +150,42 @@ class _$DocumentEntitySerializer
|
||||||
..add(serializers.serialize(object.expenseId,
|
..add(serializers.serialize(object.expenseId,
|
||||||
specifiedType: const FullType(String)));
|
specifiedType: const FullType(String)));
|
||||||
}
|
}
|
||||||
|
if (object.customValue1 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value1')
|
||||||
|
..add(serializers.serialize(object.customValue1,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.customValue2 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value2')
|
||||||
|
..add(serializers.serialize(object.customValue2,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.customValue3 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value3')
|
||||||
|
..add(serializers.serialize(object.customValue3,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.customValue4 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value4')
|
||||||
|
..add(serializers.serialize(object.customValue4,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.projectId != null) {
|
||||||
|
result
|
||||||
|
..add('project_id')
|
||||||
|
..add(serializers.serialize(object.projectId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.vendorId != null) {
|
||||||
|
result
|
||||||
|
..add('vendor_id')
|
||||||
|
..add(serializers.serialize(object.vendorId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
..add('isChanged')
|
..add('isChanged')
|
||||||
|
|
@ -253,6 +289,30 @@ class _$DocumentEntitySerializer
|
||||||
result.isDefault = serializers.deserialize(value,
|
result.isDefault = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
break;
|
break;
|
||||||
|
case 'custom_value1':
|
||||||
|
result.customValue1 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'custom_value2':
|
||||||
|
result.customValue2 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'custom_value3':
|
||||||
|
result.customValue3 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'custom_value4':
|
||||||
|
result.customValue4 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'project_id':
|
||||||
|
result.projectId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'vendor_id':
|
||||||
|
result.vendorId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
case 'isChanged':
|
case 'isChanged':
|
||||||
result.isChanged = serializers.deserialize(value,
|
result.isChanged = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
|
@ -504,6 +564,18 @@ class _$DocumentEntity extends DocumentEntity {
|
||||||
@override
|
@override
|
||||||
final bool isDefault;
|
final bool isDefault;
|
||||||
@override
|
@override
|
||||||
|
final String customValue1;
|
||||||
|
@override
|
||||||
|
final String customValue2;
|
||||||
|
@override
|
||||||
|
final String customValue3;
|
||||||
|
@override
|
||||||
|
final String customValue4;
|
||||||
|
@override
|
||||||
|
final String projectId;
|
||||||
|
@override
|
||||||
|
final String vendorId;
|
||||||
|
@override
|
||||||
final bool isChanged;
|
final bool isChanged;
|
||||||
@override
|
@override
|
||||||
final int createdAt;
|
final int createdAt;
|
||||||
|
|
@ -534,6 +606,12 @@ class _$DocumentEntity extends DocumentEntity {
|
||||||
this.invoiceId,
|
this.invoiceId,
|
||||||
this.expenseId,
|
this.expenseId,
|
||||||
this.isDefault,
|
this.isDefault,
|
||||||
|
this.customValue1,
|
||||||
|
this.customValue2,
|
||||||
|
this.customValue3,
|
||||||
|
this.customValue4,
|
||||||
|
this.projectId,
|
||||||
|
this.vendorId,
|
||||||
this.isChanged,
|
this.isChanged,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
this.updatedAt,
|
this.updatedAt,
|
||||||
|
|
@ -591,6 +669,12 @@ class _$DocumentEntity extends DocumentEntity {
|
||||||
invoiceId == other.invoiceId &&
|
invoiceId == other.invoiceId &&
|
||||||
expenseId == other.expenseId &&
|
expenseId == other.expenseId &&
|
||||||
isDefault == other.isDefault &&
|
isDefault == other.isDefault &&
|
||||||
|
customValue1 == other.customValue1 &&
|
||||||
|
customValue2 == other.customValue2 &&
|
||||||
|
customValue3 == other.customValue3 &&
|
||||||
|
customValue4 == other.customValue4 &&
|
||||||
|
projectId == other.projectId &&
|
||||||
|
vendorId == other.vendorId &&
|
||||||
isChanged == other.isChanged &&
|
isChanged == other.isChanged &&
|
||||||
createdAt == other.createdAt &&
|
createdAt == other.createdAt &&
|
||||||
updatedAt == other.updatedAt &&
|
updatedAt == other.updatedAt &&
|
||||||
|
|
@ -620,17 +704,19 @@ class _$DocumentEntity extends DocumentEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(0,
|
$jc(
|
||||||
name.hashCode),
|
$jc($jc($jc($jc($jc($jc(0, name.hashCode), type.hashCode), path.hashCode), width.hashCode), height.hashCode),
|
||||||
type.hashCode),
|
size.hashCode),
|
||||||
path.hashCode),
|
preview.hashCode),
|
||||||
width.hashCode),
|
invoiceId.hashCode),
|
||||||
height.hashCode),
|
expenseId.hashCode),
|
||||||
size.hashCode),
|
isDefault.hashCode),
|
||||||
preview.hashCode),
|
customValue1.hashCode),
|
||||||
invoiceId.hashCode),
|
customValue2.hashCode),
|
||||||
expenseId.hashCode),
|
customValue3.hashCode),
|
||||||
isDefault.hashCode),
|
customValue4.hashCode),
|
||||||
|
projectId.hashCode),
|
||||||
|
vendorId.hashCode),
|
||||||
isChanged.hashCode),
|
isChanged.hashCode),
|
||||||
createdAt.hashCode),
|
createdAt.hashCode),
|
||||||
updatedAt.hashCode),
|
updatedAt.hashCode),
|
||||||
|
|
@ -654,6 +740,12 @@ class _$DocumentEntity extends DocumentEntity {
|
||||||
..add('invoiceId', invoiceId)
|
..add('invoiceId', invoiceId)
|
||||||
..add('expenseId', expenseId)
|
..add('expenseId', expenseId)
|
||||||
..add('isDefault', isDefault)
|
..add('isDefault', isDefault)
|
||||||
|
..add('customValue1', customValue1)
|
||||||
|
..add('customValue2', customValue2)
|
||||||
|
..add('customValue3', customValue3)
|
||||||
|
..add('customValue4', customValue4)
|
||||||
|
..add('projectId', projectId)
|
||||||
|
..add('vendorId', vendorId)
|
||||||
..add('isChanged', isChanged)
|
..add('isChanged', isChanged)
|
||||||
..add('createdAt', createdAt)
|
..add('createdAt', createdAt)
|
||||||
..add('updatedAt', updatedAt)
|
..add('updatedAt', updatedAt)
|
||||||
|
|
@ -710,6 +802,30 @@ class DocumentEntityBuilder
|
||||||
bool get isDefault => _$this._isDefault;
|
bool get isDefault => _$this._isDefault;
|
||||||
set isDefault(bool isDefault) => _$this._isDefault = isDefault;
|
set isDefault(bool isDefault) => _$this._isDefault = isDefault;
|
||||||
|
|
||||||
|
String _customValue1;
|
||||||
|
String get customValue1 => _$this._customValue1;
|
||||||
|
set customValue1(String customValue1) => _$this._customValue1 = customValue1;
|
||||||
|
|
||||||
|
String _customValue2;
|
||||||
|
String get customValue2 => _$this._customValue2;
|
||||||
|
set customValue2(String customValue2) => _$this._customValue2 = customValue2;
|
||||||
|
|
||||||
|
String _customValue3;
|
||||||
|
String get customValue3 => _$this._customValue3;
|
||||||
|
set customValue3(String customValue3) => _$this._customValue3 = customValue3;
|
||||||
|
|
||||||
|
String _customValue4;
|
||||||
|
String get customValue4 => _$this._customValue4;
|
||||||
|
set customValue4(String customValue4) => _$this._customValue4 = customValue4;
|
||||||
|
|
||||||
|
String _projectId;
|
||||||
|
String get projectId => _$this._projectId;
|
||||||
|
set projectId(String projectId) => _$this._projectId = projectId;
|
||||||
|
|
||||||
|
String _vendorId;
|
||||||
|
String get vendorId => _$this._vendorId;
|
||||||
|
set vendorId(String vendorId) => _$this._vendorId = vendorId;
|
||||||
|
|
||||||
bool _isChanged;
|
bool _isChanged;
|
||||||
bool get isChanged => _$this._isChanged;
|
bool get isChanged => _$this._isChanged;
|
||||||
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
||||||
|
|
@ -758,6 +874,12 @@ class DocumentEntityBuilder
|
||||||
_invoiceId = _$v.invoiceId;
|
_invoiceId = _$v.invoiceId;
|
||||||
_expenseId = _$v.expenseId;
|
_expenseId = _$v.expenseId;
|
||||||
_isDefault = _$v.isDefault;
|
_isDefault = _$v.isDefault;
|
||||||
|
_customValue1 = _$v.customValue1;
|
||||||
|
_customValue2 = _$v.customValue2;
|
||||||
|
_customValue3 = _$v.customValue3;
|
||||||
|
_customValue4 = _$v.customValue4;
|
||||||
|
_projectId = _$v.projectId;
|
||||||
|
_vendorId = _$v.vendorId;
|
||||||
_isChanged = _$v.isChanged;
|
_isChanged = _$v.isChanged;
|
||||||
_createdAt = _$v.createdAt;
|
_createdAt = _$v.createdAt;
|
||||||
_updatedAt = _$v.updatedAt;
|
_updatedAt = _$v.updatedAt;
|
||||||
|
|
@ -798,6 +920,12 @@ class DocumentEntityBuilder
|
||||||
invoiceId: invoiceId,
|
invoiceId: invoiceId,
|
||||||
expenseId: expenseId,
|
expenseId: expenseId,
|
||||||
isDefault: isDefault,
|
isDefault: isDefault,
|
||||||
|
customValue1: customValue1,
|
||||||
|
customValue2: customValue2,
|
||||||
|
customValue3: customValue3,
|
||||||
|
customValue4: customValue4,
|
||||||
|
projectId: projectId,
|
||||||
|
vendorId: vendorId,
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
|
|
|
||||||
|
|
@ -408,6 +408,15 @@ abstract class ActivityEntity
|
||||||
@BuiltValueField(wireName: 'task_id')
|
@BuiltValueField(wireName: 'task_id')
|
||||||
String get taskId;
|
String get taskId;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'project_id')
|
||||||
|
String get projectId;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'vendor_id')
|
||||||
|
String get vendorId;
|
||||||
|
|
||||||
|
|
||||||
EntityType get entityType {
|
EntityType get entityType {
|
||||||
if (['1', '2', '3', '26'].contains(activityTypeId)) {
|
if (['1', '2', '3', '26'].contains(activityTypeId)) {
|
||||||
return EntityType.client;
|
return EntityType.client;
|
||||||
|
|
|
||||||
|
|
@ -507,6 +507,18 @@ class _$ActivityEntitySerializer
|
||||||
..add(serializers.serialize(object.taskId,
|
..add(serializers.serialize(object.taskId,
|
||||||
specifiedType: const FullType(String)));
|
specifiedType: const FullType(String)));
|
||||||
}
|
}
|
||||||
|
if (object.projectId != null) {
|
||||||
|
result
|
||||||
|
..add('project_id')
|
||||||
|
..add(serializers.serialize(object.projectId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.vendorId != null) {
|
||||||
|
result
|
||||||
|
..add('vendor_id')
|
||||||
|
..add(serializers.serialize(object.vendorId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -574,6 +586,14 @@ class _$ActivityEntitySerializer
|
||||||
result.taskId = serializers.deserialize(value,
|
result.taskId = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
|
case 'project_id':
|
||||||
|
result.projectId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'vendor_id':
|
||||||
|
result.vendorId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -797,6 +817,10 @@ class _$ActivityEntity extends ActivityEntity {
|
||||||
final String contactId;
|
final String contactId;
|
||||||
@override
|
@override
|
||||||
final String taskId;
|
final String taskId;
|
||||||
|
@override
|
||||||
|
final String projectId;
|
||||||
|
@override
|
||||||
|
final String vendorId;
|
||||||
|
|
||||||
factory _$ActivityEntity([void Function(ActivityEntityBuilder) updates]) =>
|
factory _$ActivityEntity([void Function(ActivityEntityBuilder) updates]) =>
|
||||||
(new ActivityEntityBuilder()..update(updates)).build();
|
(new ActivityEntityBuilder()..update(updates)).build();
|
||||||
|
|
@ -814,7 +838,9 @@ class _$ActivityEntity extends ActivityEntity {
|
||||||
this.expenseId,
|
this.expenseId,
|
||||||
this.isSystem,
|
this.isSystem,
|
||||||
this.contactId,
|
this.contactId,
|
||||||
this.taskId})
|
this.taskId,
|
||||||
|
this.projectId,
|
||||||
|
this.vendorId})
|
||||||
: super._() {
|
: super._() {
|
||||||
if (notes == null) {
|
if (notes == null) {
|
||||||
throw new BuiltValueNullFieldError('ActivityEntity', 'notes');
|
throw new BuiltValueNullFieldError('ActivityEntity', 'notes');
|
||||||
|
|
@ -857,7 +883,9 @@ class _$ActivityEntity extends ActivityEntity {
|
||||||
expenseId == other.expenseId &&
|
expenseId == other.expenseId &&
|
||||||
isSystem == other.isSystem &&
|
isSystem == other.isSystem &&
|
||||||
contactId == other.contactId &&
|
contactId == other.contactId &&
|
||||||
taskId == other.taskId;
|
taskId == other.taskId &&
|
||||||
|
projectId == other.projectId &&
|
||||||
|
vendorId == other.vendorId;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -873,19 +901,26 @@ class _$ActivityEntity extends ActivityEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc(0, notes.hashCode),
|
$jc(
|
||||||
key.hashCode),
|
$jc(
|
||||||
activityTypeId.hashCode),
|
$jc(
|
||||||
clientId.hashCode),
|
$jc(0,
|
||||||
userId.hashCode),
|
notes.hashCode),
|
||||||
invoiceId.hashCode),
|
key.hashCode),
|
||||||
paymentId.hashCode),
|
activityTypeId
|
||||||
creditId.hashCode),
|
.hashCode),
|
||||||
updatedAt.hashCode),
|
clientId.hashCode),
|
||||||
expenseId.hashCode),
|
userId.hashCode),
|
||||||
isSystem.hashCode),
|
invoiceId.hashCode),
|
||||||
contactId.hashCode),
|
paymentId.hashCode),
|
||||||
taskId.hashCode));
|
creditId.hashCode),
|
||||||
|
updatedAt.hashCode),
|
||||||
|
expenseId.hashCode),
|
||||||
|
isSystem.hashCode),
|
||||||
|
contactId.hashCode),
|
||||||
|
taskId.hashCode),
|
||||||
|
projectId.hashCode),
|
||||||
|
vendorId.hashCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -903,7 +938,9 @@ class _$ActivityEntity extends ActivityEntity {
|
||||||
..add('expenseId', expenseId)
|
..add('expenseId', expenseId)
|
||||||
..add('isSystem', isSystem)
|
..add('isSystem', isSystem)
|
||||||
..add('contactId', contactId)
|
..add('contactId', contactId)
|
||||||
..add('taskId', taskId))
|
..add('taskId', taskId)
|
||||||
|
..add('projectId', projectId)
|
||||||
|
..add('vendorId', vendorId))
|
||||||
.toString();
|
.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -965,6 +1002,14 @@ class ActivityEntityBuilder
|
||||||
String get taskId => _$this._taskId;
|
String get taskId => _$this._taskId;
|
||||||
set taskId(String taskId) => _$this._taskId = taskId;
|
set taskId(String taskId) => _$this._taskId = taskId;
|
||||||
|
|
||||||
|
String _projectId;
|
||||||
|
String get projectId => _$this._projectId;
|
||||||
|
set projectId(String projectId) => _$this._projectId = projectId;
|
||||||
|
|
||||||
|
String _vendorId;
|
||||||
|
String get vendorId => _$this._vendorId;
|
||||||
|
set vendorId(String vendorId) => _$this._vendorId = vendorId;
|
||||||
|
|
||||||
ActivityEntityBuilder();
|
ActivityEntityBuilder();
|
||||||
|
|
||||||
ActivityEntityBuilder get _$this {
|
ActivityEntityBuilder get _$this {
|
||||||
|
|
@ -982,6 +1027,8 @@ class ActivityEntityBuilder
|
||||||
_isSystem = _$v.isSystem;
|
_isSystem = _$v.isSystem;
|
||||||
_contactId = _$v.contactId;
|
_contactId = _$v.contactId;
|
||||||
_taskId = _$v.taskId;
|
_taskId = _$v.taskId;
|
||||||
|
_projectId = _$v.projectId;
|
||||||
|
_vendorId = _$v.vendorId;
|
||||||
_$v = null;
|
_$v = null;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
@ -1016,7 +1063,9 @@ class ActivityEntityBuilder
|
||||||
expenseId: expenseId,
|
expenseId: expenseId,
|
||||||
isSystem: isSystem,
|
isSystem: isSystem,
|
||||||
contactId: contactId,
|
contactId: contactId,
|
||||||
taskId: taskId);
|
taskId: taskId,
|
||||||
|
projectId: projectId,
|
||||||
|
vendorId: vendorId);
|
||||||
replace(_$result);
|
replace(_$result);
|
||||||
return _$result;
|
return _$result;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,15 @@ abstract class PaymentEntity extends Object
|
||||||
@BuiltValueField(wireName: 'is_manual')
|
@BuiltValueField(wireName: 'is_manual')
|
||||||
bool get isManual;
|
bool get isManual;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'project_id')
|
||||||
|
String get projectId;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'vendor_id')
|
||||||
|
String get vendorId;
|
||||||
|
|
||||||
|
|
||||||
int compareTo(PaymentEntity credit, String sortField, bool sortAscending) {
|
int compareTo(PaymentEntity credit, String sortField, bool sortAscending) {
|
||||||
int response = 0;
|
int response = 0;
|
||||||
final PaymentEntity paymentA = sortAscending ? this : credit;
|
final PaymentEntity paymentA = sortAscending ? this : credit;
|
||||||
|
|
|
||||||
|
|
@ -202,6 +202,18 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
|
||||||
..add(serializers.serialize(object.exchangeCurrencyId,
|
..add(serializers.serialize(object.exchangeCurrencyId,
|
||||||
specifiedType: const FullType(String)));
|
specifiedType: const FullType(String)));
|
||||||
}
|
}
|
||||||
|
if (object.projectId != null) {
|
||||||
|
result
|
||||||
|
..add('project_id')
|
||||||
|
..add(serializers.serialize(object.projectId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.vendorId != null) {
|
||||||
|
result
|
||||||
|
..add('vendor_id')
|
||||||
|
..add(serializers.serialize(object.vendorId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
..add('isChanged')
|
..add('isChanged')
|
||||||
|
|
@ -333,6 +345,14 @@ class _$PaymentEntitySerializer implements StructuredSerializer<PaymentEntity> {
|
||||||
result.isManual = serializers.deserialize(value,
|
result.isManual = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
break;
|
break;
|
||||||
|
case 'project_id':
|
||||||
|
result.projectId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'vendor_id':
|
||||||
|
result.vendorId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
case 'isChanged':
|
case 'isChanged':
|
||||||
result.isChanged = serializers.deserialize(value,
|
result.isChanged = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
|
@ -597,6 +617,10 @@ class _$PaymentEntity extends PaymentEntity {
|
||||||
@override
|
@override
|
||||||
final bool isManual;
|
final bool isManual;
|
||||||
@override
|
@override
|
||||||
|
final String projectId;
|
||||||
|
@override
|
||||||
|
final String vendorId;
|
||||||
|
@override
|
||||||
final bool isChanged;
|
final bool isChanged;
|
||||||
@override
|
@override
|
||||||
final int createdAt;
|
final int createdAt;
|
||||||
|
|
@ -634,6 +658,8 @@ class _$PaymentEntity extends PaymentEntity {
|
||||||
this.exchangeRate,
|
this.exchangeRate,
|
||||||
this.exchangeCurrencyId,
|
this.exchangeCurrencyId,
|
||||||
this.isManual,
|
this.isManual,
|
||||||
|
this.projectId,
|
||||||
|
this.vendorId,
|
||||||
this.isChanged,
|
this.isChanged,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
this.updatedAt,
|
this.updatedAt,
|
||||||
|
|
@ -692,6 +718,8 @@ class _$PaymentEntity extends PaymentEntity {
|
||||||
exchangeRate == other.exchangeRate &&
|
exchangeRate == other.exchangeRate &&
|
||||||
exchangeCurrencyId == other.exchangeCurrencyId &&
|
exchangeCurrencyId == other.exchangeCurrencyId &&
|
||||||
isManual == other.isManual &&
|
isManual == other.isManual &&
|
||||||
|
projectId == other.projectId &&
|
||||||
|
vendorId == other.vendorId &&
|
||||||
isChanged == other.isChanged &&
|
isChanged == other.isChanged &&
|
||||||
createdAt == other.createdAt &&
|
createdAt == other.createdAt &&
|
||||||
updatedAt == other.updatedAt &&
|
updatedAt == other.updatedAt &&
|
||||||
|
|
@ -722,18 +750,18 @@ class _$PaymentEntity extends PaymentEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), refunded.hashCode), number.hashCode), clientId.hashCode), statusId.hashCode), transactionReference.hashCode),
|
$jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), refunded.hashCode), number.hashCode), clientId.hashCode), statusId.hashCode), transactionReference.hashCode), date.hashCode), typeId.hashCode),
|
||||||
date.hashCode),
|
invoiceId.hashCode),
|
||||||
typeId.hashCode),
|
privateNotes.hashCode),
|
||||||
invoiceId.hashCode),
|
customValue1.hashCode),
|
||||||
privateNotes.hashCode),
|
customValue2.hashCode),
|
||||||
customValue1.hashCode),
|
customValue3.hashCode),
|
||||||
customValue2.hashCode),
|
customValue4.hashCode),
|
||||||
customValue3.hashCode),
|
exchangeRate.hashCode),
|
||||||
customValue4.hashCode),
|
exchangeCurrencyId.hashCode),
|
||||||
exchangeRate.hashCode),
|
isManual.hashCode),
|
||||||
exchangeCurrencyId.hashCode),
|
projectId.hashCode),
|
||||||
isManual.hashCode),
|
vendorId.hashCode),
|
||||||
isChanged.hashCode),
|
isChanged.hashCode),
|
||||||
createdAt.hashCode),
|
createdAt.hashCode),
|
||||||
updatedAt.hashCode),
|
updatedAt.hashCode),
|
||||||
|
|
@ -764,6 +792,8 @@ class _$PaymentEntity extends PaymentEntity {
|
||||||
..add('exchangeRate', exchangeRate)
|
..add('exchangeRate', exchangeRate)
|
||||||
..add('exchangeCurrencyId', exchangeCurrencyId)
|
..add('exchangeCurrencyId', exchangeCurrencyId)
|
||||||
..add('isManual', isManual)
|
..add('isManual', isManual)
|
||||||
|
..add('projectId', projectId)
|
||||||
|
..add('vendorId', vendorId)
|
||||||
..add('isChanged', isChanged)
|
..add('isChanged', isChanged)
|
||||||
..add('createdAt', createdAt)
|
..add('createdAt', createdAt)
|
||||||
..add('updatedAt', updatedAt)
|
..add('updatedAt', updatedAt)
|
||||||
|
|
@ -850,6 +880,14 @@ class PaymentEntityBuilder
|
||||||
bool get isManual => _$this._isManual;
|
bool get isManual => _$this._isManual;
|
||||||
set isManual(bool isManual) => _$this._isManual = isManual;
|
set isManual(bool isManual) => _$this._isManual = isManual;
|
||||||
|
|
||||||
|
String _projectId;
|
||||||
|
String get projectId => _$this._projectId;
|
||||||
|
set projectId(String projectId) => _$this._projectId = projectId;
|
||||||
|
|
||||||
|
String _vendorId;
|
||||||
|
String get vendorId => _$this._vendorId;
|
||||||
|
set vendorId(String vendorId) => _$this._vendorId = vendorId;
|
||||||
|
|
||||||
bool _isChanged;
|
bool _isChanged;
|
||||||
bool get isChanged => _$this._isChanged;
|
bool get isChanged => _$this._isChanged;
|
||||||
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
||||||
|
|
@ -905,6 +943,8 @@ class PaymentEntityBuilder
|
||||||
_exchangeRate = _$v.exchangeRate;
|
_exchangeRate = _$v.exchangeRate;
|
||||||
_exchangeCurrencyId = _$v.exchangeCurrencyId;
|
_exchangeCurrencyId = _$v.exchangeCurrencyId;
|
||||||
_isManual = _$v.isManual;
|
_isManual = _$v.isManual;
|
||||||
|
_projectId = _$v.projectId;
|
||||||
|
_vendorId = _$v.vendorId;
|
||||||
_isChanged = _$v.isChanged;
|
_isChanged = _$v.isChanged;
|
||||||
_createdAt = _$v.createdAt;
|
_createdAt = _$v.createdAt;
|
||||||
_updatedAt = _$v.updatedAt;
|
_updatedAt = _$v.updatedAt;
|
||||||
|
|
@ -952,6 +992,8 @@ class PaymentEntityBuilder
|
||||||
exchangeRate: exchangeRate,
|
exchangeRate: exchangeRate,
|
||||||
exchangeCurrencyId: exchangeCurrencyId,
|
exchangeCurrencyId: exchangeCurrencyId,
|
||||||
isManual: isManual,
|
isManual: isManual,
|
||||||
|
projectId: projectId,
|
||||||
|
vendorId: vendorId,
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,14 @@ abstract class ProductEntity extends Object
|
||||||
@BuiltValueField(wireName: 'custom_value4')
|
@BuiltValueField(wireName: 'custom_value4')
|
||||||
String get customValue4;
|
String get customValue4;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'project_id')
|
||||||
|
String get projectId;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'vendor_id')
|
||||||
|
String get vendorId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String get listDisplayName {
|
String get listDisplayName {
|
||||||
return productKey;
|
return productKey;
|
||||||
|
|
|
||||||
|
|
@ -169,6 +169,18 @@ class _$ProductEntitySerializer implements StructuredSerializer<ProductEntity> {
|
||||||
..add(serializers.serialize(object.customValue4,
|
..add(serializers.serialize(object.customValue4,
|
||||||
specifiedType: const FullType(String)));
|
specifiedType: const FullType(String)));
|
||||||
}
|
}
|
||||||
|
if (object.projectId != null) {
|
||||||
|
result
|
||||||
|
..add('project_id')
|
||||||
|
..add(serializers.serialize(object.projectId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.vendorId != null) {
|
||||||
|
result
|
||||||
|
..add('vendor_id')
|
||||||
|
..add(serializers.serialize(object.vendorId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
..add('isChanged')
|
..add('isChanged')
|
||||||
|
|
@ -292,6 +304,14 @@ class _$ProductEntitySerializer implements StructuredSerializer<ProductEntity> {
|
||||||
result.customValue4 = serializers.deserialize(value,
|
result.customValue4 = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
|
case 'project_id':
|
||||||
|
result.projectId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'vendor_id':
|
||||||
|
result.vendorId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
case 'isChanged':
|
case 'isChanged':
|
||||||
result.isChanged = serializers.deserialize(value,
|
result.isChanged = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
|
@ -552,6 +572,10 @@ class _$ProductEntity extends ProductEntity {
|
||||||
@override
|
@override
|
||||||
final String customValue4;
|
final String customValue4;
|
||||||
@override
|
@override
|
||||||
|
final String projectId;
|
||||||
|
@override
|
||||||
|
final String vendorId;
|
||||||
|
@override
|
||||||
final bool isChanged;
|
final bool isChanged;
|
||||||
@override
|
@override
|
||||||
final int createdAt;
|
final int createdAt;
|
||||||
|
|
@ -587,6 +611,8 @@ class _$ProductEntity extends ProductEntity {
|
||||||
this.customValue2,
|
this.customValue2,
|
||||||
this.customValue3,
|
this.customValue3,
|
||||||
this.customValue4,
|
this.customValue4,
|
||||||
|
this.projectId,
|
||||||
|
this.vendorId,
|
||||||
this.isChanged,
|
this.isChanged,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
this.updatedAt,
|
this.updatedAt,
|
||||||
|
|
@ -663,6 +689,8 @@ class _$ProductEntity extends ProductEntity {
|
||||||
customValue2 == other.customValue2 &&
|
customValue2 == other.customValue2 &&
|
||||||
customValue3 == other.customValue3 &&
|
customValue3 == other.customValue3 &&
|
||||||
customValue4 == other.customValue4 &&
|
customValue4 == other.customValue4 &&
|
||||||
|
projectId == other.projectId &&
|
||||||
|
vendorId == other.vendorId &&
|
||||||
isChanged == other.isChanged &&
|
isChanged == other.isChanged &&
|
||||||
createdAt == other.createdAt &&
|
createdAt == other.createdAt &&
|
||||||
updatedAt == other.updatedAt &&
|
updatedAt == other.updatedAt &&
|
||||||
|
|
@ -693,18 +721,18 @@ class _$ProductEntity extends ProductEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc($jc($jc($jc(0, productKey.hashCode), notes.hashCode), cost.hashCode), price.hashCode),
|
$jc($jc($jc($jc($jc($jc($jc(0, productKey.hashCode), notes.hashCode), cost.hashCode), price.hashCode), quantity.hashCode), taxName1.hashCode),
|
||||||
quantity.hashCode),
|
taxRate1.hashCode),
|
||||||
taxName1.hashCode),
|
taxName2.hashCode),
|
||||||
taxRate1.hashCode),
|
taxRate2.hashCode),
|
||||||
taxName2.hashCode),
|
taxName3.hashCode),
|
||||||
taxRate2.hashCode),
|
taxRate3.hashCode),
|
||||||
taxName3.hashCode),
|
customValue1.hashCode),
|
||||||
taxRate3.hashCode),
|
customValue2.hashCode),
|
||||||
customValue1.hashCode),
|
customValue3.hashCode),
|
||||||
customValue2.hashCode),
|
customValue4.hashCode),
|
||||||
customValue3.hashCode),
|
projectId.hashCode),
|
||||||
customValue4.hashCode),
|
vendorId.hashCode),
|
||||||
isChanged.hashCode),
|
isChanged.hashCode),
|
||||||
createdAt.hashCode),
|
createdAt.hashCode),
|
||||||
updatedAt.hashCode),
|
updatedAt.hashCode),
|
||||||
|
|
@ -733,6 +761,8 @@ class _$ProductEntity extends ProductEntity {
|
||||||
..add('customValue2', customValue2)
|
..add('customValue2', customValue2)
|
||||||
..add('customValue3', customValue3)
|
..add('customValue3', customValue3)
|
||||||
..add('customValue4', customValue4)
|
..add('customValue4', customValue4)
|
||||||
|
..add('projectId', projectId)
|
||||||
|
..add('vendorId', vendorId)
|
||||||
..add('isChanged', isChanged)
|
..add('isChanged', isChanged)
|
||||||
..add('createdAt', createdAt)
|
..add('createdAt', createdAt)
|
||||||
..add('updatedAt', updatedAt)
|
..add('updatedAt', updatedAt)
|
||||||
|
|
@ -809,6 +839,14 @@ class ProductEntityBuilder
|
||||||
String get customValue4 => _$this._customValue4;
|
String get customValue4 => _$this._customValue4;
|
||||||
set customValue4(String customValue4) => _$this._customValue4 = customValue4;
|
set customValue4(String customValue4) => _$this._customValue4 = customValue4;
|
||||||
|
|
||||||
|
String _projectId;
|
||||||
|
String get projectId => _$this._projectId;
|
||||||
|
set projectId(String projectId) => _$this._projectId = projectId;
|
||||||
|
|
||||||
|
String _vendorId;
|
||||||
|
String get vendorId => _$this._vendorId;
|
||||||
|
set vendorId(String vendorId) => _$this._vendorId = vendorId;
|
||||||
|
|
||||||
bool _isChanged;
|
bool _isChanged;
|
||||||
bool get isChanged => _$this._isChanged;
|
bool get isChanged => _$this._isChanged;
|
||||||
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
||||||
|
|
@ -862,6 +900,8 @@ class ProductEntityBuilder
|
||||||
_customValue2 = _$v.customValue2;
|
_customValue2 = _$v.customValue2;
|
||||||
_customValue3 = _$v.customValue3;
|
_customValue3 = _$v.customValue3;
|
||||||
_customValue4 = _$v.customValue4;
|
_customValue4 = _$v.customValue4;
|
||||||
|
_projectId = _$v.projectId;
|
||||||
|
_vendorId = _$v.vendorId;
|
||||||
_isChanged = _$v.isChanged;
|
_isChanged = _$v.isChanged;
|
||||||
_createdAt = _$v.createdAt;
|
_createdAt = _$v.createdAt;
|
||||||
_updatedAt = _$v.updatedAt;
|
_updatedAt = _$v.updatedAt;
|
||||||
|
|
@ -907,6 +947,8 @@ class ProductEntityBuilder
|
||||||
customValue2: customValue2,
|
customValue2: customValue2,
|
||||||
customValue3: customValue3,
|
customValue3: customValue3,
|
||||||
customValue4: customValue4,
|
customValue4: customValue4,
|
||||||
|
projectId: projectId,
|
||||||
|
vendorId: vendorId,
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,6 @@ abstract class QuoteEntity extends Object
|
||||||
return _$QuoteEntity._(
|
return _$QuoteEntity._(
|
||||||
id: id ?? BaseEntity.nextId,
|
id: id ?? BaseEntity.nextId,
|
||||||
isChanged: false,
|
isChanged: false,
|
||||||
settings: SettingsEntity(),
|
|
||||||
amount: 0.0,
|
amount: 0.0,
|
||||||
balance: 0.0,
|
balance: 0.0,
|
||||||
clientId: '',
|
clientId: '',
|
||||||
|
|
@ -282,7 +281,13 @@ abstract class QuoteEntity extends Object
|
||||||
|
|
||||||
String get filename;
|
String get filename;
|
||||||
|
|
||||||
SettingsEntity get settings;
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'project_id')
|
||||||
|
String get projectId;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'vendor_id')
|
||||||
|
String get vendorId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@BuiltValueField(wireName: 'line_items')
|
@BuiltValueField(wireName: 'line_items')
|
||||||
|
|
|
||||||
|
|
@ -225,9 +225,6 @@ class _$QuoteEntitySerializer implements StructuredSerializer<QuoteEntity> {
|
||||||
'filename',
|
'filename',
|
||||||
serializers.serialize(object.filename,
|
serializers.serialize(object.filename,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
'settings',
|
|
||||||
serializers.serialize(object.settings,
|
|
||||||
specifiedType: const FullType(SettingsEntity)),
|
|
||||||
'line_items',
|
'line_items',
|
||||||
serializers.serialize(object.lineItems,
|
serializers.serialize(object.lineItems,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
|
|
@ -249,6 +246,18 @@ class _$QuoteEntitySerializer implements StructuredSerializer<QuoteEntity> {
|
||||||
..add(serializers.serialize(object.designId,
|
..add(serializers.serialize(object.designId,
|
||||||
specifiedType: const FullType(String)));
|
specifiedType: const FullType(String)));
|
||||||
}
|
}
|
||||||
|
if (object.projectId != null) {
|
||||||
|
result
|
||||||
|
..add('project_id')
|
||||||
|
..add(serializers.serialize(object.projectId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.vendorId != null) {
|
||||||
|
result
|
||||||
|
..add('vendor_id')
|
||||||
|
..add(serializers.serialize(object.vendorId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
..add('isChanged')
|
..add('isChanged')
|
||||||
|
|
@ -471,9 +480,13 @@ class _$QuoteEntitySerializer implements StructuredSerializer<QuoteEntity> {
|
||||||
result.filename = serializers.deserialize(value,
|
result.filename = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
case 'settings':
|
case 'project_id':
|
||||||
result.settings.replace(serializers.deserialize(value,
|
result.projectId = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(SettingsEntity)) as SettingsEntity);
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'vendor_id':
|
||||||
|
result.vendorId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
case 'line_items':
|
case 'line_items':
|
||||||
result.lineItems.replace(serializers.deserialize(value,
|
result.lineItems.replace(serializers.deserialize(value,
|
||||||
|
|
@ -940,7 +953,9 @@ class _$QuoteEntity extends QuoteEntity {
|
||||||
@override
|
@override
|
||||||
final String filename;
|
final String filename;
|
||||||
@override
|
@override
|
||||||
final SettingsEntity settings;
|
final String projectId;
|
||||||
|
@override
|
||||||
|
final String vendorId;
|
||||||
@override
|
@override
|
||||||
final BuiltList<InvoiceItemEntity> lineItems;
|
final BuiltList<InvoiceItemEntity> lineItems;
|
||||||
@override
|
@override
|
||||||
|
|
@ -1006,7 +1021,8 @@ class _$QuoteEntity extends QuoteEntity {
|
||||||
this.hasExpenses,
|
this.hasExpenses,
|
||||||
this.quoteInvoiceId,
|
this.quoteInvoiceId,
|
||||||
this.filename,
|
this.filename,
|
||||||
this.settings,
|
this.projectId,
|
||||||
|
this.vendorId,
|
||||||
this.lineItems,
|
this.lineItems,
|
||||||
this.invitations,
|
this.invitations,
|
||||||
this.isChanged,
|
this.isChanged,
|
||||||
|
|
@ -1132,9 +1148,6 @@ class _$QuoteEntity extends QuoteEntity {
|
||||||
if (filename == null) {
|
if (filename == null) {
|
||||||
throw new BuiltValueNullFieldError('QuoteEntity', 'filename');
|
throw new BuiltValueNullFieldError('QuoteEntity', 'filename');
|
||||||
}
|
}
|
||||||
if (settings == null) {
|
|
||||||
throw new BuiltValueNullFieldError('QuoteEntity', 'settings');
|
|
||||||
}
|
|
||||||
if (lineItems == null) {
|
if (lineItems == null) {
|
||||||
throw new BuiltValueNullFieldError('QuoteEntity', 'lineItems');
|
throw new BuiltValueNullFieldError('QuoteEntity', 'lineItems');
|
||||||
}
|
}
|
||||||
|
|
@ -1194,7 +1207,8 @@ class _$QuoteEntity extends QuoteEntity {
|
||||||
hasExpenses == other.hasExpenses &&
|
hasExpenses == other.hasExpenses &&
|
||||||
quoteInvoiceId == other.quoteInvoiceId &&
|
quoteInvoiceId == other.quoteInvoiceId &&
|
||||||
filename == other.filename &&
|
filename == other.filename &&
|
||||||
settings == other.settings &&
|
projectId == other.projectId &&
|
||||||
|
vendorId == other.vendorId &&
|
||||||
lineItems == other.lineItems &&
|
lineItems == other.lineItems &&
|
||||||
invitations == other.invitations &&
|
invitations == other.invitations &&
|
||||||
isChanged == other.isChanged &&
|
isChanged == other.isChanged &&
|
||||||
|
|
@ -1227,16 +1241,16 @@ class _$QuoteEntity extends QuoteEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), balance.hashCode), clientId.hashCode), statusId.hashCode), invoiceNumber.hashCode), discount.hashCode), poNumber.hashCode), invoiceDate.hashCode), dueDate.hashCode), publicNotes.hashCode), privateNotes.hashCode), terms.hashCode), footer.hashCode), designId.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), isAmountDiscount.hashCode), partial.hashCode), partialDueDate.hashCode), hasTasks.hashCode), autoBill.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), customSurcharge1.hashCode), customSurcharge2.hashCode), customSurcharge3.hashCode),
|
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, amount.hashCode), balance.hashCode), clientId.hashCode), statusId.hashCode), invoiceNumber.hashCode), discount.hashCode), poNumber.hashCode), invoiceDate.hashCode), dueDate.hashCode), publicNotes.hashCode), privateNotes.hashCode), terms.hashCode), footer.hashCode), designId.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), isAmountDiscount.hashCode), partial.hashCode), partialDueDate.hashCode), hasTasks.hashCode), autoBill.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), customSurcharge1.hashCode), customSurcharge2.hashCode), customSurcharge3.hashCode), customSurcharge4.hashCode),
|
||||||
customSurcharge4.hashCode),
|
customTaxes1.hashCode),
|
||||||
customTaxes1.hashCode),
|
customTaxes2.hashCode),
|
||||||
customTaxes2.hashCode),
|
customTaxes3.hashCode),
|
||||||
customTaxes3.hashCode),
|
customTaxes4.hashCode),
|
||||||
customTaxes4.hashCode),
|
hasExpenses.hashCode),
|
||||||
hasExpenses.hashCode),
|
quoteInvoiceId.hashCode),
|
||||||
quoteInvoiceId.hashCode),
|
filename.hashCode),
|
||||||
filename.hashCode),
|
projectId.hashCode),
|
||||||
settings.hashCode),
|
vendorId.hashCode),
|
||||||
lineItems.hashCode),
|
lineItems.hashCode),
|
||||||
invitations.hashCode),
|
invitations.hashCode),
|
||||||
isChanged.hashCode),
|
isChanged.hashCode),
|
||||||
|
|
@ -1292,7 +1306,8 @@ class _$QuoteEntity extends QuoteEntity {
|
||||||
..add('hasExpenses', hasExpenses)
|
..add('hasExpenses', hasExpenses)
|
||||||
..add('quoteInvoiceId', quoteInvoiceId)
|
..add('quoteInvoiceId', quoteInvoiceId)
|
||||||
..add('filename', filename)
|
..add('filename', filename)
|
||||||
..add('settings', settings)
|
..add('projectId', projectId)
|
||||||
|
..add('vendorId', vendorId)
|
||||||
..add('lineItems', lineItems)
|
..add('lineItems', lineItems)
|
||||||
..add('invitations', invitations)
|
..add('invitations', invitations)
|
||||||
..add('isChanged', isChanged)
|
..add('isChanged', isChanged)
|
||||||
|
|
@ -1478,10 +1493,13 @@ class QuoteEntityBuilder implements Builder<QuoteEntity, QuoteEntityBuilder> {
|
||||||
String get filename => _$this._filename;
|
String get filename => _$this._filename;
|
||||||
set filename(String filename) => _$this._filename = filename;
|
set filename(String filename) => _$this._filename = filename;
|
||||||
|
|
||||||
SettingsEntityBuilder _settings;
|
String _projectId;
|
||||||
SettingsEntityBuilder get settings =>
|
String get projectId => _$this._projectId;
|
||||||
_$this._settings ??= new SettingsEntityBuilder();
|
set projectId(String projectId) => _$this._projectId = projectId;
|
||||||
set settings(SettingsEntityBuilder settings) => _$this._settings = settings;
|
|
||||||
|
String _vendorId;
|
||||||
|
String get vendorId => _$this._vendorId;
|
||||||
|
set vendorId(String vendorId) => _$this._vendorId = vendorId;
|
||||||
|
|
||||||
ListBuilder<InvoiceItemEntity> _lineItems;
|
ListBuilder<InvoiceItemEntity> _lineItems;
|
||||||
ListBuilder<InvoiceItemEntity> get lineItems =>
|
ListBuilder<InvoiceItemEntity> get lineItems =>
|
||||||
|
|
@ -1573,7 +1591,8 @@ class QuoteEntityBuilder implements Builder<QuoteEntity, QuoteEntityBuilder> {
|
||||||
_hasExpenses = _$v.hasExpenses;
|
_hasExpenses = _$v.hasExpenses;
|
||||||
_quoteInvoiceId = _$v.quoteInvoiceId;
|
_quoteInvoiceId = _$v.quoteInvoiceId;
|
||||||
_filename = _$v.filename;
|
_filename = _$v.filename;
|
||||||
_settings = _$v.settings?.toBuilder();
|
_projectId = _$v.projectId;
|
||||||
|
_vendorId = _$v.vendorId;
|
||||||
_lineItems = _$v.lineItems?.toBuilder();
|
_lineItems = _$v.lineItems?.toBuilder();
|
||||||
_invitations = _$v.invitations?.toBuilder();
|
_invitations = _$v.invitations?.toBuilder();
|
||||||
_isChanged = _$v.isChanged;
|
_isChanged = _$v.isChanged;
|
||||||
|
|
@ -1648,7 +1667,8 @@ class QuoteEntityBuilder implements Builder<QuoteEntity, QuoteEntityBuilder> {
|
||||||
hasExpenses: hasExpenses,
|
hasExpenses: hasExpenses,
|
||||||
quoteInvoiceId: quoteInvoiceId,
|
quoteInvoiceId: quoteInvoiceId,
|
||||||
filename: filename,
|
filename: filename,
|
||||||
settings: settings.build(),
|
projectId: projectId,
|
||||||
|
vendorId: vendorId,
|
||||||
lineItems: lineItems.build(),
|
lineItems: lineItems.build(),
|
||||||
invitations: invitations.build(),
|
invitations: invitations.build(),
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
|
|
@ -1662,8 +1682,6 @@ class QuoteEntityBuilder implements Builder<QuoteEntity, QuoteEntityBuilder> {
|
||||||
} catch (_) {
|
} catch (_) {
|
||||||
String _$failedField;
|
String _$failedField;
|
||||||
try {
|
try {
|
||||||
_$failedField = 'settings';
|
|
||||||
settings.build();
|
|
||||||
_$failedField = 'lineItems';
|
_$failedField = 'lineItems';
|
||||||
lineItems.build();
|
lineItems.build();
|
||||||
_$failedField = 'invitations';
|
_$failedField = 'invitations';
|
||||||
|
|
|
||||||
|
|
@ -366,6 +366,10 @@ abstract class TaskEntity extends Object
|
||||||
@BuiltValueField(wireName: 'task_status_sort_order')
|
@BuiltValueField(wireName: 'task_status_sort_order')
|
||||||
int get taskStatusSortOrder;
|
int get taskStatusSortOrder;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'vendor_id')
|
||||||
|
String get vendorId;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
List<EntityAction> getActions(
|
List<EntityAction> getActions(
|
||||||
{UserCompanyEntity userCompany,
|
{UserCompanyEntity userCompany,
|
||||||
|
|
|
||||||
|
|
@ -222,6 +222,12 @@ class _$TaskEntitySerializer implements StructuredSerializer<TaskEntity> {
|
||||||
..add(serializers.serialize(object.taskStatusSortOrder,
|
..add(serializers.serialize(object.taskStatusSortOrder,
|
||||||
specifiedType: const FullType(int)));
|
specifiedType: const FullType(int)));
|
||||||
}
|
}
|
||||||
|
if (object.vendorId != null) {
|
||||||
|
result
|
||||||
|
..add('vendor_id')
|
||||||
|
..add(serializers.serialize(object.vendorId,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
if (object.isChanged != null) {
|
if (object.isChanged != null) {
|
||||||
result
|
result
|
||||||
..add('isChanged')
|
..add('isChanged')
|
||||||
|
|
@ -336,6 +342,10 @@ class _$TaskEntitySerializer implements StructuredSerializer<TaskEntity> {
|
||||||
result.taskStatusSortOrder = serializers.deserialize(value,
|
result.taskStatusSortOrder = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(int)) as int;
|
specifiedType: const FullType(int)) as int;
|
||||||
break;
|
break;
|
||||||
|
case 'vendor_id':
|
||||||
|
result.vendorId = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
case 'isChanged':
|
case 'isChanged':
|
||||||
result.isChanged = serializers.deserialize(value,
|
result.isChanged = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(bool)) as bool;
|
specifiedType: const FullType(bool)) as bool;
|
||||||
|
|
@ -730,6 +740,8 @@ class _$TaskEntity extends TaskEntity {
|
||||||
@override
|
@override
|
||||||
final int taskStatusSortOrder;
|
final int taskStatusSortOrder;
|
||||||
@override
|
@override
|
||||||
|
final String vendorId;
|
||||||
|
@override
|
||||||
final bool isChanged;
|
final bool isChanged;
|
||||||
@override
|
@override
|
||||||
final int createdAt;
|
final int createdAt;
|
||||||
|
|
@ -763,6 +775,7 @@ class _$TaskEntity extends TaskEntity {
|
||||||
this.customValue4,
|
this.customValue4,
|
||||||
this.taskStatusId,
|
this.taskStatusId,
|
||||||
this.taskStatusSortOrder,
|
this.taskStatusSortOrder,
|
||||||
|
this.vendorId,
|
||||||
this.isChanged,
|
this.isChanged,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
this.updatedAt,
|
this.updatedAt,
|
||||||
|
|
@ -816,6 +829,7 @@ class _$TaskEntity extends TaskEntity {
|
||||||
customValue4 == other.customValue4 &&
|
customValue4 == other.customValue4 &&
|
||||||
taskStatusId == other.taskStatusId &&
|
taskStatusId == other.taskStatusId &&
|
||||||
taskStatusSortOrder == other.taskStatusSortOrder &&
|
taskStatusSortOrder == other.taskStatusSortOrder &&
|
||||||
|
vendorId == other.vendorId &&
|
||||||
isChanged == other.isChanged &&
|
isChanged == other.isChanged &&
|
||||||
createdAt == other.createdAt &&
|
createdAt == other.createdAt &&
|
||||||
updatedAt == other.updatedAt &&
|
updatedAt == other.updatedAt &&
|
||||||
|
|
@ -846,18 +860,18 @@ class _$TaskEntity extends TaskEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc($jc(0, description.hashCode), duration.hashCode),
|
$jc($jc($jc($jc(0, description.hashCode), duration.hashCode), invoiceId.hashCode),
|
||||||
invoiceId.hashCode),
|
clientId.hashCode),
|
||||||
clientId.hashCode),
|
projectId.hashCode),
|
||||||
projectId.hashCode),
|
timeLog.hashCode),
|
||||||
timeLog.hashCode),
|
isRunning.hashCode),
|
||||||
isRunning.hashCode),
|
customValue1.hashCode),
|
||||||
customValue1.hashCode),
|
customValue2.hashCode),
|
||||||
customValue2.hashCode),
|
customValue3.hashCode),
|
||||||
customValue3.hashCode),
|
customValue4.hashCode),
|
||||||
customValue4.hashCode),
|
taskStatusId.hashCode),
|
||||||
taskStatusId.hashCode),
|
taskStatusSortOrder.hashCode),
|
||||||
taskStatusSortOrder.hashCode),
|
vendorId.hashCode),
|
||||||
isChanged.hashCode),
|
isChanged.hashCode),
|
||||||
createdAt.hashCode),
|
createdAt.hashCode),
|
||||||
updatedAt.hashCode),
|
updatedAt.hashCode),
|
||||||
|
|
@ -884,6 +898,7 @@ class _$TaskEntity extends TaskEntity {
|
||||||
..add('customValue4', customValue4)
|
..add('customValue4', customValue4)
|
||||||
..add('taskStatusId', taskStatusId)
|
..add('taskStatusId', taskStatusId)
|
||||||
..add('taskStatusSortOrder', taskStatusSortOrder)
|
..add('taskStatusSortOrder', taskStatusSortOrder)
|
||||||
|
..add('vendorId', vendorId)
|
||||||
..add('isChanged', isChanged)
|
..add('isChanged', isChanged)
|
||||||
..add('createdAt', createdAt)
|
..add('createdAt', createdAt)
|
||||||
..add('updatedAt', updatedAt)
|
..add('updatedAt', updatedAt)
|
||||||
|
|
@ -952,6 +967,10 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
|
||||||
set taskStatusSortOrder(int taskStatusSortOrder) =>
|
set taskStatusSortOrder(int taskStatusSortOrder) =>
|
||||||
_$this._taskStatusSortOrder = taskStatusSortOrder;
|
_$this._taskStatusSortOrder = taskStatusSortOrder;
|
||||||
|
|
||||||
|
String _vendorId;
|
||||||
|
String get vendorId => _$this._vendorId;
|
||||||
|
set vendorId(String vendorId) => _$this._vendorId = vendorId;
|
||||||
|
|
||||||
bool _isChanged;
|
bool _isChanged;
|
||||||
bool get isChanged => _$this._isChanged;
|
bool get isChanged => _$this._isChanged;
|
||||||
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
||||||
|
|
@ -1003,6 +1022,7 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
|
||||||
_customValue4 = _$v.customValue4;
|
_customValue4 = _$v.customValue4;
|
||||||
_taskStatusId = _$v.taskStatusId;
|
_taskStatusId = _$v.taskStatusId;
|
||||||
_taskStatusSortOrder = _$v.taskStatusSortOrder;
|
_taskStatusSortOrder = _$v.taskStatusSortOrder;
|
||||||
|
_vendorId = _$v.vendorId;
|
||||||
_isChanged = _$v.isChanged;
|
_isChanged = _$v.isChanged;
|
||||||
_createdAt = _$v.createdAt;
|
_createdAt = _$v.createdAt;
|
||||||
_updatedAt = _$v.updatedAt;
|
_updatedAt = _$v.updatedAt;
|
||||||
|
|
@ -1046,6 +1066,7 @@ class TaskEntityBuilder implements Builder<TaskEntity, TaskEntityBuilder> {
|
||||||
customValue4: customValue4,
|
customValue4: customValue4,
|
||||||
taskStatusId: taskStatusId,
|
taskStatusId: taskStatusId,
|
||||||
taskStatusSortOrder: taskStatusSortOrder,
|
taskStatusSortOrder: taskStatusSortOrder,
|
||||||
|
vendorId: vendorId,
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,10 @@ abstract class UserEntity extends Object
|
||||||
updatedAt: 0,
|
updatedAt: 0,
|
||||||
archivedAt: 0,
|
archivedAt: 0,
|
||||||
isDeleted: false,
|
isDeleted: false,
|
||||||
|
customValue1: '',
|
||||||
|
customValue2: '',
|
||||||
|
customValue3: '',
|
||||||
|
customValue4: '',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -77,6 +81,22 @@ abstract class UserEntity extends Object
|
||||||
|
|
||||||
String get phone;
|
String get phone;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value1')
|
||||||
|
String get customValue1;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value2')
|
||||||
|
String get customValue2;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value3')
|
||||||
|
String get customValue3;
|
||||||
|
|
||||||
|
@nullable
|
||||||
|
@BuiltValueField(wireName: 'custom_value4')
|
||||||
|
String get customValue4;
|
||||||
|
|
||||||
@nullable
|
@nullable
|
||||||
@BuiltValueField(wireName: 'company_user')
|
@BuiltValueField(wireName: 'company_user')
|
||||||
UserCompanyEntity get userCompany;
|
UserCompanyEntity get userCompany;
|
||||||
|
|
|
||||||
|
|
@ -122,6 +122,30 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
||||||
serializers.serialize(object.phone,
|
serializers.serialize(object.phone,
|
||||||
specifiedType: const FullType(String)),
|
specifiedType: const FullType(String)),
|
||||||
];
|
];
|
||||||
|
if (object.customValue1 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value1')
|
||||||
|
..add(serializers.serialize(object.customValue1,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.customValue2 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value2')
|
||||||
|
..add(serializers.serialize(object.customValue2,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.customValue3 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value3')
|
||||||
|
..add(serializers.serialize(object.customValue3,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
if (object.customValue4 != null) {
|
||||||
|
result
|
||||||
|
..add('custom_value4')
|
||||||
|
..add(serializers.serialize(object.customValue4,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
if (object.userCompany != null) {
|
if (object.userCompany != null) {
|
||||||
result
|
result
|
||||||
..add('company_user')
|
..add('company_user')
|
||||||
|
|
@ -206,6 +230,22 @@ class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
||||||
result.phone = serializers.deserialize(value,
|
result.phone = serializers.deserialize(value,
|
||||||
specifiedType: const FullType(String)) as String;
|
specifiedType: const FullType(String)) as String;
|
||||||
break;
|
break;
|
||||||
|
case 'custom_value1':
|
||||||
|
result.customValue1 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'custom_value2':
|
||||||
|
result.customValue2 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'custom_value3':
|
||||||
|
result.customValue3 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'custom_value4':
|
||||||
|
result.customValue4 = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
case 'company_user':
|
case 'company_user':
|
||||||
result.userCompany.replace(serializers.deserialize(value,
|
result.userCompany.replace(serializers.deserialize(value,
|
||||||
specifiedType: const FullType(UserCompanyEntity))
|
specifiedType: const FullType(UserCompanyEntity))
|
||||||
|
|
@ -445,6 +485,14 @@ class _$UserEntity extends UserEntity {
|
||||||
@override
|
@override
|
||||||
final String phone;
|
final String phone;
|
||||||
@override
|
@override
|
||||||
|
final String customValue1;
|
||||||
|
@override
|
||||||
|
final String customValue2;
|
||||||
|
@override
|
||||||
|
final String customValue3;
|
||||||
|
@override
|
||||||
|
final String customValue4;
|
||||||
|
@override
|
||||||
final UserCompanyEntity userCompany;
|
final UserCompanyEntity userCompany;
|
||||||
@override
|
@override
|
||||||
final bool isChanged;
|
final bool isChanged;
|
||||||
|
|
@ -471,6 +519,10 @@ class _$UserEntity extends UserEntity {
|
||||||
this.lastName,
|
this.lastName,
|
||||||
this.email,
|
this.email,
|
||||||
this.phone,
|
this.phone,
|
||||||
|
this.customValue1,
|
||||||
|
this.customValue2,
|
||||||
|
this.customValue3,
|
||||||
|
this.customValue4,
|
||||||
this.userCompany,
|
this.userCompany,
|
||||||
this.isChanged,
|
this.isChanged,
|
||||||
this.createdAt,
|
this.createdAt,
|
||||||
|
|
@ -510,6 +562,10 @@ class _$UserEntity extends UserEntity {
|
||||||
lastName == other.lastName &&
|
lastName == other.lastName &&
|
||||||
email == other.email &&
|
email == other.email &&
|
||||||
phone == other.phone &&
|
phone == other.phone &&
|
||||||
|
customValue1 == other.customValue1 &&
|
||||||
|
customValue2 == other.customValue2 &&
|
||||||
|
customValue3 == other.customValue3 &&
|
||||||
|
customValue4 == other.customValue4 &&
|
||||||
userCompany == other.userCompany &&
|
userCompany == other.userCompany &&
|
||||||
isChanged == other.isChanged &&
|
isChanged == other.isChanged &&
|
||||||
createdAt == other.createdAt &&
|
createdAt == other.createdAt &&
|
||||||
|
|
@ -534,10 +590,23 @@ class _$UserEntity extends UserEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc(0, firstName.hashCode),
|
$jc(
|
||||||
lastName.hashCode),
|
$jc(
|
||||||
email.hashCode),
|
$jc(
|
||||||
phone.hashCode),
|
$jc(
|
||||||
|
$jc(
|
||||||
|
$jc(
|
||||||
|
0,
|
||||||
|
firstName
|
||||||
|
.hashCode),
|
||||||
|
lastName
|
||||||
|
.hashCode),
|
||||||
|
email.hashCode),
|
||||||
|
phone.hashCode),
|
||||||
|
customValue1.hashCode),
|
||||||
|
customValue2.hashCode),
|
||||||
|
customValue3.hashCode),
|
||||||
|
customValue4.hashCode),
|
||||||
userCompany.hashCode),
|
userCompany.hashCode),
|
||||||
isChanged.hashCode),
|
isChanged.hashCode),
|
||||||
createdAt.hashCode),
|
createdAt.hashCode),
|
||||||
|
|
@ -556,6 +625,10 @@ class _$UserEntity extends UserEntity {
|
||||||
..add('lastName', lastName)
|
..add('lastName', lastName)
|
||||||
..add('email', email)
|
..add('email', email)
|
||||||
..add('phone', phone)
|
..add('phone', phone)
|
||||||
|
..add('customValue1', customValue1)
|
||||||
|
..add('customValue2', customValue2)
|
||||||
|
..add('customValue3', customValue3)
|
||||||
|
..add('customValue4', customValue4)
|
||||||
..add('userCompany', userCompany)
|
..add('userCompany', userCompany)
|
||||||
..add('isChanged', isChanged)
|
..add('isChanged', isChanged)
|
||||||
..add('createdAt', createdAt)
|
..add('createdAt', createdAt)
|
||||||
|
|
@ -588,6 +661,22 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
|
||||||
String get phone => _$this._phone;
|
String get phone => _$this._phone;
|
||||||
set phone(String phone) => _$this._phone = phone;
|
set phone(String phone) => _$this._phone = phone;
|
||||||
|
|
||||||
|
String _customValue1;
|
||||||
|
String get customValue1 => _$this._customValue1;
|
||||||
|
set customValue1(String customValue1) => _$this._customValue1 = customValue1;
|
||||||
|
|
||||||
|
String _customValue2;
|
||||||
|
String get customValue2 => _$this._customValue2;
|
||||||
|
set customValue2(String customValue2) => _$this._customValue2 = customValue2;
|
||||||
|
|
||||||
|
String _customValue3;
|
||||||
|
String get customValue3 => _$this._customValue3;
|
||||||
|
set customValue3(String customValue3) => _$this._customValue3 = customValue3;
|
||||||
|
|
||||||
|
String _customValue4;
|
||||||
|
String get customValue4 => _$this._customValue4;
|
||||||
|
set customValue4(String customValue4) => _$this._customValue4 = customValue4;
|
||||||
|
|
||||||
UserCompanyEntityBuilder _userCompany;
|
UserCompanyEntityBuilder _userCompany;
|
||||||
UserCompanyEntityBuilder get userCompany =>
|
UserCompanyEntityBuilder get userCompany =>
|
||||||
_$this._userCompany ??= new UserCompanyEntityBuilder();
|
_$this._userCompany ??= new UserCompanyEntityBuilder();
|
||||||
|
|
@ -636,6 +725,10 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
|
||||||
_lastName = _$v.lastName;
|
_lastName = _$v.lastName;
|
||||||
_email = _$v.email;
|
_email = _$v.email;
|
||||||
_phone = _$v.phone;
|
_phone = _$v.phone;
|
||||||
|
_customValue1 = _$v.customValue1;
|
||||||
|
_customValue2 = _$v.customValue2;
|
||||||
|
_customValue3 = _$v.customValue3;
|
||||||
|
_customValue4 = _$v.customValue4;
|
||||||
_userCompany = _$v.userCompany?.toBuilder();
|
_userCompany = _$v.userCompany?.toBuilder();
|
||||||
_isChanged = _$v.isChanged;
|
_isChanged = _$v.isChanged;
|
||||||
_createdAt = _$v.createdAt;
|
_createdAt = _$v.createdAt;
|
||||||
|
|
@ -673,6 +766,10 @@ class UserEntityBuilder implements Builder<UserEntity, UserEntityBuilder> {
|
||||||
lastName: lastName,
|
lastName: lastName,
|
||||||
email: email,
|
email: email,
|
||||||
phone: phone,
|
phone: phone,
|
||||||
|
customValue1: customValue1,
|
||||||
|
customValue2: customValue2,
|
||||||
|
customValue3: customValue3,
|
||||||
|
customValue4: customValue4,
|
||||||
userCompany: _userCompany?.build(),
|
userCompany: _userCompany?.build(),
|
||||||
isChanged: isChanged,
|
isChanged: isChanged,
|
||||||
createdAt: createdAt,
|
createdAt: createdAt,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue