ledger_sync-quickbooks_online 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.env.test +9 -0
  4. data/.gitignore +21 -0
  5. data/.overcommit.yml +29 -0
  6. data/.rubocop.yml +78 -0
  7. data/.rubocop_todo.yml +25 -0
  8. data/.travis.yml +25 -0
  9. data/Gemfile +8 -0
  10. data/Gemfile.lock +211 -0
  11. data/README.md +19 -0
  12. data/Rakefile +8 -0
  13. data/bin/console +15 -0
  14. data/bin/quickbooks_online_oauth_server.rb +104 -0
  15. data/bin/setup +8 -0
  16. data/ledger_sync-quickbooks_online.gemspec +46 -0
  17. data/lib/ledger_sync/quickbooks_online.rb +14 -0
  18. data/lib/ledger_sync/quickbooks_online/account/deserializer.rb +29 -0
  19. data/lib/ledger_sync/quickbooks_online/account/operations/create.rb +26 -0
  20. data/lib/ledger_sync/quickbooks_online/account/operations/find.rb +26 -0
  21. data/lib/ledger_sync/quickbooks_online/account/operations/update.rb +28 -0
  22. data/lib/ledger_sync/quickbooks_online/account/searcher.rb +13 -0
  23. data/lib/ledger_sync/quickbooks_online/account/serializer.rb +29 -0
  24. data/lib/ledger_sync/quickbooks_online/account_based_expense_line_detail/deserializer.rb +19 -0
  25. data/lib/ledger_sync/quickbooks_online/account_based_expense_line_detail/serializer.rb +19 -0
  26. data/lib/ledger_sync/quickbooks_online/bill/deserializer.rb +39 -0
  27. data/lib/ledger_sync/quickbooks_online/bill/operations/create.rb +27 -0
  28. data/lib/ledger_sync/quickbooks_online/bill/operations/find.rb +27 -0
  29. data/lib/ledger_sync/quickbooks_online/bill/operations/update.rb +27 -0
  30. data/lib/ledger_sync/quickbooks_online/bill/searcher.rb +12 -0
  31. data/lib/ledger_sync/quickbooks_online/bill/serializer.rb +39 -0
  32. data/lib/ledger_sync/quickbooks_online/bill_line/deserializer.rb +20 -0
  33. data/lib/ledger_sync/quickbooks_online/bill_line/serializer.rb +24 -0
  34. data/lib/ledger_sync/quickbooks_online/bill_payment/deserializer.rb +53 -0
  35. data/lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb +31 -0
  36. data/lib/ledger_sync/quickbooks_online/bill_payment/operations/find.rb +31 -0
  37. data/lib/ledger_sync/quickbooks_online/bill_payment/operations/update.rb +31 -0
  38. data/lib/ledger_sync/quickbooks_online/bill_payment/serializer.rb +53 -0
  39. data/lib/ledger_sync/quickbooks_online/bill_payment_line/deserializer.rb +14 -0
  40. data/lib/ledger_sync/quickbooks_online/bill_payment_line/serializer.rb +14 -0
  41. data/lib/ledger_sync/quickbooks_online/check_payment/deserializer.rb +15 -0
  42. data/lib/ledger_sync/quickbooks_online/check_payment/serializer.rb +15 -0
  43. data/lib/ledger_sync/quickbooks_online/client.rb +235 -0
  44. data/lib/ledger_sync/quickbooks_online/config.rb +15 -0
  45. data/lib/ledger_sync/quickbooks_online/credit_card_payment/deserializer.rb +15 -0
  46. data/lib/ledger_sync/quickbooks_online/credit_card_payment/serializer.rb +15 -0
  47. data/lib/ledger_sync/quickbooks_online/currency/deserializer.rb +14 -0
  48. data/lib/ledger_sync/quickbooks_online/currency/serializer.rb +15 -0
  49. data/lib/ledger_sync/quickbooks_online/customer/deserializer.rb +24 -0
  50. data/lib/ledger_sync/quickbooks_online/customer/operations/create.rb +24 -0
  51. data/lib/ledger_sync/quickbooks_online/customer/operations/find.rb +24 -0
  52. data/lib/ledger_sync/quickbooks_online/customer/operations/update.rb +24 -0
  53. data/lib/ledger_sync/quickbooks_online/customer/searcher.rb +13 -0
  54. data/lib/ledger_sync/quickbooks_online/customer/serializer.rb +24 -0
  55. data/lib/ledger_sync/quickbooks_online/dashboard_url_helper.rb +32 -0
  56. data/lib/ledger_sync/quickbooks_online/department/deserializer.rb +20 -0
  57. data/lib/ledger_sync/quickbooks_online/department/operations/create.rb +23 -0
  58. data/lib/ledger_sync/quickbooks_online/department/operations/find.rb +23 -0
  59. data/lib/ledger_sync/quickbooks_online/department/operations/update.rb +23 -0
  60. data/lib/ledger_sync/quickbooks_online/department/searcher.rb +15 -0
  61. data/lib/ledger_sync/quickbooks_online/department/serializer.rb +39 -0
  62. data/lib/ledger_sync/quickbooks_online/deposit/deserializer.rb +34 -0
  63. data/lib/ledger_sync/quickbooks_online/deposit/operations/create.rb +25 -0
  64. data/lib/ledger_sync/quickbooks_online/deposit/operations/find.rb +25 -0
  65. data/lib/ledger_sync/quickbooks_online/deposit/operations/update.rb +25 -0
  66. data/lib/ledger_sync/quickbooks_online/deposit/searcher.rb +12 -0
  67. data/lib/ledger_sync/quickbooks_online/deposit/serializer.rb +34 -0
  68. data/lib/ledger_sync/quickbooks_online/deposit_line/deserializer.rb +20 -0
  69. data/lib/ledger_sync/quickbooks_online/deposit_line/serializer.rb +24 -0
  70. data/lib/ledger_sync/quickbooks_online/deposit_line_detail/deserializer.rb +32 -0
  71. data/lib/ledger_sync/quickbooks_online/deposit_line_detail/serializer.rb +33 -0
  72. data/lib/ledger_sync/quickbooks_online/deserializer.rb +97 -0
  73. data/lib/ledger_sync/quickbooks_online/expense/deserializer.rb +52 -0
  74. data/lib/ledger_sync/quickbooks_online/expense/operations/create.rb +28 -0
  75. data/lib/ledger_sync/quickbooks_online/expense/operations/find.rb +28 -0
  76. data/lib/ledger_sync/quickbooks_online/expense/operations/update.rb +28 -0
  77. data/lib/ledger_sync/quickbooks_online/expense/searcher.rb +12 -0
  78. data/lib/ledger_sync/quickbooks_online/expense/serializer.rb +51 -0
  79. data/lib/ledger_sync/quickbooks_online/expense_line/deserializer.rb +20 -0
  80. data/lib/ledger_sync/quickbooks_online/expense_line/serializer.rb +24 -0
  81. data/lib/ledger_sync/quickbooks_online/invoice/deserializer.rb +33 -0
  82. data/lib/ledger_sync/quickbooks_online/invoice/operations/create.rb +25 -0
  83. data/lib/ledger_sync/quickbooks_online/invoice/operations/find.rb +25 -0
  84. data/lib/ledger_sync/quickbooks_online/invoice/operations/update.rb +25 -0
  85. data/lib/ledger_sync/quickbooks_online/invoice/serializer.rb +33 -0
  86. data/lib/ledger_sync/quickbooks_online/invoice_line/deserializer.rb +19 -0
  87. data/lib/ledger_sync/quickbooks_online/invoice_line/serializer.rb +23 -0
  88. data/lib/ledger_sync/quickbooks_online/item/deserializer.rb +11 -0
  89. data/lib/ledger_sync/quickbooks_online/item/serializer.rb +10 -0
  90. data/lib/ledger_sync/quickbooks_online/journal_entry/deserializer.rb +26 -0
  91. data/lib/ledger_sync/quickbooks_online/journal_entry/operations/create.rb +23 -0
  92. data/lib/ledger_sync/quickbooks_online/journal_entry/operations/find.rb +23 -0
  93. data/lib/ledger_sync/quickbooks_online/journal_entry/operations/update.rb +23 -0
  94. data/lib/ledger_sync/quickbooks_online/journal_entry/searcher.rb +12 -0
  95. data/lib/ledger_sync/quickbooks_online/journal_entry/serializer.rb +26 -0
  96. data/lib/ledger_sync/quickbooks_online/journal_entry_line/deserializer.rb +18 -0
  97. data/lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb +22 -0
  98. data/lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb +27 -0
  99. data/lib/ledger_sync/quickbooks_online/journal_entry_line_detail/serializer.rb +27 -0
  100. data/lib/ledger_sync/quickbooks_online/ledger_class/deserializer.rb +22 -0
  101. data/lib/ledger_sync/quickbooks_online/ledger_class/operations/create.rb +23 -0
  102. data/lib/ledger_sync/quickbooks_online/ledger_class/operations/find.rb +23 -0
  103. data/lib/ledger_sync/quickbooks_online/ledger_class/operations/update.rb +23 -0
  104. data/lib/ledger_sync/quickbooks_online/ledger_class/searcher.rb +13 -0
  105. data/lib/ledger_sync/quickbooks_online/ledger_class/serializer.rb +22 -0
  106. data/lib/ledger_sync/quickbooks_online/oauth_client.rb +91 -0
  107. data/lib/ledger_sync/quickbooks_online/operation.rb +59 -0
  108. data/lib/ledger_sync/quickbooks_online/operation/create.rb +24 -0
  109. data/lib/ledger_sync/quickbooks_online/operation/find.rb +23 -0
  110. data/lib/ledger_sync/quickbooks_online/operation/full_update.rb +40 -0
  111. data/lib/ledger_sync/quickbooks_online/operation/sparse_update.rb +27 -0
  112. data/lib/ledger_sync/quickbooks_online/payment/deserializer.rb +40 -0
  113. data/lib/ledger_sync/quickbooks_online/payment/operations/create.rb +28 -0
  114. data/lib/ledger_sync/quickbooks_online/payment/operations/find.rb +28 -0
  115. data/lib/ledger_sync/quickbooks_online/payment/operations/update.rb +28 -0
  116. data/lib/ledger_sync/quickbooks_online/payment/serializer.rb +40 -0
  117. data/lib/ledger_sync/quickbooks_online/payment_line/deserializer.rb +15 -0
  118. data/lib/ledger_sync/quickbooks_online/payment_line/serializer.rb +15 -0
  119. data/lib/ledger_sync/quickbooks_online/preferences/deserializer.rb +22 -0
  120. data/lib/ledger_sync/quickbooks_online/preferences/operations/find.rb +28 -0
  121. data/lib/ledger_sync/quickbooks_online/preferences/serializer.rb +22 -0
  122. data/lib/ledger_sync/quickbooks_online/primary_email_addr/deserializer.rb +11 -0
  123. data/lib/ledger_sync/quickbooks_online/primary_email_addr/serializer.rb +11 -0
  124. data/lib/ledger_sync/quickbooks_online/primary_phone/deserializer.rb +11 -0
  125. data/lib/ledger_sync/quickbooks_online/primary_phone/serializer.rb +11 -0
  126. data/lib/ledger_sync/quickbooks_online/reference/deserializer.rb +11 -0
  127. data/lib/ledger_sync/quickbooks_online/reference/serializer.rb +11 -0
  128. data/lib/ledger_sync/quickbooks_online/request.rb +96 -0
  129. data/lib/ledger_sync/quickbooks_online/resource.rb +8 -0
  130. data/lib/ledger_sync/quickbooks_online/resources/account.rb +357 -0
  131. data/lib/ledger_sync/quickbooks_online/resources/account_based_expense_line_detail.rb +17 -0
  132. data/lib/ledger_sync/quickbooks_online/resources/bill.rb +29 -0
  133. data/lib/ledger_sync/quickbooks_online/resources/bill_line.rb +17 -0
  134. data/lib/ledger_sync/quickbooks_online/resources/bill_payment.rb +42 -0
  135. data/lib/ledger_sync/quickbooks_online/resources/bill_payment_line.rb +17 -0
  136. data/lib/ledger_sync/quickbooks_online/resources/check_payment.rb +11 -0
  137. data/lib/ledger_sync/quickbooks_online/resources/credit_card_payment.rb +11 -0
  138. data/lib/ledger_sync/quickbooks_online/resources/currency.rb +15 -0
  139. data/lib/ledger_sync/quickbooks_online/resources/customer.rb +22 -0
  140. data/lib/ledger_sync/quickbooks_online/resources/department.rb +20 -0
  141. data/lib/ledger_sync/quickbooks_online/resources/deposit.rb +26 -0
  142. data/lib/ledger_sync/quickbooks_online/resources/deposit_line.rb +17 -0
  143. data/lib/ledger_sync/quickbooks_online/resources/deposit_line_detail.rb +20 -0
  144. data/lib/ledger_sync/quickbooks_online/resources/expense.rb +38 -0
  145. data/lib/ledger_sync/quickbooks_online/resources/expense_line.rb +17 -0
  146. data/lib/ledger_sync/quickbooks_online/resources/invoice.rb +26 -0
  147. data/lib/ledger_sync/quickbooks_online/resources/invoice_line.rb +17 -0
  148. data/lib/ledger_sync/quickbooks_online/resources/item.rb +9 -0
  149. data/lib/ledger_sync/quickbooks_online/resources/journal_entry.rb +22 -0
  150. data/lib/ledger_sync/quickbooks_online/resources/journal_entry_line.rb +18 -0
  151. data/lib/ledger_sync/quickbooks_online/resources/journal_entry_line_detail.rb +25 -0
  152. data/lib/ledger_sync/quickbooks_online/resources/ledger_class.rb +18 -0
  153. data/lib/ledger_sync/quickbooks_online/resources/payment.rb +29 -0
  154. data/lib/ledger_sync/quickbooks_online/resources/payment_line.rb +17 -0
  155. data/lib/ledger_sync/quickbooks_online/resources/preferences.rb +22 -0
  156. data/lib/ledger_sync/quickbooks_online/resources/primary_email_addr.rb +9 -0
  157. data/lib/ledger_sync/quickbooks_online/resources/primary_phone.rb +9 -0
  158. data/lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb +17 -0
  159. data/lib/ledger_sync/quickbooks_online/resources/transfer.rb +22 -0
  160. data/lib/ledger_sync/quickbooks_online/resources/vendor.rb +23 -0
  161. data/lib/ledger_sync/quickbooks_online/sales_item_line_detail/deserializer.rb +19 -0
  162. data/lib/ledger_sync/quickbooks_online/sales_item_line_detail/serializer.rb +19 -0
  163. data/lib/ledger_sync/quickbooks_online/searcher.rb +58 -0
  164. data/lib/ledger_sync/quickbooks_online/serialization/type/amount_float_to_integer_type.rb +19 -0
  165. data/lib/ledger_sync/quickbooks_online/serialization/type/deserialize_transaction_reference_type.rb +28 -0
  166. data/lib/ledger_sync/quickbooks_online/serialization/type/integer_to_amount_float_type.rb +19 -0
  167. data/lib/ledger_sync/quickbooks_online/serialization/type/serialize_transaction_reference_type.rb +28 -0
  168. data/lib/ledger_sync/quickbooks_online/serializer.rb +69 -0
  169. data/lib/ledger_sync/quickbooks_online/serialziation/type/mapping_type.rb +27 -0
  170. data/lib/ledger_sync/quickbooks_online/transfer/deserializer.rb +29 -0
  171. data/lib/ledger_sync/quickbooks_online/transfer/operations/create.rb +24 -0
  172. data/lib/ledger_sync/quickbooks_online/transfer/operations/find.rb +24 -0
  173. data/lib/ledger_sync/quickbooks_online/transfer/operations/update.rb +24 -0
  174. data/lib/ledger_sync/quickbooks_online/transfer/serializer.rb +29 -0
  175. data/lib/ledger_sync/quickbooks_online/util/error_matcher.rb +68 -0
  176. data/lib/ledger_sync/quickbooks_online/util/error_parser.rb +25 -0
  177. data/lib/ledger_sync/quickbooks_online/util/ledger_error_parser.rb +101 -0
  178. data/lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb +97 -0
  179. data/lib/ledger_sync/quickbooks_online/vendor/deserializer.rb +25 -0
  180. data/lib/ledger_sync/quickbooks_online/vendor/operations/create.rb +25 -0
  181. data/lib/ledger_sync/quickbooks_online/vendor/operations/find.rb +25 -0
  182. data/lib/ledger_sync/quickbooks_online/vendor/operations/update.rb +25 -0
  183. data/lib/ledger_sync/quickbooks_online/vendor/searcher.rb +13 -0
  184. data/lib/ledger_sync/quickbooks_online/vendor/serializer.rb +25 -0
  185. data/lib/ledger_sync/quickbooks_online/version.rb +19 -0
  186. data/lib/ledger_sync/quickbooks_online/webhook.rb +56 -0
  187. data/lib/ledger_sync/quickbooks_online/webhook_event.rb +79 -0
  188. data/lib/ledger_sync/quickbooks_online/webhook_notification.rb +41 -0
  189. data/license.txt +4 -0
  190. metadata +456 -0
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../primary_phone/deserializer'
4
+ require_relative '../primary_email_addr/deserializer'
5
+
6
+ module LedgerSync
7
+ module QuickBooksOnline
8
+ class Vendor
9
+ class Deserializer < QuickBooksOnline::Deserializer
10
+ id
11
+
12
+ attribute :DisplayName
13
+ attribute :GivenName
14
+ attribute :MiddleName
15
+ attribute :FamilyName
16
+ attribute :CompanyName
17
+
18
+ references_one :PrimaryPhone,
19
+ deserializer: PrimaryPhone::Deserializer
20
+ references_one :PrimaryEmailAddr,
21
+ deserializer: PrimaryEmailAddr::Deserializer
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LedgerSync
4
+ module QuickBooksOnline
5
+ class Vendor
6
+ module Operations
7
+ class Create < Operation::Create
8
+ class Contract < LedgerSync::Ledgers::Contract
9
+ params do
10
+ required(:external_id).maybe(:string)
11
+ required(:ledger_id).value(:nil)
12
+ optional(:CompanyName).maybe(:string)
13
+ optional(:DisplayName).maybe(:string)
14
+ optional(:FamilyName).maybe(:string)
15
+ optional(:GivenName).maybe(:string)
16
+ optional(:MiddleName).maybe(:string)
17
+ required(:PrimaryPhone).maybe(:hash, Types::Reference)
18
+ required(:PrimaryEmailAddr).maybe(:hash, Types::Reference)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LedgerSync
4
+ module QuickBooksOnline
5
+ class Vendor
6
+ module Operations
7
+ class Find < Operation::Find
8
+ class Contract < LedgerSync::Ledgers::Contract
9
+ params do
10
+ required(:external_id).maybe(:string)
11
+ required(:ledger_id).filled(:string)
12
+ optional(:CompanyName).maybe(:string)
13
+ optional(:DisplayName).maybe(:string)
14
+ optional(:FamilyName).maybe(:string)
15
+ optional(:GivenName).maybe(:string)
16
+ optional(:MiddleName).maybe(:string)
17
+ optional(:PrimaryPhone).maybe(:hash, Types::Reference)
18
+ optional(:PrimaryEmailAddr).maybe(:hash, Types::Reference)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LedgerSync
4
+ module QuickBooksOnline
5
+ class Vendor
6
+ module Operations
7
+ class Update < Operation::FullUpdate
8
+ class Contract < LedgerSync::Ledgers::Contract
9
+ params do
10
+ required(:external_id).maybe(:string)
11
+ required(:ledger_id).filled(:string)
12
+ optional(:CompanyName).maybe(:string)
13
+ optional(:DisplayName).maybe(:string)
14
+ optional(:FamilyName).maybe(:string)
15
+ optional(:GivenName).maybe(:string)
16
+ optional(:MiddleName).maybe(:string)
17
+ required(:PrimaryPhone).maybe(:hash, Types::Reference)
18
+ required(:PrimaryEmailAddr).maybe(:hash, Types::Reference)
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module LedgerSync
4
+ module QuickBooksOnline
5
+ class Vendor
6
+ class Searcher < Searcher
7
+ def query_string
8
+ "DisplayName LIKE '%#{query}%'"
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,25 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../primary_phone/serializer'
4
+ require_relative '../primary_email_addr/serializer'
5
+
6
+ module LedgerSync
7
+ module QuickBooksOnline
8
+ class Vendor
9
+ class Serializer < QuickBooksOnline::Serializer
10
+ id
11
+
12
+ attribute :DisplayName
13
+ attribute :GivenName
14
+ attribute :MiddleName
15
+ attribute :FamilyName
16
+ attribute :CompanyName
17
+
18
+ references_one :PrimaryPhone,
19
+ serializer: PrimaryPhone::Serializer
20
+ references_one :PrimaryEmailAddr,
21
+ serializer: PrimaryEmailAddr::Serializer
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ # :nocov:
4
+ module LedgerSync
5
+ module QuickBooksOnline
6
+ VERSION = '0.1.1'
7
+
8
+ def self.version(args = {})
9
+ pre = args.fetch(:pre, false)
10
+
11
+ if !pre && (!ENV['TRAVIS'] || ENV.fetch('TRAVIS_TAG', '') != '')
12
+ VERSION
13
+ else
14
+ "#{VERSION}.pre.#{ENV['TRAVIS_BUILD_NUMBER']}"
15
+ end
16
+ end
17
+ end
18
+ end
19
+ # :nocov:
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'webhook_event'
4
+
5
+ # ref: https://developer.intuit.com/app/developer/qbo/docs/develop/webhooks/managing-webhooks-notifications#validating-the-notification
6
+ module LedgerSync
7
+ module QuickBooksOnline
8
+ class Webhook
9
+ attr_reader :notifications,
10
+ :original_payload,
11
+ :payload
12
+
13
+ def initialize(payload:)
14
+ @original_payload = payload
15
+ @payload = payload.is_a?(String) ? JSON.parse(payload) : payload
16
+
17
+ event_notifications_payload = @payload['eventNotifications']
18
+ raise 'Invalid payload: Could not find eventNotifications' unless event_notifications_payload.is_a?(Array)
19
+
20
+ @notifications = []
21
+
22
+ event_notifications_payload.each do |event_notification_payload|
23
+ @notifications << WebhookNotification.new(
24
+ payload: event_notification_payload,
25
+ webhook: self
26
+ )
27
+ end
28
+ end
29
+
30
+ def events
31
+ notifications.map(&:events)
32
+ end
33
+
34
+ def resources
35
+ @resources ||= notifications.map(&:resources).flatten.compact
36
+ end
37
+
38
+ def valid?(signature:, verification_token:)
39
+ self.class.valid?(
40
+ payload: payload.to_json,
41
+ signature: signature,
42
+ verification_token: verification_token
43
+ )
44
+ end
45
+
46
+ def self.valid?(payload:, signature:, verification_token:)
47
+ raise 'Cannot verify non-String payload' unless payload.is_a?(String)
48
+
49
+ digest = OpenSSL::Digest.new('sha256')
50
+ hmac = OpenSSL::HMAC.digest(digest, verification_token, payload)
51
+ base64 = Base64.encode64(hmac).strip
52
+ base64 == signature
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,79 @@
1
+ # frozen_string_literal: true
2
+
3
+ # ref: https://developer.intuit.com/app/developer/qbo/docs/develop/webhooks/managing-webhooks-notifications#validating-the-notification
4
+ module LedgerSync
5
+ module QuickBooksOnline
6
+ class WebhookEvent
7
+ attr_reader :deleted_id,
8
+ :event_operation,
9
+ :last_updated_at,
10
+ :ledger_id,
11
+ :original_payload,
12
+ :payload,
13
+ :quickbooks_online_resource_type,
14
+ :webhook_notification,
15
+ :webhook
16
+
17
+ def initialize(payload:, webhook_notification: nil)
18
+ @original_payload = payload
19
+ @payload = payload.is_a?(String) ? JSON.parse(payload) : payload
20
+
21
+ @deleted_id = @payload['deletedId']
22
+
23
+ @event_operation = @payload['operation']
24
+ raise 'Invalid payload: Could not find operation' if @event_operation.blank?
25
+
26
+ @last_updated_at = @payload['lastUpdated']
27
+ raise 'Invalid payload: Could not find lastUpdated' if @last_updated_at.blank?
28
+
29
+ @last_updated_at = Time.parse(@last_updated_at)
30
+
31
+ @ledger_id = @payload['id']
32
+ raise 'Invalid payload: Could not find id' if @ledger_id.blank?
33
+
34
+ @quickbooks_online_resource_type = @payload['name']
35
+ raise 'Invalid payload: Could not find name' if @quickbooks_online_resource_type.blank?
36
+
37
+ @webhook_notification = webhook_notification
38
+ @webhook = webhook_notification.try(:webhook)
39
+ end
40
+
41
+ def find(client:)
42
+ find_operation(client: client).perform
43
+ end
44
+
45
+ def find_operation(client:)
46
+ find_operation_class(client: client).new(
47
+ client: client,
48
+ resource: resource_class.new(ledger_id: ledger_id)
49
+ )
50
+ end
51
+
52
+ def find_operation_class(client:)
53
+ client.class.base_operations_module_for(resource_class: resource_class)::Find
54
+ end
55
+
56
+ def local_resource_type
57
+ @local_resource_type ||= resource_class.resource_type
58
+ end
59
+
60
+ def resource
61
+ return unless resource_class.present?
62
+
63
+ resource_class.new(ledger_id: ledger_id)
64
+ end
65
+
66
+ def resource!
67
+ if resource.nil?
68
+ raise "Resource class does not exist for QuickBooks Online object: #{quickbooks_online_resource_type}"
69
+ end
70
+
71
+ resource
72
+ end
73
+
74
+ def resource_class
75
+ @resource_class ||= Client.resource_from_ledger_type(type: quickbooks_online_resource_type.downcase)
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'webhook_event'
4
+
5
+ # ref: https://developer.intuit.com/app/developer/qbo/docs/develop/webhooks/managing-webhooks-notifications#validating-the-notification
6
+ module LedgerSync
7
+ module QuickBooksOnline
8
+ class WebhookNotification
9
+ attr_reader :events,
10
+ :original_payload,
11
+ :payload,
12
+ :realm_id,
13
+ :webhook
14
+
15
+ def initialize(args = {})
16
+ @original_payload = args.fetch(:payload)
17
+ @webhook = args.fetch(:webhook, nil)
18
+ @payload = original_payload.is_a?(String) ? JSON.parse(original_payload) : original_payload
19
+
20
+ @realm_id = @payload['realmId']
21
+ raise 'Invalid payload: Could not find realmId' if @realm_id.blank?
22
+
23
+ events_payload = @payload.dig('dataChangeEvent', 'entities')
24
+ raise 'Invalid payload: Could not find dataChangeEvent -> entities' unless events_payload.is_a?(Array)
25
+
26
+ @events = []
27
+
28
+ events_payload.each do |event_payload|
29
+ @events << WebhookEvent.new(
30
+ payload: event_payload,
31
+ webhook_notification: self
32
+ )
33
+ end
34
+ end
35
+
36
+ def resources
37
+ @resources ||= events.map(&:resource).compact
38
+ end
39
+ end
40
+ end
41
+ end
data/license.txt ADDED
@@ -0,0 +1,4 @@
1
+ This repo and all the code within are licensed under the same licensing as the LedgerSync core gem:
2
+ https://github.com/LedgerSync/ledger_sync
3
+
4
+ Any updates to those licenses are to take effect here on the same date as per the terms of the license.
metadata ADDED
@@ -0,0 +1,456 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ledger_sync-quickbooks_online
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Modern Treasury
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-05-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: awesome_print
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bump
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.9.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.9.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.1'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.1'
55
+ - !ruby/object:Gem::Dependency
56
+ name: byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: climate_control
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: coveralls
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: factory_bot
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 6.1.0
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 6.1.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: overcommit
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.57.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.57.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '13.0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '13.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rspec
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.2'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.2'
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: vcr
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: webmock
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: dotenv
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: '0'
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: '0'
209
+ - !ruby/object:Gem::Dependency
210
+ name: ledger_sync
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - "~>"
214
+ - !ruby/object:Gem::Version
215
+ version: 1.8.0
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - "~>"
221
+ - !ruby/object:Gem::Version
222
+ version: 1.8.0
223
+ - !ruby/object:Gem::Dependency
224
+ name: oauth2
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ description: LedgerSync is a simple library that allows you to sync common objects
238
+ to popular accounting software like QuickBooks Online, QuickBooksOnline, NetSuite,
239
+ etc.
240
+ email:
241
+ - ledgersync@moderntreasury.com
242
+ executables: []
243
+ extensions: []
244
+ extra_rdoc_files: []
245
+ files:
246
+ - ".coveralls.yml"
247
+ - ".env.test"
248
+ - ".gitignore"
249
+ - ".overcommit.yml"
250
+ - ".rubocop.yml"
251
+ - ".rubocop_todo.yml"
252
+ - ".travis.yml"
253
+ - Gemfile
254
+ - Gemfile.lock
255
+ - README.md
256
+ - Rakefile
257
+ - bin/console
258
+ - bin/quickbooks_online_oauth_server.rb
259
+ - bin/setup
260
+ - ledger_sync-quickbooks_online.gemspec
261
+ - lib/ledger_sync/quickbooks_online.rb
262
+ - lib/ledger_sync/quickbooks_online/account/deserializer.rb
263
+ - lib/ledger_sync/quickbooks_online/account/operations/create.rb
264
+ - lib/ledger_sync/quickbooks_online/account/operations/find.rb
265
+ - lib/ledger_sync/quickbooks_online/account/operations/update.rb
266
+ - lib/ledger_sync/quickbooks_online/account/searcher.rb
267
+ - lib/ledger_sync/quickbooks_online/account/serializer.rb
268
+ - lib/ledger_sync/quickbooks_online/account_based_expense_line_detail/deserializer.rb
269
+ - lib/ledger_sync/quickbooks_online/account_based_expense_line_detail/serializer.rb
270
+ - lib/ledger_sync/quickbooks_online/bill/deserializer.rb
271
+ - lib/ledger_sync/quickbooks_online/bill/operations/create.rb
272
+ - lib/ledger_sync/quickbooks_online/bill/operations/find.rb
273
+ - lib/ledger_sync/quickbooks_online/bill/operations/update.rb
274
+ - lib/ledger_sync/quickbooks_online/bill/searcher.rb
275
+ - lib/ledger_sync/quickbooks_online/bill/serializer.rb
276
+ - lib/ledger_sync/quickbooks_online/bill_line/deserializer.rb
277
+ - lib/ledger_sync/quickbooks_online/bill_line/serializer.rb
278
+ - lib/ledger_sync/quickbooks_online/bill_payment/deserializer.rb
279
+ - lib/ledger_sync/quickbooks_online/bill_payment/operations/create.rb
280
+ - lib/ledger_sync/quickbooks_online/bill_payment/operations/find.rb
281
+ - lib/ledger_sync/quickbooks_online/bill_payment/operations/update.rb
282
+ - lib/ledger_sync/quickbooks_online/bill_payment/serializer.rb
283
+ - lib/ledger_sync/quickbooks_online/bill_payment_line/deserializer.rb
284
+ - lib/ledger_sync/quickbooks_online/bill_payment_line/serializer.rb
285
+ - lib/ledger_sync/quickbooks_online/check_payment/deserializer.rb
286
+ - lib/ledger_sync/quickbooks_online/check_payment/serializer.rb
287
+ - lib/ledger_sync/quickbooks_online/client.rb
288
+ - lib/ledger_sync/quickbooks_online/config.rb
289
+ - lib/ledger_sync/quickbooks_online/credit_card_payment/deserializer.rb
290
+ - lib/ledger_sync/quickbooks_online/credit_card_payment/serializer.rb
291
+ - lib/ledger_sync/quickbooks_online/currency/deserializer.rb
292
+ - lib/ledger_sync/quickbooks_online/currency/serializer.rb
293
+ - lib/ledger_sync/quickbooks_online/customer/deserializer.rb
294
+ - lib/ledger_sync/quickbooks_online/customer/operations/create.rb
295
+ - lib/ledger_sync/quickbooks_online/customer/operations/find.rb
296
+ - lib/ledger_sync/quickbooks_online/customer/operations/update.rb
297
+ - lib/ledger_sync/quickbooks_online/customer/searcher.rb
298
+ - lib/ledger_sync/quickbooks_online/customer/serializer.rb
299
+ - lib/ledger_sync/quickbooks_online/dashboard_url_helper.rb
300
+ - lib/ledger_sync/quickbooks_online/department/deserializer.rb
301
+ - lib/ledger_sync/quickbooks_online/department/operations/create.rb
302
+ - lib/ledger_sync/quickbooks_online/department/operations/find.rb
303
+ - lib/ledger_sync/quickbooks_online/department/operations/update.rb
304
+ - lib/ledger_sync/quickbooks_online/department/searcher.rb
305
+ - lib/ledger_sync/quickbooks_online/department/serializer.rb
306
+ - lib/ledger_sync/quickbooks_online/deposit/deserializer.rb
307
+ - lib/ledger_sync/quickbooks_online/deposit/operations/create.rb
308
+ - lib/ledger_sync/quickbooks_online/deposit/operations/find.rb
309
+ - lib/ledger_sync/quickbooks_online/deposit/operations/update.rb
310
+ - lib/ledger_sync/quickbooks_online/deposit/searcher.rb
311
+ - lib/ledger_sync/quickbooks_online/deposit/serializer.rb
312
+ - lib/ledger_sync/quickbooks_online/deposit_line/deserializer.rb
313
+ - lib/ledger_sync/quickbooks_online/deposit_line/serializer.rb
314
+ - lib/ledger_sync/quickbooks_online/deposit_line_detail/deserializer.rb
315
+ - lib/ledger_sync/quickbooks_online/deposit_line_detail/serializer.rb
316
+ - lib/ledger_sync/quickbooks_online/deserializer.rb
317
+ - lib/ledger_sync/quickbooks_online/expense/deserializer.rb
318
+ - lib/ledger_sync/quickbooks_online/expense/operations/create.rb
319
+ - lib/ledger_sync/quickbooks_online/expense/operations/find.rb
320
+ - lib/ledger_sync/quickbooks_online/expense/operations/update.rb
321
+ - lib/ledger_sync/quickbooks_online/expense/searcher.rb
322
+ - lib/ledger_sync/quickbooks_online/expense/serializer.rb
323
+ - lib/ledger_sync/quickbooks_online/expense_line/deserializer.rb
324
+ - lib/ledger_sync/quickbooks_online/expense_line/serializer.rb
325
+ - lib/ledger_sync/quickbooks_online/invoice/deserializer.rb
326
+ - lib/ledger_sync/quickbooks_online/invoice/operations/create.rb
327
+ - lib/ledger_sync/quickbooks_online/invoice/operations/find.rb
328
+ - lib/ledger_sync/quickbooks_online/invoice/operations/update.rb
329
+ - lib/ledger_sync/quickbooks_online/invoice/serializer.rb
330
+ - lib/ledger_sync/quickbooks_online/invoice_line/deserializer.rb
331
+ - lib/ledger_sync/quickbooks_online/invoice_line/serializer.rb
332
+ - lib/ledger_sync/quickbooks_online/item/deserializer.rb
333
+ - lib/ledger_sync/quickbooks_online/item/serializer.rb
334
+ - lib/ledger_sync/quickbooks_online/journal_entry/deserializer.rb
335
+ - lib/ledger_sync/quickbooks_online/journal_entry/operations/create.rb
336
+ - lib/ledger_sync/quickbooks_online/journal_entry/operations/find.rb
337
+ - lib/ledger_sync/quickbooks_online/journal_entry/operations/update.rb
338
+ - lib/ledger_sync/quickbooks_online/journal_entry/searcher.rb
339
+ - lib/ledger_sync/quickbooks_online/journal_entry/serializer.rb
340
+ - lib/ledger_sync/quickbooks_online/journal_entry_line/deserializer.rb
341
+ - lib/ledger_sync/quickbooks_online/journal_entry_line/serializer.rb
342
+ - lib/ledger_sync/quickbooks_online/journal_entry_line_detail/deserializer.rb
343
+ - lib/ledger_sync/quickbooks_online/journal_entry_line_detail/serializer.rb
344
+ - lib/ledger_sync/quickbooks_online/ledger_class/deserializer.rb
345
+ - lib/ledger_sync/quickbooks_online/ledger_class/operations/create.rb
346
+ - lib/ledger_sync/quickbooks_online/ledger_class/operations/find.rb
347
+ - lib/ledger_sync/quickbooks_online/ledger_class/operations/update.rb
348
+ - lib/ledger_sync/quickbooks_online/ledger_class/searcher.rb
349
+ - lib/ledger_sync/quickbooks_online/ledger_class/serializer.rb
350
+ - lib/ledger_sync/quickbooks_online/oauth_client.rb
351
+ - lib/ledger_sync/quickbooks_online/operation.rb
352
+ - lib/ledger_sync/quickbooks_online/operation/create.rb
353
+ - lib/ledger_sync/quickbooks_online/operation/find.rb
354
+ - lib/ledger_sync/quickbooks_online/operation/full_update.rb
355
+ - lib/ledger_sync/quickbooks_online/operation/sparse_update.rb
356
+ - lib/ledger_sync/quickbooks_online/payment/deserializer.rb
357
+ - lib/ledger_sync/quickbooks_online/payment/operations/create.rb
358
+ - lib/ledger_sync/quickbooks_online/payment/operations/find.rb
359
+ - lib/ledger_sync/quickbooks_online/payment/operations/update.rb
360
+ - lib/ledger_sync/quickbooks_online/payment/serializer.rb
361
+ - lib/ledger_sync/quickbooks_online/payment_line/deserializer.rb
362
+ - lib/ledger_sync/quickbooks_online/payment_line/serializer.rb
363
+ - lib/ledger_sync/quickbooks_online/preferences/deserializer.rb
364
+ - lib/ledger_sync/quickbooks_online/preferences/operations/find.rb
365
+ - lib/ledger_sync/quickbooks_online/preferences/serializer.rb
366
+ - lib/ledger_sync/quickbooks_online/primary_email_addr/deserializer.rb
367
+ - lib/ledger_sync/quickbooks_online/primary_email_addr/serializer.rb
368
+ - lib/ledger_sync/quickbooks_online/primary_phone/deserializer.rb
369
+ - lib/ledger_sync/quickbooks_online/primary_phone/serializer.rb
370
+ - lib/ledger_sync/quickbooks_online/reference/deserializer.rb
371
+ - lib/ledger_sync/quickbooks_online/reference/serializer.rb
372
+ - lib/ledger_sync/quickbooks_online/request.rb
373
+ - lib/ledger_sync/quickbooks_online/resource.rb
374
+ - lib/ledger_sync/quickbooks_online/resources/account.rb
375
+ - lib/ledger_sync/quickbooks_online/resources/account_based_expense_line_detail.rb
376
+ - lib/ledger_sync/quickbooks_online/resources/bill.rb
377
+ - lib/ledger_sync/quickbooks_online/resources/bill_line.rb
378
+ - lib/ledger_sync/quickbooks_online/resources/bill_payment.rb
379
+ - lib/ledger_sync/quickbooks_online/resources/bill_payment_line.rb
380
+ - lib/ledger_sync/quickbooks_online/resources/check_payment.rb
381
+ - lib/ledger_sync/quickbooks_online/resources/credit_card_payment.rb
382
+ - lib/ledger_sync/quickbooks_online/resources/currency.rb
383
+ - lib/ledger_sync/quickbooks_online/resources/customer.rb
384
+ - lib/ledger_sync/quickbooks_online/resources/department.rb
385
+ - lib/ledger_sync/quickbooks_online/resources/deposit.rb
386
+ - lib/ledger_sync/quickbooks_online/resources/deposit_line.rb
387
+ - lib/ledger_sync/quickbooks_online/resources/deposit_line_detail.rb
388
+ - lib/ledger_sync/quickbooks_online/resources/expense.rb
389
+ - lib/ledger_sync/quickbooks_online/resources/expense_line.rb
390
+ - lib/ledger_sync/quickbooks_online/resources/invoice.rb
391
+ - lib/ledger_sync/quickbooks_online/resources/invoice_line.rb
392
+ - lib/ledger_sync/quickbooks_online/resources/item.rb
393
+ - lib/ledger_sync/quickbooks_online/resources/journal_entry.rb
394
+ - lib/ledger_sync/quickbooks_online/resources/journal_entry_line.rb
395
+ - lib/ledger_sync/quickbooks_online/resources/journal_entry_line_detail.rb
396
+ - lib/ledger_sync/quickbooks_online/resources/ledger_class.rb
397
+ - lib/ledger_sync/quickbooks_online/resources/payment.rb
398
+ - lib/ledger_sync/quickbooks_online/resources/payment_line.rb
399
+ - lib/ledger_sync/quickbooks_online/resources/preferences.rb
400
+ - lib/ledger_sync/quickbooks_online/resources/primary_email_addr.rb
401
+ - lib/ledger_sync/quickbooks_online/resources/primary_phone.rb
402
+ - lib/ledger_sync/quickbooks_online/resources/sales_item_line_detail.rb
403
+ - lib/ledger_sync/quickbooks_online/resources/transfer.rb
404
+ - lib/ledger_sync/quickbooks_online/resources/vendor.rb
405
+ - lib/ledger_sync/quickbooks_online/sales_item_line_detail/deserializer.rb
406
+ - lib/ledger_sync/quickbooks_online/sales_item_line_detail/serializer.rb
407
+ - lib/ledger_sync/quickbooks_online/searcher.rb
408
+ - lib/ledger_sync/quickbooks_online/serialization/type/amount_float_to_integer_type.rb
409
+ - lib/ledger_sync/quickbooks_online/serialization/type/deserialize_transaction_reference_type.rb
410
+ - lib/ledger_sync/quickbooks_online/serialization/type/integer_to_amount_float_type.rb
411
+ - lib/ledger_sync/quickbooks_online/serialization/type/serialize_transaction_reference_type.rb
412
+ - lib/ledger_sync/quickbooks_online/serializer.rb
413
+ - lib/ledger_sync/quickbooks_online/serialziation/type/mapping_type.rb
414
+ - lib/ledger_sync/quickbooks_online/transfer/deserializer.rb
415
+ - lib/ledger_sync/quickbooks_online/transfer/operations/create.rb
416
+ - lib/ledger_sync/quickbooks_online/transfer/operations/find.rb
417
+ - lib/ledger_sync/quickbooks_online/transfer/operations/update.rb
418
+ - lib/ledger_sync/quickbooks_online/transfer/serializer.rb
419
+ - lib/ledger_sync/quickbooks_online/util/error_matcher.rb
420
+ - lib/ledger_sync/quickbooks_online/util/error_parser.rb
421
+ - lib/ledger_sync/quickbooks_online/util/ledger_error_parser.rb
422
+ - lib/ledger_sync/quickbooks_online/util/operation_error_parser.rb
423
+ - lib/ledger_sync/quickbooks_online/vendor/deserializer.rb
424
+ - lib/ledger_sync/quickbooks_online/vendor/operations/create.rb
425
+ - lib/ledger_sync/quickbooks_online/vendor/operations/find.rb
426
+ - lib/ledger_sync/quickbooks_online/vendor/operations/update.rb
427
+ - lib/ledger_sync/quickbooks_online/vendor/searcher.rb
428
+ - lib/ledger_sync/quickbooks_online/vendor/serializer.rb
429
+ - lib/ledger_sync/quickbooks_online/version.rb
430
+ - lib/ledger_sync/quickbooks_online/webhook.rb
431
+ - lib/ledger_sync/quickbooks_online/webhook_event.rb
432
+ - lib/ledger_sync/quickbooks_online/webhook_notification.rb
433
+ - license.txt
434
+ homepage: https://www.ledgersync.dev
435
+ licenses: []
436
+ metadata: {}
437
+ post_install_message:
438
+ rdoc_options: []
439
+ require_paths:
440
+ - lib
441
+ required_ruby_version: !ruby/object:Gem::Requirement
442
+ requirements:
443
+ - - ">="
444
+ - !ruby/object:Gem::Version
445
+ version: 2.5.8
446
+ required_rubygems_version: !ruby/object:Gem::Requirement
447
+ requirements:
448
+ - - ">="
449
+ - !ruby/object:Gem::Version
450
+ version: '0'
451
+ requirements: []
452
+ rubygems_version: 3.0.3
453
+ signing_key:
454
+ specification_version: 4
455
+ summary: Sync common objects to accounting software.
456
+ test_files: []