diff --git a/CHANGELOG.md b/CHANGELOG.md index 4231988..5babb01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 3.8.9 + +- Added new value `NFE_CHANGED` in `AtsPurchaseOrderStatus` enum +- Added new value `checkInAt` in `AtsOperation` model + ## 3.8.8 - Fixed `casesMonitorConfig` type in `Workspace` model to be a list of nullable `CaseMonitorCard?` instead of non-nullable `CaseMonitorCard`. diff --git a/lib/src/ats/ats.freezed.dart b/lib/src/ats/ats.freezed.dart index 9c5a5dc..e977fe7 100644 --- a/lib/src/ats/ats.freezed.dart +++ b/lib/src/ats/ats.freezed.dart @@ -13159,7 +13159,8 @@ mixin _$AtsOperation { @TimestampOrNullConverter() DateTime? get terminalExitAt;/// [mdfeId] is the ID of the MDF-e linked to the operation. String? get mdfeId;/// [mdfe] is the MDF-e linked to the operation. AtsMdfe? get mdfe;/// [mdfes] is the list of MDF-e linked to the operation. - List? get mdfes; + List? get mdfes;/// [checkInAt] is the timestamp of the check-in. +@TimestampOrNullConverter() DateTime? get checkInAt; /// Create a copy of AtsOperation /// with the given fields replaced by the non-null parameter values. @JsonKey(includeFromJson: false, includeToJson: false) @@ -13172,16 +13173,16 @@ $AtsOperationCopyWith get copyWith => _$AtsOperationCopyWithImpl Object.hashAll([runtimeType,id,sellerAssetId,transportAssetId,transportCompanyAssetId,purchasedAt,createdAt,finishedAt,pendingToReview,const DeepCollectionEquality().hash(ordersIds),sellerAsset,transportAsset,transportCompanyAsset,sellerInformation,transportInformation,orderStatus,category,deliverCategory,const DeepCollectionEquality().hash(purchaseOrders),const DeepCollectionEquality().hash(statuses),totalQuantity,const DeepCollectionEquality().hash(productsInformation),const DeepCollectionEquality().hash(ctes),const DeepCollectionEquality().hash(caclFormsIds),const DeepCollectionEquality().hash(caclForms),const DeepCollectionEquality().hash(manifests),const DeepCollectionEquality().hash(history),minEta,etaStatus,const DeepCollectionEquality().hash(loadingOrders),terminalEntryAt,terminalExitAt,mdfeId,mdfe,const DeepCollectionEquality().hash(mdfes)]); +int get hashCode => Object.hashAll([runtimeType,id,sellerAssetId,transportAssetId,transportCompanyAssetId,purchasedAt,createdAt,finishedAt,pendingToReview,const DeepCollectionEquality().hash(ordersIds),sellerAsset,transportAsset,transportCompanyAsset,sellerInformation,transportInformation,orderStatus,category,deliverCategory,const DeepCollectionEquality().hash(purchaseOrders),const DeepCollectionEquality().hash(statuses),totalQuantity,const DeepCollectionEquality().hash(productsInformation),const DeepCollectionEquality().hash(ctes),const DeepCollectionEquality().hash(caclFormsIds),const DeepCollectionEquality().hash(caclForms),const DeepCollectionEquality().hash(manifests),const DeepCollectionEquality().hash(history),minEta,etaStatus,const DeepCollectionEquality().hash(loadingOrders),terminalEntryAt,terminalExitAt,mdfeId,mdfe,const DeepCollectionEquality().hash(mdfes),checkInAt]); @override String toString() { - return 'AtsOperation(id: $id, sellerAssetId: $sellerAssetId, transportAssetId: $transportAssetId, transportCompanyAssetId: $transportCompanyAssetId, purchasedAt: $purchasedAt, createdAt: $createdAt, finishedAt: $finishedAt, pendingToReview: $pendingToReview, ordersIds: $ordersIds, sellerAsset: $sellerAsset, transportAsset: $transportAsset, transportCompanyAsset: $transportCompanyAsset, sellerInformation: $sellerInformation, transportInformation: $transportInformation, orderStatus: $orderStatus, category: $category, deliverCategory: $deliverCategory, purchaseOrders: $purchaseOrders, statuses: $statuses, totalQuantity: $totalQuantity, productsInformation: $productsInformation, ctes: $ctes, caclFormsIds: $caclFormsIds, caclForms: $caclForms, manifests: $manifests, history: $history, minEta: $minEta, etaStatus: $etaStatus, loadingOrders: $loadingOrders, terminalEntryAt: $terminalEntryAt, terminalExitAt: $terminalExitAt, mdfeId: $mdfeId, mdfe: $mdfe, mdfes: $mdfes)'; + return 'AtsOperation(id: $id, sellerAssetId: $sellerAssetId, transportAssetId: $transportAssetId, transportCompanyAssetId: $transportCompanyAssetId, purchasedAt: $purchasedAt, createdAt: $createdAt, finishedAt: $finishedAt, pendingToReview: $pendingToReview, ordersIds: $ordersIds, sellerAsset: $sellerAsset, transportAsset: $transportAsset, transportCompanyAsset: $transportCompanyAsset, sellerInformation: $sellerInformation, transportInformation: $transportInformation, orderStatus: $orderStatus, category: $category, deliverCategory: $deliverCategory, purchaseOrders: $purchaseOrders, statuses: $statuses, totalQuantity: $totalQuantity, productsInformation: $productsInformation, ctes: $ctes, caclFormsIds: $caclFormsIds, caclForms: $caclForms, manifests: $manifests, history: $history, minEta: $minEta, etaStatus: $etaStatus, loadingOrders: $loadingOrders, terminalEntryAt: $terminalEntryAt, terminalExitAt: $terminalExitAt, mdfeId: $mdfeId, mdfe: $mdfe, mdfes: $mdfes, checkInAt: $checkInAt)'; } @@ -13192,7 +13193,7 @@ abstract mixin class $AtsOperationCopyWith<$Res> { factory $AtsOperationCopyWith(AtsOperation value, $Res Function(AtsOperation) _then) = _$AtsOperationCopyWithImpl; @useResult $Res call({ - String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId,@TimestampOrNullConverter() DateTime? purchasedAt,@TimestampOrNullConverter() DateTime? createdAt,@TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation,@JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus,@JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category,@JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history,@TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders,@TimestampOrNullConverter() DateTime? terminalEntryAt,@TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes + String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId,@TimestampOrNullConverter() DateTime? purchasedAt,@TimestampOrNullConverter() DateTime? createdAt,@TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation,@JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus,@JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category,@JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history,@TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders,@TimestampOrNullConverter() DateTime? terminalEntryAt,@TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes,@TimestampOrNullConverter() DateTime? checkInAt }); @@ -13209,7 +13210,7 @@ class _$AtsOperationCopyWithImpl<$Res> /// Create a copy of AtsOperation /// with the given fields replaced by the non-null parameter values. -@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? sellerAssetId = freezed,Object? transportAssetId = freezed,Object? transportCompanyAssetId = freezed,Object? purchasedAt = freezed,Object? createdAt = freezed,Object? finishedAt = freezed,Object? pendingToReview = freezed,Object? ordersIds = freezed,Object? sellerAsset = freezed,Object? transportAsset = freezed,Object? transportCompanyAsset = freezed,Object? sellerInformation = freezed,Object? transportInformation = freezed,Object? orderStatus = freezed,Object? category = freezed,Object? deliverCategory = freezed,Object? purchaseOrders = freezed,Object? statuses = freezed,Object? totalQuantity = freezed,Object? productsInformation = freezed,Object? ctes = freezed,Object? caclFormsIds = freezed,Object? caclForms = freezed,Object? manifests = freezed,Object? history = freezed,Object? minEta = freezed,Object? etaStatus = freezed,Object? loadingOrders = freezed,Object? terminalEntryAt = freezed,Object? terminalExitAt = freezed,Object? mdfeId = freezed,Object? mdfe = freezed,Object? mdfes = freezed,}) { +@pragma('vm:prefer-inline') @override $Res call({Object? id = freezed,Object? sellerAssetId = freezed,Object? transportAssetId = freezed,Object? transportCompanyAssetId = freezed,Object? purchasedAt = freezed,Object? createdAt = freezed,Object? finishedAt = freezed,Object? pendingToReview = freezed,Object? ordersIds = freezed,Object? sellerAsset = freezed,Object? transportAsset = freezed,Object? transportCompanyAsset = freezed,Object? sellerInformation = freezed,Object? transportInformation = freezed,Object? orderStatus = freezed,Object? category = freezed,Object? deliverCategory = freezed,Object? purchaseOrders = freezed,Object? statuses = freezed,Object? totalQuantity = freezed,Object? productsInformation = freezed,Object? ctes = freezed,Object? caclFormsIds = freezed,Object? caclForms = freezed,Object? manifests = freezed,Object? history = freezed,Object? minEta = freezed,Object? etaStatus = freezed,Object? loadingOrders = freezed,Object? terminalEntryAt = freezed,Object? terminalExitAt = freezed,Object? mdfeId = freezed,Object? mdfe = freezed,Object? mdfes = freezed,Object? checkInAt = freezed,}) { return _then(_self.copyWith( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,sellerAssetId: freezed == sellerAssetId ? _self.sellerAssetId : sellerAssetId // ignore: cast_nullable_to_non_nullable @@ -13245,7 +13246,8 @@ as DateTime?,terminalExitAt: freezed == terminalExitAt ? _self.terminalExitAt : as DateTime?,mdfeId: freezed == mdfeId ? _self.mdfeId : mdfeId // ignore: cast_nullable_to_non_nullable as String?,mdfe: freezed == mdfe ? _self.mdfe : mdfe // ignore: cast_nullable_to_non_nullable as AtsMdfe?,mdfes: freezed == mdfes ? _self.mdfes : mdfes // ignore: cast_nullable_to_non_nullable -as List?, +as List?,checkInAt: freezed == checkInAt ? _self.checkInAt : checkInAt // ignore: cast_nullable_to_non_nullable +as DateTime?, )); } /// Create a copy of AtsOperation @@ -13402,10 +13404,10 @@ return $default(_that);case _: /// } /// ``` -@optionalTypeArgs TResult maybeWhen(TResult Function( String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? createdAt, @TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation, @JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus, @JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category, @JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history, @TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders, @TimestampOrNullConverter() DateTime? terminalEntryAt, @TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes)? $default,{required TResult orElse(),}) {final _that = this; +@optionalTypeArgs TResult maybeWhen(TResult Function( String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? createdAt, @TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation, @JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus, @JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category, @JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history, @TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders, @TimestampOrNullConverter() DateTime? terminalEntryAt, @TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes, @TimestampOrNullConverter() DateTime? checkInAt)? $default,{required TResult orElse(),}) {final _that = this; switch (_that) { case _AtsOperation() when $default != null: -return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transportCompanyAssetId,_that.purchasedAt,_that.createdAt,_that.finishedAt,_that.pendingToReview,_that.ordersIds,_that.sellerAsset,_that.transportAsset,_that.transportCompanyAsset,_that.sellerInformation,_that.transportInformation,_that.orderStatus,_that.category,_that.deliverCategory,_that.purchaseOrders,_that.statuses,_that.totalQuantity,_that.productsInformation,_that.ctes,_that.caclFormsIds,_that.caclForms,_that.manifests,_that.history,_that.minEta,_that.etaStatus,_that.loadingOrders,_that.terminalEntryAt,_that.terminalExitAt,_that.mdfeId,_that.mdfe,_that.mdfes);case _: +return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transportCompanyAssetId,_that.purchasedAt,_that.createdAt,_that.finishedAt,_that.pendingToReview,_that.ordersIds,_that.sellerAsset,_that.transportAsset,_that.transportCompanyAsset,_that.sellerInformation,_that.transportInformation,_that.orderStatus,_that.category,_that.deliverCategory,_that.purchaseOrders,_that.statuses,_that.totalQuantity,_that.productsInformation,_that.ctes,_that.caclFormsIds,_that.caclForms,_that.manifests,_that.history,_that.minEta,_that.etaStatus,_that.loadingOrders,_that.terminalEntryAt,_that.terminalExitAt,_that.mdfeId,_that.mdfe,_that.mdfes,_that.checkInAt);case _: return orElse(); } @@ -13423,10 +13425,10 @@ return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transp /// } /// ``` -@optionalTypeArgs TResult when(TResult Function( String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? createdAt, @TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation, @JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus, @JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category, @JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history, @TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders, @TimestampOrNullConverter() DateTime? terminalEntryAt, @TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes) $default,) {final _that = this; +@optionalTypeArgs TResult when(TResult Function( String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? createdAt, @TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation, @JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus, @JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category, @JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history, @TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders, @TimestampOrNullConverter() DateTime? terminalEntryAt, @TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes, @TimestampOrNullConverter() DateTime? checkInAt) $default,) {final _that = this; switch (_that) { case _AtsOperation(): -return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transportCompanyAssetId,_that.purchasedAt,_that.createdAt,_that.finishedAt,_that.pendingToReview,_that.ordersIds,_that.sellerAsset,_that.transportAsset,_that.transportCompanyAsset,_that.sellerInformation,_that.transportInformation,_that.orderStatus,_that.category,_that.deliverCategory,_that.purchaseOrders,_that.statuses,_that.totalQuantity,_that.productsInformation,_that.ctes,_that.caclFormsIds,_that.caclForms,_that.manifests,_that.history,_that.minEta,_that.etaStatus,_that.loadingOrders,_that.terminalEntryAt,_that.terminalExitAt,_that.mdfeId,_that.mdfe,_that.mdfes);case _: +return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transportCompanyAssetId,_that.purchasedAt,_that.createdAt,_that.finishedAt,_that.pendingToReview,_that.ordersIds,_that.sellerAsset,_that.transportAsset,_that.transportCompanyAsset,_that.sellerInformation,_that.transportInformation,_that.orderStatus,_that.category,_that.deliverCategory,_that.purchaseOrders,_that.statuses,_that.totalQuantity,_that.productsInformation,_that.ctes,_that.caclFormsIds,_that.caclForms,_that.manifests,_that.history,_that.minEta,_that.etaStatus,_that.loadingOrders,_that.terminalEntryAt,_that.terminalExitAt,_that.mdfeId,_that.mdfe,_that.mdfes,_that.checkInAt);case _: throw StateError('Unexpected subclass'); } @@ -13443,10 +13445,10 @@ return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transp /// } /// ``` -@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? createdAt, @TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation, @JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus, @JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category, @JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history, @TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders, @TimestampOrNullConverter() DateTime? terminalEntryAt, @TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes)? $default,) {final _that = this; +@optionalTypeArgs TResult? whenOrNull(TResult? Function( String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId, @TimestampOrNullConverter() DateTime? purchasedAt, @TimestampOrNullConverter() DateTime? createdAt, @TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation, @JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus, @JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category, @JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history, @TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders, @TimestampOrNullConverter() DateTime? terminalEntryAt, @TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes, @TimestampOrNullConverter() DateTime? checkInAt)? $default,) {final _that = this; switch (_that) { case _AtsOperation() when $default != null: -return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transportCompanyAssetId,_that.purchasedAt,_that.createdAt,_that.finishedAt,_that.pendingToReview,_that.ordersIds,_that.sellerAsset,_that.transportAsset,_that.transportCompanyAsset,_that.sellerInformation,_that.transportInformation,_that.orderStatus,_that.category,_that.deliverCategory,_that.purchaseOrders,_that.statuses,_that.totalQuantity,_that.productsInformation,_that.ctes,_that.caclFormsIds,_that.caclForms,_that.manifests,_that.history,_that.minEta,_that.etaStatus,_that.loadingOrders,_that.terminalEntryAt,_that.terminalExitAt,_that.mdfeId,_that.mdfe,_that.mdfes);case _: +return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transportCompanyAssetId,_that.purchasedAt,_that.createdAt,_that.finishedAt,_that.pendingToReview,_that.ordersIds,_that.sellerAsset,_that.transportAsset,_that.transportCompanyAsset,_that.sellerInformation,_that.transportInformation,_that.orderStatus,_that.category,_that.deliverCategory,_that.purchaseOrders,_that.statuses,_that.totalQuantity,_that.productsInformation,_that.ctes,_that.caclFormsIds,_that.caclForms,_that.manifests,_that.history,_that.minEta,_that.etaStatus,_that.loadingOrders,_that.terminalEntryAt,_that.terminalExitAt,_that.mdfeId,_that.mdfe,_that.mdfes,_that.checkInAt);case _: return null; } @@ -13458,7 +13460,7 @@ return $default(_that.id,_that.sellerAssetId,_that.transportAssetId,_that.transp @JsonSerializable() class _AtsOperation implements AtsOperation { - const _AtsOperation({this.id, this.sellerAssetId, this.transportAssetId, this.transportCompanyAssetId, @TimestampOrNullConverter() this.purchasedAt, @TimestampOrNullConverter() this.createdAt, @TimestampOrNullConverter() this.finishedAt, this.pendingToReview, final List? ordersIds, this.sellerAsset, this.transportAsset, this.transportCompanyAsset, this.sellerInformation, this.transportInformation, @JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) this.orderStatus, @JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) this.category, @JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) this.deliverCategory, final List? purchaseOrders, final List? statuses, this.totalQuantity, final List? productsInformation, final List? ctes, final List? caclFormsIds, final List? caclForms, final List? manifests, final List? history, @TimestampOrNullConverter() this.minEta, this.etaStatus, final List? loadingOrders, @TimestampOrNullConverter() this.terminalEntryAt, @TimestampOrNullConverter() this.terminalExitAt, this.mdfeId, this.mdfe, final List? mdfes}): _ordersIds = ordersIds,_purchaseOrders = purchaseOrders,_statuses = statuses,_productsInformation = productsInformation,_ctes = ctes,_caclFormsIds = caclFormsIds,_caclForms = caclForms,_manifests = manifests,_history = history,_loadingOrders = loadingOrders,_mdfes = mdfes; + const _AtsOperation({this.id, this.sellerAssetId, this.transportAssetId, this.transportCompanyAssetId, @TimestampOrNullConverter() this.purchasedAt, @TimestampOrNullConverter() this.createdAt, @TimestampOrNullConverter() this.finishedAt, this.pendingToReview, final List? ordersIds, this.sellerAsset, this.transportAsset, this.transportCompanyAsset, this.sellerInformation, this.transportInformation, @JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) this.orderStatus, @JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) this.category, @JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) this.deliverCategory, final List? purchaseOrders, final List? statuses, this.totalQuantity, final List? productsInformation, final List? ctes, final List? caclFormsIds, final List? caclForms, final List? manifests, final List? history, @TimestampOrNullConverter() this.minEta, this.etaStatus, final List? loadingOrders, @TimestampOrNullConverter() this.terminalEntryAt, @TimestampOrNullConverter() this.terminalExitAt, this.mdfeId, this.mdfe, final List? mdfes, @TimestampOrNullConverter() this.checkInAt}): _ordersIds = ordersIds,_purchaseOrders = purchaseOrders,_statuses = statuses,_productsInformation = productsInformation,_ctes = ctes,_caclFormsIds = caclFormsIds,_caclForms = caclForms,_manifests = manifests,_history = history,_loadingOrders = loadingOrders,_mdfes = mdfes; factory _AtsOperation.fromJson(Map json) => _$AtsOperationFromJson(json); /// `id` of the asset entity. This ID is unique. @@ -13628,6 +13630,8 @@ class _AtsOperation implements AtsOperation { return EqualUnmodifiableListView(value); } +/// [checkInAt] is the timestamp of the check-in. +@override@TimestampOrNullConverter() final DateTime? checkInAt; /// Create a copy of AtsOperation /// with the given fields replaced by the non-null parameter values. @@ -13642,16 +13646,16 @@ Map toJson() { @override bool operator ==(Object other) { - return identical(this, other) || (other.runtimeType == runtimeType&&other is _AtsOperation&&(identical(other.id, id) || other.id == id)&&(identical(other.sellerAssetId, sellerAssetId) || other.sellerAssetId == sellerAssetId)&&(identical(other.transportAssetId, transportAssetId) || other.transportAssetId == transportAssetId)&&(identical(other.transportCompanyAssetId, transportCompanyAssetId) || other.transportCompanyAssetId == transportCompanyAssetId)&&(identical(other.purchasedAt, purchasedAt) || other.purchasedAt == purchasedAt)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.finishedAt, finishedAt) || other.finishedAt == finishedAt)&&(identical(other.pendingToReview, pendingToReview) || other.pendingToReview == pendingToReview)&&const DeepCollectionEquality().equals(other._ordersIds, _ordersIds)&&(identical(other.sellerAsset, sellerAsset) || other.sellerAsset == sellerAsset)&&(identical(other.transportAsset, transportAsset) || other.transportAsset == transportAsset)&&(identical(other.transportCompanyAsset, transportCompanyAsset) || other.transportCompanyAsset == transportCompanyAsset)&&(identical(other.sellerInformation, sellerInformation) || other.sellerInformation == sellerInformation)&&(identical(other.transportInformation, transportInformation) || other.transportInformation == transportInformation)&&(identical(other.orderStatus, orderStatus) || other.orderStatus == orderStatus)&&(identical(other.category, category) || other.category == category)&&(identical(other.deliverCategory, deliverCategory) || other.deliverCategory == deliverCategory)&&const DeepCollectionEquality().equals(other._purchaseOrders, _purchaseOrders)&&const DeepCollectionEquality().equals(other._statuses, _statuses)&&(identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity)&&const DeepCollectionEquality().equals(other._productsInformation, _productsInformation)&&const DeepCollectionEquality().equals(other._ctes, _ctes)&&const DeepCollectionEquality().equals(other._caclFormsIds, _caclFormsIds)&&const DeepCollectionEquality().equals(other._caclForms, _caclForms)&&const DeepCollectionEquality().equals(other._manifests, _manifests)&&const DeepCollectionEquality().equals(other._history, _history)&&(identical(other.minEta, minEta) || other.minEta == minEta)&&(identical(other.etaStatus, etaStatus) || other.etaStatus == etaStatus)&&const DeepCollectionEquality().equals(other._loadingOrders, _loadingOrders)&&(identical(other.terminalEntryAt, terminalEntryAt) || other.terminalEntryAt == terminalEntryAt)&&(identical(other.terminalExitAt, terminalExitAt) || other.terminalExitAt == terminalExitAt)&&(identical(other.mdfeId, mdfeId) || other.mdfeId == mdfeId)&&(identical(other.mdfe, mdfe) || other.mdfe == mdfe)&&const DeepCollectionEquality().equals(other._mdfes, _mdfes)); + return identical(this, other) || (other.runtimeType == runtimeType&&other is _AtsOperation&&(identical(other.id, id) || other.id == id)&&(identical(other.sellerAssetId, sellerAssetId) || other.sellerAssetId == sellerAssetId)&&(identical(other.transportAssetId, transportAssetId) || other.transportAssetId == transportAssetId)&&(identical(other.transportCompanyAssetId, transportCompanyAssetId) || other.transportCompanyAssetId == transportCompanyAssetId)&&(identical(other.purchasedAt, purchasedAt) || other.purchasedAt == purchasedAt)&&(identical(other.createdAt, createdAt) || other.createdAt == createdAt)&&(identical(other.finishedAt, finishedAt) || other.finishedAt == finishedAt)&&(identical(other.pendingToReview, pendingToReview) || other.pendingToReview == pendingToReview)&&const DeepCollectionEquality().equals(other._ordersIds, _ordersIds)&&(identical(other.sellerAsset, sellerAsset) || other.sellerAsset == sellerAsset)&&(identical(other.transportAsset, transportAsset) || other.transportAsset == transportAsset)&&(identical(other.transportCompanyAsset, transportCompanyAsset) || other.transportCompanyAsset == transportCompanyAsset)&&(identical(other.sellerInformation, sellerInformation) || other.sellerInformation == sellerInformation)&&(identical(other.transportInformation, transportInformation) || other.transportInformation == transportInformation)&&(identical(other.orderStatus, orderStatus) || other.orderStatus == orderStatus)&&(identical(other.category, category) || other.category == category)&&(identical(other.deliverCategory, deliverCategory) || other.deliverCategory == deliverCategory)&&const DeepCollectionEquality().equals(other._purchaseOrders, _purchaseOrders)&&const DeepCollectionEquality().equals(other._statuses, _statuses)&&(identical(other.totalQuantity, totalQuantity) || other.totalQuantity == totalQuantity)&&const DeepCollectionEquality().equals(other._productsInformation, _productsInformation)&&const DeepCollectionEquality().equals(other._ctes, _ctes)&&const DeepCollectionEquality().equals(other._caclFormsIds, _caclFormsIds)&&const DeepCollectionEquality().equals(other._caclForms, _caclForms)&&const DeepCollectionEquality().equals(other._manifests, _manifests)&&const DeepCollectionEquality().equals(other._history, _history)&&(identical(other.minEta, minEta) || other.minEta == minEta)&&(identical(other.etaStatus, etaStatus) || other.etaStatus == etaStatus)&&const DeepCollectionEquality().equals(other._loadingOrders, _loadingOrders)&&(identical(other.terminalEntryAt, terminalEntryAt) || other.terminalEntryAt == terminalEntryAt)&&(identical(other.terminalExitAt, terminalExitAt) || other.terminalExitAt == terminalExitAt)&&(identical(other.mdfeId, mdfeId) || other.mdfeId == mdfeId)&&(identical(other.mdfe, mdfe) || other.mdfe == mdfe)&&const DeepCollectionEquality().equals(other._mdfes, _mdfes)&&(identical(other.checkInAt, checkInAt) || other.checkInAt == checkInAt)); } @JsonKey(includeFromJson: false, includeToJson: false) @override -int get hashCode => Object.hashAll([runtimeType,id,sellerAssetId,transportAssetId,transportCompanyAssetId,purchasedAt,createdAt,finishedAt,pendingToReview,const DeepCollectionEquality().hash(_ordersIds),sellerAsset,transportAsset,transportCompanyAsset,sellerInformation,transportInformation,orderStatus,category,deliverCategory,const DeepCollectionEquality().hash(_purchaseOrders),const DeepCollectionEquality().hash(_statuses),totalQuantity,const DeepCollectionEquality().hash(_productsInformation),const DeepCollectionEquality().hash(_ctes),const DeepCollectionEquality().hash(_caclFormsIds),const DeepCollectionEquality().hash(_caclForms),const DeepCollectionEquality().hash(_manifests),const DeepCollectionEquality().hash(_history),minEta,etaStatus,const DeepCollectionEquality().hash(_loadingOrders),terminalEntryAt,terminalExitAt,mdfeId,mdfe,const DeepCollectionEquality().hash(_mdfes)]); +int get hashCode => Object.hashAll([runtimeType,id,sellerAssetId,transportAssetId,transportCompanyAssetId,purchasedAt,createdAt,finishedAt,pendingToReview,const DeepCollectionEquality().hash(_ordersIds),sellerAsset,transportAsset,transportCompanyAsset,sellerInformation,transportInformation,orderStatus,category,deliverCategory,const DeepCollectionEquality().hash(_purchaseOrders),const DeepCollectionEquality().hash(_statuses),totalQuantity,const DeepCollectionEquality().hash(_productsInformation),const DeepCollectionEquality().hash(_ctes),const DeepCollectionEquality().hash(_caclFormsIds),const DeepCollectionEquality().hash(_caclForms),const DeepCollectionEquality().hash(_manifests),const DeepCollectionEquality().hash(_history),minEta,etaStatus,const DeepCollectionEquality().hash(_loadingOrders),terminalEntryAt,terminalExitAt,mdfeId,mdfe,const DeepCollectionEquality().hash(_mdfes),checkInAt]); @override String toString() { - return 'AtsOperation(id: $id, sellerAssetId: $sellerAssetId, transportAssetId: $transportAssetId, transportCompanyAssetId: $transportCompanyAssetId, purchasedAt: $purchasedAt, createdAt: $createdAt, finishedAt: $finishedAt, pendingToReview: $pendingToReview, ordersIds: $ordersIds, sellerAsset: $sellerAsset, transportAsset: $transportAsset, transportCompanyAsset: $transportCompanyAsset, sellerInformation: $sellerInformation, transportInformation: $transportInformation, orderStatus: $orderStatus, category: $category, deliverCategory: $deliverCategory, purchaseOrders: $purchaseOrders, statuses: $statuses, totalQuantity: $totalQuantity, productsInformation: $productsInformation, ctes: $ctes, caclFormsIds: $caclFormsIds, caclForms: $caclForms, manifests: $manifests, history: $history, minEta: $minEta, etaStatus: $etaStatus, loadingOrders: $loadingOrders, terminalEntryAt: $terminalEntryAt, terminalExitAt: $terminalExitAt, mdfeId: $mdfeId, mdfe: $mdfe, mdfes: $mdfes)'; + return 'AtsOperation(id: $id, sellerAssetId: $sellerAssetId, transportAssetId: $transportAssetId, transportCompanyAssetId: $transportCompanyAssetId, purchasedAt: $purchasedAt, createdAt: $createdAt, finishedAt: $finishedAt, pendingToReview: $pendingToReview, ordersIds: $ordersIds, sellerAsset: $sellerAsset, transportAsset: $transportAsset, transportCompanyAsset: $transportCompanyAsset, sellerInformation: $sellerInformation, transportInformation: $transportInformation, orderStatus: $orderStatus, category: $category, deliverCategory: $deliverCategory, purchaseOrders: $purchaseOrders, statuses: $statuses, totalQuantity: $totalQuantity, productsInformation: $productsInformation, ctes: $ctes, caclFormsIds: $caclFormsIds, caclForms: $caclForms, manifests: $manifests, history: $history, minEta: $minEta, etaStatus: $etaStatus, loadingOrders: $loadingOrders, terminalEntryAt: $terminalEntryAt, terminalExitAt: $terminalExitAt, mdfeId: $mdfeId, mdfe: $mdfe, mdfes: $mdfes, checkInAt: $checkInAt)'; } @@ -13662,7 +13666,7 @@ abstract mixin class _$AtsOperationCopyWith<$Res> implements $AtsOperationCopyWi factory _$AtsOperationCopyWith(_AtsOperation value, $Res Function(_AtsOperation) _then) = __$AtsOperationCopyWithImpl; @override @useResult $Res call({ - String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId,@TimestampOrNullConverter() DateTime? purchasedAt,@TimestampOrNullConverter() DateTime? createdAt,@TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation,@JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus,@JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category,@JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history,@TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders,@TimestampOrNullConverter() DateTime? terminalEntryAt,@TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes + String? id, String? sellerAssetId, String? transportAssetId, String? transportCompanyAssetId,@TimestampOrNullConverter() DateTime? purchasedAt,@TimestampOrNullConverter() DateTime? createdAt,@TimestampOrNullConverter() DateTime? finishedAt, bool? pendingToReview, List? ordersIds, Asset? sellerAsset, Asset? transportAsset, Asset? transportCompanyAsset, AtsCompanyInformation? sellerInformation, AtsTransportInformation? transportInformation,@JsonKey(unknownEnumValue: AtsPurchaseOrderStatus.generated) AtsPurchaseOrderStatus? orderStatus,@JsonKey(unknownEnumValue: AtsPurchaseOrderCategoriesEntity.notDefined) AtsPurchaseOrderCategoriesEntity? category,@JsonKey(unknownEnumValue: AtsPurchaseOrderSubCategories.notDefined) AtsPurchaseOrderSubCategories? deliverCategory, List? purchaseOrders, List? statuses, double? totalQuantity, List? productsInformation, List? ctes, List? caclFormsIds, List? caclForms, List? manifests, List? history,@TimestampOrNullConverter() DateTime? minEta, AtsEtaStatus? etaStatus, List? loadingOrders,@TimestampOrNullConverter() DateTime? terminalEntryAt,@TimestampOrNullConverter() DateTime? terminalExitAt, String? mdfeId, AtsMdfe? mdfe, List? mdfes,@TimestampOrNullConverter() DateTime? checkInAt }); @@ -13679,7 +13683,7 @@ class __$AtsOperationCopyWithImpl<$Res> /// Create a copy of AtsOperation /// with the given fields replaced by the non-null parameter values. -@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? sellerAssetId = freezed,Object? transportAssetId = freezed,Object? transportCompanyAssetId = freezed,Object? purchasedAt = freezed,Object? createdAt = freezed,Object? finishedAt = freezed,Object? pendingToReview = freezed,Object? ordersIds = freezed,Object? sellerAsset = freezed,Object? transportAsset = freezed,Object? transportCompanyAsset = freezed,Object? sellerInformation = freezed,Object? transportInformation = freezed,Object? orderStatus = freezed,Object? category = freezed,Object? deliverCategory = freezed,Object? purchaseOrders = freezed,Object? statuses = freezed,Object? totalQuantity = freezed,Object? productsInformation = freezed,Object? ctes = freezed,Object? caclFormsIds = freezed,Object? caclForms = freezed,Object? manifests = freezed,Object? history = freezed,Object? minEta = freezed,Object? etaStatus = freezed,Object? loadingOrders = freezed,Object? terminalEntryAt = freezed,Object? terminalExitAt = freezed,Object? mdfeId = freezed,Object? mdfe = freezed,Object? mdfes = freezed,}) { +@override @pragma('vm:prefer-inline') $Res call({Object? id = freezed,Object? sellerAssetId = freezed,Object? transportAssetId = freezed,Object? transportCompanyAssetId = freezed,Object? purchasedAt = freezed,Object? createdAt = freezed,Object? finishedAt = freezed,Object? pendingToReview = freezed,Object? ordersIds = freezed,Object? sellerAsset = freezed,Object? transportAsset = freezed,Object? transportCompanyAsset = freezed,Object? sellerInformation = freezed,Object? transportInformation = freezed,Object? orderStatus = freezed,Object? category = freezed,Object? deliverCategory = freezed,Object? purchaseOrders = freezed,Object? statuses = freezed,Object? totalQuantity = freezed,Object? productsInformation = freezed,Object? ctes = freezed,Object? caclFormsIds = freezed,Object? caclForms = freezed,Object? manifests = freezed,Object? history = freezed,Object? minEta = freezed,Object? etaStatus = freezed,Object? loadingOrders = freezed,Object? terminalEntryAt = freezed,Object? terminalExitAt = freezed,Object? mdfeId = freezed,Object? mdfe = freezed,Object? mdfes = freezed,Object? checkInAt = freezed,}) { return _then(_AtsOperation( id: freezed == id ? _self.id : id // ignore: cast_nullable_to_non_nullable as String?,sellerAssetId: freezed == sellerAssetId ? _self.sellerAssetId : sellerAssetId // ignore: cast_nullable_to_non_nullable @@ -13715,7 +13719,8 @@ as DateTime?,terminalExitAt: freezed == terminalExitAt ? _self.terminalExitAt : as DateTime?,mdfeId: freezed == mdfeId ? _self.mdfeId : mdfeId // ignore: cast_nullable_to_non_nullable as String?,mdfe: freezed == mdfe ? _self.mdfe : mdfe // ignore: cast_nullable_to_non_nullable as AtsMdfe?,mdfes: freezed == mdfes ? _self._mdfes : mdfes // ignore: cast_nullable_to_non_nullable -as List?, +as List?,checkInAt: freezed == checkInAt ? _self.checkInAt : checkInAt // ignore: cast_nullable_to_non_nullable +as DateTime?, )); } diff --git a/lib/src/ats/ats.g.dart b/lib/src/ats/ats.g.dart index cdfccbc..5a9bae3 100644 --- a/lib/src/ats/ats.g.dart +++ b/lib/src/ats/ats.g.dart @@ -1453,6 +1453,7 @@ const _$AtsPurchaseOrderStatusEnumMap = { AtsPurchaseOrderStatus.unloadingBooked: 'UNLOADING_BOOKED', AtsPurchaseOrderStatus.validated: 'VALIDATED', AtsPurchaseOrderStatus.orderReceived: 'ORDER_RECEIVED', + AtsPurchaseOrderStatus.nfeChanged: 'NFE_CHANGED', }; _AtsOperation _$AtsOperationFromJson(Map json) => @@ -1554,6 +1555,9 @@ _AtsOperation _$AtsOperationFromJson(Map json) => mdfes: (json['mdfes'] as List?) ?.map((e) => AtsMdfe.fromJson(e as Map)) .toList(), + checkInAt: const TimestampOrNullConverter().fromJson( + json['checkInAt'] as num?, + ), ); Map _$AtsOperationToJson( @@ -1599,6 +1603,7 @@ Map _$AtsOperationToJson( 'mdfeId': instance.mdfeId, 'mdfe': instance.mdfe?.toJson(), 'mdfes': instance.mdfes?.map((e) => e.toJson()).toList(), + 'checkInAt': const TimestampOrNullConverter().toJson(instance.checkInAt), }; const _$AtsPurchaseOrderCategoriesEntityEnumMap = { diff --git a/lib/src/ats/src/enums/purchase_order_status.dart b/lib/src/ats/src/enums/purchase_order_status.dart index 9fd8896..7e63b75 100644 --- a/lib/src/ats/src/enums/purchase_order_status.dart +++ b/lib/src/ats/src/enums/purchase_order_status.dart @@ -27,7 +27,9 @@ enum AtsPurchaseOrderStatus { @JsonValue('VALIDATED') validated, @JsonValue('ORDER_RECEIVED') - orderReceived + orderReceived, + @JsonValue('NFE_CHANGED') + nfeChanged ; @override diff --git a/lib/src/ats/src/operations/operation.dart b/lib/src/ats/src/operations/operation.dart index 4d10838..b4ad70c 100644 --- a/lib/src/ats/src/operations/operation.dart +++ b/lib/src/ats/src/operations/operation.dart @@ -126,6 +126,9 @@ abstract class AtsOperation with _$AtsOperation { /// [mdfes] is the list of MDF-e linked to the operation. List? mdfes, + + /// [checkInAt] is the timestamp of the check-in. + @TimestampOrNullConverter() DateTime? checkInAt, }) = _AtsOperation; factory AtsOperation.fromJson(Map json) => _$AtsOperationFromJson(json); diff --git a/pubspec.yaml b/pubspec.yaml index a0b1c0d..999339c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ description: Layrz API models for Dart/Flutter. This package contains the models used by the Layrz API. name: layrz_models -version: "3.8.8" +version: "3.8.9" repository: https://github.com/goldenm-software/layrz_models environment: