Giter VIP home page Giter VIP logo

capital_one's People

Contributors

borikanes avatar mferraco avatar shwheelz avatar tritonis avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

capital_one's Issues

ENT/CUST keys for each method

Need to have a way for the user to specify which key they want to use for each method. Some methods only accept one of the keys (POST, PUT, DELETE) and other methods don't need either (ATMs, Branches). Need to so some research on how this should be done.

Was thinking about adding it as a parameter to the methods that would need it like Account.getAccounts(keyType). I am trying to find a way to do it without having to add it as an argument for every single method though.

We could possibly have a Cust and Ent object. So CustAccount.getAccounts, CustAtm.getAtms, etc. would use the user's customer key and EntAccount.getAccounts, EntAtm.getAtms, etc. would use the user's enterprise key. That could work. Any ideas on this?

Separate Code by Entity

We should move the functions for each entity into their own file with their own class. So in the end we should have these files in the capital_one folder:

*accounts.rb
*atms.rb
*bills.rb
*branches.rb
*customers.rb

This will help us organize the code and better separate dev tasks without having to worry about merge conflicts every time we change something.

Parameter on transaction

There is now support for a parameter which specifies if you are looking for the transactions that you are the payer or the payee. Need to add support for this into the gem.

  • Add parameters
  • Test
  • Document

Comment Methods

What do they do and what args do they take. What format is the JSON that goes into them. <-- that should also be in the documentation.

Failing Tests

  • Transaction
  • GET
    - Error on "Specific transaction for an account AND POST for transaction"
    • JSON::ParseError: 757: unexpected token at '...'
  • DELETE
    - See error in Transaction GET
  • Withdrawal
  • DELETE
    - Failure/Error: expect(withdrawal.class).to be(Net::HTTPNoContent)
    - got #Class:70268775297560 => Net::HTTPNotFound
  • Deposit
  • DELETE
    - Failure/Error: expect(deposit.class).to be(Net::HTTPNoContent)
    - got #Class:70268775297560 => Net::HTTPNotFound

Example of a request

I will appreciate if the readme file would contain an example of any request using this gem. Thanks.

Parameters on ATMs

There are parameters on ATMs for long, lat, and radius to narrow the search. Need to add support for this into the API.

  • Add parameters
  • Test
  • Document

API Key Specified by User

Need to add a way for the user of the gem to specify their API keys and have the gem pick them up. I need to do some research on how this should be done.

Host on RubyGems

Once these issues are completed we definitely want to get this hosted on RubyGems for students at other hackathons to download.

Debug Address Hashes

Looks like the wrapper is putting address into the system as hashes when its updating a customer. Need to fix this in the PUT customer method.

100% Test Coverage

We need to test everything!

--need to research what testing framework we want to use
--there should also be a code coverage tool we use to make sure we hit everything in the gem

Endpoints are out of date

This repo hasn't been updated due to lack of Ruby adoption at college hackathons. It should still work for the most common functionality, such as account and customer requests, but is missing some of the newer features. Please let me know in advance if you plan on using any of the newer features and I'm happy to update, or (since it's open source) feel free to send a PR with your updates.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.