Skip to content

Commit 1837938

Browse files
Merge pull request #199 from goldenm-software/development
feat(ats): add purchaseOrderIds to AtsReceptionInput and bump to 3.8.18
2 parents 6c1275a + 6d71209 commit 1837938

5 files changed

Lines changed: 39 additions & 21 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.18
4+
5+
- Added `purchaseOrderIds` field (`List<String>?`) to `AtsReceptionInput` to align with the GraphQL `ReceptionInput` schema.
6+
- Deprecated `ordersIds` field in `AtsReceptionInput` in favor of `purchaseOrderIds`.
7+
38
## 3.8.17
49

510
- Added `ReferenceCategory.atsShowOnlyLastExit` (`ATS_SHOW_ONLY_LAST_EXIT`) to flag pump assets whose exit history should be limited to the most recent record.

lib/src/ats/ats.freezed.dart

Lines changed: 25 additions & 19 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: 4 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/reception/reception_product.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ abstract class AtsReceptionInput with _$AtsReceptionInput {
6565
String? id,
6666

6767
/// List of [AtsPurchaseOrder] IDs.
68-
List<String>? ordersIds,
68+
@Deprecated('Use purchaseOrderIds instead') List<String>? ordersIds,
6969

7070
/// Diferent [AtsReceptionProductInput] obtained of the [AtsPurchaseOrder]
7171
List<AtsReceptionProductInput>? products,
@@ -78,6 +78,9 @@ abstract class AtsReceptionInput with _$AtsReceptionInput {
7878

7979
/// App used to create the [AtsReception].
8080
@AtsFromAppOrNullConverter() AtsFromApp? app,
81+
82+
/// IDs of the [AtsPurchaseOrder]s.
83+
List<String>? purchaseOrderIds,
8184
}) = _AtsReceptionInput;
8285

8386
factory AtsReceptionInput.fromJson(Map<String, dynamic> json) => _$AtsReceptionInputFromJson(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.17"
4+
version: "3.8.18"
55
repository: https://github.com/goldenm-software/layrz_models
66

77
environment:

0 commit comments

Comments
 (0)