Git Product home page Git Product logo

Comments (2)

HenriqueMunhoz avatar HenriqueMunhoz commented on August 17, 2024

Quando eu faço o seguinte comando

subs.subitems.delete

Ele me retorna que o "method delete needs 1 more argument"

from iugu-ruby.

WilliamCSA04 avatar WilliamCSA04 commented on August 17, 2024

Estou tendo este mesmo problema atualmente. Não consigo atualizar um subitem pela gem.

Até tentei dar fork no projeto e criei o seguinte método:
`

 def change_subitems(subitems, options = {})
  options.merge!({ subitems: subitems })
  Iugu::Factory.create_from_response(self.class.object_type,
                                      APIRequest.request("PUT",
                                                        "#{self.class.url(self.id)}/",
                                                        options))
 end

`

E tento passar o seguinte objeto: {id: "user_limit_exceeded:destroy_false", description: "test", price_cents: 50000, quantity: 1, recurrent: true} como parâmetro do subitem.

E o retorno que me da é: 400 Bad Request

from iugu-ruby.

Related Issues (17)

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.