Skip to content

Commit 3a132cc

Browse files
authored
Merge pull request #189 from goldenm-software/development
feat: Add NFE_CHANGED status to AtsPurchaseOrderStatus enum and updat…
2 parents e6a83c5 + 053de48 commit 3a132cc

6 files changed

Lines changed: 42 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 3.8.9
4+
5+
- Added new value `NFE_CHANGED` in `AtsPurchaseOrderStatus` enum
6+
- Added new value `checkInAt` in `AtsOperation` model
7+
38
## 3.8.8
49

510
- Fixed `casesMonitorConfig` type in `Workspace` model to be a list of nullable `CaseMonitorCard?` instead of non-nullable `CaseMonitorCard`.

lib/src/ats/ats.freezed.dart

Lines changed: 25 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/ats/ats.g.dart

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/src/ats/src/enums/purchase_order_status.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ enum AtsPurchaseOrderStatus {
2727
@JsonValue('VALIDATED')
2828
validated,
2929
@JsonValue('ORDER_RECEIVED')
30-
orderReceived
30+
orderReceived,
31+
@JsonValue('NFE_CHANGED')
32+
nfeChanged
3133
;
3234

3335
@override

lib/src/ats/src/operations/operation.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ abstract class AtsOperation with _$AtsOperation {
126126

127127
/// [mdfes] is the list of MDF-e linked to the operation.
128128
List<AtsMdfe>? mdfes,
129+
130+
/// [checkInAt] is the timestamp of the check-in.
131+
@TimestampOrNullConverter() DateTime? checkInAt,
129132
}) = _AtsOperation;
130133

131134
factory AtsOperation.fromJson(Map<String, dynamic> json) => _$AtsOperationFromJson(json);

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
description: Layrz API models for Dart/Flutter. This package contains the models
22
used by the Layrz API.
33
name: layrz_models
4-
version: "3.8.8"
4+
version: "3.8.9"
55
repository: https://github.com/goldenm-software/layrz_models
66

77
environment:

0 commit comments

Comments
 (0)