Settings
This commit is contained in:
parent
9b044f61dd
commit
c3fd75d295
|
|
@ -288,6 +288,33 @@ abstract class TaxRateEntity extends Object
|
||||||
int get archivedAt;
|
int get archivedAt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
abstract class GatewayEntity extends Object
|
||||||
|
with SelectableEntity
|
||||||
|
implements Built<GatewayEntity, GatewayEntityBuilder> {
|
||||||
|
factory GatewayEntity() {
|
||||||
|
return _$GatewayEntity._(
|
||||||
|
id: BaseEntity.nextId,
|
||||||
|
name: '',
|
||||||
|
sortOrder: 0,
|
||||||
|
fields: '',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
GatewayEntity._();
|
||||||
|
|
||||||
|
static Serializer<GatewayEntity> get serializer => _$gatewayEntitySerializer;
|
||||||
|
|
||||||
|
String get name;
|
||||||
|
|
||||||
|
@BuiltValueField(wireName: 'sort_order')
|
||||||
|
int get sortOrder;
|
||||||
|
|
||||||
|
//bool get recommended;
|
||||||
|
//bool get visible;
|
||||||
|
|
||||||
|
String get fields;
|
||||||
|
}
|
||||||
|
|
||||||
abstract class UserEntity implements Built<UserEntity, UserEntityBuilder> {
|
abstract class UserEntity implements Built<UserEntity, UserEntityBuilder> {
|
||||||
factory UserEntity() {
|
factory UserEntity() {
|
||||||
return _$UserEntity._(
|
return _$UserEntity._(
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@ Serializer<PaymentTermEntity> _$paymentTermEntitySerializer =
|
||||||
new _$PaymentTermEntitySerializer();
|
new _$PaymentTermEntitySerializer();
|
||||||
Serializer<TaxRateEntity> _$taxRateEntitySerializer =
|
Serializer<TaxRateEntity> _$taxRateEntitySerializer =
|
||||||
new _$TaxRateEntitySerializer();
|
new _$TaxRateEntitySerializer();
|
||||||
|
Serializer<GatewayEntity> _$gatewayEntitySerializer =
|
||||||
|
new _$GatewayEntitySerializer();
|
||||||
Serializer<UserEntity> _$userEntitySerializer = new _$UserEntitySerializer();
|
Serializer<UserEntity> _$userEntitySerializer = new _$UserEntitySerializer();
|
||||||
Serializer<UserCompanyEntity> _$userCompanyEntitySerializer =
|
Serializer<UserCompanyEntity> _$userCompanyEntitySerializer =
|
||||||
new _$UserCompanyEntitySerializer();
|
new _$UserCompanyEntitySerializer();
|
||||||
|
|
@ -477,6 +479,69 @@ class _$TaxRateEntitySerializer implements StructuredSerializer<TaxRateEntity> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class _$GatewayEntitySerializer implements StructuredSerializer<GatewayEntity> {
|
||||||
|
@override
|
||||||
|
final Iterable<Type> types = const [GatewayEntity, _$GatewayEntity];
|
||||||
|
@override
|
||||||
|
final String wireName = 'GatewayEntity';
|
||||||
|
|
||||||
|
@override
|
||||||
|
Iterable<Object> serialize(Serializers serializers, GatewayEntity object,
|
||||||
|
{FullType specifiedType = FullType.unspecified}) {
|
||||||
|
final result = <Object>[
|
||||||
|
'name',
|
||||||
|
serializers.serialize(object.name, specifiedType: const FullType(String)),
|
||||||
|
'sort_order',
|
||||||
|
serializers.serialize(object.sortOrder,
|
||||||
|
specifiedType: const FullType(int)),
|
||||||
|
'fields',
|
||||||
|
serializers.serialize(object.fields,
|
||||||
|
specifiedType: const FullType(String)),
|
||||||
|
];
|
||||||
|
if (object.id != null) {
|
||||||
|
result
|
||||||
|
..add('id')
|
||||||
|
..add(serializers.serialize(object.id,
|
||||||
|
specifiedType: const FullType(String)));
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
GatewayEntity deserialize(
|
||||||
|
Serializers serializers, Iterable<Object> serialized,
|
||||||
|
{FullType specifiedType = FullType.unspecified}) {
|
||||||
|
final result = new GatewayEntityBuilder();
|
||||||
|
|
||||||
|
final iterator = serialized.iterator;
|
||||||
|
while (iterator.moveNext()) {
|
||||||
|
final key = iterator.current as String;
|
||||||
|
iterator.moveNext();
|
||||||
|
final dynamic value = iterator.current;
|
||||||
|
switch (key) {
|
||||||
|
case 'name':
|
||||||
|
result.name = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'sort_order':
|
||||||
|
result.sortOrder = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(int)) as int;
|
||||||
|
break;
|
||||||
|
case 'fields':
|
||||||
|
result.fields = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
case 'id':
|
||||||
|
result.id = serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(String)) as String;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return result.build();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
class _$UserEntitySerializer implements StructuredSerializer<UserEntity> {
|
||||||
@override
|
@override
|
||||||
final Iterable<Type> types = const [UserEntity, _$UserEntity];
|
final Iterable<Type> types = const [UserEntity, _$UserEntity];
|
||||||
|
|
@ -2107,6 +2172,123 @@ class TaxRateEntityBuilder
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class _$GatewayEntity extends GatewayEntity {
|
||||||
|
@override
|
||||||
|
final String name;
|
||||||
|
@override
|
||||||
|
final int sortOrder;
|
||||||
|
@override
|
||||||
|
final String fields;
|
||||||
|
@override
|
||||||
|
final String id;
|
||||||
|
|
||||||
|
factory _$GatewayEntity([void Function(GatewayEntityBuilder) updates]) =>
|
||||||
|
(new GatewayEntityBuilder()..update(updates)).build();
|
||||||
|
|
||||||
|
_$GatewayEntity._({this.name, this.sortOrder, this.fields, this.id})
|
||||||
|
: super._() {
|
||||||
|
if (name == null) {
|
||||||
|
throw new BuiltValueNullFieldError('GatewayEntity', 'name');
|
||||||
|
}
|
||||||
|
if (sortOrder == null) {
|
||||||
|
throw new BuiltValueNullFieldError('GatewayEntity', 'sortOrder');
|
||||||
|
}
|
||||||
|
if (fields == null) {
|
||||||
|
throw new BuiltValueNullFieldError('GatewayEntity', 'fields');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
GatewayEntity rebuild(void Function(GatewayEntityBuilder) updates) =>
|
||||||
|
(toBuilder()..update(updates)).build();
|
||||||
|
|
||||||
|
@override
|
||||||
|
GatewayEntityBuilder toBuilder() => new GatewayEntityBuilder()..replace(this);
|
||||||
|
|
||||||
|
@override
|
||||||
|
bool operator ==(Object other) {
|
||||||
|
if (identical(other, this)) return true;
|
||||||
|
return other is GatewayEntity &&
|
||||||
|
name == other.name &&
|
||||||
|
sortOrder == other.sortOrder &&
|
||||||
|
fields == other.fields &&
|
||||||
|
id == other.id;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
int get hashCode {
|
||||||
|
return $jf($jc(
|
||||||
|
$jc($jc($jc(0, name.hashCode), sortOrder.hashCode), fields.hashCode),
|
||||||
|
id.hashCode));
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
String toString() {
|
||||||
|
return (newBuiltValueToStringHelper('GatewayEntity')
|
||||||
|
..add('name', name)
|
||||||
|
..add('sortOrder', sortOrder)
|
||||||
|
..add('fields', fields)
|
||||||
|
..add('id', id))
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class GatewayEntityBuilder
|
||||||
|
implements Builder<GatewayEntity, GatewayEntityBuilder> {
|
||||||
|
_$GatewayEntity _$v;
|
||||||
|
|
||||||
|
String _name;
|
||||||
|
String get name => _$this._name;
|
||||||
|
set name(String name) => _$this._name = name;
|
||||||
|
|
||||||
|
int _sortOrder;
|
||||||
|
int get sortOrder => _$this._sortOrder;
|
||||||
|
set sortOrder(int sortOrder) => _$this._sortOrder = sortOrder;
|
||||||
|
|
||||||
|
String _fields;
|
||||||
|
String get fields => _$this._fields;
|
||||||
|
set fields(String fields) => _$this._fields = fields;
|
||||||
|
|
||||||
|
String _id;
|
||||||
|
String get id => _$this._id;
|
||||||
|
set id(String id) => _$this._id = id;
|
||||||
|
|
||||||
|
GatewayEntityBuilder();
|
||||||
|
|
||||||
|
GatewayEntityBuilder get _$this {
|
||||||
|
if (_$v != null) {
|
||||||
|
_name = _$v.name;
|
||||||
|
_sortOrder = _$v.sortOrder;
|
||||||
|
_fields = _$v.fields;
|
||||||
|
_id = _$v.id;
|
||||||
|
_$v = null;
|
||||||
|
}
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void replace(GatewayEntity other) {
|
||||||
|
if (other == null) {
|
||||||
|
throw new ArgumentError.notNull('other');
|
||||||
|
}
|
||||||
|
_$v = other as _$GatewayEntity;
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void update(void Function(GatewayEntityBuilder) updates) {
|
||||||
|
if (updates != null) updates(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@override
|
||||||
|
_$GatewayEntity build() {
|
||||||
|
final _$result = _$v ??
|
||||||
|
new _$GatewayEntity._(
|
||||||
|
name: name, sortOrder: sortOrder, fields: fields, id: id);
|
||||||
|
replace(_$result);
|
||||||
|
return _$result;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class _$UserEntity extends UserEntity {
|
class _$UserEntity extends UserEntity {
|
||||||
@override
|
@override
|
||||||
final String id;
|
final String id;
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,7 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
||||||
..add(FrequencyEntity.serializer)
|
..add(FrequencyEntity.serializer)
|
||||||
..add(FrequencyItemResponse.serializer)
|
..add(FrequencyItemResponse.serializer)
|
||||||
..add(FrequencyListResponse.serializer)
|
..add(FrequencyListResponse.serializer)
|
||||||
|
..add(GatewayEntity.serializer)
|
||||||
..add(GroupEntity.serializer)
|
..add(GroupEntity.serializer)
|
||||||
..add(GroupItemResponse.serializer)
|
..add(GroupItemResponse.serializer)
|
||||||
..add(GroupListResponse.serializer)
|
..add(GroupListResponse.serializer)
|
||||||
|
|
@ -169,6 +170,9 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
||||||
..addBuilderFactory(
|
..addBuilderFactory(
|
||||||
const FullType(BuiltList, const [const FullType(TimezoneEntity)]),
|
const FullType(BuiltList, const [const FullType(TimezoneEntity)]),
|
||||||
() => new ListBuilder<TimezoneEntity>())
|
() => new ListBuilder<TimezoneEntity>())
|
||||||
|
..addBuilderFactory(
|
||||||
|
const FullType(BuiltList, const [const FullType(GatewayEntity)]),
|
||||||
|
() => new ListBuilder<GatewayEntity>())
|
||||||
..addBuilderFactory(
|
..addBuilderFactory(
|
||||||
const FullType(BuiltList, const [const FullType(DateFormatEntity)]),
|
const FullType(BuiltList, const [const FullType(DateFormatEntity)]),
|
||||||
() => new ListBuilder<DateFormatEntity>())
|
() => new ListBuilder<DateFormatEntity>())
|
||||||
|
|
@ -249,10 +253,8 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
||||||
BuiltList, const [const FullType(ExpenseCategoryEntity)]),
|
BuiltList, const [const FullType(ExpenseCategoryEntity)]),
|
||||||
() => new ListBuilder<ExpenseCategoryEntity>())
|
() => new ListBuilder<ExpenseCategoryEntity>())
|
||||||
..addBuilderFactory(
|
..addBuilderFactory(
|
||||||
const FullType(BuiltMap, const [
|
const FullType(BuiltMap,
|
||||||
const FullType(String),
|
const [const FullType(String), const FullType(ExpenseCategoryEntity)]),
|
||||||
const FullType(ExpenseCategoryEntity)
|
|
||||||
]),
|
|
||||||
() => new MapBuilder<String, ExpenseCategoryEntity>())
|
() => new MapBuilder<String, ExpenseCategoryEntity>())
|
||||||
..addBuilderFactory(
|
..addBuilderFactory(
|
||||||
const FullType(BuiltList, const [const FullType(UserEntity)]),
|
const FullType(BuiltList, const [const FullType(UserEntity)]),
|
||||||
|
|
@ -320,6 +322,7 @@ Serializers _$serializers = (new Serializers().toBuilder()
|
||||||
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
..addBuilderFactory(const FullType(BuiltList, const [const FullType(String)]), () => new ListBuilder<String>())
|
||||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(CurrencyEntity)]), () => new MapBuilder<String, CurrencyEntity>())
|
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(CurrencyEntity)]), () => new MapBuilder<String, CurrencyEntity>())
|
||||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(SizeEntity)]), () => new MapBuilder<String, SizeEntity>())
|
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(SizeEntity)]), () => new MapBuilder<String, SizeEntity>())
|
||||||
|
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(GatewayEntity)]), () => new MapBuilder<String, GatewayEntity>())
|
||||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(IndustryEntity)]), () => new MapBuilder<String, IndustryEntity>())
|
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(IndustryEntity)]), () => new MapBuilder<String, IndustryEntity>())
|
||||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(TimezoneEntity)]), () => new MapBuilder<String, TimezoneEntity>())
|
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(TimezoneEntity)]), () => new MapBuilder<String, TimezoneEntity>())
|
||||||
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(DateFormatEntity)]), () => new MapBuilder<String, DateFormatEntity>())
|
..addBuilderFactory(const FullType(BuiltMap, const [const FullType(String), const FullType(DateFormatEntity)]), () => new MapBuilder<String, DateFormatEntity>())
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
import 'package:built_collection/built_collection.dart';
|
import 'package:built_collection/built_collection.dart';
|
||||||
import 'package:built_value/built_value.dart';
|
import 'package:built_value/built_value.dart';
|
||||||
import 'package:built_value/serializer.dart';
|
import 'package:built_value/serializer.dart';
|
||||||
|
import 'package:invoiceninja_flutter/data/models/company_model.dart';
|
||||||
import 'package:invoiceninja_flutter/data/models/static/currency_model.dart';
|
import 'package:invoiceninja_flutter/data/models/static/currency_model.dart';
|
||||||
import 'package:invoiceninja_flutter/data/models/static/size_model.dart';
|
import 'package:invoiceninja_flutter/data/models/static/size_model.dart';
|
||||||
import 'package:invoiceninja_flutter/data/models/static/industry_model.dart';
|
import 'package:invoiceninja_flutter/data/models/static/industry_model.dart';
|
||||||
|
|
@ -69,6 +70,7 @@ abstract class StaticDataEntity
|
||||||
currencies: BuiltList<CurrencyEntity>(),
|
currencies: BuiltList<CurrencyEntity>(),
|
||||||
sizes: BuiltList<SizeEntity>(),
|
sizes: BuiltList<SizeEntity>(),
|
||||||
industries: BuiltList<IndustryEntity>(),
|
industries: BuiltList<IndustryEntity>(),
|
||||||
|
gateways: BuiltList<GatewayEntity>(),
|
||||||
timezones: BuiltList<TimezoneEntity>(),
|
timezones: BuiltList<TimezoneEntity>(),
|
||||||
dateFormats: BuiltList<DateFormatEntity>(),
|
dateFormats: BuiltList<DateFormatEntity>(),
|
||||||
datetimeFormats: BuiltList<DatetimeFormatEntity>(),
|
datetimeFormats: BuiltList<DatetimeFormatEntity>(),
|
||||||
|
|
@ -90,6 +92,8 @@ abstract class StaticDataEntity
|
||||||
|
|
||||||
BuiltList<TimezoneEntity> get timezones;
|
BuiltList<TimezoneEntity> get timezones;
|
||||||
|
|
||||||
|
BuiltList<GatewayEntity> get gateways;
|
||||||
|
|
||||||
@BuiltValueField(wireName: 'date_formats')
|
@BuiltValueField(wireName: 'date_formats')
|
||||||
BuiltList<DateFormatEntity> get dateFormats;
|
BuiltList<DateFormatEntity> get dateFormats;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,10 @@ class _$StaticDataEntitySerializer
|
||||||
serializers.serialize(object.timezones,
|
serializers.serialize(object.timezones,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
BuiltList, const [const FullType(TimezoneEntity)])),
|
BuiltList, const [const FullType(TimezoneEntity)])),
|
||||||
|
'gateways',
|
||||||
|
serializers.serialize(object.gateways,
|
||||||
|
specifiedType:
|
||||||
|
const FullType(BuiltList, const [const FullType(GatewayEntity)])),
|
||||||
'date_formats',
|
'date_formats',
|
||||||
serializers.serialize(object.dateFormats,
|
serializers.serialize(object.dateFormats,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
|
|
@ -209,6 +213,12 @@ class _$StaticDataEntitySerializer
|
||||||
BuiltList, const [const FullType(TimezoneEntity)]))
|
BuiltList, const [const FullType(TimezoneEntity)]))
|
||||||
as BuiltList<dynamic>);
|
as BuiltList<dynamic>);
|
||||||
break;
|
break;
|
||||||
|
case 'gateways':
|
||||||
|
result.gateways.replace(serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(
|
||||||
|
BuiltList, const [const FullType(GatewayEntity)]))
|
||||||
|
as BuiltList<dynamic>);
|
||||||
|
break;
|
||||||
case 'date_formats':
|
case 'date_formats':
|
||||||
result.dateFormats.replace(serializers.deserialize(value,
|
result.dateFormats.replace(serializers.deserialize(value,
|
||||||
specifiedType: const FullType(
|
specifiedType: const FullType(
|
||||||
|
|
@ -464,6 +474,8 @@ class _$StaticDataEntity extends StaticDataEntity {
|
||||||
@override
|
@override
|
||||||
final BuiltList<TimezoneEntity> timezones;
|
final BuiltList<TimezoneEntity> timezones;
|
||||||
@override
|
@override
|
||||||
|
final BuiltList<GatewayEntity> gateways;
|
||||||
|
@override
|
||||||
final BuiltList<DateFormatEntity> dateFormats;
|
final BuiltList<DateFormatEntity> dateFormats;
|
||||||
@override
|
@override
|
||||||
final BuiltList<DatetimeFormatEntity> datetimeFormats;
|
final BuiltList<DatetimeFormatEntity> datetimeFormats;
|
||||||
|
|
@ -489,6 +501,7 @@ class _$StaticDataEntity extends StaticDataEntity {
|
||||||
this.sizes,
|
this.sizes,
|
||||||
this.industries,
|
this.industries,
|
||||||
this.timezones,
|
this.timezones,
|
||||||
|
this.gateways,
|
||||||
this.dateFormats,
|
this.dateFormats,
|
||||||
this.datetimeFormats,
|
this.datetimeFormats,
|
||||||
this.languages,
|
this.languages,
|
||||||
|
|
@ -510,6 +523,9 @@ class _$StaticDataEntity extends StaticDataEntity {
|
||||||
if (timezones == null) {
|
if (timezones == null) {
|
||||||
throw new BuiltValueNullFieldError('StaticDataEntity', 'timezones');
|
throw new BuiltValueNullFieldError('StaticDataEntity', 'timezones');
|
||||||
}
|
}
|
||||||
|
if (gateways == null) {
|
||||||
|
throw new BuiltValueNullFieldError('StaticDataEntity', 'gateways');
|
||||||
|
}
|
||||||
if (dateFormats == null) {
|
if (dateFormats == null) {
|
||||||
throw new BuiltValueNullFieldError('StaticDataEntity', 'dateFormats');
|
throw new BuiltValueNullFieldError('StaticDataEntity', 'dateFormats');
|
||||||
}
|
}
|
||||||
|
|
@ -552,6 +568,7 @@ class _$StaticDataEntity extends StaticDataEntity {
|
||||||
sizes == other.sizes &&
|
sizes == other.sizes &&
|
||||||
industries == other.industries &&
|
industries == other.industries &&
|
||||||
timezones == other.timezones &&
|
timezones == other.timezones &&
|
||||||
|
gateways == other.gateways &&
|
||||||
dateFormats == other.dateFormats &&
|
dateFormats == other.dateFormats &&
|
||||||
datetimeFormats == other.datetimeFormats &&
|
datetimeFormats == other.datetimeFormats &&
|
||||||
languages == other.languages &&
|
languages == other.languages &&
|
||||||
|
|
@ -574,10 +591,12 @@ class _$StaticDataEntity extends StaticDataEntity {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc(0, currencies.hashCode),
|
$jc(
|
||||||
sizes.hashCode),
|
$jc($jc(0, currencies.hashCode),
|
||||||
industries.hashCode),
|
sizes.hashCode),
|
||||||
timezones.hashCode),
|
industries.hashCode),
|
||||||
|
timezones.hashCode),
|
||||||
|
gateways.hashCode),
|
||||||
dateFormats.hashCode),
|
dateFormats.hashCode),
|
||||||
datetimeFormats.hashCode),
|
datetimeFormats.hashCode),
|
||||||
languages.hashCode),
|
languages.hashCode),
|
||||||
|
|
@ -595,6 +614,7 @@ class _$StaticDataEntity extends StaticDataEntity {
|
||||||
..add('sizes', sizes)
|
..add('sizes', sizes)
|
||||||
..add('industries', industries)
|
..add('industries', industries)
|
||||||
..add('timezones', timezones)
|
..add('timezones', timezones)
|
||||||
|
..add('gateways', gateways)
|
||||||
..add('dateFormats', dateFormats)
|
..add('dateFormats', dateFormats)
|
||||||
..add('datetimeFormats', datetimeFormats)
|
..add('datetimeFormats', datetimeFormats)
|
||||||
..add('languages', languages)
|
..add('languages', languages)
|
||||||
|
|
@ -634,6 +654,12 @@ class StaticDataEntityBuilder
|
||||||
set timezones(ListBuilder<TimezoneEntity> timezones) =>
|
set timezones(ListBuilder<TimezoneEntity> timezones) =>
|
||||||
_$this._timezones = timezones;
|
_$this._timezones = timezones;
|
||||||
|
|
||||||
|
ListBuilder<GatewayEntity> _gateways;
|
||||||
|
ListBuilder<GatewayEntity> get gateways =>
|
||||||
|
_$this._gateways ??= new ListBuilder<GatewayEntity>();
|
||||||
|
set gateways(ListBuilder<GatewayEntity> gateways) =>
|
||||||
|
_$this._gateways = gateways;
|
||||||
|
|
||||||
ListBuilder<DateFormatEntity> _dateFormats;
|
ListBuilder<DateFormatEntity> _dateFormats;
|
||||||
ListBuilder<DateFormatEntity> get dateFormats =>
|
ListBuilder<DateFormatEntity> get dateFormats =>
|
||||||
_$this._dateFormats ??= new ListBuilder<DateFormatEntity>();
|
_$this._dateFormats ??= new ListBuilder<DateFormatEntity>();
|
||||||
|
|
@ -690,6 +716,7 @@ class StaticDataEntityBuilder
|
||||||
_sizes = _$v.sizes?.toBuilder();
|
_sizes = _$v.sizes?.toBuilder();
|
||||||
_industries = _$v.industries?.toBuilder();
|
_industries = _$v.industries?.toBuilder();
|
||||||
_timezones = _$v.timezones?.toBuilder();
|
_timezones = _$v.timezones?.toBuilder();
|
||||||
|
_gateways = _$v.gateways?.toBuilder();
|
||||||
_dateFormats = _$v.dateFormats?.toBuilder();
|
_dateFormats = _$v.dateFormats?.toBuilder();
|
||||||
_datetimeFormats = _$v.datetimeFormats?.toBuilder();
|
_datetimeFormats = _$v.datetimeFormats?.toBuilder();
|
||||||
_languages = _$v.languages?.toBuilder();
|
_languages = _$v.languages?.toBuilder();
|
||||||
|
|
@ -726,6 +753,7 @@ class StaticDataEntityBuilder
|
||||||
sizes: sizes.build(),
|
sizes: sizes.build(),
|
||||||
industries: industries.build(),
|
industries: industries.build(),
|
||||||
timezones: timezones.build(),
|
timezones: timezones.build(),
|
||||||
|
gateways: gateways.build(),
|
||||||
dateFormats: dateFormats.build(),
|
dateFormats: dateFormats.build(),
|
||||||
datetimeFormats: datetimeFormats.build(),
|
datetimeFormats: datetimeFormats.build(),
|
||||||
languages: languages.build(),
|
languages: languages.build(),
|
||||||
|
|
@ -745,6 +773,8 @@ class StaticDataEntityBuilder
|
||||||
industries.build();
|
industries.build();
|
||||||
_$failedField = 'timezones';
|
_$failedField = 'timezones';
|
||||||
timezones.build();
|
timezones.build();
|
||||||
|
_$failedField = 'gateways';
|
||||||
|
gateways.build();
|
||||||
_$failedField = 'dateFormats';
|
_$failedField = 'dateFormats';
|
||||||
dateFormats.build();
|
dateFormats.build();
|
||||||
_$failedField = 'datetimeFormats';
|
_$failedField = 'datetimeFormats';
|
||||||
|
|
|
||||||
|
|
@ -314,8 +314,8 @@ abstract class AppState implements Built<AppState, AppStateBuilder> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() {
|
String toString() {
|
||||||
return 'showCurrencyCode: ${uiState.settingsUIState.settings.showCurrencyCode}';
|
//return 'showCurrencyCode: ${uiState.settingsUIState.settings.showCurrencyCode}';
|
||||||
//return 'Section: ${uiState.settingsUIState.section}';
|
return 'gateways : ${staticState.gatewayMap}';
|
||||||
//return 'URL: ${userCompany.token.token}';
|
//return 'URL: ${userCompany.token.token}';
|
||||||
//return 'Route: ${uiState.currentRoute}, Setting Type: ${uiState.settingsUIState.entityType}, Name: ${uiState.settingsUIState.settings.name}, Updated: ${uiState.settingsUIState.updatedAt}';
|
//return 'Route: ${uiState.currentRoute}, Setting Type: ${uiState.settingsUIState.entityType}, Name: ${uiState.settingsUIState.settings.name}, Updated: ${uiState.settingsUIState.updatedAt}';
|
||||||
//return 'Route: ${uiState.currentRoute}, Previous: ${uiState.previousRoute}, Layout: ${uiState.layout}, Menu: ${uiState.isMenuVisible}, History: ${uiState.isHistoryVisible}';
|
//return 'Route: ${uiState.currentRoute}, Previous: ${uiState.previousRoute}, Layout: ${uiState.layout}, Menu: ${uiState.isMenuVisible}, History: ${uiState.isHistoryVisible}';
|
||||||
|
|
|
||||||
|
|
@ -65,6 +65,11 @@ StaticState staticLoadedReducer(
|
||||||
key: (dynamic item) => item.id,
|
key: (dynamic item) => item.id,
|
||||||
value: (dynamic item) => item,
|
value: (dynamic item) => item,
|
||||||
))
|
))
|
||||||
|
..gatewayMap.addAll(Map.fromIterable(
|
||||||
|
action.data.gateways,
|
||||||
|
key: (dynamic item) => item.id,
|
||||||
|
value: (dynamic item) => item,
|
||||||
|
))
|
||||||
..frequencyMap.addAll(Map.fromIterable(
|
..frequencyMap.addAll(Map.fromIterable(
|
||||||
action.data.frequencies,
|
action.data.frequencies,
|
||||||
key: (dynamic item) => item.id,
|
key: (dynamic item) => item.id,
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ abstract class StaticState implements Built<StaticState, StaticStateBuilder> {
|
||||||
return _$StaticState._(
|
return _$StaticState._(
|
||||||
currencyMap: BuiltMap<String, CurrencyEntity>(),
|
currencyMap: BuiltMap<String, CurrencyEntity>(),
|
||||||
sizeMap: BuiltMap<String, SizeEntity>(),
|
sizeMap: BuiltMap<String, SizeEntity>(),
|
||||||
|
gatewayMap: BuiltMap<String, GatewayEntity>(),
|
||||||
industryMap: BuiltMap<String, IndustryEntity>(),
|
industryMap: BuiltMap<String, IndustryEntity>(),
|
||||||
timezoneMap: BuiltMap<String, TimezoneEntity>(),
|
timezoneMap: BuiltMap<String, TimezoneEntity>(),
|
||||||
dateFormatMap: BuiltMap<String, DateFormatEntity>(),
|
dateFormatMap: BuiltMap<String, DateFormatEntity>(),
|
||||||
|
|
@ -43,6 +44,8 @@ abstract class StaticState implements Built<StaticState, StaticStateBuilder> {
|
||||||
|
|
||||||
BuiltMap<String, SizeEntity> get sizeMap;
|
BuiltMap<String, SizeEntity> get sizeMap;
|
||||||
|
|
||||||
|
BuiltMap<String, GatewayEntity> get gatewayMap;
|
||||||
|
|
||||||
BuiltMap<String, IndustryEntity> get industryMap;
|
BuiltMap<String, IndustryEntity> get industryMap;
|
||||||
|
|
||||||
BuiltMap<String, TimezoneEntity> get timezoneMap;
|
BuiltMap<String, TimezoneEntity> get timezoneMap;
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,10 @@ class _$StaticStateSerializer implements StructuredSerializer<StaticState> {
|
||||||
serializers.serialize(object.sizeMap,
|
serializers.serialize(object.sizeMap,
|
||||||
specifiedType: const FullType(BuiltMap,
|
specifiedType: const FullType(BuiltMap,
|
||||||
const [const FullType(String), const FullType(SizeEntity)])),
|
const [const FullType(String), const FullType(SizeEntity)])),
|
||||||
|
'gatewayMap',
|
||||||
|
serializers.serialize(object.gatewayMap,
|
||||||
|
specifiedType: const FullType(BuiltMap,
|
||||||
|
const [const FullType(String), const FullType(GatewayEntity)])),
|
||||||
'industryMap',
|
'industryMap',
|
||||||
serializers.serialize(object.industryMap,
|
serializers.serialize(object.industryMap,
|
||||||
specifiedType: const FullType(BuiltMap,
|
specifiedType: const FullType(BuiltMap,
|
||||||
|
|
@ -109,6 +113,13 @@ class _$StaticStateSerializer implements StructuredSerializer<StaticState> {
|
||||||
const FullType(SizeEntity)
|
const FullType(SizeEntity)
|
||||||
])) as BuiltMap<dynamic, dynamic>);
|
])) as BuiltMap<dynamic, dynamic>);
|
||||||
break;
|
break;
|
||||||
|
case 'gatewayMap':
|
||||||
|
result.gatewayMap.replace(serializers.deserialize(value,
|
||||||
|
specifiedType: const FullType(BuiltMap, const [
|
||||||
|
const FullType(String),
|
||||||
|
const FullType(GatewayEntity)
|
||||||
|
])) as BuiltMap<dynamic, dynamic>);
|
||||||
|
break;
|
||||||
case 'industryMap':
|
case 'industryMap':
|
||||||
result.industryMap.replace(serializers.deserialize(value,
|
result.industryMap.replace(serializers.deserialize(value,
|
||||||
specifiedType: const FullType(BuiltMap, const [
|
specifiedType: const FullType(BuiltMap, const [
|
||||||
|
|
@ -187,6 +198,8 @@ class _$StaticState extends StaticState {
|
||||||
@override
|
@override
|
||||||
final BuiltMap<String, SizeEntity> sizeMap;
|
final BuiltMap<String, SizeEntity> sizeMap;
|
||||||
@override
|
@override
|
||||||
|
final BuiltMap<String, GatewayEntity> gatewayMap;
|
||||||
|
@override
|
||||||
final BuiltMap<String, IndustryEntity> industryMap;
|
final BuiltMap<String, IndustryEntity> industryMap;
|
||||||
@override
|
@override
|
||||||
final BuiltMap<String, TimezoneEntity> timezoneMap;
|
final BuiltMap<String, TimezoneEntity> timezoneMap;
|
||||||
|
|
@ -212,6 +225,7 @@ class _$StaticState extends StaticState {
|
||||||
{this.updatedAt,
|
{this.updatedAt,
|
||||||
this.currencyMap,
|
this.currencyMap,
|
||||||
this.sizeMap,
|
this.sizeMap,
|
||||||
|
this.gatewayMap,
|
||||||
this.industryMap,
|
this.industryMap,
|
||||||
this.timezoneMap,
|
this.timezoneMap,
|
||||||
this.dateFormatMap,
|
this.dateFormatMap,
|
||||||
|
|
@ -228,6 +242,9 @@ class _$StaticState extends StaticState {
|
||||||
if (sizeMap == null) {
|
if (sizeMap == null) {
|
||||||
throw new BuiltValueNullFieldError('StaticState', 'sizeMap');
|
throw new BuiltValueNullFieldError('StaticState', 'sizeMap');
|
||||||
}
|
}
|
||||||
|
if (gatewayMap == null) {
|
||||||
|
throw new BuiltValueNullFieldError('StaticState', 'gatewayMap');
|
||||||
|
}
|
||||||
if (industryMap == null) {
|
if (industryMap == null) {
|
||||||
throw new BuiltValueNullFieldError('StaticState', 'industryMap');
|
throw new BuiltValueNullFieldError('StaticState', 'industryMap');
|
||||||
}
|
}
|
||||||
|
|
@ -271,6 +288,7 @@ class _$StaticState extends StaticState {
|
||||||
updatedAt == other.updatedAt &&
|
updatedAt == other.updatedAt &&
|
||||||
currencyMap == other.currencyMap &&
|
currencyMap == other.currencyMap &&
|
||||||
sizeMap == other.sizeMap &&
|
sizeMap == other.sizeMap &&
|
||||||
|
gatewayMap == other.gatewayMap &&
|
||||||
industryMap == other.industryMap &&
|
industryMap == other.industryMap &&
|
||||||
timezoneMap == other.timezoneMap &&
|
timezoneMap == other.timezoneMap &&
|
||||||
dateFormatMap == other.dateFormatMap &&
|
dateFormatMap == other.dateFormatMap &&
|
||||||
|
|
@ -294,9 +312,11 @@ class _$StaticState extends StaticState {
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc(
|
$jc(
|
||||||
$jc($jc(0, updatedAt.hashCode),
|
$jc(
|
||||||
currencyMap.hashCode),
|
$jc($jc(0, updatedAt.hashCode),
|
||||||
sizeMap.hashCode),
|
currencyMap.hashCode),
|
||||||
|
sizeMap.hashCode),
|
||||||
|
gatewayMap.hashCode),
|
||||||
industryMap.hashCode),
|
industryMap.hashCode),
|
||||||
timezoneMap.hashCode),
|
timezoneMap.hashCode),
|
||||||
dateFormatMap.hashCode),
|
dateFormatMap.hashCode),
|
||||||
|
|
@ -314,6 +334,7 @@ class _$StaticState extends StaticState {
|
||||||
..add('updatedAt', updatedAt)
|
..add('updatedAt', updatedAt)
|
||||||
..add('currencyMap', currencyMap)
|
..add('currencyMap', currencyMap)
|
||||||
..add('sizeMap', sizeMap)
|
..add('sizeMap', sizeMap)
|
||||||
|
..add('gatewayMap', gatewayMap)
|
||||||
..add('industryMap', industryMap)
|
..add('industryMap', industryMap)
|
||||||
..add('timezoneMap', timezoneMap)
|
..add('timezoneMap', timezoneMap)
|
||||||
..add('dateFormatMap', dateFormatMap)
|
..add('dateFormatMap', dateFormatMap)
|
||||||
|
|
@ -346,6 +367,12 @@ class StaticStateBuilder implements Builder<StaticState, StaticStateBuilder> {
|
||||||
set sizeMap(MapBuilder<String, SizeEntity> sizeMap) =>
|
set sizeMap(MapBuilder<String, SizeEntity> sizeMap) =>
|
||||||
_$this._sizeMap = sizeMap;
|
_$this._sizeMap = sizeMap;
|
||||||
|
|
||||||
|
MapBuilder<String, GatewayEntity> _gatewayMap;
|
||||||
|
MapBuilder<String, GatewayEntity> get gatewayMap =>
|
||||||
|
_$this._gatewayMap ??= new MapBuilder<String, GatewayEntity>();
|
||||||
|
set gatewayMap(MapBuilder<String, GatewayEntity> gatewayMap) =>
|
||||||
|
_$this._gatewayMap = gatewayMap;
|
||||||
|
|
||||||
MapBuilder<String, IndustryEntity> _industryMap;
|
MapBuilder<String, IndustryEntity> _industryMap;
|
||||||
MapBuilder<String, IndustryEntity> get industryMap =>
|
MapBuilder<String, IndustryEntity> get industryMap =>
|
||||||
_$this._industryMap ??= new MapBuilder<String, IndustryEntity>();
|
_$this._industryMap ??= new MapBuilder<String, IndustryEntity>();
|
||||||
|
|
@ -411,6 +438,7 @@ class StaticStateBuilder implements Builder<StaticState, StaticStateBuilder> {
|
||||||
_updatedAt = _$v.updatedAt;
|
_updatedAt = _$v.updatedAt;
|
||||||
_currencyMap = _$v.currencyMap?.toBuilder();
|
_currencyMap = _$v.currencyMap?.toBuilder();
|
||||||
_sizeMap = _$v.sizeMap?.toBuilder();
|
_sizeMap = _$v.sizeMap?.toBuilder();
|
||||||
|
_gatewayMap = _$v.gatewayMap?.toBuilder();
|
||||||
_industryMap = _$v.industryMap?.toBuilder();
|
_industryMap = _$v.industryMap?.toBuilder();
|
||||||
_timezoneMap = _$v.timezoneMap?.toBuilder();
|
_timezoneMap = _$v.timezoneMap?.toBuilder();
|
||||||
_dateFormatMap = _$v.dateFormatMap?.toBuilder();
|
_dateFormatMap = _$v.dateFormatMap?.toBuilder();
|
||||||
|
|
@ -447,6 +475,7 @@ class StaticStateBuilder implements Builder<StaticState, StaticStateBuilder> {
|
||||||
updatedAt: updatedAt,
|
updatedAt: updatedAt,
|
||||||
currencyMap: currencyMap.build(),
|
currencyMap: currencyMap.build(),
|
||||||
sizeMap: sizeMap.build(),
|
sizeMap: sizeMap.build(),
|
||||||
|
gatewayMap: gatewayMap.build(),
|
||||||
industryMap: industryMap.build(),
|
industryMap: industryMap.build(),
|
||||||
timezoneMap: timezoneMap.build(),
|
timezoneMap: timezoneMap.build(),
|
||||||
dateFormatMap: dateFormatMap.build(),
|
dateFormatMap: dateFormatMap.build(),
|
||||||
|
|
@ -463,6 +492,8 @@ class StaticStateBuilder implements Builder<StaticState, StaticStateBuilder> {
|
||||||
currencyMap.build();
|
currencyMap.build();
|
||||||
_$failedField = 'sizeMap';
|
_$failedField = 'sizeMap';
|
||||||
sizeMap.build();
|
sizeMap.build();
|
||||||
|
_$failedField = 'gatewayMap';
|
||||||
|
gatewayMap.build();
|
||||||
_$failedField = 'industryMap';
|
_$failedField = 'industryMap';
|
||||||
industryMap.build();
|
industryMap.build();
|
||||||
_$failedField = 'timezoneMap';
|
_$failedField = 'timezoneMap';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue