feat: 831 - latest "prices" API changes #897
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.
What
getOSMLocation
,getLocations
,getPriceProductByCode
.Part of
Files
Deleted files:
get_prices_results.dart
validation_error.dart
validation_error.g.dart
validation_errors.dart
validation_errors.g.dart
New files:
get_locations_order.dart
: Field for the "order by" clause of "get locations".get_locations_parameters.dart
: Parameters for the "get locations" API query.get_locations_result.dart
: List of location objects returned by the "get locations" method.get_locations_result.g.dart
: generatedorder_by.dart
: "Order by" clause for "get list" methods (e.g. "get prices")Impacted files:
api_prices_test.dart
: impacted byMaybeError
refactoring; tests for new methodsgetOSMLocation
,getLocations
,getPriceProductByCode
get_prices_order.dart
: refactored using new classOrderByField
get_prices_parameters.dart
: refactored using new classOrderBy
open_prices_api_client.dart
: refactored using more systematicallyMaybeError
; renamedgetPriceProduct
asgetPriceProductById
; added methodsgetOSMLocation
,getLocations
,getPriceProductByCode
openfoodfacts.dart
: added the new files; removed the deleted files