Coder Social home page Coder Social logo

Comments (3)

ruckus avatar ruckus commented on August 28, 2024

You're right - it does not exist.

In theory it should be decently straight-forward to implement. Intuit requires that some fields are not set / provided for an Update. If you look at Windows::Customer#update you'll see this in action - some fields have to be niled out.

What I would do is:

  • Take the skeleton from Windows::Customer#update and implement it in Invoice
  • Attempt to perform the update in a Console - you'll get some errors. Probably along the lines of needing to nil out certain fields. Fix the errors and repeat until it works.

Not pretty, but its the iterative process I had to do for the Customer#update.

During development its very helpful to be running an HTTP proxy so you can capture all of the traffic - helpful to grab the XML to implement in the spec as well. I use Charles Proxy:

http://www.charlesproxy.com/

But there are free / open source applications as well.

from quickeebooks.

ruckus avatar ruckus commented on August 28, 2024

Forgot to include: to have the library actually use your HTTP proxy you configure it like so:

options = {
  :site                 => "https://oauth.intuit.com",
  :request_token_path   => "/oauth/v1/get_request_token",
  :authorize_path       => "/oauth/v1/get_access_token",
  :access_token_path    => "/oauth/v1/get_access_token",
}

if Rails.env.development?
  options[:proxy] = "http://127.0.0.1:8080"
end

$qb_oauth_consumer = OAuth::Consumer.new(consumer_key, consumer_secret, options)

from quickeebooks.

theinventor avatar theinventor commented on August 28, 2024

Awesome - I'm going to take a stab at this next week, I'll close this issue and update you if I get somewhere

from quickeebooks.

Related Issues (20)

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.