-
-
Notifications
You must be signed in to change notification settings - Fork 357
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow setting the packagings_complete field through API v3 (#7856)
We have a field called packagings_complete that takes value 0 or 1 to indicate if the packagings field contains all element of the product. This PR adds it to the API v3 WRITE product.
- Loading branch information
1 parent
c294a5c
commit fec330a
Showing
10 changed files
with
376 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
title: packagings_complete | ||
x-stoplight: | ||
id: hxnnsy954q1ey | ||
type: integer | ||
minimum: 0 | ||
maximum: 1 | ||
description: Indicate if the packagings array contains all the packaging parts of the product. This field can be set by users when they enter or verify packaging data. Possible values are 0 or 1. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
...s/integration/expected_test_results/api_v3_product_write/patch-packagings-complete-0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ | ||
"code" : "1234567890016", | ||
"errors" : [], | ||
"product" : { | ||
"packagings" : [ | ||
{ | ||
"number_of_units" : 1, | ||
"recycling" : { | ||
"id" : "en:recycle", | ||
"lc_name" : "Recycle" | ||
}, | ||
"shape" : { | ||
"id" : "en:bottle", | ||
"lc_name" : "Bottle" | ||
} | ||
} | ||
], | ||
"packagings_complete" : 0 | ||
}, | ||
"status" : "success_with_warnings", | ||
"warnings" : [ | ||
{ | ||
"field" : { | ||
"id" : "material", | ||
"value" : null | ||
}, | ||
"impact" : { | ||
"id" : "field_ignored", | ||
"lc_name" : "Field ignored", | ||
"name" : "Field ignored" | ||
}, | ||
"message" : { | ||
"id" : "missing_field", | ||
"lc_name" : "Missing field", | ||
"name" : "Missing field" | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.