{"id":22059251,"url":"https://github.com/opentable/code-kata-shopping-cart","last_synced_at":"2026-01-05T14:13:41.500Z","repository":{"id":66075929,"uuid":"170290835","full_name":"opentable/code-kata-shopping-cart","owner":"opentable","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-08T22:05:23.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":22,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-01-28T23:09:50.965Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opentable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-12T09:34:44.000Z","updated_at":"2020-02-06T10:19:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"cca9e985-9159-4aca-afb5-235700c34ad7","html_url":"https://github.com/opentable/code-kata-shopping-cart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fcode-kata-shopping-cart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fcode-kata-shopping-cart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fcode-kata-shopping-cart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opentable%2Fcode-kata-shopping-cart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opentable","download_url":"https://codeload.github.com/opentable/code-kata-shopping-cart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245136405,"owners_count":20566588,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-30T17:27:43.845Z","updated_at":"2026-01-05T14:13:41.458Z","avatar_url":"https://github.com/opentable.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# CODE-KATA-Shopping-Cart\n\n## Workflow\n- Treat this like a real assignment, but only spend up to two hours on it - it doesn't matter how far you get\n- Fork the project to your personal Github account (click on the fork button in the top right corner)\n- Clone the forked version of this repository\n- Include a `README`\n- Push your work up to your fork\n- Submit a link to your forked repository\n\n## Instructions\nYou should implement a supermarket checkout which:\n- always accepts a string of items and gives back the total price\n- discounts any offers from the total price\n\nUse the following pricing information:\n\n| Item  | Price | Offer     |\n| :---: | :---: | :---:     |\n| A     | 50    | 3 for 130 |\n| B     | 30    | 2 for 37  |\n| C     | 20    | N/A       |\n| D     | 10    | N/A       |\n\nFor example:\n- `'DABA'` gives `140`\n- `'BBBB'` gives `74`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentable%2Fcode-kata-shopping-cart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopentable%2Fcode-kata-shopping-cart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopentable%2Fcode-kata-shopping-cart/lists"}