black-thursday's Issues
Add Item attributes
Item has:
- id
- name
- description
- merchant_id
create transaction attributes
id
invoice id
credit_card_number
credit_card_expiration_date
result
Create Item Repository
IR should have methods:
import items from csv
create invoice item attributes
id
item_id
invoice_id
quantity
Item Repository - find by price methods
#find_all_by_price [], or full array
#find_all_by_price_range; takes a range, [], or full array
Invoice Repo
#all
#find_all_by_id
#find_all_by_customer_id
#find_all_by_merchant_id
#find_all_by_status
Invoice Item Repo
should have methods:
#all
#find_by_id
#find_all_by_item_id
#find_all_by_invoice_id
Transaction Repo
should have methods:
#all
#find_by_id
#find_all_by_invoice_id
#find_all_by_credit_card_number
#find_all_by_result
merchant#items
As a merchant
I would like to see all the items I have for sale
So that I can do further analysis on the results
create customer attributes
id
first_name
last_name
Create Merchant Repository
MR should have methods:
- all
- find_by_id(takes an id)
- find_by_name(takes a name)
- find_all_by_name(takes a name)
import merchants from csv
Add unit_price
Add unit_price (attribute) to:
(unit_price - returns the unit_price)
Item
InvoiceItem
#unit_price_to_dollars
Add #unit_price_to_dollars to:
(return value is a Float)
InvoiceItem
Item
Sales Engine
this needs to read in from CSV files and create lists of merchants and items
Customer Repo
#all
#find_by_id
#find_all_by_first_name
#find_all_by_last_name
create invoice attributes
id
customer_id
merchant_id
status
merchant has name and id
Add updated_at and created_at
add updated_at and created_at to:
InvoiceItem
Transaction
Customer
Invoice
Item
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.