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
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1d5768ef6cd822bec6a6605772cfb2a8920954c05d3a6c7493fda49834b9a826
4
+ data.tar.gz: 3eee287678d9cb319be542423e0647d8a25d070d4d01026fa167c482051c5e57
5
+ SHA512:
6
+ metadata.gz: 01d5e2c45a3f08dbd7d5b920e89f27cb8acc1b8895442718bd521a794aeccea8259e57e6d106900fd36baaa36fa0f447228dcd361ed7b60968d09d6592acfe23
7
+ data.tar.gz: 8885d7bf6793bdf67edfd5d7084dc7bc9cbb72bb642de65a5fdefaf25a71a1c6a8ce905fcf342b0e02402a27fdc081d15f38b98eb2f7a631b2d27effe78be7c3
data/.coveralls.yml ADDED
@@ -0,0 +1 @@
1
+ service_name: travis-ci
data/.env.test ADDED
@@ -0,0 +1,9 @@
1
+ QUICKBOOKS_ONLINE_QA=0 # Set to 1 to run QUICKBOOKS_ONLINE tests
2
+ QUICKBOOKS_ONLINE_ACCESS_TOKEN=
3
+ QUICKBOOKS_ONLINE_CLIENT_ID=
4
+ QUICKBOOKS_ONLINE_CLIENT_SECRET=
5
+ QUICKBOOKS_ONLINE_REALM_ID=
6
+ QUICKBOOKS_ONLINE_REFRESH_TOKEN=
7
+
8
+ # Show oauth debug output
9
+ OAUTH_DEBUG=false
data/.gitignore ADDED
@@ -0,0 +1,21 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp
9
+
10
+ # byebug
11
+ .byebug_history
12
+
13
+ # Mac
14
+ .DS_Store
15
+
16
+ # dotenv
17
+ .env
18
+ *.local
19
+
20
+ .tool-versions
21
+ .ruby-version
data/.overcommit.yml ADDED
@@ -0,0 +1,29 @@
1
+ # Use this file to configure the Overcommit hooks you wish to use. This will
2
+ # extend the default configuration defined in:
3
+ # https://github.com/sds/overcommit/blob/master/config/default.yml
4
+ #
5
+ # At the topmost level of this YAML file is a key representing type of hook
6
+ # being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7
+ # customize each hook, such as whether to only run it on certain files (via
8
+ # `include`), whether to only display output if it fails (via `quiet`), etc.
9
+ #
10
+ # For a complete list of hooks, see:
11
+ # https://github.com/sds/overcommit/tree/master/lib/overcommit/hook
12
+ #
13
+ # For a complete list of options that you can use to customize hooks, see:
14
+ # https://github.com/sds/overcommit#configuration
15
+ #
16
+ # Uncomment the following lines to make the configuration take effect.
17
+ gemfile: Gemfile
18
+
19
+ PreCommit:
20
+ RuboCop:
21
+ command: ['bundle', 'exec', 'rubocop']
22
+ enabled: true
23
+ on_warn: fail # Treat all warnings as failures
24
+
25
+ TrailingWhitespace:
26
+ enabled: true
27
+
28
+ LineEndings:
29
+ enabled: true
data/.rubocop.yml ADDED
@@ -0,0 +1,78 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ TargetRubyVersion: 2.5.8
5
+ NewCops: enable
6
+
7
+ Layout/LineLength:
8
+ Enabled: True
9
+ Max: 120
10
+
11
+ Style/HashEachMethods:
12
+ Enabled: True
13
+
14
+ Style/HashTransformKeys:
15
+ Enabled: True
16
+
17
+ Style/HashTransformValues:
18
+ Enabled: True
19
+
20
+ Layout/EmptyLinesAroundAttributeAccessor:
21
+ Enabled: True
22
+
23
+ Layout/SpaceAroundMethodCallOperator:
24
+ Enabled: True
25
+
26
+ Lint/DeprecatedOpenSSLConstant:
27
+ Enabled: True
28
+
29
+ Lint/DuplicateElsifCondition:
30
+ Enabled: True
31
+
32
+ Lint/MixedRegexpCaptureTypes:
33
+ Enabled: True
34
+
35
+ Lint/RaiseException:
36
+ Enabled: True
37
+
38
+ Lint/StructNewOverride:
39
+ Enabled: True
40
+
41
+ Style/AccessorGrouping:
42
+ Enabled: True
43
+
44
+ Style/ArrayCoercion:
45
+ Enabled: True
46
+
47
+ Style/BisectedAttrAccessor:
48
+ Enabled: True
49
+
50
+ Style/CaseLikeIf:
51
+ Enabled: True
52
+
53
+ Style/ExponentialNotation:
54
+ Enabled: True
55
+
56
+ Style/HashAsLastArrayItem:
57
+ Enabled: True
58
+
59
+ Style/HashLikeCase:
60
+ Enabled: True
61
+
62
+ Style/RedundantAssignment:
63
+ Enabled: True
64
+
65
+ Style/RedundantFetchBlock:
66
+ Enabled: True
67
+
68
+ Style/RedundantFileExtensionInRequire:
69
+ Enabled: True
70
+
71
+ Style/RedundantRegexpCharacterClass:
72
+ Enabled: True
73
+
74
+ Style/RedundantRegexpEscape:
75
+ Enabled: True
76
+
77
+ Style/SlicingWithRange:
78
+ Enabled: False
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,25 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-03-29 13:21:38 +0100 using RuboCop version 0.66.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ Metrics/AbcSize:
10
+ Enabled: False
11
+
12
+ Metrics/BlockLength:
13
+ Enabled: False
14
+
15
+ Metrics/ClassLength:
16
+ Enabled: False
17
+
18
+ Metrics/MethodLength:
19
+ Enabled: False
20
+
21
+ Metrics/ParameterLists:
22
+ Enabled: False
23
+
24
+ Style/Documentation:
25
+ Enabled: False
data/.travis.yml ADDED
@@ -0,0 +1,25 @@
1
+ language: ruby
2
+ cache: bundler
3
+ rvm:
4
+ - 2.5.8
5
+ - 2.6.6
6
+ - 2.6.3
7
+ - 2.7.1
8
+ - ruby-head
9
+ before_install:
10
+ - gem update --system
11
+ - gem install bundler
12
+ - bundle install
13
+ script:
14
+ - bundle exec rspec --order rand
15
+ - bundle exec overcommit --sign && bundle exec overcommit --run
16
+ jobs:
17
+ allow_failures:
18
+ - rvm: ruby-head
19
+ deploy:
20
+ - api_key:
21
+ secure: b7Ubc7/+EX4zHJ5zz15xiHntizhuZCU8SKR/jcbrR86wZx1DW8kIABBoVIHMh5CaMvrjF63B1qEoG4HcuovKZWezFLPgj4IQqlwlUle0/Vm0smO1kPMEOuMIv5P3TTgXZ99h1OdnfRQtDgbjxgKGszawMxNcw9Q8mqvVCc8Pmr+Uiw9DOOkHNMfLH+xOl00Ir9ST+K4/GKq19h8Z3glZE0oQAPajt5kgDZdDGD3en+t2g3kafJ9Hv6twKSb5rd5I9BN+VJ0m66OofGxnZFUxM/cb8T+s+6DdPXGWJq4IZ/q9SO108qfl1aTd7EiFa+hVtlLii7QaSMHARrbWT3wMYH3QhgTBPly8Dky92c74ziLkqaDdaxmGfYnzLDVCRVlGmGzUkOLx1ey9XK2kwSods+ud8rJ2pHWaT7NQROzTD4O0YhLHvEAoN6PwtIWm1v78OViBng36PKW0WtAE1rG9CEK1FjhA7ZZoctAsKqSaXWZR39+0xgSv+1axLXru/TG8QLqKNEOgNbE5lqR7sF2cVQgmmUstlMqiEgKMF0cFWWVi1wqR6VNxrgwgWeWtwzHLkchY6T3vhK9sl+cUM6SebfCOCAJHPBxSvHRHtJcrDY8qMqjlfFBSagjaClFt1Uzy//ab4XRzEs8VQcVkz9Yw7S51iOYBdj6135lfE0ZxE1c=
22
+ edge: true
23
+ on:
24
+ all_branches: true
25
+ provider: rubygems
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
+
7
+ # Specify your gem's dependencies in ledger_sync-quickbooks_online.gemspec
8
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,211 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ledger_sync-quickbooks_online (0.1.1)
5
+ dotenv
6
+ ledger_sync (~> 1.8.0)
7
+ oauth2
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activemodel (6.1.0)
13
+ activesupport (= 6.1.0)
14
+ activesupport (6.1.0)
15
+ concurrent-ruby (~> 1.0, >= 1.0.2)
16
+ i18n (>= 1.6, < 2)
17
+ minitest (>= 5.1)
18
+ tzinfo (~> 2.0)
19
+ zeitwerk (~> 2.3)
20
+ addressable (2.7.0)
21
+ public_suffix (>= 2.0.2, < 5.0)
22
+ ast (2.4.1)
23
+ awesome_print (1.8.0)
24
+ bump (0.9.0)
25
+ byebug (11.1.3)
26
+ childprocess (4.0.0)
27
+ climate_control (0.2.0)
28
+ colorize (0.8.1)
29
+ concurrent-ruby (1.1.7)
30
+ coveralls (0.8.23)
31
+ json (>= 1.8, < 3)
32
+ simplecov (~> 0.16.1)
33
+ term-ansicolor (~> 1.3)
34
+ thor (>= 0.19.4, < 2.0)
35
+ tins (~> 1.6)
36
+ crack (0.4.5)
37
+ rexml
38
+ diff-lcs (1.4.4)
39
+ docile (1.3.4)
40
+ dotenv (2.7.6)
41
+ dry-configurable (0.12.0)
42
+ concurrent-ruby (~> 1.0)
43
+ dry-core (~> 0.5, >= 0.5.0)
44
+ dry-container (0.7.2)
45
+ concurrent-ruby (~> 1.0)
46
+ dry-configurable (~> 0.1, >= 0.1.3)
47
+ dry-core (0.5.0)
48
+ concurrent-ruby (~> 1.0)
49
+ dry-equalizer (0.3.0)
50
+ dry-inflector (0.2.0)
51
+ dry-initializer (3.0.4)
52
+ dry-logic (1.1.0)
53
+ concurrent-ruby (~> 1.0)
54
+ dry-core (~> 0.5, >= 0.5)
55
+ dry-schema (1.5.6)
56
+ concurrent-ruby (~> 1.0)
57
+ dry-configurable (~> 0.8, >= 0.8.3)
58
+ dry-core (~> 0.4)
59
+ dry-equalizer (~> 0.2)
60
+ dry-initializer (~> 3.0)
61
+ dry-logic (~> 1.0)
62
+ dry-types (~> 1.4)
63
+ dry-types (1.4.0)
64
+ concurrent-ruby (~> 1.0)
65
+ dry-container (~> 0.3)
66
+ dry-core (~> 0.4, >= 0.4.4)
67
+ dry-equalizer (~> 0.3)
68
+ dry-inflector (~> 0.1, >= 0.1.2)
69
+ dry-logic (~> 1.0, >= 1.0.2)
70
+ dry-validation (1.5.6)
71
+ concurrent-ruby (~> 1.0)
72
+ dry-container (~> 0.7, >= 0.7.1)
73
+ dry-core (~> 0.4)
74
+ dry-equalizer (~> 0.2)
75
+ dry-initializer (~> 3.0)
76
+ dry-schema (~> 1.5, >= 1.5.2)
77
+ factory_bot (6.1.0)
78
+ activesupport (>= 5.0.0)
79
+ faraday (1.3.0)
80
+ faraday-net_http (~> 1.0)
81
+ multipart-post (>= 1.2, < 3)
82
+ ruby2_keywords
83
+ faraday-detailed_logger (2.3.0)
84
+ faraday (>= 0.8, < 2)
85
+ faraday-net_http (1.0.0)
86
+ faraday_middleware (1.0.0)
87
+ faraday (~> 1.0)
88
+ fingerprintable (1.2.1)
89
+ colorize
90
+ hashdiff (1.0.1)
91
+ i18n (1.8.7)
92
+ concurrent-ruby (~> 1.0)
93
+ iniparse (1.5.0)
94
+ json (2.5.1)
95
+ jwt (2.2.2)
96
+ ledger_sync (1.8.0)
97
+ activemodel
98
+ colorize
99
+ dry-schema (~> 1.5.4)
100
+ dry-validation (~> 1.5.6)
101
+ faraday
102
+ faraday-detailed_logger
103
+ faraday_middleware
104
+ fingerprintable (>= 1.2.1)
105
+ nokogiri
106
+ openssl (~> 2.2.0)
107
+ pd_ruby
108
+ rack (~> 2.2.3)
109
+ resonad
110
+ simply_serializable (>= 1.5.1)
111
+ mini_portile2 (2.5.0)
112
+ minitest (5.14.2)
113
+ multi_json (1.15.0)
114
+ multi_xml (0.6.0)
115
+ multipart-post (2.1.1)
116
+ nokogiri (1.11.0)
117
+ mini_portile2 (~> 2.5.0)
118
+ racc (~> 1.4)
119
+ oauth2 (1.4.4)
120
+ faraday (>= 0.8, < 2.0)
121
+ jwt (>= 1.0, < 3.0)
122
+ multi_json (~> 1.3)
123
+ multi_xml (~> 0.5)
124
+ rack (>= 1.2, < 3)
125
+ openssl (2.2.0)
126
+ overcommit (0.57.0)
127
+ childprocess (>= 0.6.3, < 5)
128
+ iniparse (~> 1.4)
129
+ parallel (1.20.1)
130
+ parser (3.0.0.0)
131
+ ast (~> 2.4.1)
132
+ pd_ruby (0.2.3)
133
+ colorize
134
+ public_suffix (4.0.6)
135
+ racc (1.5.2)
136
+ rack (2.2.3)
137
+ rainbow (3.0.0)
138
+ rake (13.0.3)
139
+ regexp_parser (2.0.3)
140
+ resonad (1.4.0)
141
+ rexml (3.2.4)
142
+ rspec (3.10.0)
143
+ rspec-core (~> 3.10.0)
144
+ rspec-expectations (~> 3.10.0)
145
+ rspec-mocks (~> 3.10.0)
146
+ rspec-core (3.10.1)
147
+ rspec-support (~> 3.10.0)
148
+ rspec-expectations (3.10.1)
149
+ diff-lcs (>= 1.2.0, < 2.0)
150
+ rspec-support (~> 3.10.0)
151
+ rspec-mocks (3.10.1)
152
+ diff-lcs (>= 1.2.0, < 2.0)
153
+ rspec-support (~> 3.10.0)
154
+ rspec-support (3.10.1)
155
+ rubocop (1.7.0)
156
+ parallel (~> 1.10)
157
+ parser (>= 2.7.1.5)
158
+ rainbow (>= 2.2.2, < 4.0)
159
+ regexp_parser (>= 1.8, < 3.0)
160
+ rexml
161
+ rubocop-ast (>= 1.2.0, < 2.0)
162
+ ruby-progressbar (~> 1.7)
163
+ unicode-display_width (>= 1.4.0, < 2.0)
164
+ rubocop-ast (1.4.0)
165
+ parser (>= 2.7.1.5)
166
+ ruby-progressbar (1.11.0)
167
+ ruby2_keywords (0.0.2)
168
+ simplecov (0.16.1)
169
+ docile (~> 1.1)
170
+ json (>= 1.8, < 3)
171
+ simplecov-html (~> 0.10.0)
172
+ simplecov-html (0.10.2)
173
+ simply_serializable (1.5.1)
174
+ fingerprintable (>= 1.2.1)
175
+ sync (0.5.0)
176
+ term-ansicolor (1.7.1)
177
+ tins (~> 1.0)
178
+ thor (1.0.1)
179
+ tins (1.26.0)
180
+ sync
181
+ tzinfo (2.0.4)
182
+ concurrent-ruby (~> 1.0)
183
+ unicode-display_width (1.7.0)
184
+ vcr (6.0.0)
185
+ webmock (3.11.0)
186
+ addressable (>= 2.3.6)
187
+ crack (>= 0.3.2)
188
+ hashdiff (>= 0.4.0, < 2.0.0)
189
+ zeitwerk (2.4.2)
190
+
191
+ PLATFORMS
192
+ ruby
193
+
194
+ DEPENDENCIES
195
+ awesome_print
196
+ bump (~> 0.9.0)
197
+ bundler (~> 2.1)
198
+ byebug
199
+ climate_control
200
+ coveralls
201
+ factory_bot (~> 6.1.0)
202
+ ledger_sync-quickbooks_online!
203
+ overcommit (~> 0.57.0)
204
+ rake (~> 13.0)
205
+ rspec (~> 3.2)
206
+ rubocop
207
+ vcr
208
+ webmock
209
+
210
+ BUNDLED WITH
211
+ 2.1.4
data/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # LedgerSync::QuickBooksOnline
2
+
3
+ [![Build Status](https://travis-ci.org/LedgerSync/ledger_sync-quickbooks_online.svg?branch=master)](https://travis-ci.org/LedgerSync/ledger_sync-quickbooks_online)
4
+ [![Gem Version](https://badge.fury.io/rb/ledger_sync-quickbooks_online.svg)](https://badge.fury.io/rb/ledger_sync-quickbooks_online)
5
+ [![Coverage Status](https://coveralls.io/repos/github/LedgerSync/ledger_sync-quickbooks_online/badge.svg?branch=master)](https://coveralls.io/github/LedgerSync/ledger_sync-quickbooks_online?branch=master)
6
+
7
+ [ledgersync.dev](www.ledgersync.dev)
8
+
9
+ ## Usage
10
+
11
+ This template ledger enables you to easily create your own ledger for public or private use. Although this is not an
12
+ exhaustive list, a good place to start assuming your ledger name is `NewLedger`:
13
+
14
+ 1. Find and replace all `QUICK_BOOKS_ONLINE` with `NEW_LEDGER`
15
+ 2. Find and replace all `QuickBooksOnline` with `NewLedger`
16
+ 3. Find and replace all `quickbooks_online` with `new_ledger`
17
+ 4. Find and replace all `QuickBooks Online` with `New Ledger`
18
+ 5. Find and replace all `quickbooks_online` directories and files with `new_ledger`
19
+ 6. Remove `SampleResource` example files.