quickbooks-ruby 2.0.5 → 2.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd0d9a056fde793065ddb4963be9dd73a0ca302a3eb7f1825b31c8bf86080ae6
4
- data.tar.gz: 3b3f7a3e0a82f5f80bea62550e6208e518124f833e298b1413d43778cfd687e3
3
+ metadata.gz: 730dafbc4beec7acb4c3ff63a2311f8088cd427185b7234dac3b48d0b3e302b6
4
+ data.tar.gz: 0aef77414c5da511f8eecb2877424e26b7bbe253761a221cb52bbc85ea43ad82
5
5
  SHA512:
6
- metadata.gz: fe05ff6ed704297e45973a3b2a0d22314d353c665b8ef7ddb6b4326666df14fac22f41da4190e11ddb3e43a39d8ceeb434deac14640a54c236b9d54e69f4b9ac
7
- data.tar.gz: a1fcce89737c19a1e786cc7ce0b7fcd93c5b045023f26bbc050960c357352bbc19712a429e92252259b1ce68defffcdfacb53aba1f560fecd70e36914690a6d7
6
+ metadata.gz: 00641e30fc51bb21540d6538885851c9ec734c326dfd165125c9c5e6f5c200733e77cdf3a3b95b059820e9621120b1f434843c3167eaf8c608c83719df7c3f02
7
+ data.tar.gz: d9dab4d8e57430eb1e325c4a35ea637589e65d76440b9754d6049d11c557a6173ec2980d339b4dd8060ec3a082947e1083cdfa984b73c2a94ec7e179a8592d4f
@@ -19,7 +19,7 @@ module Quickbooks
19
19
  PREFERENCE_SECTIONS = {
20
20
  :accounting_info => %w(TrackDepartments DepartmentTerminology ClassTrackingPerTxnLine? ClassTrackingPerTxn? CustomerTerminology),
21
21
  :product_and_services => %w(ForSales? ForPurchase? QuantityWithPriceAndRate? QuantityOnHand?),
22
- :vendor_and_purchase => %w(TrackingByCustomer? BillableExpenseTracking? DefaultTerms? DefaultMarkup? POCustomField),
22
+ :vendor_and_purchases => %w(TrackingByCustomer? BillableExpenseTracking? DefaultTerms? DefaultMarkup? POCustomField),
23
23
  :time_tracking => %w(UseServices? BillCustomers? ShowBillRateToAll WorkWeekStartDate MarkTimeEntiresBillable?),
24
24
  :tax => %w(UsingSalesTax? PartnerTaxEnabled?),
25
25
  :currency => %w(MultiCurrencyEnabled? HomeCurrency),
@@ -6,6 +6,12 @@ module Quickbooks
6
6
  delete_by_query_string(refund_receipt)
7
7
  end
8
8
 
9
+ def pdf(refund_receipt)
10
+ url = "#{url_for_resource(model::REST_RESOURCE)}/#{refund_receipt.id}/pdf"
11
+ response = do_http_raw_get(url, {}, {'Accept' => 'application/pdf'})
12
+ response.plain_body
13
+ end
14
+
9
15
  private
10
16
 
11
17
  def model
@@ -1,5 +1,5 @@
1
1
  module Quickbooks
2
2
 
3
- VERSION = "2.0.5"
3
+ VERSION = "2.0.6"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quickbooks-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cody Caughlan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-25 00:00:00.000000000 Z
11
+ date: 2025-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2