update order detail
This commit is contained in:
@@ -24,8 +24,8 @@ class OrderDetail extends Equatable {
|
||||
final List<OrderItemDetail> items;
|
||||
final PaymentTermsInfo paymentTerms;
|
||||
final List<TimelineItem> timeline;
|
||||
final List<dynamic> payments; // Payment entities can be added later
|
||||
final List<dynamic> invoices; // Invoice entities can be added later
|
||||
final List<PaymentInfo> payments;
|
||||
final List<InvoiceInfo> invoices;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
@@ -219,3 +219,35 @@ class TimelineItem extends Equatable {
|
||||
@override
|
||||
List<Object?> get props => [label, value, status];
|
||||
}
|
||||
|
||||
/// Payment Info
|
||||
class PaymentInfo extends Equatable {
|
||||
const PaymentInfo({
|
||||
required this.name,
|
||||
required this.creationDate,
|
||||
required this.amount,
|
||||
});
|
||||
|
||||
final String name;
|
||||
final String creationDate;
|
||||
final double amount;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [name, creationDate, amount];
|
||||
}
|
||||
|
||||
/// Invoice Info
|
||||
class InvoiceInfo extends Equatable {
|
||||
const InvoiceInfo({
|
||||
required this.name,
|
||||
required this.postingDate,
|
||||
required this.grandTotal,
|
||||
});
|
||||
|
||||
final String name;
|
||||
final String postingDate;
|
||||
final double grandTotal;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [name, postingDate, grandTotal];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user