This commit is contained in:
unknown 2018-06-28 08:17:55 -07:00
parent 399f4967bb
commit a6cb7b7b47
2 changed files with 78 additions and 37 deletions

View File

@ -173,7 +173,6 @@ abstract class CompanyEntity implements Built<CompanyEntity, CompanyEntityBuilde
String get name; String get name;
String get token; String get token;
@nullable
String get plan; String get plan;
@BuiltValueField(wireName: 'logo_url') @BuiltValueField(wireName: 'logo_url')
@ -263,11 +262,11 @@ abstract class CompanyEntity implements Built<CompanyEntity, CompanyEntityBuilde
@BuiltValueField(wireName: 'convert_products') @BuiltValueField(wireName: 'convert_products')
bool get convertProductExchangeRate; bool get convertProductExchangeRate;
//@BuiltValueField(wireName: 'custom_invoice_taxes1') @BuiltValueField(wireName: 'custom_invoice_taxes1')
//bool get enableCustomInvoiceTaxes1; bool get enableCustomInvoiceTaxes1;
//@BuiltValueField(wireName: 'custom_invoice_taxes1') @BuiltValueField(wireName: 'custom_invoice_taxes1')
//bool get enableCustomInvoiceTaxes2; bool get enableCustomInvoiceTaxes2;
//@BuiltValueField(wireName: 'custom_fields') //@BuiltValueField(wireName: 'custom_fields')
//@BuiltValueField(wireName: 'invoice_labels') //@BuiltValueField(wireName: 'invoice_labels')
@ -294,8 +293,8 @@ abstract class CompanyEntity implements Built<CompanyEntity, CompanyEntityBuilde
defaultTaxRate1: 0.0, defaultTaxRate1: 0.0,
defaultTaxName2: '', defaultTaxName2: '',
defaultTaxRate2: 0.0, defaultTaxRate2: 0.0,
//enableCustomInvoiceTaxes1: false, enableCustomInvoiceTaxes1: false,
//enableCustomInvoiceTaxes2: false, enableCustomInvoiceTaxes2: false,
enabledModules: 0, enabledModules: 0,
enableInclusiveTaxes: false, enableInclusiveTaxes: false,
enableInvoiceItemTaxes: false, enableInvoiceItemTaxes: false,

View File

