Git Product home page Git Product logo

iugu-elixir's People

Contributors

fschuindt avatar ssjr avatar tiagopog avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

ssjr

iugu-elixir's Issues

(ArgumentError) struct fields definition must be list, got: nil

Problem

It's using an older version of httpoison, which conflicts with the service's umbrella dependency tree:

$ mix deps.get                                                                     

* Updating iugu (https://github.com/b2beauty/iugu-elixir.git)
Resolving Hex dependencies...

Failed to use "httpoison" (version 0.13.0) because
  deps/beautydate_api/mix.exs requires ~> 1.0
  deps/iugu/mix.exs requires ~> 0.13

** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}

So I updated it in the branch upgrade/httpoison_1.0 and used it: {:iugu, github: "b2beauty/iugu-elixir", branch: "upgrade/httpoison_1.0"}

The mix deps.gets finished just fine, but iex -S mix run returns this:

$ iex -S mix run

Erlang/OTP 20 [erts-9.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

==> iugu
Compiling 7 files (.ex)

== Compilation error in file lib/resources/customer.ex ==
** (ArgumentError) struct fields definition must be list, got: nil
    (elixir) lib/kernel/utils.ex:73: Kernel.Utils.defstruct/2
    lib/resources/customer.ex:6: (module)
    (stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
could not compile dependency :iugu, "mix compile" failed. You can recompile this dependency with "mix deps.compile iugu", update it with "mix deps.update iugu" or clean it with "mix deps.clean iugu"

Any tip?

Requirements for v0.1.0

Problem

A client lib is required so we can access/manipulate some IUGU's resources from Beauty Date's Elixir microservices.

Goals

  • Create and retrieve data for customers and subscriptions;
  • Retrieve data for invoices.

Related Links

TODO

  • Resources:
    • Customers
      • Create customer;
      • Show customer;
      • List customers.
    • Subscriptions
      • Create subscription;
      • Show subscription;
      • List subscriptions.
    • Invoices
      • Create invoice;
      • Show Invoice;
      • List Invoices.
  • Other:
    • Typespecs;
    • Documentation.

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.