{"id":28328540,"url":"https://github.com/furk4nbulut/e-commerce-application","last_synced_at":"2026-06-30T18:31:27.887Z","repository":{"id":293638735,"uuid":"641351564","full_name":"Furk4nBulut/E-Commerce-Application","owner":"Furk4nBulut","description":"Java e-commerce app built for CSE 1124 Object Oriented Programming course, showcasing classes for user, product, order, and credit card with full object-oriented structure and test cases.","archived":false,"fork":false,"pushed_at":"2025-05-16T10:33:10.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T14:48:29.427Z","etag":null,"topics":["java","oop"],"latest_commit_sha":null,"homepage":"","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/Furk4nBulut.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,"zenodo":null}},"created_at":"2023-05-16T09:41:42.000Z","updated_at":"2025-05-16T10:36:12.000Z","dependencies_parsed_at":"2025-05-16T11:38:00.361Z","dependency_job_id":null,"html_url":"https://github.com/Furk4nBulut/E-Commerce-Application","commit_stats":null,"previous_names":["furk4nbulut/oop-homework-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Furk4nBulut/E-Commerce-Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furk4nBulut%2FE-Commerce-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furk4nBulut%2FE-Commerce-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furk4nBulut%2FE-Commerce-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furk4nBulut%2FE-Commerce-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Furk4nBulut","download_url":"https://codeload.github.com/Furk4nBulut/E-Commerce-Application/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furk4nBulut%2FE-Commerce-Application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34979577,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["java","oop"],"created_at":"2025-05-26T06:17:21.149Z","updated_at":"2026-06-30T18:31:27.882Z","avatar_url":"https://github.com/Furk4nBulut.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🛒 E-Commerce Application\n\nObject Oriented Programming - Homework Project  \n**Manisa Celal Bayar University**  \nFaculty of Engineering - Computer Engineering  \n**2022-2023 Spring Semester**  \n\n\u003e **Student:** Furkan Bulut  \n\u003e **Student No:** 210316011  \n\n---\n\n## 📌 Project Overview\n\nThis project simulates a basic **e-commerce application** using Java and Object-Oriented Programming principles such as encapsulation, constructors, method overloading, and data hiding. The system models Users, Products, Orders, and Credit Cards, supporting stock tracking, ordering, and payment processing functionalities.\n\n---\n\n## 📂 Contents\n\n- [UML Diagram](#-uml-diagram)\n- [User Class](#-user-class)\n- [Product Class](#-product-class)\n- [Order Class](#-order-class)\n- [CreditCard Class](#-creditcard-class)\n- [Main/Test Class](#-maintest-class)\n\n---\n\n## 🗂 UML Diagram\n\n\u003e A UML class diagram is provided in the project folder that visualizes class relationships.\n\n---\n\n## 👤 User Class\n\nThe `User` class represents a customer in the system.\n\n### ✅ Attributes:\n- `fullName`, `email`, `password`, `phone`, `address`, `workAddress` (private `String`)\n- `ArrayList\u003cProduct\u003e` for favorite products and orders\n\n### 🛠 Constructor:\nInitializes user details.\n\n### 🔧 Methods:\n- `addProductToFavorites(Product product)`\n- `removeProductFromFavorites(Product product)`\n- `addProductToOrder(Product product)`\n- `removeProductFromOrder(Product product)`\n- Getters and Setters for all fields\n\n---\n\n## 📦 Product Class\n\nThe `Product` class defines the items available for purchase.\n\n### ✅ Attributes:\n- `productName`, `productDescription`, `productCategory`, `productBrand`, `productColor`, `productSize`, `productPrice`, `productStock` (private)\n\n### 🛠 Constructor:\nInitializes product details.\n\n### 🔧 Methods:\n- `boolean checkStock()`  \n  Checks stock and returns `true` if available.\n- `void reduceStock()`  \n  Decreases the product's stock.\n- `String toString()`  \n  Returns a formatted product description.\n\n---\n\n## 🧾 Order Class\n\nThe `Order` class manages the shopping process and interactions.\n\n### ✅ Attributes:\n- `User user`\n- `Product product`\n- `CreditCard creditCard`\n\n### 🛠 Constructor:\nAssigns ordering entities.\n\n### 🔧 Methods:\n- `void addToOrder()`  \n  Adds product to order if stock is available.\n- `void processPayment()`  \n  Checks balance, deducts payment, reduces stock.\n\n---\n\n## 💳 CreditCard Class\n\nThe `CreditCard` class models user payment information.\n\n### ✅ Attributes:\n- `cardNumber`, `expirationDate`, `securityCode`, `cardBalance`\n- `User user`\n\n### 🛠 Constructor:\nInitializes the card and its user.\n\n### 🔧 Methods:\n- Getters and Setters for all private fields\n\n---\n\n## 🧪 Main/Test Class\n\nUsed to test and simulate the application flow.\n\n### 🔁 Actions:\n- Create two `User` instances\n- Create two `CreditCard` instances\n- Create two `Product` instances\n- Test methods like adding to favorites, checking stock, placing an order, and processing payment\n\n---\n\n## 🖥 Sample Console Output\n\nThe test class demonstrates the functionality through printed messages including stock checks, successful or failed order messages, and balance updates.\n\n---\n\n## 📌 Note\n\nAll classes follow **OOP principles**:\n- Encapsulation with `private` variables\n- Use of **constructors** for initialization\n- **ArrayList** is used to store collections of items\n- **Getter and Setter** methods to access and modify data safely\n\n---\n\n## 📎 Author\n\n**Furkan Bulut**  \n\u003e Computer Engineering Student  \n\u003e Manisa Celal Bayar University  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurk4nbulut%2Fe-commerce-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurk4nbulut%2Fe-commerce-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurk4nbulut%2Fe-commerce-application/lists"}