{"id":16087120,"url":"https://github.com/cdlm/kata-shoppingcart","last_synced_at":"2025-04-05T15:10:51.841Z","repository":{"id":14466078,"uuid":"17178024","full_name":"cdlm/kata-shoppingcart","owner":"cdlm","description":"Shopping cart and pricing policies, as an OO design \u0026 Java programming exercise.","archived":false,"fork":false,"pushed_at":"2017-04-04T18:30:47.000Z","size":27,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-11T11:51:22.409Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/cdlm.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2014-02-25T15:38:08.000Z","updated_at":"2018-11-05T02:59:14.000Z","dependencies_parsed_at":"2022-09-06T13:11:15.810Z","dependency_job_id":null,"html_url":"https://github.com/cdlm/kata-shoppingcart","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/cdlm%2Fkata-shoppingcart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdlm%2Fkata-shoppingcart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdlm%2Fkata-shoppingcart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdlm%2Fkata-shoppingcart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdlm","download_url":"https://codeload.github.com/cdlm/kata-shoppingcart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247353749,"owners_count":20925329,"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-10-09T13:27:56.358Z","updated_at":"2025-04-05T15:10:51.824Z","avatar_url":"https://github.com/cdlm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Java kata: shopping cart \u0026 item pricing policies\n\nThis kata models the checkout price calculation of a shop (either an online shop or a physical one, at the cash register).\n\n- **Items** represent goods that can be placed in the cart.\n\n- A **cart** contains a number of items, and can compute the total price of its contents.\nThere is no notion of inventory or of physical instances of products: a given item represents the general product, not the actual physical instance of that product.\nTherefore, to represent the purchase of several instances of a product, the corresponding item object will be added that many times to the cart.\n\n- Cart items can either be actual **products** with a fixed unit price, or products with a **pricing policy** attached.\nPricing policies influence the asked price for the whole cart, like special offers, promotions, etc.\n\n\n### License\n\n\u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/deed.en_US\"\u003e\u003cimg alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by-sa/3.0/88x31.png\" /\u003e\u003c/a\u003e\u003cbr /\u003eThis work by \u003ca xmlns:cc=\"http://creativecommons.org/ns#\" href=\"https://github.com/cdlm\" property=\"cc:attributionName\" rel=\"cc:attributionURL\"\u003eDamien Pollet\u003c/a\u003e is licensed under a \u003ca rel=\"license\" href=\"http://creativecommons.org/licenses/by-sa/3.0/deed.en_US\"\u003eCreative Commons Attribution-ShareAlike 3.0 Unported License\u003c/a\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdlm%2Fkata-shoppingcart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdlm%2Fkata-shoppingcart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdlm%2Fkata-shoppingcart/lists"}