3162 lines
105 KiB
Dart
3162 lines
105 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'invoice_model.dart';
|
|
|
|
// **************************************************************************
|
|
// BuiltValueGenerator
|
|
// **************************************************************************
|
|
|
|
Serializer<InvoiceListResponse> _$invoiceListResponseSerializer =
|
|
new _$InvoiceListResponseSerializer();
|
|
Serializer<InvoiceItemResponse> _$invoiceItemResponseSerializer =
|
|
new _$InvoiceItemResponseSerializer();
|
|
Serializer<InvoiceEntity> _$invoiceEntitySerializer =
|
|
new _$InvoiceEntitySerializer();
|
|
Serializer<InvoiceItemEntity> _$invoiceItemEntitySerializer =
|
|
new _$InvoiceItemEntitySerializer();
|
|
Serializer<InvitationEntity> _$invitationEntitySerializer =
|
|
new _$InvitationEntitySerializer();
|
|
Serializer<InvoiceHistoryEntity> _$invoiceHistoryEntitySerializer =
|
|
new _$InvoiceHistoryEntitySerializer();
|
|
|
|
class _$InvoiceListResponseSerializer
|
|
implements StructuredSerializer<InvoiceListResponse> {
|
|
@override
|
|
final Iterable<Type> types = const [
|
|
InvoiceListResponse,
|
|
_$InvoiceListResponse
|
|
];
|
|
@override
|
|
final String wireName = 'InvoiceListResponse';
|
|
|
|
@override
|
|
Iterable<Object> serialize(
|
|
Serializers serializers, InvoiceListResponse object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'data',
|
|
serializers.serialize(object.data,
|
|
specifiedType:
|
|
const FullType(BuiltList, const [const FullType(InvoiceEntity)])),
|
|
];
|
|
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
InvoiceListResponse deserialize(
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new InvoiceListResponseBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'data':
|
|
result.data.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(InvoiceEntity)]))
|
|
as BuiltList<Object>);
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$InvoiceItemResponseSerializer
|
|
implements StructuredSerializer<InvoiceItemResponse> {
|
|
@override
|
|
final Iterable<Type> types = const [
|
|
InvoiceItemResponse,
|
|
_$InvoiceItemResponse
|
|
];
|
|
@override
|
|
final String wireName = 'InvoiceItemResponse';
|
|
|
|
@override
|
|
Iterable<Object> serialize(
|
|
Serializers serializers, InvoiceItemResponse object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'data',
|
|
serializers.serialize(object.data,
|
|
specifiedType: const FullType(InvoiceEntity)),
|
|
];
|
|
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
InvoiceItemResponse deserialize(
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new InvoiceItemResponseBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'data':
|
|
result.data.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(InvoiceEntity)) as InvoiceEntity);
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$InvoiceEntitySerializer implements StructuredSerializer<InvoiceEntity> {
|
|
@override
|
|
final Iterable<Type> types = const [InvoiceEntity, _$InvoiceEntity];
|
|
@override
|
|
final String wireName = 'InvoiceEntity';
|
|
|
|
@override
|
|
Iterable<Object> serialize(Serializers serializers, InvoiceEntity object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'amount',
|
|
serializers.serialize(object.amount,
|
|
specifiedType: const FullType(double)),
|
|
'balance',
|
|
serializers.serialize(object.balance,
|
|
specifiedType: const FullType(double)),
|
|
'client_id',
|
|
serializers.serialize(object.clientId,
|
|
specifiedType: const FullType(String)),
|
|
'status_id',
|
|
serializers.serialize(object.statusId,
|
|
specifiedType: const FullType(String)),
|
|
'number',
|
|
serializers.serialize(object.number,
|
|
specifiedType: const FullType(String)),
|
|
'discount',
|
|
serializers.serialize(object.discount,
|
|
specifiedType: const FullType(double)),
|
|
'po_number',
|
|
serializers.serialize(object.poNumber,
|
|
specifiedType: const FullType(String)),
|
|
'date',
|
|
serializers.serialize(object.date, specifiedType: const FullType(String)),
|
|
'due_date',
|
|
serializers.serialize(object.dueDate,
|
|
specifiedType: const FullType(String)),
|
|
'public_notes',
|
|
serializers.serialize(object.publicNotes,
|
|
specifiedType: const FullType(String)),
|
|
'private_notes',
|
|
serializers.serialize(object.privateNotes,
|
|
specifiedType: const FullType(String)),
|
|
'terms',
|
|
serializers.serialize(object.terms,
|
|
specifiedType: const FullType(String)),
|
|
'footer',
|
|
serializers.serialize(object.footer,
|
|
specifiedType: const FullType(String)),
|
|
'design_id',
|
|
serializers.serialize(object.designId,
|
|
specifiedType: const FullType(String)),
|
|
'uses_inclusive_taxes',
|
|
serializers.serialize(object.usesInclusiveTaxes,
|
|
specifiedType: const FullType(bool)),
|
|
'tax_name1',
|
|
serializers.serialize(object.taxName1,
|
|
specifiedType: const FullType(String)),
|
|
'tax_rate1',
|
|
serializers.serialize(object.taxRate1,
|
|
specifiedType: const FullType(double)),
|
|
'tax_name2',
|
|
serializers.serialize(object.taxName2,
|
|
specifiedType: const FullType(String)),
|
|
'tax_rate2',
|
|
serializers.serialize(object.taxRate2,
|
|
specifiedType: const FullType(double)),
|
|
'tax_name3',
|
|
serializers.serialize(object.taxName3,
|
|
specifiedType: const FullType(String)),
|
|
'tax_rate3',
|
|
serializers.serialize(object.taxRate3,
|
|
specifiedType: const FullType(double)),
|
|
'is_amount_discount',
|
|
serializers.serialize(object.isAmountDiscount,
|
|
specifiedType: const FullType(bool)),
|
|
'partial',
|
|
serializers.serialize(object.partial,
|
|
specifiedType: const FullType(double)),
|
|
'total_taxes',
|
|
serializers.serialize(object.taxAmount,
|
|
specifiedType: const FullType(double)),
|
|
'partial_due_date',
|
|
serializers.serialize(object.partialDueDate,
|
|
specifiedType: const FullType(String)),
|
|
'has_tasks',
|
|
serializers.serialize(object.hasTasks,
|
|
specifiedType: const FullType(bool)),
|
|
'auto_bill',
|
|
serializers.serialize(object.autoBill,
|
|
specifiedType: const FullType(String)),
|
|
'auto_bill_enabled',
|
|
serializers.serialize(object.autoBillEnabled,
|
|
specifiedType: const FullType(bool)),
|
|
'custom_value1',
|
|
serializers.serialize(object.customValue1,
|
|
specifiedType: const FullType(String)),
|
|
'custom_value2',
|
|
serializers.serialize(object.customValue2,
|
|
specifiedType: const FullType(String)),
|
|
'custom_value3',
|
|
serializers.serialize(object.customValue3,
|
|
specifiedType: const FullType(String)),
|
|
'custom_value4',
|
|
serializers.serialize(object.customValue4,
|
|
specifiedType: const FullType(String)),
|
|
'custom_surcharge1',
|
|
serializers.serialize(object.customSurcharge1,
|
|
specifiedType: const FullType(double)),
|
|
'custom_surcharge2',
|
|
serializers.serialize(object.customSurcharge2,
|
|
specifiedType: const FullType(double)),
|
|
'custom_surcharge3',
|
|
serializers.serialize(object.customSurcharge3,
|
|
specifiedType: const FullType(double)),
|
|
'custom_surcharge4',
|
|
serializers.serialize(object.customSurcharge4,
|
|
specifiedType: const FullType(double)),
|
|
'has_expenses',
|
|
serializers.serialize(object.hasExpenses,
|
|
specifiedType: const FullType(bool)),
|
|
'exchange_rate',
|
|
serializers.serialize(object.exchangeRate,
|
|
specifiedType: const FullType(double)),
|
|
'last_sent_date',
|
|
serializers.serialize(object.lastSentDate,
|
|
specifiedType: const FullType(String)),
|
|
'next_send_date',
|
|
serializers.serialize(object.nextSendDate,
|
|
specifiedType: const FullType(String)),
|
|
'line_items',
|
|
serializers.serialize(object.lineItems,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(InvoiceItemEntity)])),
|
|
'invitations',
|
|
serializers.serialize(object.invitations,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(InvitationEntity)])),
|
|
'documents',
|
|
serializers.serialize(object.documents,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(DocumentEntity)])),
|
|
'created_at',
|
|
serializers.serialize(object.createdAt,
|
|
specifiedType: const FullType(int)),
|
|
'updated_at',
|
|
serializers.serialize(object.updatedAt,
|
|
specifiedType: const FullType(int)),
|
|
'archived_at',
|
|
serializers.serialize(object.archivedAt,
|
|
specifiedType: const FullType(int)),
|
|
'id',
|
|
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
|
];
|
|
if (object.customTaxes1 != null) {
|
|
result
|
|
..add('custom_taxes1')
|
|
..add(serializers.serialize(object.customTaxes1,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.customTaxes2 != null) {
|
|
result
|
|
..add('custom_taxes2')
|
|
..add(serializers.serialize(object.customTaxes2,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.customTaxes3 != null) {
|
|
result
|
|
..add('custom_taxes3')
|
|
..add(serializers.serialize(object.customTaxes3,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.customTaxes4 != null) {
|
|
result
|
|
..add('custom_taxes4')
|
|
..add(serializers.serialize(object.customTaxes4,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.reminder1Sent != null) {
|
|
result
|
|
..add('reminder1_sent')
|
|
..add(serializers.serialize(object.reminder1Sent,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.reminder2Sent != null) {
|
|
result
|
|
..add('reminder2_sent')
|
|
..add(serializers.serialize(object.reminder2Sent,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.reminder3Sent != null) {
|
|
result
|
|
..add('reminder3_sent')
|
|
..add(serializers.serialize(object.reminder3Sent,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.reminderLastSent != null) {
|
|
result
|
|
..add('reminder_last_sent')
|
|
..add(serializers.serialize(object.reminderLastSent,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.frequencyId != null) {
|
|
result
|
|
..add('frequency_id')
|
|
..add(serializers.serialize(object.frequencyId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.remainingCycles != null) {
|
|
result
|
|
..add('remaining_cycles')
|
|
..add(serializers.serialize(object.remainingCycles,
|
|
specifiedType: const FullType(int)));
|
|
}
|
|
if (object.dueDateDays != null) {
|
|
result
|
|
..add('due_date_days')
|
|
..add(serializers.serialize(object.dueDateDays,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.invoiceId != null) {
|
|
result
|
|
..add('invoice_id')
|
|
..add(serializers.serialize(object.invoiceId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.filename != null) {
|
|
result
|
|
..add('filename')
|
|
..add(serializers.serialize(object.filename,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.history != null) {
|
|
result
|
|
..add('history')
|
|
..add(serializers.serialize(object.history,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(InvoiceHistoryEntity)])));
|
|
}
|
|
if (object.loadedAt != null) {
|
|
result
|
|
..add('loadedAt')
|
|
..add(serializers.serialize(object.loadedAt,
|
|
specifiedType: const FullType(int)));
|
|
}
|
|
if (object.isChanged != null) {
|
|
result
|
|
..add('isChanged')
|
|
..add(serializers.serialize(object.isChanged,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.isDeleted != null) {
|
|
result
|
|
..add('is_deleted')
|
|
..add(serializers.serialize(object.isDeleted,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.createdUserId != null) {
|
|
result
|
|
..add('user_id')
|
|
..add(serializers.serialize(object.createdUserId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.assignedUserId != null) {
|
|
result
|
|
..add('assigned_user_id')
|
|
..add(serializers.serialize(object.assignedUserId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.entityType != null) {
|
|
result
|
|
..add('entity_type')
|
|
..add(serializers.serialize(object.entityType,
|
|
specifiedType: const FullType(EntityType)));
|
|
}
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
InvoiceEntity deserialize(
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new InvoiceEntityBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'amount':
|
|
result.amount = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'balance':
|
|
result.balance = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'client_id':
|
|
result.clientId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'status_id':
|
|
result.statusId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'number':
|
|
result.number = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'discount':
|
|
result.discount = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'po_number':
|
|
result.poNumber = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'date':
|
|
result.date = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'due_date':
|
|
result.dueDate = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'public_notes':
|
|
result.publicNotes = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'private_notes':
|
|
result.privateNotes = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'terms':
|
|
result.terms = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'footer':
|
|
result.footer = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'design_id':
|
|
result.designId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'uses_inclusive_taxes':
|
|
result.usesInclusiveTaxes = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'tax_name1':
|
|
result.taxName1 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'tax_rate1':
|
|
result.taxRate1 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'tax_name2':
|
|
result.taxName2 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'tax_rate2':
|
|
result.taxRate2 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'tax_name3':
|
|
result.taxName3 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'tax_rate3':
|
|
result.taxRate3 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'is_amount_discount':
|
|
result.isAmountDiscount = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'partial':
|
|
result.partial = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'total_taxes':
|
|
result.taxAmount = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'partial_due_date':
|
|
result.partialDueDate = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'has_tasks':
|
|
result.hasTasks = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'auto_bill':
|
|
result.autoBill = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'auto_bill_enabled':
|
|
result.autoBillEnabled = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
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 'custom_surcharge1':
|
|
result.customSurcharge1 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'custom_surcharge2':
|
|
result.customSurcharge2 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'custom_surcharge3':
|
|
result.customSurcharge3 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'custom_surcharge4':
|
|
result.customSurcharge4 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'custom_taxes1':
|
|
result.customTaxes1 = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'custom_taxes2':
|
|
result.customTaxes2 = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'custom_taxes3':
|
|
result.customTaxes3 = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'custom_taxes4':
|
|
result.customTaxes4 = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'has_expenses':
|
|
result.hasExpenses = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'exchange_rate':
|
|
result.exchangeRate = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'reminder1_sent':
|
|
result.reminder1Sent = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'reminder2_sent':
|
|
result.reminder2Sent = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'reminder3_sent':
|
|
result.reminder3Sent = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'reminder_last_sent':
|
|
result.reminderLastSent = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'frequency_id':
|
|
result.frequencyId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'last_sent_date':
|
|
result.lastSentDate = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'next_send_date':
|
|
result.nextSendDate = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'remaining_cycles':
|
|
result.remainingCycles = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'due_date_days':
|
|
result.dueDateDays = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'invoice_id':
|
|
result.invoiceId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'filename':
|
|
result.filename = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'line_items':
|
|
result.lineItems.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(InvoiceItemEntity)]))
|
|
as BuiltList<Object>);
|
|
break;
|
|
case 'invitations':
|
|
result.invitations.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(InvitationEntity)]))
|
|
as BuiltList<Object>);
|
|
break;
|
|
case 'documents':
|
|
result.documents.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(DocumentEntity)]))
|
|
as BuiltList<Object>);
|
|
break;
|
|
case 'history':
|
|
result.history.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(
|
|
BuiltList, const [const FullType(InvoiceHistoryEntity)]))
|
|
as BuiltList<Object>);
|
|
break;
|
|
case 'loadedAt':
|
|
result.loadedAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'isChanged':
|
|
result.isChanged = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'created_at':
|
|
result.createdAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'updated_at':
|
|
result.updatedAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'archived_at':
|
|
result.archivedAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'is_deleted':
|
|
result.isDeleted = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'user_id':
|
|
result.createdUserId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'assigned_user_id':
|
|
result.assignedUserId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'entity_type':
|
|
result.entityType = serializers.deserialize(value,
|
|
specifiedType: const FullType(EntityType)) as EntityType;
|
|
break;
|
|
case 'id':
|
|
result.id = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$InvoiceItemEntitySerializer
|
|
implements StructuredSerializer<InvoiceItemEntity> {
|
|
@override
|
|
final Iterable<Type> types = const [InvoiceItemEntity, _$InvoiceItemEntity];
|
|
@override
|
|
final String wireName = 'InvoiceItemEntity';
|
|
|
|
@override
|
|
Iterable<Object> serialize(Serializers serializers, InvoiceItemEntity object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'product_key',
|
|
serializers.serialize(object.productKey,
|
|
specifiedType: const FullType(String)),
|
|
'notes',
|
|
serializers.serialize(object.notes,
|
|
specifiedType: const FullType(String)),
|
|
'cost',
|
|
serializers.serialize(object.cost, specifiedType: const FullType(double)),
|
|
'quantity',
|
|
serializers.serialize(object.quantity,
|
|
specifiedType: const FullType(double)),
|
|
'tax_name1',
|
|
serializers.serialize(object.taxName1,
|
|
specifiedType: const FullType(String)),
|
|
'tax_rate1',
|
|
serializers.serialize(object.taxRate1,
|
|
specifiedType: const FullType(double)),
|
|
'tax_name2',
|
|
serializers.serialize(object.taxName2,
|
|
specifiedType: const FullType(String)),
|
|
'tax_rate2',
|
|
serializers.serialize(object.taxRate2,
|
|
specifiedType: const FullType(double)),
|
|
'tax_name3',
|
|
serializers.serialize(object.taxName3,
|
|
specifiedType: const FullType(String)),
|
|
'tax_rate3',
|
|
serializers.serialize(object.taxRate3,
|
|
specifiedType: const FullType(double)),
|
|
'custom_value1',
|
|
serializers.serialize(object.customValue1,
|
|
specifiedType: const FullType(String)),
|
|
'custom_value2',
|
|
serializers.serialize(object.customValue2,
|
|
specifiedType: const FullType(String)),
|
|
'custom_value3',
|
|
serializers.serialize(object.customValue3,
|
|
specifiedType: const FullType(String)),
|
|
'custom_value4',
|
|
serializers.serialize(object.customValue4,
|
|
specifiedType: const FullType(String)),
|
|
'discount',
|
|
serializers.serialize(object.discount,
|
|
specifiedType: const FullType(double)),
|
|
];
|
|
if (object.typeId != null) {
|
|
result
|
|
..add('type_id')
|
|
..add(serializers.serialize(object.typeId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.taskId != null) {
|
|
result
|
|
..add('task_public_id')
|
|
..add(serializers.serialize(object.taskId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.expenseId != null) {
|
|
result
|
|
..add('expense_public_id')
|
|
..add(serializers.serialize(object.expenseId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.createdAt != null) {
|
|
result
|
|
..add('createdAt')
|
|
..add(serializers.serialize(object.createdAt,
|
|
specifiedType: const FullType(int)));
|
|
}
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
InvoiceItemEntity deserialize(
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new InvoiceItemEntityBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'product_key':
|
|
result.productKey = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'notes':
|
|
result.notes = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'cost':
|
|
result.cost = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'quantity':
|
|
result.quantity = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'tax_name1':
|
|
result.taxName1 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'tax_rate1':
|
|
result.taxRate1 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'tax_name2':
|
|
result.taxName2 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'tax_rate2':
|
|
result.taxRate2 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'tax_name3':
|
|
result.taxName3 = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'tax_rate3':
|
|
result.taxRate3 = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'type_id':
|
|
result.typeId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
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 'discount':
|
|
result.discount = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
case 'task_public_id':
|
|
result.taskId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'expense_public_id':
|
|
result.expenseId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'createdAt':
|
|
result.createdAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$InvitationEntitySerializer
|
|
implements StructuredSerializer<InvitationEntity> {
|
|
@override
|
|
final Iterable<Type> types = const [InvitationEntity, _$InvitationEntity];
|
|
@override
|
|
final String wireName = 'InvitationEntity';
|
|
|
|
@override
|
|
Iterable<Object> serialize(Serializers serializers, InvitationEntity object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'key',
|
|
serializers.serialize(object.key, specifiedType: const FullType(String)),
|
|
'link',
|
|
serializers.serialize(object.link, specifiedType: const FullType(String)),
|
|
'client_contact_id',
|
|
serializers.serialize(object.contactId,
|
|
specifiedType: const FullType(String)),
|
|
'sent_date',
|
|
serializers.serialize(object.sentDate,
|
|
specifiedType: const FullType(String)),
|
|
'viewed_date',
|
|
serializers.serialize(object.viewedDate,
|
|
specifiedType: const FullType(String)),
|
|
'opened_date',
|
|
serializers.serialize(object.openedDate,
|
|
specifiedType: const FullType(String)),
|
|
'created_at',
|
|
serializers.serialize(object.createdAt,
|
|
specifiedType: const FullType(int)),
|
|
'updated_at',
|
|
serializers.serialize(object.updatedAt,
|
|
specifiedType: const FullType(int)),
|
|
'archived_at',
|
|
serializers.serialize(object.archivedAt,
|
|
specifiedType: const FullType(int)),
|
|
'id',
|
|
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
|
];
|
|
if (object.isChanged != null) {
|
|
result
|
|
..add('isChanged')
|
|
..add(serializers.serialize(object.isChanged,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.isDeleted != null) {
|
|
result
|
|
..add('is_deleted')
|
|
..add(serializers.serialize(object.isDeleted,
|
|
specifiedType: const FullType(bool)));
|
|
}
|
|
if (object.createdUserId != null) {
|
|
result
|
|
..add('user_id')
|
|
..add(serializers.serialize(object.createdUserId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.assignedUserId != null) {
|
|
result
|
|
..add('assigned_user_id')
|
|
..add(serializers.serialize(object.assignedUserId,
|
|
specifiedType: const FullType(String)));
|
|
}
|
|
if (object.entityType != null) {
|
|
result
|
|
..add('entity_type')
|
|
..add(serializers.serialize(object.entityType,
|
|
specifiedType: const FullType(EntityType)));
|
|
}
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
InvitationEntity deserialize(
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new InvitationEntityBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'key':
|
|
result.key = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'link':
|
|
result.link = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'client_contact_id':
|
|
result.contactId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'sent_date':
|
|
result.sentDate = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'viewed_date':
|
|
result.viewedDate = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'opened_date':
|
|
result.openedDate = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'isChanged':
|
|
result.isChanged = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'created_at':
|
|
result.createdAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'updated_at':
|
|
result.updatedAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'archived_at':
|
|
result.archivedAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'is_deleted':
|
|
result.isDeleted = serializers.deserialize(value,
|
|
specifiedType: const FullType(bool)) as bool;
|
|
break;
|
|
case 'user_id':
|
|
result.createdUserId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'assigned_user_id':
|
|
result.assignedUserId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'entity_type':
|
|
result.entityType = serializers.deserialize(value,
|
|
specifiedType: const FullType(EntityType)) as EntityType;
|
|
break;
|
|
case 'id':
|
|
result.id = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$InvoiceHistoryEntitySerializer
|
|
implements StructuredSerializer<InvoiceHistoryEntity> {
|
|
@override
|
|
final Iterable<Type> types = const [
|
|
InvoiceHistoryEntity,
|
|
_$InvoiceHistoryEntity
|
|
];
|
|
@override
|
|
final String wireName = 'InvoiceHistoryEntity';
|
|
|
|
@override
|
|
Iterable<Object> serialize(
|
|
Serializers serializers, InvoiceHistoryEntity object,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = <Object>[
|
|
'id',
|
|
serializers.serialize(object.id, specifiedType: const FullType(String)),
|
|
'activity',
|
|
serializers.serialize(object.activity,
|
|
specifiedType: const FullType(ActivityEntity)),
|
|
'activity_id',
|
|
serializers.serialize(object.activityId,
|
|
specifiedType: const FullType(String)),
|
|
'html_backup',
|
|
serializers.serialize(object.htmlBackup,
|
|
specifiedType: const FullType(String)),
|
|
'created_at',
|
|
serializers.serialize(object.createdAt,
|
|
specifiedType: const FullType(int)),
|
|
'amount',
|
|
serializers.serialize(object.amount,
|
|
specifiedType: const FullType(double)),
|
|
];
|
|
|
|
return result;
|
|
}
|
|
|
|
@override
|
|
InvoiceHistoryEntity deserialize(
|
|
Serializers serializers, Iterable<Object> serialized,
|
|
{FullType specifiedType = FullType.unspecified}) {
|
|
final result = new InvoiceHistoryEntityBuilder();
|
|
|
|
final iterator = serialized.iterator;
|
|
while (iterator.moveNext()) {
|
|
final key = iterator.current as String;
|
|
iterator.moveNext();
|
|
final dynamic value = iterator.current;
|
|
switch (key) {
|
|
case 'id':
|
|
result.id = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'activity':
|
|
result.activity.replace(serializers.deserialize(value,
|
|
specifiedType: const FullType(ActivityEntity)) as ActivityEntity);
|
|
break;
|
|
case 'activity_id':
|
|
result.activityId = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'html_backup':
|
|
result.htmlBackup = serializers.deserialize(value,
|
|
specifiedType: const FullType(String)) as String;
|
|
break;
|
|
case 'created_at':
|
|
result.createdAt = serializers.deserialize(value,
|
|
specifiedType: const FullType(int)) as int;
|
|
break;
|
|
case 'amount':
|
|
result.amount = serializers.deserialize(value,
|
|
specifiedType: const FullType(double)) as double;
|
|
break;
|
|
}
|
|
}
|
|
|
|
return result.build();
|
|
}
|
|
}
|
|
|
|
class _$InvoiceListResponse extends InvoiceListResponse {
|
|
@override
|
|
final BuiltList<InvoiceEntity> data;
|
|
|
|
factory _$InvoiceListResponse(
|
|
[void Function(InvoiceListResponseBuilder) updates]) =>
|
|
(new InvoiceListResponseBuilder()..update(updates)).build();
|
|
|
|
_$InvoiceListResponse._({this.data}) : super._() {
|
|
if (data == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceListResponse', 'data');
|
|
}
|
|
}
|
|
|
|
@override
|
|
InvoiceListResponse rebuild(
|
|
void Function(InvoiceListResponseBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
InvoiceListResponseBuilder toBuilder() =>
|
|
new InvoiceListResponseBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is InvoiceListResponse && data == other.data;
|
|
}
|
|
|
|
int __hashCode;
|
|
@override
|
|
int get hashCode {
|
|
return __hashCode ??= $jf($jc(0, data.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('InvoiceListResponse')
|
|
..add('data', data))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class InvoiceListResponseBuilder
|
|
implements Builder<InvoiceListResponse, InvoiceListResponseBuilder> {
|
|
_$InvoiceListResponse _$v;
|
|
|
|
ListBuilder<InvoiceEntity> _data;
|
|
ListBuilder<InvoiceEntity> get data =>
|
|
_$this._data ??= new ListBuilder<InvoiceEntity>();
|
|
set data(ListBuilder<InvoiceEntity> data) => _$this._data = data;
|
|
|
|
InvoiceListResponseBuilder();
|
|
|
|
InvoiceListResponseBuilder get _$this {
|
|
if (_$v != null) {
|
|
_data = _$v.data?.toBuilder();
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(InvoiceListResponse other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$InvoiceListResponse;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(InvoiceListResponseBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$InvoiceListResponse build() {
|
|
_$InvoiceListResponse _$result;
|
|
try {
|
|
_$result = _$v ?? new _$InvoiceListResponse._(data: data.build());
|
|
} catch (_) {
|
|
String _$failedField;
|
|
try {
|
|
_$failedField = 'data';
|
|
data.build();
|
|
} catch (e) {
|
|
throw new BuiltValueNestedFieldError(
|
|
'InvoiceListResponse', _$failedField, e.toString());
|
|
}
|
|
rethrow;
|
|
}
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
class _$InvoiceItemResponse extends InvoiceItemResponse {
|
|
@override
|
|
final InvoiceEntity data;
|
|
|
|
factory _$InvoiceItemResponse(
|
|
[void Function(InvoiceItemResponseBuilder) updates]) =>
|
|
(new InvoiceItemResponseBuilder()..update(updates)).build();
|
|
|
|
_$InvoiceItemResponse._({this.data}) : super._() {
|
|
if (data == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemResponse', 'data');
|
|
}
|
|
}
|
|
|
|
@override
|
|
InvoiceItemResponse rebuild(
|
|
void Function(InvoiceItemResponseBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
InvoiceItemResponseBuilder toBuilder() =>
|
|
new InvoiceItemResponseBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is InvoiceItemResponse && data == other.data;
|
|
}
|
|
|
|
int __hashCode;
|
|
@override
|
|
int get hashCode {
|
|
return __hashCode ??= $jf($jc(0, data.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('InvoiceItemResponse')
|
|
..add('data', data))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class InvoiceItemResponseBuilder
|
|
implements Builder<InvoiceItemResponse, InvoiceItemResponseBuilder> {
|
|
_$InvoiceItemResponse _$v;
|
|
|
|
InvoiceEntityBuilder _data;
|
|
InvoiceEntityBuilder get data => _$this._data ??= new InvoiceEntityBuilder();
|
|
set data(InvoiceEntityBuilder data) => _$this._data = data;
|
|
|
|
InvoiceItemResponseBuilder();
|
|
|
|
InvoiceItemResponseBuilder get _$this {
|
|
if (_$v != null) {
|
|
_data = _$v.data?.toBuilder();
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(InvoiceItemResponse other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$InvoiceItemResponse;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(InvoiceItemResponseBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$InvoiceItemResponse build() {
|
|
_$InvoiceItemResponse _$result;
|
|
try {
|
|
_$result = _$v ?? new _$InvoiceItemResponse._(data: data.build());
|
|
} catch (_) {
|
|
String _$failedField;
|
|
try {
|
|
_$failedField = 'data';
|
|
data.build();
|
|
} catch (e) {
|
|
throw new BuiltValueNestedFieldError(
|
|
'InvoiceItemResponse', _$failedField, e.toString());
|
|
}
|
|
rethrow;
|
|
}
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
class _$InvoiceEntity extends InvoiceEntity {
|
|
@override
|
|
final double amount;
|
|
@override
|
|
final double balance;
|
|
@override
|
|
final String clientId;
|
|
@override
|
|
final String statusId;
|
|
@override
|
|
final String number;
|
|
@override
|
|
final double discount;
|
|
@override
|
|
final String poNumber;
|
|
@override
|
|
final String date;
|
|
@override
|
|
final String dueDate;
|
|
@override
|
|
final String publicNotes;
|
|
@override
|
|
final String privateNotes;
|
|
@override
|
|
final String terms;
|
|
@override
|
|
final String footer;
|
|
@override
|
|
final String designId;
|
|
@override
|
|
final bool usesInclusiveTaxes;
|
|
@override
|
|
final String taxName1;
|
|
@override
|
|
final double taxRate1;
|
|
@override
|
|
final String taxName2;
|
|
@override
|
|
final double taxRate2;
|
|
@override
|
|
final String taxName3;
|
|
@override
|
|
final double taxRate3;
|
|
@override
|
|
final bool isAmountDiscount;
|
|
@override
|
|
final double partial;
|
|
@override
|
|
final double taxAmount;
|
|
@override
|
|
final String partialDueDate;
|
|
@override
|
|
final bool hasTasks;
|
|
@override
|
|
final String autoBill;
|
|
@override
|
|
final bool autoBillEnabled;
|
|
@override
|
|
final String customValue1;
|
|
@override
|
|
final String customValue2;
|
|
@override
|
|
final String customValue3;
|
|
@override
|
|
final String customValue4;
|
|
@override
|
|
final double customSurcharge1;
|
|
@override
|
|
final double customSurcharge2;
|
|
@override
|
|
final double customSurcharge3;
|
|
@override
|
|
final double customSurcharge4;
|
|
@override
|
|
final bool customTaxes1;
|
|
@override
|
|
final bool customTaxes2;
|
|
@override
|
|
final bool customTaxes3;
|
|
@override
|
|
final bool customTaxes4;
|
|
@override
|
|
final bool hasExpenses;
|
|
@override
|
|
final double exchangeRate;
|
|
@override
|
|
final String reminder1Sent;
|
|
@override
|
|
final String reminder2Sent;
|
|
@override
|
|
final String reminder3Sent;
|
|
@override
|
|
final String reminderLastSent;
|
|
@override
|
|
final String frequencyId;
|
|
@override
|
|
final String lastSentDate;
|
|
@override
|
|
final String nextSendDate;
|
|
@override
|
|
final int remainingCycles;
|
|
@override
|
|
final String dueDateDays;
|
|
@override
|
|
final String invoiceId;
|
|
@override
|
|
final String filename;
|
|
@override
|
|
final BuiltList<InvoiceItemEntity> lineItems;
|
|
@override
|
|
final BuiltList<InvitationEntity> invitations;
|
|
@override
|
|
final BuiltList<DocumentEntity> documents;
|
|
@override
|
|
final BuiltList<InvoiceHistoryEntity> history;
|
|
@override
|
|
final int loadedAt;
|
|
@override
|
|
final bool isChanged;
|
|
@override
|
|
final int createdAt;
|
|
@override
|
|
final int updatedAt;
|
|
@override
|
|
final int archivedAt;
|
|
@override
|
|
final bool isDeleted;
|
|
@override
|
|
final String createdUserId;
|
|
@override
|
|
final String assignedUserId;
|
|
@override
|
|
final EntityType entityType;
|
|
@override
|
|
final String id;
|
|
|
|
factory _$InvoiceEntity([void Function(InvoiceEntityBuilder) updates]) =>
|
|
(new InvoiceEntityBuilder()..update(updates)).build();
|
|
|
|
_$InvoiceEntity._(
|
|
{this.amount,
|
|
this.balance,
|
|
this.clientId,
|
|
this.statusId,
|
|
this.number,
|
|
this.discount,
|
|
this.poNumber,
|
|
this.date,
|
|
this.dueDate,
|
|
this.publicNotes,
|
|
this.privateNotes,
|
|
this.terms,
|
|
this.footer,
|
|
this.designId,
|
|
this.usesInclusiveTaxes,
|
|
this.taxName1,
|
|
this.taxRate1,
|
|
this.taxName2,
|
|
this.taxRate2,
|
|
this.taxName3,
|
|
this.taxRate3,
|
|
this.isAmountDiscount,
|
|
this.partial,
|
|
this.taxAmount,
|
|
this.partialDueDate,
|
|
this.hasTasks,
|
|
this.autoBill,
|
|
this.autoBillEnabled,
|
|
this.customValue1,
|
|
this.customValue2,
|
|
this.customValue3,
|
|
this.customValue4,
|
|
this.customSurcharge1,
|
|
this.customSurcharge2,
|
|
this.customSurcharge3,
|
|
this.customSurcharge4,
|
|
this.customTaxes1,
|
|
this.customTaxes2,
|
|
this.customTaxes3,
|
|
this.customTaxes4,
|
|
this.hasExpenses,
|
|
this.exchangeRate,
|
|
this.reminder1Sent,
|
|
this.reminder2Sent,
|
|
this.reminder3Sent,
|
|
this.reminderLastSent,
|
|
this.frequencyId,
|
|
this.lastSentDate,
|
|
this.nextSendDate,
|
|
this.remainingCycles,
|
|
this.dueDateDays,
|
|
this.invoiceId,
|
|
this.filename,
|
|
this.lineItems,
|
|
this.invitations,
|
|
this.documents,
|
|
this.history,
|
|
this.loadedAt,
|
|
this.isChanged,
|
|
this.createdAt,
|
|
this.updatedAt,
|
|
this.archivedAt,
|
|
this.isDeleted,
|
|
this.createdUserId,
|
|
this.assignedUserId,
|
|
this.entityType,
|
|
this.id})
|
|
: super._() {
|
|
if (amount == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'amount');
|
|
}
|
|
if (balance == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'balance');
|
|
}
|
|
if (clientId == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'clientId');
|
|
}
|
|
if (statusId == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'statusId');
|
|
}
|
|
if (number == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'number');
|
|
}
|
|
if (discount == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'discount');
|
|
}
|
|
if (poNumber == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'poNumber');
|
|
}
|
|
if (date == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'date');
|
|
}
|
|
if (dueDate == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'dueDate');
|
|
}
|
|
if (publicNotes == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'publicNotes');
|
|
}
|
|
if (privateNotes == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'privateNotes');
|
|
}
|
|
if (terms == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'terms');
|
|
}
|
|
if (footer == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'footer');
|
|
}
|
|
if (designId == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'designId');
|
|
}
|
|
if (usesInclusiveTaxes == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'usesInclusiveTaxes');
|
|
}
|
|
if (taxName1 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'taxName1');
|
|
}
|
|
if (taxRate1 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'taxRate1');
|
|
}
|
|
if (taxName2 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'taxName2');
|
|
}
|
|
if (taxRate2 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'taxRate2');
|
|
}
|
|
if (taxName3 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'taxName3');
|
|
}
|
|
if (taxRate3 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'taxRate3');
|
|
}
|
|
if (isAmountDiscount == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'isAmountDiscount');
|
|
}
|
|
if (partial == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'partial');
|
|
}
|
|
if (taxAmount == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'taxAmount');
|
|
}
|
|
if (partialDueDate == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'partialDueDate');
|
|
}
|
|
if (hasTasks == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'hasTasks');
|
|
}
|
|
if (autoBill == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'autoBill');
|
|
}
|
|
if (autoBillEnabled == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'autoBillEnabled');
|
|
}
|
|
if (customValue1 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'customValue1');
|
|
}
|
|
if (customValue2 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'customValue2');
|
|
}
|
|
if (customValue3 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'customValue3');
|
|
}
|
|
if (customValue4 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'customValue4');
|
|
}
|
|
if (customSurcharge1 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'customSurcharge1');
|
|
}
|
|
if (customSurcharge2 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'customSurcharge2');
|
|
}
|
|
if (customSurcharge3 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'customSurcharge3');
|
|
}
|
|
if (customSurcharge4 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'customSurcharge4');
|
|
}
|
|
if (hasExpenses == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'hasExpenses');
|
|
}
|
|
if (exchangeRate == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'exchangeRate');
|
|
}
|
|
if (lastSentDate == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'lastSentDate');
|
|
}
|
|
if (nextSendDate == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'nextSendDate');
|
|
}
|
|
if (lineItems == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'lineItems');
|
|
}
|
|
if (invitations == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'invitations');
|
|
}
|
|
if (documents == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'documents');
|
|
}
|
|
if (createdAt == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'createdAt');
|
|
}
|
|
if (updatedAt == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'updatedAt');
|
|
}
|
|
if (archivedAt == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'archivedAt');
|
|
}
|
|
if (id == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceEntity', 'id');
|
|
}
|
|
}
|
|
|
|
@override
|
|
InvoiceEntity rebuild(void Function(InvoiceEntityBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
InvoiceEntityBuilder toBuilder() => new InvoiceEntityBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is InvoiceEntity &&
|
|
amount == other.amount &&
|
|
balance == other.balance &&
|
|
clientId == other.clientId &&
|
|
statusId == other.statusId &&
|
|
number == other.number &&
|
|
discount == other.discount &&
|
|
poNumber == other.poNumber &&
|
|
date == other.date &&
|
|
dueDate == other.dueDate &&
|
|
publicNotes == other.publicNotes &&
|
|
privateNotes == other.privateNotes &&
|
|
terms == other.terms &&
|
|
footer == other.footer &&
|
|
designId == other.designId &&
|
|
usesInclusiveTaxes == other.usesInclusiveTaxes &&
|
|
taxName1 == other.taxName1 &&
|
|
taxRate1 == other.taxRate1 &&
|
|
taxName2 == other.taxName2 &&
|
|
taxRate2 == other.taxRate2 &&
|
|
taxName3 == other.taxName3 &&
|
|
taxRate3 == other.taxRate3 &&
|
|
isAmountDiscount == other.isAmountDiscount &&
|
|
partial == other.partial &&
|
|
taxAmount == other.taxAmount &&
|
|
partialDueDate == other.partialDueDate &&
|
|
hasTasks == other.hasTasks &&
|
|
autoBill == other.autoBill &&
|
|
autoBillEnabled == other.autoBillEnabled &&
|
|
customValue1 == other.customValue1 &&
|
|
customValue2 == other.customValue2 &&
|
|
customValue3 == other.customValue3 &&
|
|
customValue4 == other.customValue4 &&
|
|
customSurcharge1 == other.customSurcharge1 &&
|
|
customSurcharge2 == other.customSurcharge2 &&
|
|
customSurcharge3 == other.customSurcharge3 &&
|
|
customSurcharge4 == other.customSurcharge4 &&
|
|
customTaxes1 == other.customTaxes1 &&
|
|
customTaxes2 == other.customTaxes2 &&
|
|
customTaxes3 == other.customTaxes3 &&
|
|
customTaxes4 == other.customTaxes4 &&
|
|
hasExpenses == other.hasExpenses &&
|
|
exchangeRate == other.exchangeRate &&
|
|
reminder1Sent == other.reminder1Sent &&
|
|
reminder2Sent == other.reminder2Sent &&
|
|
reminder3Sent == other.reminder3Sent &&
|
|
reminderLastSent == other.reminderLastSent &&
|
|
frequencyId == other.frequencyId &&
|
|
lastSentDate == other.lastSentDate &&
|
|
nextSendDate == other.nextSendDate &&
|
|
remainingCycles == other.remainingCycles &&
|
|
dueDateDays == other.dueDateDays &&
|
|
invoiceId == other.invoiceId &&
|
|
filename == other.filename &&
|
|
lineItems == other.lineItems &&
|
|
invitations == other.invitations &&
|
|
documents == other.documents &&
|
|
history == other.history &&
|
|
loadedAt == other.loadedAt &&
|
|
isChanged == other.isChanged &&
|
|
createdAt == other.createdAt &&
|
|
updatedAt == other.updatedAt &&
|
|
archivedAt == other.archivedAt &&
|
|
isDeleted == other.isDeleted &&
|
|
createdUserId == other.createdUserId &&
|
|
assignedUserId == other.assignedUserId &&
|
|
entityType == other.entityType &&
|
|
id == other.id;
|
|
}
|
|
|
|
int __hashCode;
|
|
@override
|
|
int get hashCode {
|
|
return __hashCode ??= $jf($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($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), number.hashCode), discount.hashCode), poNumber.hashCode), date.hashCode), dueDate.hashCode), publicNotes.hashCode), privateNotes.hashCode), terms.hashCode), footer.hashCode), designId.hashCode), usesInclusiveTaxes.hashCode), taxName1.hashCode), taxRate1.hashCode), taxName2.hashCode), taxRate2.hashCode), taxName3.hashCode), taxRate3.hashCode), isAmountDiscount.hashCode), partial.hashCode), taxAmount.hashCode), partialDueDate.hashCode), hasTasks.hashCode), autoBill.hashCode), autoBillEnabled.hashCode), customValue1.hashCode), customValue2.hashCode), customValue3.hashCode), customValue4.hashCode), customSurcharge1.hashCode), customSurcharge2.hashCode), customSurcharge3.hashCode), customSurcharge4.hashCode), customTaxes1.hashCode), customTaxes2.hashCode), customTaxes3.hashCode), customTaxes4.hashCode), hasExpenses.hashCode), exchangeRate.hashCode), reminder1Sent.hashCode), reminder2Sent.hashCode), reminder3Sent.hashCode), reminderLastSent.hashCode), frequencyId.hashCode), lastSentDate.hashCode),
|
|
nextSendDate.hashCode),
|
|
remainingCycles.hashCode),
|
|
dueDateDays.hashCode),
|
|
invoiceId.hashCode),
|
|
filename.hashCode),
|
|
lineItems.hashCode),
|
|
invitations.hashCode),
|
|
documents.hashCode),
|
|
history.hashCode),
|
|
loadedAt.hashCode),
|
|
isChanged.hashCode),
|
|
createdAt.hashCode),
|
|
updatedAt.hashCode),
|
|
archivedAt.hashCode),
|
|
isDeleted.hashCode),
|
|
createdUserId.hashCode),
|
|
assignedUserId.hashCode),
|
|
entityType.hashCode),
|
|
id.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('InvoiceEntity')
|
|
..add('amount', amount)
|
|
..add('balance', balance)
|
|
..add('clientId', clientId)
|
|
..add('statusId', statusId)
|
|
..add('number', number)
|
|
..add('discount', discount)
|
|
..add('poNumber', poNumber)
|
|
..add('date', date)
|
|
..add('dueDate', dueDate)
|
|
..add('publicNotes', publicNotes)
|
|
..add('privateNotes', privateNotes)
|
|
..add('terms', terms)
|
|
..add('footer', footer)
|
|
..add('designId', designId)
|
|
..add('usesInclusiveTaxes', usesInclusiveTaxes)
|
|
..add('taxName1', taxName1)
|
|
..add('taxRate1', taxRate1)
|
|
..add('taxName2', taxName2)
|
|
..add('taxRate2', taxRate2)
|
|
..add('taxName3', taxName3)
|
|
..add('taxRate3', taxRate3)
|
|
..add('isAmountDiscount', isAmountDiscount)
|
|
..add('partial', partial)
|
|
..add('taxAmount', taxAmount)
|
|
..add('partialDueDate', partialDueDate)
|
|
..add('hasTasks', hasTasks)
|
|
..add('autoBill', autoBill)
|
|
..add('autoBillEnabled', autoBillEnabled)
|
|
..add('customValue1', customValue1)
|
|
..add('customValue2', customValue2)
|
|
..add('customValue3', customValue3)
|
|
..add('customValue4', customValue4)
|
|
..add('customSurcharge1', customSurcharge1)
|
|
..add('customSurcharge2', customSurcharge2)
|
|
..add('customSurcharge3', customSurcharge3)
|
|
..add('customSurcharge4', customSurcharge4)
|
|
..add('customTaxes1', customTaxes1)
|
|
..add('customTaxes2', customTaxes2)
|
|
..add('customTaxes3', customTaxes3)
|
|
..add('customTaxes4', customTaxes4)
|
|
..add('hasExpenses', hasExpenses)
|
|
..add('exchangeRate', exchangeRate)
|
|
..add('reminder1Sent', reminder1Sent)
|
|
..add('reminder2Sent', reminder2Sent)
|
|
..add('reminder3Sent', reminder3Sent)
|
|
..add('reminderLastSent', reminderLastSent)
|
|
..add('frequencyId', frequencyId)
|
|
..add('lastSentDate', lastSentDate)
|
|
..add('nextSendDate', nextSendDate)
|
|
..add('remainingCycles', remainingCycles)
|
|
..add('dueDateDays', dueDateDays)
|
|
..add('invoiceId', invoiceId)
|
|
..add('filename', filename)
|
|
..add('lineItems', lineItems)
|
|
..add('invitations', invitations)
|
|
..add('documents', documents)
|
|
..add('history', history)
|
|
..add('loadedAt', loadedAt)
|
|
..add('isChanged', isChanged)
|
|
..add('createdAt', createdAt)
|
|
..add('updatedAt', updatedAt)
|
|
..add('archivedAt', archivedAt)
|
|
..add('isDeleted', isDeleted)
|
|
..add('createdUserId', createdUserId)
|
|
..add('assignedUserId', assignedUserId)
|
|
..add('entityType', entityType)
|
|
..add('id', id))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class InvoiceEntityBuilder
|
|
implements Builder<InvoiceEntity, InvoiceEntityBuilder> {
|
|
_$InvoiceEntity _$v;
|
|
|
|
double _amount;
|
|
double get amount => _$this._amount;
|
|
set amount(double amount) => _$this._amount = amount;
|
|
|
|
double _balance;
|
|
double get balance => _$this._balance;
|
|
set balance(double balance) => _$this._balance = balance;
|
|
|
|
String _clientId;
|
|
String get clientId => _$this._clientId;
|
|
set clientId(String clientId) => _$this._clientId = clientId;
|
|
|
|
String _statusId;
|
|
String get statusId => _$this._statusId;
|
|
set statusId(String statusId) => _$this._statusId = statusId;
|
|
|
|
String _number;
|
|
String get number => _$this._number;
|
|
set number(String number) => _$this._number = number;
|
|
|
|
double _discount;
|
|
double get discount => _$this._discount;
|
|
set discount(double discount) => _$this._discount = discount;
|
|
|
|
String _poNumber;
|
|
String get poNumber => _$this._poNumber;
|
|
set poNumber(String poNumber) => _$this._poNumber = poNumber;
|
|
|
|
String _date;
|
|
String get date => _$this._date;
|
|
set date(String date) => _$this._date = date;
|
|
|
|
String _dueDate;
|
|
String get dueDate => _$this._dueDate;
|
|
set dueDate(String dueDate) => _$this._dueDate = dueDate;
|
|
|
|
String _publicNotes;
|
|
String get publicNotes => _$this._publicNotes;
|
|
set publicNotes(String publicNotes) => _$this._publicNotes = publicNotes;
|
|
|
|
String _privateNotes;
|
|
String get privateNotes => _$this._privateNotes;
|
|
set privateNotes(String privateNotes) => _$this._privateNotes = privateNotes;
|
|
|
|
String _terms;
|
|
String get terms => _$this._terms;
|
|
set terms(String terms) => _$this._terms = terms;
|
|
|
|
String _footer;
|
|
String get footer => _$this._footer;
|
|
set footer(String footer) => _$this._footer = footer;
|
|
|
|
String _designId;
|
|
String get designId => _$this._designId;
|
|
set designId(String designId) => _$this._designId = designId;
|
|
|
|
bool _usesInclusiveTaxes;
|
|
bool get usesInclusiveTaxes => _$this._usesInclusiveTaxes;
|
|
set usesInclusiveTaxes(bool usesInclusiveTaxes) =>
|
|
_$this._usesInclusiveTaxes = usesInclusiveTaxes;
|
|
|
|
String _taxName1;
|
|
String get taxName1 => _$this._taxName1;
|
|
set taxName1(String taxName1) => _$this._taxName1 = taxName1;
|
|
|
|
double _taxRate1;
|
|
double get taxRate1 => _$this._taxRate1;
|
|
set taxRate1(double taxRate1) => _$this._taxRate1 = taxRate1;
|
|
|
|
String _taxName2;
|
|
String get taxName2 => _$this._taxName2;
|
|
set taxName2(String taxName2) => _$this._taxName2 = taxName2;
|
|
|
|
double _taxRate2;
|
|
double get taxRate2 => _$this._taxRate2;
|
|
set taxRate2(double taxRate2) => _$this._taxRate2 = taxRate2;
|
|
|
|
String _taxName3;
|
|
String get taxName3 => _$this._taxName3;
|
|
set taxName3(String taxName3) => _$this._taxName3 = taxName3;
|
|
|
|
double _taxRate3;
|
|
double get taxRate3 => _$this._taxRate3;
|
|
set taxRate3(double taxRate3) => _$this._taxRate3 = taxRate3;
|
|
|
|
bool _isAmountDiscount;
|
|
bool get isAmountDiscount => _$this._isAmountDiscount;
|
|
set isAmountDiscount(bool isAmountDiscount) =>
|
|
_$this._isAmountDiscount = isAmountDiscount;
|
|
|
|
double _partial;
|
|
double get partial => _$this._partial;
|
|
set partial(double partial) => _$this._partial = partial;
|
|
|
|
double _taxAmount;
|
|
double get taxAmount => _$this._taxAmount;
|
|
set taxAmount(double taxAmount) => _$this._taxAmount = taxAmount;
|
|
|
|
String _partialDueDate;
|
|
String get partialDueDate => _$this._partialDueDate;
|
|
set partialDueDate(String partialDueDate) =>
|
|
_$this._partialDueDate = partialDueDate;
|
|
|
|
bool _hasTasks;
|
|
bool get hasTasks => _$this._hasTasks;
|
|
set hasTasks(bool hasTasks) => _$this._hasTasks = hasTasks;
|
|
|
|
String _autoBill;
|
|
String get autoBill => _$this._autoBill;
|
|
set autoBill(String autoBill) => _$this._autoBill = autoBill;
|
|
|
|
bool _autoBillEnabled;
|
|
bool get autoBillEnabled => _$this._autoBillEnabled;
|
|
set autoBillEnabled(bool autoBillEnabled) =>
|
|
_$this._autoBillEnabled = autoBillEnabled;
|
|
|
|
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;
|
|
|
|
double _customSurcharge1;
|
|
double get customSurcharge1 => _$this._customSurcharge1;
|
|
set customSurcharge1(double customSurcharge1) =>
|
|
_$this._customSurcharge1 = customSurcharge1;
|
|
|
|
double _customSurcharge2;
|
|
double get customSurcharge2 => _$this._customSurcharge2;
|
|
set customSurcharge2(double customSurcharge2) =>
|
|
_$this._customSurcharge2 = customSurcharge2;
|
|
|
|
double _customSurcharge3;
|
|
double get customSurcharge3 => _$this._customSurcharge3;
|
|
set customSurcharge3(double customSurcharge3) =>
|
|
_$this._customSurcharge3 = customSurcharge3;
|
|
|
|
double _customSurcharge4;
|
|
double get customSurcharge4 => _$this._customSurcharge4;
|
|
set customSurcharge4(double customSurcharge4) =>
|
|
_$this._customSurcharge4 = customSurcharge4;
|
|
|
|
bool _customTaxes1;
|
|
bool get customTaxes1 => _$this._customTaxes1;
|
|
set customTaxes1(bool customTaxes1) => _$this._customTaxes1 = customTaxes1;
|
|
|
|
bool _customTaxes2;
|
|
bool get customTaxes2 => _$this._customTaxes2;
|
|
set customTaxes2(bool customTaxes2) => _$this._customTaxes2 = customTaxes2;
|
|
|
|
bool _customTaxes3;
|
|
bool get customTaxes3 => _$this._customTaxes3;
|
|
set customTaxes3(bool customTaxes3) => _$this._customTaxes3 = customTaxes3;
|
|
|
|
bool _customTaxes4;
|
|
bool get customTaxes4 => _$this._customTaxes4;
|
|
set customTaxes4(bool customTaxes4) => _$this._customTaxes4 = customTaxes4;
|
|
|
|
bool _hasExpenses;
|
|
bool get hasExpenses => _$this._hasExpenses;
|
|
set hasExpenses(bool hasExpenses) => _$this._hasExpenses = hasExpenses;
|
|
|
|
double _exchangeRate;
|
|
double get exchangeRate => _$this._exchangeRate;
|
|
set exchangeRate(double exchangeRate) => _$this._exchangeRate = exchangeRate;
|
|
|
|
String _reminder1Sent;
|
|
String get reminder1Sent => _$this._reminder1Sent;
|
|
set reminder1Sent(String reminder1Sent) =>
|
|
_$this._reminder1Sent = reminder1Sent;
|
|
|
|
String _reminder2Sent;
|
|
String get reminder2Sent => _$this._reminder2Sent;
|
|
set reminder2Sent(String reminder2Sent) =>
|
|
_$this._reminder2Sent = reminder2Sent;
|
|
|
|
String _reminder3Sent;
|
|
String get reminder3Sent => _$this._reminder3Sent;
|
|
set reminder3Sent(String reminder3Sent) =>
|
|
_$this._reminder3Sent = reminder3Sent;
|
|
|
|
String _reminderLastSent;
|
|
String get reminderLastSent => _$this._reminderLastSent;
|
|
set reminderLastSent(String reminderLastSent) =>
|
|
_$this._reminderLastSent = reminderLastSent;
|
|
|
|
String _frequencyId;
|
|
String get frequencyId => _$this._frequencyId;
|
|
set frequencyId(String frequencyId) => _$this._frequencyId = frequencyId;
|
|
|
|
String _lastSentDate;
|
|
String get lastSentDate => _$this._lastSentDate;
|
|
set lastSentDate(String lastSentDate) => _$this._lastSentDate = lastSentDate;
|
|
|
|
String _nextSendDate;
|
|
String get nextSendDate => _$this._nextSendDate;
|
|
set nextSendDate(String nextSendDate) => _$this._nextSendDate = nextSendDate;
|
|
|
|
int _remainingCycles;
|
|
int get remainingCycles => _$this._remainingCycles;
|
|
set remainingCycles(int remainingCycles) =>
|
|
_$this._remainingCycles = remainingCycles;
|
|
|
|
String _dueDateDays;
|
|
String get dueDateDays => _$this._dueDateDays;
|
|
set dueDateDays(String dueDateDays) => _$this._dueDateDays = dueDateDays;
|
|
|
|
String _invoiceId;
|
|
String get invoiceId => _$this._invoiceId;
|
|
set invoiceId(String invoiceId) => _$this._invoiceId = invoiceId;
|
|
|
|
String _filename;
|
|
String get filename => _$this._filename;
|
|
set filename(String filename) => _$this._filename = filename;
|
|
|
|
ListBuilder<InvoiceItemEntity> _lineItems;
|
|
ListBuilder<InvoiceItemEntity> get lineItems =>
|
|
_$this._lineItems ??= new ListBuilder<InvoiceItemEntity>();
|
|
set lineItems(ListBuilder<InvoiceItemEntity> lineItems) =>
|
|
_$this._lineItems = lineItems;
|
|
|
|
ListBuilder<InvitationEntity> _invitations;
|
|
ListBuilder<InvitationEntity> get invitations =>
|
|
_$this._invitations ??= new ListBuilder<InvitationEntity>();
|
|
set invitations(ListBuilder<InvitationEntity> invitations) =>
|
|
_$this._invitations = invitations;
|
|
|
|
ListBuilder<DocumentEntity> _documents;
|
|
ListBuilder<DocumentEntity> get documents =>
|
|
_$this._documents ??= new ListBuilder<DocumentEntity>();
|
|
set documents(ListBuilder<DocumentEntity> documents) =>
|
|
_$this._documents = documents;
|
|
|
|
ListBuilder<InvoiceHistoryEntity> _history;
|
|
ListBuilder<InvoiceHistoryEntity> get history =>
|
|
_$this._history ??= new ListBuilder<InvoiceHistoryEntity>();
|
|
set history(ListBuilder<InvoiceHistoryEntity> history) =>
|
|
_$this._history = history;
|
|
|
|
int _loadedAt;
|
|
int get loadedAt => _$this._loadedAt;
|
|
set loadedAt(int loadedAt) => _$this._loadedAt = loadedAt;
|
|
|
|
bool _isChanged;
|
|
bool get isChanged => _$this._isChanged;
|
|
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
|
|
|
int _createdAt;
|
|
int get createdAt => _$this._createdAt;
|
|
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
|
|
|
int _updatedAt;
|
|
int get updatedAt => _$this._updatedAt;
|
|
set updatedAt(int updatedAt) => _$this._updatedAt = updatedAt;
|
|
|
|
int _archivedAt;
|
|
int get archivedAt => _$this._archivedAt;
|
|
set archivedAt(int archivedAt) => _$this._archivedAt = archivedAt;
|
|
|
|
bool _isDeleted;
|
|
bool get isDeleted => _$this._isDeleted;
|
|
set isDeleted(bool isDeleted) => _$this._isDeleted = isDeleted;
|
|
|
|
String _createdUserId;
|
|
String get createdUserId => _$this._createdUserId;
|
|
set createdUserId(String createdUserId) =>
|
|
_$this._createdUserId = createdUserId;
|
|
|
|
String _assignedUserId;
|
|
String get assignedUserId => _$this._assignedUserId;
|
|
set assignedUserId(String assignedUserId) =>
|
|
_$this._assignedUserId = assignedUserId;
|
|
|
|
EntityType _entityType;
|
|
EntityType get entityType => _$this._entityType;
|
|
set entityType(EntityType entityType) => _$this._entityType = entityType;
|
|
|
|
String _id;
|
|
String get id => _$this._id;
|
|
set id(String id) => _$this._id = id;
|
|
|
|
InvoiceEntityBuilder();
|
|
|
|
InvoiceEntityBuilder get _$this {
|
|
if (_$v != null) {
|
|
_amount = _$v.amount;
|
|
_balance = _$v.balance;
|
|
_clientId = _$v.clientId;
|
|
_statusId = _$v.statusId;
|
|
_number = _$v.number;
|
|
_discount = _$v.discount;
|
|
_poNumber = _$v.poNumber;
|
|
_date = _$v.date;
|
|
_dueDate = _$v.dueDate;
|
|
_publicNotes = _$v.publicNotes;
|
|
_privateNotes = _$v.privateNotes;
|
|
_terms = _$v.terms;
|
|
_footer = _$v.footer;
|
|
_designId = _$v.designId;
|
|
_usesInclusiveTaxes = _$v.usesInclusiveTaxes;
|
|
_taxName1 = _$v.taxName1;
|
|
_taxRate1 = _$v.taxRate1;
|
|
_taxName2 = _$v.taxName2;
|
|
_taxRate2 = _$v.taxRate2;
|
|
_taxName3 = _$v.taxName3;
|
|
_taxRate3 = _$v.taxRate3;
|
|
_isAmountDiscount = _$v.isAmountDiscount;
|
|
_partial = _$v.partial;
|
|
_taxAmount = _$v.taxAmount;
|
|
_partialDueDate = _$v.partialDueDate;
|
|
_hasTasks = _$v.hasTasks;
|
|
_autoBill = _$v.autoBill;
|
|
_autoBillEnabled = _$v.autoBillEnabled;
|
|
_customValue1 = _$v.customValue1;
|
|
_customValue2 = _$v.customValue2;
|
|
_customValue3 = _$v.customValue3;
|
|
_customValue4 = _$v.customValue4;
|
|
_customSurcharge1 = _$v.customSurcharge1;
|
|
_customSurcharge2 = _$v.customSurcharge2;
|
|
_customSurcharge3 = _$v.customSurcharge3;
|
|
_customSurcharge4 = _$v.customSurcharge4;
|
|
_customTaxes1 = _$v.customTaxes1;
|
|
_customTaxes2 = _$v.customTaxes2;
|
|
_customTaxes3 = _$v.customTaxes3;
|
|
_customTaxes4 = _$v.customTaxes4;
|
|
_hasExpenses = _$v.hasExpenses;
|
|
_exchangeRate = _$v.exchangeRate;
|
|
_reminder1Sent = _$v.reminder1Sent;
|
|
_reminder2Sent = _$v.reminder2Sent;
|
|
_reminder3Sent = _$v.reminder3Sent;
|
|
_reminderLastSent = _$v.reminderLastSent;
|
|
_frequencyId = _$v.frequencyId;
|
|
_lastSentDate = _$v.lastSentDate;
|
|
_nextSendDate = _$v.nextSendDate;
|
|
_remainingCycles = _$v.remainingCycles;
|
|
_dueDateDays = _$v.dueDateDays;
|
|
_invoiceId = _$v.invoiceId;
|
|
_filename = _$v.filename;
|
|
_lineItems = _$v.lineItems?.toBuilder();
|
|
_invitations = _$v.invitations?.toBuilder();
|
|
_documents = _$v.documents?.toBuilder();
|
|
_history = _$v.history?.toBuilder();
|
|
_loadedAt = _$v.loadedAt;
|
|
_isChanged = _$v.isChanged;
|
|
_createdAt = _$v.createdAt;
|
|
_updatedAt = _$v.updatedAt;
|
|
_archivedAt = _$v.archivedAt;
|
|
_isDeleted = _$v.isDeleted;
|
|
_createdUserId = _$v.createdUserId;
|
|
_assignedUserId = _$v.assignedUserId;
|
|
_entityType = _$v.entityType;
|
|
_id = _$v.id;
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(InvoiceEntity other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$InvoiceEntity;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(InvoiceEntityBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$InvoiceEntity build() {
|
|
_$InvoiceEntity _$result;
|
|
try {
|
|
_$result = _$v ??
|
|
new _$InvoiceEntity._(
|
|
amount: amount,
|
|
balance: balance,
|
|
clientId: clientId,
|
|
statusId: statusId,
|
|
number: number,
|
|
discount: discount,
|
|
poNumber: poNumber,
|
|
date: date,
|
|
dueDate: dueDate,
|
|
publicNotes: publicNotes,
|
|
privateNotes: privateNotes,
|
|
terms: terms,
|
|
footer: footer,
|
|
designId: designId,
|
|
usesInclusiveTaxes: usesInclusiveTaxes,
|
|
taxName1: taxName1,
|
|
taxRate1: taxRate1,
|
|
taxName2: taxName2,
|
|
taxRate2: taxRate2,
|
|
taxName3: taxName3,
|
|
taxRate3: taxRate3,
|
|
isAmountDiscount: isAmountDiscount,
|
|
partial: partial,
|
|
taxAmount: taxAmount,
|
|
partialDueDate: partialDueDate,
|
|
hasTasks: hasTasks,
|
|
autoBill: autoBill,
|
|
autoBillEnabled: autoBillEnabled,
|
|
customValue1: customValue1,
|
|
customValue2: customValue2,
|
|
customValue3: customValue3,
|
|
customValue4: customValue4,
|
|
customSurcharge1: customSurcharge1,
|
|
customSurcharge2: customSurcharge2,
|
|
customSurcharge3: customSurcharge3,
|
|
customSurcharge4: customSurcharge4,
|
|
customTaxes1: customTaxes1,
|
|
customTaxes2: customTaxes2,
|
|
customTaxes3: customTaxes3,
|
|
customTaxes4: customTaxes4,
|
|
hasExpenses: hasExpenses,
|
|
exchangeRate: exchangeRate,
|
|
reminder1Sent: reminder1Sent,
|
|
reminder2Sent: reminder2Sent,
|
|
reminder3Sent: reminder3Sent,
|
|
reminderLastSent: reminderLastSent,
|
|
frequencyId: frequencyId,
|
|
lastSentDate: lastSentDate,
|
|
nextSendDate: nextSendDate,
|
|
remainingCycles: remainingCycles,
|
|
dueDateDays: dueDateDays,
|
|
invoiceId: invoiceId,
|
|
filename: filename,
|
|
lineItems: lineItems.build(),
|
|
invitations: invitations.build(),
|
|
documents: documents.build(),
|
|
history: _history?.build(),
|
|
loadedAt: loadedAt,
|
|
isChanged: isChanged,
|
|
createdAt: createdAt,
|
|
updatedAt: updatedAt,
|
|
archivedAt: archivedAt,
|
|
isDeleted: isDeleted,
|
|
createdUserId: createdUserId,
|
|
assignedUserId: assignedUserId,
|
|
entityType: entityType,
|
|
id: id);
|
|
} catch (_) {
|
|
String _$failedField;
|
|
try {
|
|
_$failedField = 'lineItems';
|
|
lineItems.build();
|
|
_$failedField = 'invitations';
|
|
invitations.build();
|
|
_$failedField = 'documents';
|
|
documents.build();
|
|
_$failedField = 'history';
|
|
_history?.build();
|
|
} catch (e) {
|
|
throw new BuiltValueNestedFieldError(
|
|
'InvoiceEntity', _$failedField, e.toString());
|
|
}
|
|
rethrow;
|
|
}
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
class _$InvoiceItemEntity extends InvoiceItemEntity {
|
|
@override
|
|
final String productKey;
|
|
@override
|
|
final String notes;
|
|
@override
|
|
final double cost;
|
|
@override
|
|
final double quantity;
|
|
@override
|
|
final String taxName1;
|
|
@override
|
|
final double taxRate1;
|
|
@override
|
|
final String taxName2;
|
|
@override
|
|
final double taxRate2;
|
|
@override
|
|
final String taxName3;
|
|
@override
|
|
final double taxRate3;
|
|
@override
|
|
final String typeId;
|
|
@override
|
|
final String customValue1;
|
|
@override
|
|
final String customValue2;
|
|
@override
|
|
final String customValue3;
|
|
@override
|
|
final String customValue4;
|
|
@override
|
|
final double discount;
|
|
@override
|
|
final String taskId;
|
|
@override
|
|
final String expenseId;
|
|
@override
|
|
final int createdAt;
|
|
|
|
factory _$InvoiceItemEntity(
|
|
[void Function(InvoiceItemEntityBuilder) updates]) =>
|
|
(new InvoiceItemEntityBuilder()..update(updates)).build();
|
|
|
|
_$InvoiceItemEntity._(
|
|
{this.productKey,
|
|
this.notes,
|
|
this.cost,
|
|
this.quantity,
|
|
this.taxName1,
|
|
this.taxRate1,
|
|
this.taxName2,
|
|
this.taxRate2,
|
|
this.taxName3,
|
|
this.taxRate3,
|
|
this.typeId,
|
|
this.customValue1,
|
|
this.customValue2,
|
|
this.customValue3,
|
|
this.customValue4,
|
|
this.discount,
|
|
this.taskId,
|
|
this.expenseId,
|
|
this.createdAt})
|
|
: super._() {
|
|
if (productKey == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'productKey');
|
|
}
|
|
if (notes == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'notes');
|
|
}
|
|
if (cost == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'cost');
|
|
}
|
|
if (quantity == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'quantity');
|
|
}
|
|
if (taxName1 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'taxName1');
|
|
}
|
|
if (taxRate1 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'taxRate1');
|
|
}
|
|
if (taxName2 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'taxName2');
|
|
}
|
|
if (taxRate2 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'taxRate2');
|
|
}
|
|
if (taxName3 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'taxName3');
|
|
}
|
|
if (taxRate3 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'taxRate3');
|
|
}
|
|
if (customValue1 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'customValue1');
|
|
}
|
|
if (customValue2 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'customValue2');
|
|
}
|
|
if (customValue3 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'customValue3');
|
|
}
|
|
if (customValue4 == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'customValue4');
|
|
}
|
|
if (discount == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceItemEntity', 'discount');
|
|
}
|
|
}
|
|
|
|
@override
|
|
InvoiceItemEntity rebuild(void Function(InvoiceItemEntityBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
InvoiceItemEntityBuilder toBuilder() =>
|
|
new InvoiceItemEntityBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is InvoiceItemEntity &&
|
|
productKey == other.productKey &&
|
|
notes == other.notes &&
|
|
cost == other.cost &&
|
|
quantity == other.quantity &&
|
|
taxName1 == other.taxName1 &&
|
|
taxRate1 == other.taxRate1 &&
|
|
taxName2 == other.taxName2 &&
|
|
taxRate2 == other.taxRate2 &&
|
|
taxName3 == other.taxName3 &&
|
|
taxRate3 == other.taxRate3 &&
|
|
typeId == other.typeId &&
|
|
customValue1 == other.customValue1 &&
|
|
customValue2 == other.customValue2 &&
|
|
customValue3 == other.customValue3 &&
|
|
customValue4 == other.customValue4 &&
|
|
discount == other.discount &&
|
|
taskId == other.taskId &&
|
|
expenseId == other.expenseId &&
|
|
createdAt == other.createdAt;
|
|
}
|
|
|
|
int __hashCode;
|
|
@override
|
|
int get hashCode {
|
|
return __hashCode ??= $jf($jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
0,
|
|
productKey
|
|
.hashCode),
|
|
notes
|
|
.hashCode),
|
|
cost
|
|
.hashCode),
|
|
quantity
|
|
.hashCode),
|
|
taxName1
|
|
.hashCode),
|
|
taxRate1.hashCode),
|
|
taxName2.hashCode),
|
|
taxRate2.hashCode),
|
|
taxName3.hashCode),
|
|
taxRate3.hashCode),
|
|
typeId.hashCode),
|
|
customValue1.hashCode),
|
|
customValue2.hashCode),
|
|
customValue3.hashCode),
|
|
customValue4.hashCode),
|
|
discount.hashCode),
|
|
taskId.hashCode),
|
|
expenseId.hashCode),
|
|
createdAt.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('InvoiceItemEntity')
|
|
..add('productKey', productKey)
|
|
..add('notes', notes)
|
|
..add('cost', cost)
|
|
..add('quantity', quantity)
|
|
..add('taxName1', taxName1)
|
|
..add('taxRate1', taxRate1)
|
|
..add('taxName2', taxName2)
|
|
..add('taxRate2', taxRate2)
|
|
..add('taxName3', taxName3)
|
|
..add('taxRate3', taxRate3)
|
|
..add('typeId', typeId)
|
|
..add('customValue1', customValue1)
|
|
..add('customValue2', customValue2)
|
|
..add('customValue3', customValue3)
|
|
..add('customValue4', customValue4)
|
|
..add('discount', discount)
|
|
..add('taskId', taskId)
|
|
..add('expenseId', expenseId)
|
|
..add('createdAt', createdAt))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class InvoiceItemEntityBuilder
|
|
implements Builder<InvoiceItemEntity, InvoiceItemEntityBuilder> {
|
|
_$InvoiceItemEntity _$v;
|
|
|
|
String _productKey;
|
|
String get productKey => _$this._productKey;
|
|
set productKey(String productKey) => _$this._productKey = productKey;
|
|
|
|
String _notes;
|
|
String get notes => _$this._notes;
|
|
set notes(String notes) => _$this._notes = notes;
|
|
|
|
double _cost;
|
|
double get cost => _$this._cost;
|
|
set cost(double cost) => _$this._cost = cost;
|
|
|
|
double _quantity;
|
|
double get quantity => _$this._quantity;
|
|
set quantity(double quantity) => _$this._quantity = quantity;
|
|
|
|
String _taxName1;
|
|
String get taxName1 => _$this._taxName1;
|
|
set taxName1(String taxName1) => _$this._taxName1 = taxName1;
|
|
|
|
double _taxRate1;
|
|
double get taxRate1 => _$this._taxRate1;
|
|
set taxRate1(double taxRate1) => _$this._taxRate1 = taxRate1;
|
|
|
|
String _taxName2;
|
|
String get taxName2 => _$this._taxName2;
|
|
set taxName2(String taxName2) => _$this._taxName2 = taxName2;
|
|
|
|
double _taxRate2;
|
|
double get taxRate2 => _$this._taxRate2;
|
|
set taxRate2(double taxRate2) => _$this._taxRate2 = taxRate2;
|
|
|
|
String _taxName3;
|
|
String get taxName3 => _$this._taxName3;
|
|
set taxName3(String taxName3) => _$this._taxName3 = taxName3;
|
|
|
|
double _taxRate3;
|
|
double get taxRate3 => _$this._taxRate3;
|
|
set taxRate3(double taxRate3) => _$this._taxRate3 = taxRate3;
|
|
|
|
String _typeId;
|
|
String get typeId => _$this._typeId;
|
|
set typeId(String typeId) => _$this._typeId = typeId;
|
|
|
|
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;
|
|
|
|
double _discount;
|
|
double get discount => _$this._discount;
|
|
set discount(double discount) => _$this._discount = discount;
|
|
|
|
String _taskId;
|
|
String get taskId => _$this._taskId;
|
|
set taskId(String taskId) => _$this._taskId = taskId;
|
|
|
|
String _expenseId;
|
|
String get expenseId => _$this._expenseId;
|
|
set expenseId(String expenseId) => _$this._expenseId = expenseId;
|
|
|
|
int _createdAt;
|
|
int get createdAt => _$this._createdAt;
|
|
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
|
|
|
InvoiceItemEntityBuilder();
|
|
|
|
InvoiceItemEntityBuilder get _$this {
|
|
if (_$v != null) {
|
|
_productKey = _$v.productKey;
|
|
_notes = _$v.notes;
|
|
_cost = _$v.cost;
|
|
_quantity = _$v.quantity;
|
|
_taxName1 = _$v.taxName1;
|
|
_taxRate1 = _$v.taxRate1;
|
|
_taxName2 = _$v.taxName2;
|
|
_taxRate2 = _$v.taxRate2;
|
|
_taxName3 = _$v.taxName3;
|
|
_taxRate3 = _$v.taxRate3;
|
|
_typeId = _$v.typeId;
|
|
_customValue1 = _$v.customValue1;
|
|
_customValue2 = _$v.customValue2;
|
|
_customValue3 = _$v.customValue3;
|
|
_customValue4 = _$v.customValue4;
|
|
_discount = _$v.discount;
|
|
_taskId = _$v.taskId;
|
|
_expenseId = _$v.expenseId;
|
|
_createdAt = _$v.createdAt;
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(InvoiceItemEntity other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$InvoiceItemEntity;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(InvoiceItemEntityBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$InvoiceItemEntity build() {
|
|
final _$result = _$v ??
|
|
new _$InvoiceItemEntity._(
|
|
productKey: productKey,
|
|
notes: notes,
|
|
cost: cost,
|
|
quantity: quantity,
|
|
taxName1: taxName1,
|
|
taxRate1: taxRate1,
|
|
taxName2: taxName2,
|
|
taxRate2: taxRate2,
|
|
taxName3: taxName3,
|
|
taxRate3: taxRate3,
|
|
typeId: typeId,
|
|
customValue1: customValue1,
|
|
customValue2: customValue2,
|
|
customValue3: customValue3,
|
|
customValue4: customValue4,
|
|
discount: discount,
|
|
taskId: taskId,
|
|
expenseId: expenseId,
|
|
createdAt: createdAt);
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
class _$InvitationEntity extends InvitationEntity {
|
|
@override
|
|
final String key;
|
|
@override
|
|
final String link;
|
|
@override
|
|
final String contactId;
|
|
@override
|
|
final String sentDate;
|
|
@override
|
|
final String viewedDate;
|
|
@override
|
|
final String openedDate;
|
|
@override
|
|
final bool isChanged;
|
|
@override
|
|
final int createdAt;
|
|
@override
|
|
final int updatedAt;
|
|
@override
|
|
final int archivedAt;
|
|
@override
|
|
final bool isDeleted;
|
|
@override
|
|
final String createdUserId;
|
|
@override
|
|
final String assignedUserId;
|
|
@override
|
|
final EntityType entityType;
|
|
@override
|
|
final String id;
|
|
|
|
factory _$InvitationEntity(
|
|
[void Function(InvitationEntityBuilder) updates]) =>
|
|
(new InvitationEntityBuilder()..update(updates)).build();
|
|
|
|
_$InvitationEntity._(
|
|
{this.key,
|
|
this.link,
|
|
this.contactId,
|
|
this.sentDate,
|
|
this.viewedDate,
|
|
this.openedDate,
|
|
this.isChanged,
|
|
this.createdAt,
|
|
this.updatedAt,
|
|
this.archivedAt,
|
|
this.isDeleted,
|
|
this.createdUserId,
|
|
this.assignedUserId,
|
|
this.entityType,
|
|
this.id})
|
|
: super._() {
|
|
if (key == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'key');
|
|
}
|
|
if (link == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'link');
|
|
}
|
|
if (contactId == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'contactId');
|
|
}
|
|
if (sentDate == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'sentDate');
|
|
}
|
|
if (viewedDate == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'viewedDate');
|
|
}
|
|
if (openedDate == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'openedDate');
|
|
}
|
|
if (createdAt == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'createdAt');
|
|
}
|
|
if (updatedAt == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'updatedAt');
|
|
}
|
|
if (archivedAt == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'archivedAt');
|
|
}
|
|
if (id == null) {
|
|
throw new BuiltValueNullFieldError('InvitationEntity', 'id');
|
|
}
|
|
}
|
|
|
|
@override
|
|
InvitationEntity rebuild(void Function(InvitationEntityBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
InvitationEntityBuilder toBuilder() =>
|
|
new InvitationEntityBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is InvitationEntity &&
|
|
key == other.key &&
|
|
link == other.link &&
|
|
contactId == other.contactId &&
|
|
sentDate == other.sentDate &&
|
|
viewedDate == other.viewedDate &&
|
|
openedDate == other.openedDate &&
|
|
isChanged == other.isChanged &&
|
|
createdAt == other.createdAt &&
|
|
updatedAt == other.updatedAt &&
|
|
archivedAt == other.archivedAt &&
|
|
isDeleted == other.isDeleted &&
|
|
createdUserId == other.createdUserId &&
|
|
assignedUserId == other.assignedUserId &&
|
|
entityType == other.entityType &&
|
|
id == other.id;
|
|
}
|
|
|
|
int __hashCode;
|
|
@override
|
|
int get hashCode {
|
|
return __hashCode ??= $jf($jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(
|
|
$jc(0,
|
|
key.hashCode),
|
|
link.hashCode),
|
|
contactId.hashCode),
|
|
sentDate.hashCode),
|
|
viewedDate.hashCode),
|
|
openedDate.hashCode),
|
|
isChanged.hashCode),
|
|
createdAt.hashCode),
|
|
updatedAt.hashCode),
|
|
archivedAt.hashCode),
|
|
isDeleted.hashCode),
|
|
createdUserId.hashCode),
|
|
assignedUserId.hashCode),
|
|
entityType.hashCode),
|
|
id.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('InvitationEntity')
|
|
..add('key', key)
|
|
..add('link', link)
|
|
..add('contactId', contactId)
|
|
..add('sentDate', sentDate)
|
|
..add('viewedDate', viewedDate)
|
|
..add('openedDate', openedDate)
|
|
..add('isChanged', isChanged)
|
|
..add('createdAt', createdAt)
|
|
..add('updatedAt', updatedAt)
|
|
..add('archivedAt', archivedAt)
|
|
..add('isDeleted', isDeleted)
|
|
..add('createdUserId', createdUserId)
|
|
..add('assignedUserId', assignedUserId)
|
|
..add('entityType', entityType)
|
|
..add('id', id))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class InvitationEntityBuilder
|
|
implements Builder<InvitationEntity, InvitationEntityBuilder> {
|
|
_$InvitationEntity _$v;
|
|
|
|
String _key;
|
|
String get key => _$this._key;
|
|
set key(String key) => _$this._key = key;
|
|
|
|
String _link;
|
|
String get link => _$this._link;
|
|
set link(String link) => _$this._link = link;
|
|
|
|
String _contactId;
|
|
String get contactId => _$this._contactId;
|
|
set contactId(String contactId) => _$this._contactId = contactId;
|
|
|
|
String _sentDate;
|
|
String get sentDate => _$this._sentDate;
|
|
set sentDate(String sentDate) => _$this._sentDate = sentDate;
|
|
|
|
String _viewedDate;
|
|
String get viewedDate => _$this._viewedDate;
|
|
set viewedDate(String viewedDate) => _$this._viewedDate = viewedDate;
|
|
|
|
String _openedDate;
|
|
String get openedDate => _$this._openedDate;
|
|
set openedDate(String openedDate) => _$this._openedDate = openedDate;
|
|
|
|
bool _isChanged;
|
|
bool get isChanged => _$this._isChanged;
|
|
set isChanged(bool isChanged) => _$this._isChanged = isChanged;
|
|
|
|
int _createdAt;
|
|
int get createdAt => _$this._createdAt;
|
|
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
|
|
|
int _updatedAt;
|
|
int get updatedAt => _$this._updatedAt;
|
|
set updatedAt(int updatedAt) => _$this._updatedAt = updatedAt;
|
|
|
|
int _archivedAt;
|
|
int get archivedAt => _$this._archivedAt;
|
|
set archivedAt(int archivedAt) => _$this._archivedAt = archivedAt;
|
|
|
|
bool _isDeleted;
|
|
bool get isDeleted => _$this._isDeleted;
|
|
set isDeleted(bool isDeleted) => _$this._isDeleted = isDeleted;
|
|
|
|
String _createdUserId;
|
|
String get createdUserId => _$this._createdUserId;
|
|
set createdUserId(String createdUserId) =>
|
|
_$this._createdUserId = createdUserId;
|
|
|
|
String _assignedUserId;
|
|
String get assignedUserId => _$this._assignedUserId;
|
|
set assignedUserId(String assignedUserId) =>
|
|
_$this._assignedUserId = assignedUserId;
|
|
|
|
EntityType _entityType;
|
|
EntityType get entityType => _$this._entityType;
|
|
set entityType(EntityType entityType) => _$this._entityType = entityType;
|
|
|
|
String _id;
|
|
String get id => _$this._id;
|
|
set id(String id) => _$this._id = id;
|
|
|
|
InvitationEntityBuilder();
|
|
|
|
InvitationEntityBuilder get _$this {
|
|
if (_$v != null) {
|
|
_key = _$v.key;
|
|
_link = _$v.link;
|
|
_contactId = _$v.contactId;
|
|
_sentDate = _$v.sentDate;
|
|
_viewedDate = _$v.viewedDate;
|
|
_openedDate = _$v.openedDate;
|
|
_isChanged = _$v.isChanged;
|
|
_createdAt = _$v.createdAt;
|
|
_updatedAt = _$v.updatedAt;
|
|
_archivedAt = _$v.archivedAt;
|
|
_isDeleted = _$v.isDeleted;
|
|
_createdUserId = _$v.createdUserId;
|
|
_assignedUserId = _$v.assignedUserId;
|
|
_entityType = _$v.entityType;
|
|
_id = _$v.id;
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(InvitationEntity other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$InvitationEntity;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(InvitationEntityBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$InvitationEntity build() {
|
|
final _$result = _$v ??
|
|
new _$InvitationEntity._(
|
|
key: key,
|
|
link: link,
|
|
contactId: contactId,
|
|
sentDate: sentDate,
|
|
viewedDate: viewedDate,
|
|
openedDate: openedDate,
|
|
isChanged: isChanged,
|
|
createdAt: createdAt,
|
|
updatedAt: updatedAt,
|
|
archivedAt: archivedAt,
|
|
isDeleted: isDeleted,
|
|
createdUserId: createdUserId,
|
|
assignedUserId: assignedUserId,
|
|
entityType: entityType,
|
|
id: id);
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
class _$InvoiceHistoryEntity extends InvoiceHistoryEntity {
|
|
@override
|
|
final String id;
|
|
@override
|
|
final ActivityEntity activity;
|
|
@override
|
|
final String activityId;
|
|
@override
|
|
final String htmlBackup;
|
|
@override
|
|
final int createdAt;
|
|
@override
|
|
final double amount;
|
|
|
|
factory _$InvoiceHistoryEntity(
|
|
[void Function(InvoiceHistoryEntityBuilder) updates]) =>
|
|
(new InvoiceHistoryEntityBuilder()..update(updates)).build();
|
|
|
|
_$InvoiceHistoryEntity._(
|
|
{this.id,
|
|
this.activity,
|
|
this.activityId,
|
|
this.htmlBackup,
|
|
this.createdAt,
|
|
this.amount})
|
|
: super._() {
|
|
if (id == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceHistoryEntity', 'id');
|
|
}
|
|
if (activity == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceHistoryEntity', 'activity');
|
|
}
|
|
if (activityId == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceHistoryEntity', 'activityId');
|
|
}
|
|
if (htmlBackup == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceHistoryEntity', 'htmlBackup');
|
|
}
|
|
if (createdAt == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceHistoryEntity', 'createdAt');
|
|
}
|
|
if (amount == null) {
|
|
throw new BuiltValueNullFieldError('InvoiceHistoryEntity', 'amount');
|
|
}
|
|
}
|
|
|
|
@override
|
|
InvoiceHistoryEntity rebuild(
|
|
void Function(InvoiceHistoryEntityBuilder) updates) =>
|
|
(toBuilder()..update(updates)).build();
|
|
|
|
@override
|
|
InvoiceHistoryEntityBuilder toBuilder() =>
|
|
new InvoiceHistoryEntityBuilder()..replace(this);
|
|
|
|
@override
|
|
bool operator ==(Object other) {
|
|
if (identical(other, this)) return true;
|
|
return other is InvoiceHistoryEntity &&
|
|
id == other.id &&
|
|
activity == other.activity &&
|
|
activityId == other.activityId &&
|
|
htmlBackup == other.htmlBackup &&
|
|
createdAt == other.createdAt &&
|
|
amount == other.amount;
|
|
}
|
|
|
|
int __hashCode;
|
|
@override
|
|
int get hashCode {
|
|
return __hashCode ??= $jf($jc(
|
|
$jc(
|
|
$jc(
|
|
$jc($jc($jc(0, id.hashCode), activity.hashCode),
|
|
activityId.hashCode),
|
|
htmlBackup.hashCode),
|
|
createdAt.hashCode),
|
|
amount.hashCode));
|
|
}
|
|
|
|
@override
|
|
String toString() {
|
|
return (newBuiltValueToStringHelper('InvoiceHistoryEntity')
|
|
..add('id', id)
|
|
..add('activity', activity)
|
|
..add('activityId', activityId)
|
|
..add('htmlBackup', htmlBackup)
|
|
..add('createdAt', createdAt)
|
|
..add('amount', amount))
|
|
.toString();
|
|
}
|
|
}
|
|
|
|
class InvoiceHistoryEntityBuilder
|
|
implements Builder<InvoiceHistoryEntity, InvoiceHistoryEntityBuilder> {
|
|
_$InvoiceHistoryEntity _$v;
|
|
|
|
String _id;
|
|
String get id => _$this._id;
|
|
set id(String id) => _$this._id = id;
|
|
|
|
ActivityEntityBuilder _activity;
|
|
ActivityEntityBuilder get activity =>
|
|
_$this._activity ??= new ActivityEntityBuilder();
|
|
set activity(ActivityEntityBuilder activity) => _$this._activity = activity;
|
|
|
|
String _activityId;
|
|
String get activityId => _$this._activityId;
|
|
set activityId(String activityId) => _$this._activityId = activityId;
|
|
|
|
String _htmlBackup;
|
|
String get htmlBackup => _$this._htmlBackup;
|
|
set htmlBackup(String htmlBackup) => _$this._htmlBackup = htmlBackup;
|
|
|
|
int _createdAt;
|
|
int get createdAt => _$this._createdAt;
|
|
set createdAt(int createdAt) => _$this._createdAt = createdAt;
|
|
|
|
double _amount;
|
|
double get amount => _$this._amount;
|
|
set amount(double amount) => _$this._amount = amount;
|
|
|
|
InvoiceHistoryEntityBuilder();
|
|
|
|
InvoiceHistoryEntityBuilder get _$this {
|
|
if (_$v != null) {
|
|
_id = _$v.id;
|
|
_activity = _$v.activity?.toBuilder();
|
|
_activityId = _$v.activityId;
|
|
_htmlBackup = _$v.htmlBackup;
|
|
_createdAt = _$v.createdAt;
|
|
_amount = _$v.amount;
|
|
_$v = null;
|
|
}
|
|
return this;
|
|
}
|
|
|
|
@override
|
|
void replace(InvoiceHistoryEntity other) {
|
|
if (other == null) {
|
|
throw new ArgumentError.notNull('other');
|
|
}
|
|
_$v = other as _$InvoiceHistoryEntity;
|
|
}
|
|
|
|
@override
|
|
void update(void Function(InvoiceHistoryEntityBuilder) updates) {
|
|
if (updates != null) updates(this);
|
|
}
|
|
|
|
@override
|
|
_$InvoiceHistoryEntity build() {
|
|
_$InvoiceHistoryEntity _$result;
|
|
try {
|
|
_$result = _$v ??
|
|
new _$InvoiceHistoryEntity._(
|
|
id: id,
|
|
activity: activity.build(),
|
|
activityId: activityId,
|
|
htmlBackup: htmlBackup,
|
|
createdAt: createdAt,
|
|
amount: amount);
|
|
} catch (_) {
|
|
String _$failedField;
|
|
try {
|
|
_$failedField = 'activity';
|
|
activity.build();
|
|
} catch (e) {
|
|
throw new BuiltValueNestedFieldError(
|
|
'InvoiceHistoryEntity', _$failedField, e.toString());
|
|
}
|
|
rethrow;
|
|
}
|
|
replace(_$result);
|
|
return _$result;
|
|
}
|
|
}
|
|
|
|
// ignore_for_file: always_put_control_body_on_new_line,always_specify_types,annotate_overrides,avoid_annotating_with_dynamic,avoid_as,avoid_catches_without_on_clauses,avoid_returning_this,lines_longer_than_80_chars,omit_local_variable_types,prefer_expression_function_bodies,sort_constructors_first,test_types_in_equals,unnecessary_const,unnecessary_new
|