Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds the Money protocol and a mix task #110

Merged
merged 23 commits into from
Jan 25, 2018
Merged

Adds the Money protocol and a mix task #110

merged 23 commits into from
Jan 25, 2018

Commits on Dec 29, 2017

  1. Added project logo

    pkrawat1 committed Dec 29, 2017
    Configuration menu
    Copy the full SHA
    961dfcb View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2018

  1. Added version for inch_ex

    * Also re-ordered the deps list, groups runtime deps on top.
    oyeb authored and pkrawat1 committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    90e8b3e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    907723b View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2018

  1. [ci skip] Get more Open Source Helpers

    [CodeTriage](https://www.codetriage.com/) is an app I have maintained
    for the past 4-5 years with the goal of getting people involved in
    Open Source projects like this one. The app sends subscribers a random
    open issue for them to help "triage". For some languages you can also
    suggested areas to add documentation.
    
    The initial approach was inspired by seeing the work of the small
    core team spending countless hours asking "what version was
    this in" and "can you give us an example app". The idea is to
    outsource these small interactions to a huge team of volunteers
    and let the core team focus on their work.
    
    I want to add a badge to the README of this project. The idea is to
    provide an easy link for people to get started contributing to this
    project. A badge indicates the number of people currently subscribed
    to help the repo. The color is based off of open issues in the project.
    
    Here are some examples of other projects that have a badge in their
    README:
    
    - https://github.com/crystal-lang/crystal
    - https://github.com/rails/rails
    - https://github.com/codetriage/codetriage
    
    Thanks for building open source software, I would love to help you find some helpers.
    schneems authored and pkrawat1 committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    609a92c View commit details
    Browse the repository at this point in the history
  2. Codeclimate fixes (#68)

    sivagollapalli authored and pkrawat1 committed Jan 3, 2018
    Configuration menu
    Copy the full SHA
    41f1de5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2680289 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2018

  1. Stripe gateway minor fixes and docs update (#75)

    * separate payment into credit card and address struct
    * set default currency if currency not passed in options
    * add guard clause when source params is token or customer
    * Change stripe docs according to new credit card and address struct
    * Updated Readme
    * Fixed specs
    chandradot99 authored and pkrawat1 committed Jan 4, 2018
    Configuration menu
    Copy the full SHA
    6e402e9 View commit details
    Browse the repository at this point in the history
  2. Using Address and Credit Card struct (#74)

    * Address and Credit Card struct usage
    jyotigautam authored and pkrawat1 committed Jan 4, 2018
    Configuration menu
    Copy the full SHA
    ea11367 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    df44753 View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2018

  1. test authorize net

    Added tests for authorize net library for the functions
    authorize, capture, refund, void, store and unstore.
    Added mock responses for the authorize net library for
    functions authorize, capture, refund, void, store and
    unstore. Added ResponseHandler module to parse gateway
    responses. Added specs.
    arjun289 authored and pkrawat1 committed Jan 9, 2018
    Configuration menu
    Copy the full SHA
    afdd12e View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2018

  1. Introducing the Money protocol (#71)

    Building on the discussion in #62, this PR introduces a protocol to replace amount argument, and removes the need to specify currency in config or opts.
    
    Supporting `ex_money` and `monetized` money libs out of the box.
    
    Usage:-
    Money can now be passed like this while calling the public API methods.
    
    money = %{amount: Decimal.new(2017.18), currency: "USD"}
    
    Conversation for this happened here on elixir forum and https://elixirforum.com/t/gringotts-a-complete-payment-library-for-elixir-and-phoenix-framework/11054
    oyeb authored and pkrawat1 committed Jan 10, 2018
    Configuration menu
    Copy the full SHA
    d5fda24 View commit details
    Browse the repository at this point in the history
  2. Update README.md

    pkrawat1 authored Jan 10, 2018
    Configuration menu
    Copy the full SHA
    6fafa1d View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2018

  1. Adds a super useful mix task: gringotts.new

    * Generates a barebones implementation
    * Also generates docs dynamically,
      - If no required_keys are supplied when the task is run, the docs do
    not contain an empty table.
      - Otherwise, the table and config examples include the keys.
    oyeb authored and pkrawat1 committed Jan 12, 2018
    Configuration menu
    Copy the full SHA
    9a4c89b View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2018

  1. [money-protocol] Expansion: to_string and to_integer (#86)

    * Adds `to_string` and `to_integer` to the protocol
    * Fixes #62 and #85
    * Implements all protocol methods for `ex_money`
    * Adds integration test with ex_money
    * Adapted Monei with protocol updates
    * Adds test for `Any`
    * The default rounding strategy for implementations of Gringotts.Money
    protocol is HALF-EVEN.
    * Updated public API docs with "perils of rounding".
    oyeb authored Jan 19, 2018
    Configuration menu
    Copy the full SHA
    365c3f1 View commit details
    Browse the repository at this point in the history
  2. add mix task for tests, mocks and integration

    Added mix task to generate test file for the gateways, add
    a file to define the mock responses and also to generate
    integration test.
    arjun289 authored and pkrawat1 committed Jan 19, 2018
    Configuration menu
    Copy the full SHA
    6d1828f View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2018

  1. [monei] Implements optional/extra params (#79)

    * Validates currency, test for unsupported currency
    
    * Added EUR to the supported currencies.
    
    * Refactored expansion and validation of extras
    
    * Removed duplicate code that extracted auth_info from opts
    
    * Part of the params to Monei are built in the methods, all extra params
    are built and validated in commit.
    
    * [extra-params] All optional params covered: billing, shipping and merchant, invoice_id, category, transaction_id, custom, register, customer
    
    * Added examples of these in docs and integration tests
    
    * The inclusion was (partially) implicitly tested in the integration tests, but I moved it to more visible mock tests.
    oyeb authored and pkrawat1 committed Jan 21, 2018
    Configuration menu
    Copy the full SHA
    a135692 View commit details
    Browse the repository at this point in the history
  2. Money integration with ANet and Anet test modification (#82)

    Used Gringotts.Money for Authorize Net currency support.
    arjun289 authored and pkrawat1 committed Jan 21, 2018
    Configuration menu
    Copy the full SHA
    ce7c6bd View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2018

  1. [ANet] Corrected use of money protocol and examples (#92)

    * Corrected use of money protocol and examples
    
    Fixes #90 and Fixes #91
    Adds a new Response field: authorization.
    It is set to ["transactionResponse"]["transId"]
    
    * Uses Gringotts.Money.to_string instead of converting to lossy Float
    * doc examples updated (authorize, capture, purchase)
    * reworded confusing store doc
    
    * Improved docs, stripped whitespace
    
    * Ran the elixir 1.6 formatter
    
    * Used the ~s sigil in mocks
    * Also removed an invisible unicode codepoint from mock strings
    oyeb authored and pkrawat1 committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    db9190b View commit details
    Browse the repository at this point in the history
  2. [trexle] Adds Money protocol (#84)

    * Integrated Money protocol with trexle
    
    * token and message added to Response
    
    * Used `~s` sigils in mocks
    jyotigautam authored and pkrawat1 committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    5e748e7 View commit details
    Browse the repository at this point in the history
  3. [CAMS] Adds money protocol (#89)

    * Added money protocol for CAMS gateway.
    
    * Modified methods according to money protocol.
    
    * Modified test data as per money protocol.
    
    * Corrected protocol usage, docs and some bugs
    
    * Updated docs
    gopalshimpi authored and pkrawat1 committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    f3c0d58 View commit details
    Browse the repository at this point in the history
  4. Fix doc example typos, and mock tests (#93)

    * Corrected capture args order
    * Mock tests now use the worker
    * Corrected capture args order
    oyeb authored and pkrawat1 committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    f2796b4 View commit details
    Browse the repository at this point in the history
  5. [mix-task] Fixed arg order in capture (#94)

    * Fixed arg order in capture
    
    * fixes some patterns in function clauses
    
    * Prompts for filename
    
    * Added a missing comma in integration template
    oyeb authored and pkrawat1 committed Jan 25, 2018
    Configuration menu
    Copy the full SHA
    fa1cd11 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5b15d30 View commit details
    Browse the repository at this point in the history