@ -454,6 +454,8 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
'token', 'token',
serializers.serialize(object.token, serializers.serialize(object.token,
specifiedType: const FullType(String)), specifiedType: const FullType(String)),
'plan',
serializers.serialize(object.plan, specifiedType: const FullType(String)),
'logo_url', 'logo_url',
serializers.serialize(object.logoUrl, serializers.serialize(object.logoUrl,
specifiedType: const FullType(String)), specifiedType: const FullType(String)),
@ -541,13 +543,13 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
'convert_products', 'convert_products',
serializers.serialize(object.convertProductExchangeRate, serializers.serialize(object.convertProductExchangeRate,
specifiedType: const FullType(bool)), specifiedType: const FullType(bool)),
'custom_invoice_taxes1',
serializers.serialize(object.enableCustomInvoiceTaxes1,
specifiedType: const FullType(bool)),
'custom_invoice_taxes1',
serializers.serialize(object.enableCustomInvoiceTaxes2,
specifiedType: const FullType(bool)),
]; ];
if (object.plan != null) {
result
..add('plan')
..add(serializers.serialize(object.plan,
specifiedType: const FullType(String)));
}
return result; return result;
} }
@ -691,6 +693,14 @@ class _$CompanyEntitySerializer implements StructuredSerializer<CompanyEntity> {
result.convertProductExchangeRate = serializers.deserialize(value, result.convertProductExchangeRate = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool; specifiedType: const FullType(bool)) as bool;
break; break;
case 'custom_invoice_taxes1':
result.enableCustomInvoiceTaxes1 = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
case 'custom_invoice_taxes1':
result.enableCustomInvoiceTaxes2 = serializers.deserialize(value,
specifiedType: const FullType(bool)) as bool;
break;
} }
} }
@ -1500,6 +1510,10 @@ class _$CompanyEntity extends CompanyEntity {
final bool enableInclusiveTaxes; final bool enableInclusiveTaxes;
@override @override
final bool convertProductExchangeRate; final bool convertProductExchangeRate;
@override
final bool enableCustomInvoiceTaxes1;
@override
final bool enableCustomInvoiceTaxes2;
factory _$CompanyEntity([void updates(CompanyEntityBuilder b)]) => factory _$CompanyEntity([void updates(CompanyEntityBuilder b)]) =>
(new CompanyEntityBuilder()..update(updates)).build(); (new CompanyEntityBuilder()..update(updates)).build();
@ -1536,12 +1550,16 @@ class _$CompanyEntity extends CompanyEntity {
this.defaultPaymentTypeId, this.defaultPaymentTypeId,
this.defaultTaskRate, this.defaultTaskRate,
this.enableInclusiveTaxes, this.enableInclusiveTaxes,
this.convertProductExchangeRate}) this.convertProductExchangeRate,
this.enableCustomInvoiceTaxes1,
this.enableCustomInvoiceTaxes2})
: super._() { : super._() {
if (name == null) if (name == null)
throw new BuiltValueNullFieldError('CompanyEntity', 'name'); throw new BuiltValueNullFieldError('CompanyEntity', 'name');
if (token == null) if (token == null)
throw new BuiltValueNullFieldError('CompanyEntity', 'token'); throw new BuiltValueNullFieldError('CompanyEntity', 'token');
if (plan == null)
throw new BuiltValueNullFieldError('CompanyEntity', 'plan');
if (logoUrl == null) if (logoUrl == null)
throw new BuiltValueNullFieldError('CompanyEntity', 'logoUrl'); throw new BuiltValueNullFieldError('CompanyEntity', 'logoUrl');
if (currencyId == null) if (currencyId == null)
@ -1611,6 +1629,12 @@ class _$CompanyEntity extends CompanyEntity {
if (convertProductExchangeRate == null) if (convertProductExchangeRate == null)
throw new BuiltValueNullFieldError( throw new BuiltValueNullFieldError(
'CompanyEntity', 'convertProductExchangeRate'); 'CompanyEntity', 'convertProductExchangeRate');
if (enableCustomInvoiceTaxes1 == null)
throw new BuiltValueNullFieldError(
'CompanyEntity', 'enableCustomInvoiceTaxes1');
if (enableCustomInvoiceTaxes2 == null)
throw new BuiltValueNullFieldError(
'CompanyEntity', 'enableCustomInvoiceTaxes2');
} }
@override @override
@ -1655,7 +1679,9 @@ class _$CompanyEntity extends CompanyEntity {
defaultPaymentTypeId == other.defaultPaymentTypeId && defaultPaymentTypeId == other.defaultPaymentTypeId &&
defaultTaskRate == other.defaultTaskRate && defaultTaskRate == other.defaultTaskRate &&
enableInclusiveTaxes == other.enableInclusiveTaxes && enableInclusiveTaxes == other.enableInclusiveTaxes &&
convertProductExchangeRate == other.convertProductExchangeRate; convertProductExchangeRate == other.convertProductExchangeRate &&
enableCustomInvoiceTaxes1 == other.enableCustomInvoiceTaxes1 &&
enableCustomInvoiceTaxes2 == other.enableCustomInvoiceTaxes2;
} }
@override @override
@ -1678,26 +1704,26 @@ class _$CompanyEntity extends CompanyEntity {
$jc( $jc(
$jc( $jc(
$jc( $jc(
$jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), token.hashCode), plan.hashCode), logoUrl.hashCode), currencyId.hashCode), timezoneId.hashCode), dateFormatId.hashCode), datetimeFormatId.hashCode), defaultInvoiceTerms.hashCode), enableInvoiceTaxes.hashCode), enableInvoiceItemTaxes.hashCode), defaultInvoiceDesignId.hashCode), defaultQuoteDesignId.hashCode), $jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc($jc(0, name.hashCode), token.hashCode), plan.hashCode), logoUrl.hashCode), currencyId.hashCode), timezoneId.hashCode), dateFormatId.hashCode), datetimeFormatId.hashCode), defaultInvoiceTerms.hashCode), enableInvoiceTaxes.hashCode), enableInvoiceItemTaxes.hashCode), defaultInvoiceDesignId.hashCode), defaultQuoteDesignId.hashCode), languageId.hashCode), defaultInvoiceFooter.hashCode),
languageId.hashCode), showInvoiceItemTaxes.hashCode),
defaultInvoiceFooter.hashCode), enableMilitaryTime.hashCode),
showInvoiceItemTaxes.hashCode), defaultTaxName1.hashCode),
enableMilitaryTime.hashCode), defaultTaxRate1.hashCode),
defaultTaxName1.hashCode), defaultTaxName2.hashCode),
defaultTaxRate1.hashCode), defaultTaxRate2.hashCode),
defaultTaxName2.hashCode), defaultQuoteTerms.hashCode),
defaultTaxRate2.hashCode), showCurrencyCode.hashCode),
defaultQuoteTerms.hashCode), enableSecondTaxRate.hashCode),
showCurrencyCode.hashCode), startOfWeek.hashCode),
enableSecondTaxRate.hashCode), financialYearStart.hashCode),
startOfWeek.hashCode), enabledModules.hashCode),
financialYearStart.hashCode), defaultPaymentTerms.hashCode),
enabledModules.hashCode), defaultPaymentTypeId.hashCode),
defaultPaymentTerms.hashCode), defaultTaskRate.hashCode),
defaultPaymentTypeId.hashCode), enableInclusiveTaxes.hashCode),
defaultTaskRate.hashCode), convertProductExchangeRate.hashCode),
enableInclusiveTaxes.hashCode), enableCustomInvoiceTaxes1.hashCode),
convertProductExchangeRate.hashCode)); enableCustomInvoiceTaxes2.hashCode));
} }
@override @override
@ -1734,7 +1760,9 @@ class _$CompanyEntity extends CompanyEntity {
..add('defaultPaymentTypeId', defaultPaymentTypeId) ..add('defaultPaymentTypeId', defaultPaymentTypeId)
..add('defaultTaskRate', defaultTaskRate) ..add('defaultTaskRate', defaultTaskRate)
..add('enableInclusiveTaxes', enableInclusiveTaxes) ..add('enableInclusiveTaxes', enableInclusiveTaxes)
..add('convertProductExchangeRate', convertProductExchangeRate)) ..add('convertProductExchangeRate', convertProductExchangeRate)
..add('enableCustomInvoiceTaxes1', enableCustomInvoiceTaxes1)
..add('enableCustomInvoiceTaxes2', enableCustomInvoiceTaxes2))
.toString(); .toString();
} }
} }
@ -1894,6 +1922,16 @@ class CompanyEntityBuilder
set convertProductExchangeRate(bool convertProductExchangeRate) => set convertProductExchangeRate(bool convertProductExchangeRate) =>
_$this._convertProductExchangeRate = convertProductExchangeRate; _$this._convertProductExchangeRate = convertProductExchangeRate;
bool _enableCustomInvoiceTaxes1;
bool get enableCustomInvoiceTaxes1 => _$this._enableCustomInvoiceTaxes1;
set enableCustomInvoiceTaxes1(bool enableCustomInvoiceTaxes1) =>
_$this._enableCustomInvoiceTaxes1 = enableCustomInvoiceTaxes1;
bool _enableCustomInvoiceTaxes2;
bool get enableCustomInvoiceTaxes2 => _$this._enableCustomInvoiceTaxes2;
set enableCustomInvoiceTaxes2(bool enableCustomInvoiceTaxes2) =>
_$this._enableCustomInvoiceTaxes2 = enableCustomInvoiceTaxes2;
CompanyEntityBuilder(); CompanyEntityBuilder();
CompanyEntityBuilder get _$this { CompanyEntityBuilder get _$this {
@ -1930,6 +1968,8 @@ class CompanyEntityBuilder
_defaultTaskRate = _$v.defaultTaskRate; _defaultTaskRate = _$v.defaultTaskRate;
_enableInclusiveTaxes = _$v.enableInclusiveTaxes; _enableInclusiveTaxes = _$v.enableInclusiveTaxes;
_convertProductExchangeRate = _$v.convertProductExchangeRate; _convertProductExchangeRate = _$v.convertProductExchangeRate;
_enableCustomInvoiceTaxes1 = _$v.enableCustomInvoiceTaxes1;
_enableCustomInvoiceTaxes2 = _$v.enableCustomInvoiceTaxes2;
_$v = null; _$v = null;
} }
return this; return this;
@ -1981,7 +2021,9 @@ class CompanyEntityBuilder
defaultPaymentTypeId: defaultPaymentTypeId, defaultPaymentTypeId: defaultPaymentTypeId,
defaultTaskRate: defaultTaskRate, defaultTaskRate: defaultTaskRate,
enableInclusiveTaxes: enableInclusiveTaxes, enableInclusiveTaxes: enableInclusiveTaxes,
convertProductExchangeRate: convertProductExchangeRate); convertProductExchangeRate: convertProductExchangeRate,
enableCustomInvoiceTaxes1: enableCustomInvoiceTaxes1,
enableCustomInvoiceTaxes2: enableCustomInvoiceTaxes2);
replace(_$result); replace(_$result);
return _$result; return _$result;
} }