-
-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 942 - new methods updatePrice, updateProof; new proof parameters (
#946) * feat: 942 - new methods updatePrice, updateProof; new proof parameters New files: * `update_price_parameters.dart`: Parameters for the "update price" API query. * `update_proof_parameters.dart`: Parameters for the "update proof" API query. Impacted files: * `api_prices_test.dart`: added tests for `updatePrice` and `updateProof`; refactored the access to `uriHelper` * `get_prices_parameters.dart`: added 2 parameters for `getPrices` queries * `get_proofs_parameters.dart`: added 9 parameters for `getProofs` queries * `http_helper.dart`: minor refactoring for PATCH queries in Prices * `open_prices_api_client.dart`: new methods `updatePrice` and `updateProof`; new parameters for `uploadProof`; refactored `createPrice` * `openfoodfacts.dart`: added the new 2 files * `price.dart`: added field `updated` * `price.g.dart`: generated * `proof.dart`: added fields `locationOSMId`, `locationOSMType`, `locationId`, `date`, `currency`, `updated` and `location` * `proof.g.dart`: generated * Minor fix about pricePer non being set for barcode products.
- Loading branch information
1 parent
045bf5b
commit fbcf7f0
Showing
12 changed files
with
656 additions
and
51 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.