invoice/lib/data/models/quote_model.dart

66 lines
2.3 KiB
Dart

import 'package:built_collection/built_collection.dart';
import 'package:built_value/built_value.dart';
import 'package:built_value/serializer.dart';
import 'package:invoiceninja_flutter/data/models/models.dart';
part 'quote_model.g.dart';
abstract class QuoteListResponse
implements Built<QuoteListResponse, QuoteListResponseBuilder> {
factory QuoteListResponse([void updates(QuoteListResponseBuilder b)]) =
_$QuoteListResponse;
QuoteListResponse._();
BuiltList<InvoiceEntity> get data;
static Serializer<QuoteListResponse> get serializer =>
_$quoteListResponseSerializer;
}
abstract class QuoteItemResponse
implements Built<QuoteItemResponse, QuoteItemResponseBuilder> {
factory QuoteItemResponse([void updates(QuoteItemResponseBuilder b)]) =
_$QuoteItemResponse;
QuoteItemResponse._();
InvoiceEntity get data;
static Serializer<QuoteItemResponse> get serializer =>
_$quoteItemResponseSerializer;
}
class QuoteFields {
static const String amount = 'amount';
static const String balance = 'balance';
static const String clientId = 'clientId';
static const String client = 'client';
static const String statusId = 'statusId';
static const String number = 'number';
static const String discount = 'discount';
static const String poNumber = 'poNumber';
static const String date = 'date';
static const String validUntil = 'validUntil';
static const String terms = 'terms';
static const String footer = 'invoiceFooter';
static const String partial = 'partial';
static const String partialDueDate = 'partialDueDate';
static const String publicNotes = 'publicNotes';
static const String privateNotes = 'privateNotes';
static const String invoiceTypeId = 'invoiceTypeId';
static const String isRecurring = 'isRecurring';
static const String frequencyId = 'frequencyId';
static const String startDate = 'startDate';
static const String endDate = 'endDate';
static const String customValue1 = 'customValue1';
static const String customValue2 = 'customValue2';
static const String customValue3 = 'customValue3';
static const String customValue4 = 'customValue4';
static const String updatedAt = 'updatedAt';
static const String archivedAt = 'archivedAt';
static const String isDeleted = 'isDeleted';
}