refactor shipping attachments and changed shipment to shipping for coherence
This commit is contained in:
@@ -8,6 +8,7 @@ class AttachmentModel extends Equatable {
|
||||
final String? customerId;
|
||||
final String? operationId;
|
||||
final String? ticketId;
|
||||
final String? shippingDocumentId;
|
||||
final String name;
|
||||
final String extension;
|
||||
final String? storagePath;
|
||||
@@ -21,6 +22,7 @@ class AttachmentModel extends Equatable {
|
||||
this.customerId,
|
||||
this.operationId,
|
||||
this.ticketId,
|
||||
this.shippingDocumentId,
|
||||
required this.name,
|
||||
required this.extension,
|
||||
this.storagePath,
|
||||
@@ -36,6 +38,7 @@ class AttachmentModel extends Equatable {
|
||||
customerId,
|
||||
operationId,
|
||||
ticketId,
|
||||
shippingDocumentId,
|
||||
name,
|
||||
extension,
|
||||
storagePath,
|
||||
@@ -63,6 +66,7 @@ class AttachmentModel extends Equatable {
|
||||
String? customerId,
|
||||
String? operationId,
|
||||
String? ticketId,
|
||||
String? shippingDocumentId,
|
||||
String? name,
|
||||
String? extension,
|
||||
String? storagePath,
|
||||
@@ -75,6 +79,7 @@ class AttachmentModel extends Equatable {
|
||||
customerId: customerId ?? this.customerId,
|
||||
operationId: operationId ?? this.operationId,
|
||||
ticketId: ticketId ?? this.ticketId,
|
||||
shippingDocumentId: shippingDocumentId ?? this.shippingDocumentId,
|
||||
name: name ?? this.name,
|
||||
extension: extension ?? this.extension,
|
||||
storagePath: storagePath ?? this.storagePath,
|
||||
@@ -92,6 +97,7 @@ class AttachmentModel extends Equatable {
|
||||
customerId: map['customer_id'] as String?,
|
||||
operationId: map['operation_id'] as String?,
|
||||
ticketId: map['ticket_id'] as String?,
|
||||
shippingDocumentId: map['shipping_document_id'] as String?,
|
||||
name: map['name'] as String,
|
||||
extension: map['extension'] as String,
|
||||
storagePath: map['storage_path'] as String?,
|
||||
@@ -111,6 +117,7 @@ class AttachmentModel extends Equatable {
|
||||
'customer_id': customerId,
|
||||
'operation_id': operationId,
|
||||
'ticket_id': ticketId,
|
||||
'shipping_document_id': shippingDocumentId,
|
||||
'file_size': fileSize,
|
||||
'company_id': companyId,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user