-
Notifications
You must be signed in to change notification settings - Fork 307
Global minorversion #518
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
base: master
Are you sure you want to change the base?
Global minorversion #518
Changes from 3 commits
5051e81
8d793d2
7bf0ca2
1d0e875
5cd80f6
b6cea33
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,17 +9,16 @@ def delete(customer) | |
|
|
||
| def url_for_resource(resource) | ||
| url = super(resource) | ||
| "#{url}?minorversion=#{Quickbooks::Model::Customer::MINORVERSION}" | ||
| url | ||
| end | ||
|
|
||
| def fetch_by_id(id, params = {}) | ||
| url = "#{url_for_base}/customer/#{id}?minorversion=#{Quickbooks::Model::Customer::MINORVERSION}" | ||
| url = "#{url_for_base}/customer/#{id}" | ||
| fetch_object(model, url, params) | ||
| end | ||
|
|
||
| def url_for_query(query = nil, start_position = 1, max_results = 20, options = {}) | ||
| url = super(query, start_position, max_results, options) | ||
| "#{url}&minorversion=#{Quickbooks::Model::Customer::MINORVERSION}" | ||
| super(query, start_position, max_results, options) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this too? |
||
| end | ||
|
|
||
| private | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,17 +7,16 @@ def delete(invoice) | |
| end | ||
|
|
||
| def url_for_resource(resource) | ||
| url = super(resource) | ||
| super(resource) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This too? |
||
| end | ||
|
|
||
| def fetch_by_id(id, params = {}) | ||
| url = "#{url_for_base}/invoice/#{id}?minorversion=#{Quickbooks::Model::Invoice::MINORVERSION}" | ||
| url = "#{url_for_base}/invoice/#{id}" | ||
| fetch_object(model, url, params) | ||
| end | ||
|
|
||
| def url_for_query(query = nil, start_position = 1, max_results = 20, options = {}) | ||
| url = super(query, start_position, max_results, options) | ||
| "#{url}&minorversion=#{Quickbooks::Model::Invoice::MINORVERSION}" | ||
| super(query, start_position, max_results, options) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and this? |
||
| end | ||
|
|
||
| def send(invoice, email_address=nil) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one seems like it could go too right?