feat: API V3 now supported for "get product" #633
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New files:
LocalizedTag.dart
: Tag with localizations (in English and an additional language).LocalizedTag.g.dart
: generatedProductResultV3.dart
: API V3 answer from a call to /api/v3/product/$barcode.ProductResultV3.g.dart
: generatedProductResultField.dart
: Field part of an API V3 answer.ProductResultField.g.dart
: generatedProductResultFieldAnswer.dart
: API V3 answer for one field.ProductResultFieldAnswer.g.dart
: generatedDelete file:
api_getProductRaw_test.dart
Impacted files:
api_addProductImage_test.dart
: upgraded togetProductV3
api_getProduct_test.dart
: upgraded togetProductV3
api_matchedProductV1_test.dart
: upgraded togetProductV3
api_ocrIngredients_test.dart
: upgraded togetProductV3
api_saveProduct_test.dart
: upgraded togetProductV3
json_product_generation_test.dart
: upgraded togetProductV3
main.dart
: upgraded togetProductV3
openfoodfacts.dart
: deprecated methodsgetProductRaw
andgetProduct
in favor of new methodgetProductV3
product_from_json_test.dart
: upgraded togetProductV3
ProductQueryConfigurations.dart
: addedProductQueryVersion.v3
and its specific call settingsProductResult.dart
: deprecated, in favor ofProductResultV3
What
packagings
field with its API V3 specific features.packagings
will be dealt with in a next PR.Part of