From b50bc686b9cf85dd62e8f78676821cae2ab82758 Mon Sep 17 00:00:00 2001 From: AJ Date: Thu, 30 Jan 2025 15:31:52 -0500 Subject: [PATCH 1/3] feat: set minor version to 75 & add docs * Set the minor version to 75 as that will be the new default via QBO API * Add a section via the readme about the minor version and why the default is 75 closes ruckus/quickbooks-ruby#622 --- HISTORY.md | 5 +++++ README.md | 13 +++++++++++++ lib/quickbooks-ruby.rb | 2 +- 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 196901ed..a044bced 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,8 @@ +## Unreleased (Unreleased) + +* Set minimum minor version to 75 per QB +* Add minor version section via the readme + ## 2.0.5 (2024-07-25) * Added BCC field to Bill Model. Integrated the PR manually. https://github.com/ruckus/quickbooks-ruby/pull/614 Thanks @hammad-Ikhlaq-7vals diff --git a/README.md b/README.md index 1b6255d2..b05ec3c7 100644 --- a/README.md +++ b/README.md @@ -777,6 +777,19 @@ Quickbooks.log = true Quickbooks.log_xml_pretty_print = false ``` +## Minorversion + +NOTE +----- +The default is `75` due to Quickbooks ignoring all prior versions starting 2025-08-01 ([source](https://blogs.intuit.com/2025/01/21/changes-to-our-accounting-api-that-may-impact-your-application/)). +----- + +You can change the minor version that is used on a global scale (like in an initializer file): + +```ruby +Quickbooks.minorversion = 75 +``` + ## Debugging While logging is helpful the best debugging (in my opinion) is available by using a HTTP proxy such as [Charles Proxy](https://www.charlesproxy.com/). diff --git a/lib/quickbooks-ruby.rb b/lib/quickbooks-ruby.rb index 7187066b..09f409cf 100644 --- a/lib/quickbooks-ruby.rb +++ b/lib/quickbooks-ruby.rb @@ -191,7 +191,7 @@ module Quickbooks @@sandbox_mode = false @@logger = nil - @@minorversion = 47 + @@minorversion = 75 @@http_adapter = :net_http class << self From 164a56182aceed3508b71bafc90f916b8933da5d Mon Sep 17 00:00:00 2001 From: AJ Date: Thu, 30 Jan 2025 15:34:21 -0500 Subject: [PATCH 2/3] docs: fix note --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index b05ec3c7..079b7fb6 100644 --- a/README.md +++ b/README.md @@ -779,10 +779,8 @@ Quickbooks.log_xml_pretty_print = false ## Minorversion -NOTE ------ +[!NOTE] The default is `75` due to Quickbooks ignoring all prior versions starting 2025-08-01 ([source](https://blogs.intuit.com/2025/01/21/changes-to-our-accounting-api-that-may-impact-your-application/)). ------ You can change the minor version that is used on a global scale (like in an initializer file): From 345ae067272fe06dbe98d15f926baa54ae7beae6 Mon Sep 17 00:00:00 2001 From: AJ Date: Thu, 30 Jan 2025 15:35:08 -0500 Subject: [PATCH 3/3] docs: note --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 079b7fb6..21d8c506 100644 --- a/README.md +++ b/README.md @@ -779,8 +779,8 @@ Quickbooks.log_xml_pretty_print = false ## Minorversion -[!NOTE] -The default is `75` due to Quickbooks ignoring all prior versions starting 2025-08-01 ([source](https://blogs.intuit.com/2025/01/21/changes-to-our-accounting-api-that-may-impact-your-application/)). +> [!NOTE] +> The default is `75` due to Quickbooks ignoring all prior versions starting 2025-08-01 ([source](https://blogs.intuit.com/2025/01/21/changes-to-our-accounting-api-that-may-impact-your-application/)). You can change the minor version that is used on a global scale (like in an initializer file):