qube_sync 0.3.0 → 0.4.0

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.
Files changed (260) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +48 -0
  3. data/README.md +235 -75
  4. data/Rakefile +12 -0
  5. data/lib/qube_sync/client.rb +579 -0
  6. data/lib/qube_sync/operations/account.rb +337 -0
  7. data/lib/qube_sync/operations/account_tax_line_info.rb +30 -0
  8. data/lib/qube_sync/operations/aging_report.rb +160 -0
  9. data/lib/qube_sync/operations/alert.rb +91 -0
  10. data/lib/qube_sync/operations/ar_refund_credit_card.rb +399 -0
  11. data/lib/qube_sync/operations/bar_code.rb +37 -0
  12. data/lib/qube_sync/operations/bill.rb +1073 -0
  13. data/lib/qube_sync/operations/bill_payment_check.rb +413 -0
  14. data/lib/qube_sync/operations/bill_payment_credit_card.rb +315 -0
  15. data/lib/qube_sync/operations/bill_to_pay.rb +66 -0
  16. data/lib/qube_sync/operations/billing_rate.rb +172 -0
  17. data/lib/qube_sync/operations/budget_summary_report.rb +80 -0
  18. data/lib/qube_sync/operations/build_assembly.rb +318 -0
  19. data/lib/qube_sync/operations/charge.rb +452 -0
  20. data/lib/qube_sync/operations/check.rb +1055 -0
  21. data/lib/qube_sync/operations/class.rb +176 -0
  22. data/lib/qube_sync/operations/cleared_status.rb +39 -0
  23. data/lib/qube_sync/operations/company.rb +39 -0
  24. data/lib/qube_sync/operations/company_activity.rb +31 -0
  25. data/lib/qube_sync/operations/credit_card_charge.rb +1000 -0
  26. data/lib/qube_sync/operations/credit_card_credit.rb +1000 -0
  27. data/lib/qube_sync/operations/credit_memo.rb +1243 -0
  28. data/lib/qube_sync/operations/currency.rb +195 -0
  29. data/lib/qube_sync/operations/custom_detail_report.rb +176 -0
  30. data/lib/qube_sync/operations/custom_summary_report.rb +180 -0
  31. data/lib/qube_sync/operations/customer.rb +744 -0
  32. data/lib/qube_sync/operations/customer_msg.rb +117 -0
  33. data/lib/qube_sync/operations/customer_type.rb +133 -0
  34. data/lib/qube_sync/operations/data_event_recovery_info.rb +54 -0
  35. data/lib/qube_sync/operations/data_ext.rb +201 -0
  36. data/lib/qube_sync/operations/data_ext_def.rb +179 -0
  37. data/lib/qube_sync/operations/date_driven_terms.rb +131 -0
  38. data/lib/qube_sync/operations/deposit.rb +555 -0
  39. data/lib/qube_sync/operations/employee.rb +577 -0
  40. data/lib/qube_sync/operations/employee_default.rb +100 -0
  41. data/lib/qube_sync/operations/entity.rb +118 -0
  42. data/lib/qube_sync/operations/estimate.rb +1055 -0
  43. data/lib/qube_sync/operations/form1099_category_account_mapping.rb +90 -0
  44. data/lib/qube_sync/operations/general_detail_report.rb +185 -0
  45. data/lib/qube_sync/operations/general_summary_report.rb +180 -0
  46. data/lib/qube_sync/operations/host.rb +36 -0
  47. data/lib/qube_sync/operations/inventory_adjustment.rb +482 -0
  48. data/lib/qube_sync/operations/inventory_site.rb +214 -0
  49. data/lib/qube_sync/operations/invoice.rb +1208 -0
  50. data/lib/qube_sync/operations/item.rb +115 -0
  51. data/lib/qube_sync/operations/item_assemblies_can_build.rb +44 -0
  52. data/lib/qube_sync/operations/item_discount.rb +319 -0
  53. data/lib/qube_sync/operations/item_fixed_asset.rb +317 -0
  54. data/lib/qube_sync/operations/item_group.rb +253 -0
  55. data/lib/qube_sync/operations/item_inventory.rb +446 -0
  56. data/lib/qube_sync/operations/item_inventory_assembly.rb +483 -0
  57. data/lib/qube_sync/operations/item_non_inventory.rb +461 -0
  58. data/lib/qube_sync/operations/item_other_charge.rb +434 -0
  59. data/lib/qube_sync/operations/item_payment.rb +268 -0
  60. data/lib/qube_sync/operations/item_receipt.rb +1011 -0
  61. data/lib/qube_sync/operations/item_sales_tax.rb +270 -0
  62. data/lib/qube_sync/operations/item_sales_tax_group.rb +200 -0
  63. data/lib/qube_sync/operations/item_service.rb +455 -0
  64. data/lib/qube_sync/operations/item_sites.rb +96 -0
  65. data/lib/qube_sync/operations/item_subtotal.rb +182 -0
  66. data/lib/qube_sync/operations/job_report.rb +156 -0
  67. data/lib/qube_sync/operations/job_type.rb +131 -0
  68. data/lib/qube_sync/operations/journal_entry.rb +518 -0
  69. data/lib/qube_sync/operations/lead.rb +216 -0
  70. data/lib/qube_sync/operations/list.rb +42 -0
  71. data/lib/qube_sync/operations/list_deleted.rb +57 -0
  72. data/lib/qube_sync/operations/list_display.rb +59 -0
  73. data/lib/qube_sync/operations/list_merge.rb +55 -0
  74. data/lib/qube_sync/operations/other_name.rb +245 -0
  75. data/lib/qube_sync/operations/paycheck.rb +139 -0
  76. data/lib/qube_sync/operations/payment_method.rb +128 -0
  77. data/lib/qube_sync/operations/payroll_detail_report.rb +161 -0
  78. data/lib/qube_sync/operations/payroll_item.rb +75 -0
  79. data/lib/qube_sync/operations/payroll_item_addition.rb +98 -0
  80. data/lib/qube_sync/operations/payroll_item_company_contribution.rb +134 -0
  81. data/lib/qube_sync/operations/payroll_item_deduction.rb +124 -0
  82. data/lib/qube_sync/operations/payroll_item_direct_deposit.rb +70 -0
  83. data/lib/qube_sync/operations/payroll_item_non_wage.rb +93 -0
  84. data/lib/qube_sync/operations/payroll_item_tax.rb +123 -0
  85. data/lib/qube_sync/operations/payroll_item_wage.rb +168 -0
  86. data/lib/qube_sync/operations/payroll_item_workers_compensation.rb +108 -0
  87. data/lib/qube_sync/operations/payroll_last_period.rb +30 -0
  88. data/lib/qube_sync/operations/payroll_liability_adjustment.rb +204 -0
  89. data/lib/qube_sync/operations/payroll_liability_check.rb +137 -0
  90. data/lib/qube_sync/operations/payroll_prior_payment.rb +178 -0
  91. data/lib/qube_sync/operations/payroll_summary_report.rb +157 -0
  92. data/lib/qube_sync/operations/payroll_year_to_date_adjustment.rb +211 -0
  93. data/lib/qube_sync/operations/preferences.rb +61 -0
  94. data/lib/qube_sync/operations/price_level.rb +305 -0
  95. data/lib/qube_sync/operations/purchase_order.rb +1038 -0
  96. data/lib/qube_sync/operations/qb_command_exec.rb +37 -0
  97. data/lib/qube_sync/operations/receive_payment.rb +627 -0
  98. data/lib/qube_sync/operations/receive_payment_to_deposit.rb +38 -0
  99. data/lib/qube_sync/operations/sales_order.rb +1045 -0
  100. data/lib/qube_sync/operations/sales_receipt.rb +1337 -0
  101. data/lib/qube_sync/operations/sales_rep.rb +172 -0
  102. data/lib/qube_sync/operations/sales_tax_code.rb +205 -0
  103. data/lib/qube_sync/operations/sales_tax_payable.rb +37 -0
  104. data/lib/qube_sync/operations/sales_tax_payment_check.rb +375 -0
  105. data/lib/qube_sync/operations/sales_tax_return.rb +35 -0
  106. data/lib/qube_sync/operations/sales_tax_return_line.rb +43 -0
  107. data/lib/qube_sync/operations/ship_method.rb +116 -0
  108. data/lib/qube_sync/operations/special_account.rb +55 -0
  109. data/lib/qube_sync/operations/special_item.rb +44 -0
  110. data/lib/qube_sync/operations/standard_terms.rb +125 -0
  111. data/lib/qube_sync/operations/template.rb +36 -0
  112. data/lib/qube_sync/operations/terms.rb +91 -0
  113. data/lib/qube_sync/operations/time_report.rb +127 -0
  114. data/lib/qube_sync/operations/time_tracking.rb +303 -0
  115. data/lib/qube_sync/operations/to_do.rb +260 -0
  116. data/lib/qube_sync/operations/transaction.rb +356 -0
  117. data/lib/qube_sync/operations/transfer.rb +213 -0
  118. data/lib/qube_sync/operations/transfer_inventory.rb +384 -0
  119. data/lib/qube_sync/operations/txn.rb +38 -0
  120. data/lib/qube_sync/operations/txn_deleted.rb +54 -0
  121. data/lib/qube_sync/operations/txn_display.rb +76 -0
  122. data/lib/qube_sync/operations/txn_void.rb +36 -0
  123. data/lib/qube_sync/operations/unit_of_measure_set.rb +149 -0
  124. data/lib/qube_sync/operations/vehicle.rb +152 -0
  125. data/lib/qube_sync/operations/vehicle_mileage.rb +191 -0
  126. data/lib/qube_sync/operations/vendor.rb +661 -0
  127. data/lib/qube_sync/operations/vendor_credit.rb +1008 -0
  128. data/lib/qube_sync/operations/vendor_type.rb +131 -0
  129. data/lib/qube_sync/operations/workers_comp_code.rb +184 -0
  130. data/lib/qube_sync/operations.rb +1165 -0
  131. data/lib/qube_sync/version.rb +1 -1
  132. data/lib/qube_sync.rb +1 -0
  133. data/sig/qube_sync/client.rbs +82 -0
  134. data/sig/qube_sync/operations/account.rbs +65 -0
  135. data/sig/qube_sync/operations/account_tax_line_info.rbs +13 -0
  136. data/sig/qube_sync/operations/aging_report.rbs +29 -0
  137. data/sig/qube_sync/operations/alert.rbs +53 -0
  138. data/sig/qube_sync/operations/ar_refund_credit_card.rbs +53 -0
  139. data/sig/qube_sync/operations/bar_code.rbs +16 -0
  140. data/sig/qube_sync/operations/bill.rbs +78 -0
  141. data/sig/qube_sync/operations/bill_payment_check.rbs +62 -0
  142. data/sig/qube_sync/operations/bill_payment_credit_card.rbs +45 -0
  143. data/sig/qube_sync/operations/bill_to_pay.rbs +19 -0
  144. data/sig/qube_sync/operations/billing_rate.rbs +40 -0
  145. data/sig/qube_sync/operations/budget_summary_report.rbs +22 -0
  146. data/sig/qube_sync/operations/build_assembly.rbs +64 -0
  147. data/sig/qube_sync/operations/charge.rbs +80 -0
  148. data/sig/qube_sync/operations/check.rbs +81 -0
  149. data/sig/qube_sync/operations/class.rbs +43 -0
  150. data/sig/qube_sync/operations/cleared_status.rbs +16 -0
  151. data/sig/qube_sync/operations/company.rbs +15 -0
  152. data/sig/qube_sync/operations/company_activity.rbs +14 -0
  153. data/sig/qube_sync/operations/credit_card_charge.rbs +69 -0
  154. data/sig/qube_sync/operations/credit_card_credit.rbs +69 -0
  155. data/sig/qube_sync/operations/credit_memo.rbs +162 -0
  156. data/sig/qube_sync/operations/currency.rbs +52 -0
  157. data/sig/qube_sync/operations/custom_detail_report.rbs +31 -0
  158. data/sig/qube_sync/operations/custom_summary_report.rbs +33 -0
  159. data/sig/qube_sync/operations/customer.rbs +174 -0
  160. data/sig/qube_sync/operations/customer_msg.rbs +31 -0
  161. data/sig/qube_sync/operations/customer_type.rbs +32 -0
  162. data/sig/qube_sync/operations/data_event_recovery_info.rbs +20 -0
  163. data/sig/qube_sync/operations/data_ext.rbs +53 -0
  164. data/sig/qube_sync/operations/data_ext_def.rbs +51 -0
  165. data/sig/qube_sync/operations/date_driven_terms.rbs +35 -0
  166. data/sig/qube_sync/operations/deposit.rbs +100 -0
  167. data/sig/qube_sync/operations/employee.rbs +173 -0
  168. data/sig/qube_sync/operations/employee_default.rbs +68 -0
  169. data/sig/qube_sync/operations/entity.rbs +24 -0
  170. data/sig/qube_sync/operations/estimate.rbs +148 -0
  171. data/sig/qube_sync/operations/form1099_category_account_mapping.rbs +33 -0
  172. data/sig/qube_sync/operations/general_detail_report.rbs +31 -0
  173. data/sig/qube_sync/operations/general_summary_report.rbs +32 -0
  174. data/sig/qube_sync/operations/host.rbs +19 -0
  175. data/sig/qube_sync/operations/inventory_adjustment.rbs +105 -0
  176. data/sig/qube_sync/operations/inventory_site.rbs +66 -0
  177. data/sig/qube_sync/operations/invoice.rbs +144 -0
  178. data/sig/qube_sync/operations/item.rbs +25 -0
  179. data/sig/qube_sync/operations/item_assemblies_can_build.rbs +15 -0
  180. data/sig/qube_sync/operations/item_discount.rbs +62 -0
  181. data/sig/qube_sync/operations/item_fixed_asset.rbs +97 -0
  182. data/sig/qube_sync/operations/item_group.rbs +62 -0
  183. data/sig/qube_sync/operations/item_inventory.rbs +87 -0
  184. data/sig/qube_sync/operations/item_inventory_assembly.rbs +94 -0
  185. data/sig/qube_sync/operations/item_non_inventory.rbs +64 -0
  186. data/sig/qube_sync/operations/item_other_charge.rbs +59 -0
  187. data/sig/qube_sync/operations/item_payment.rbs +55 -0
  188. data/sig/qube_sync/operations/item_receipt.rbs +71 -0
  189. data/sig/qube_sync/operations/item_sales_tax.rbs +57 -0
  190. data/sig/qube_sync/operations/item_sales_tax_group.rbs +50 -0
  191. data/sig/qube_sync/operations/item_service.rbs +62 -0
  192. data/sig/qube_sync/operations/item_sites.rbs +26 -0
  193. data/sig/qube_sync/operations/item_subtotal.rbs +48 -0
  194. data/sig/qube_sync/operations/job_report.rbs +28 -0
  195. data/sig/qube_sync/operations/job_type.rbs +32 -0
  196. data/sig/qube_sync/operations/journal_entry.rbs +88 -0
  197. data/sig/qube_sync/operations/lead.rbs +91 -0
  198. data/sig/qube_sync/operations/list.rbs +15 -0
  199. data/sig/qube_sync/operations/list_deleted.rbs +17 -0
  200. data/sig/qube_sync/operations/list_display.rbs +21 -0
  201. data/sig/qube_sync/operations/list_merge.rbs +22 -0
  202. data/sig/qube_sync/operations/other_name.rbs +71 -0
  203. data/sig/qube_sync/operations/paycheck.rbs +27 -0
  204. data/sig/qube_sync/operations/payment_method.rbs +33 -0
  205. data/sig/qube_sync/operations/payroll_detail_report.rbs +29 -0
  206. data/sig/qube_sync/operations/payroll_item.rbs +23 -0
  207. data/sig/qube_sync/operations/payroll_item_addition.rbs +48 -0
  208. data/sig/qube_sync/operations/payroll_item_company_contribution.rbs +58 -0
  209. data/sig/qube_sync/operations/payroll_item_deduction.rbs +54 -0
  210. data/sig/qube_sync/operations/payroll_item_direct_deposit.rbs +30 -0
  211. data/sig/qube_sync/operations/payroll_item_non_wage.rbs +23 -0
  212. data/sig/qube_sync/operations/payroll_item_tax.rbs +58 -0
  213. data/sig/qube_sync/operations/payroll_item_wage.rbs +48 -0
  214. data/sig/qube_sync/operations/payroll_item_workers_compensation.rbs +42 -0
  215. data/sig/qube_sync/operations/payroll_last_period.rbs +13 -0
  216. data/sig/qube_sync/operations/payroll_liability_adjustment.rbs +59 -0
  217. data/sig/qube_sync/operations/payroll_liability_check.rbs +27 -0
  218. data/sig/qube_sync/operations/payroll_prior_payment.rbs +48 -0
  219. data/sig/qube_sync/operations/payroll_summary_report.rbs +30 -0
  220. data/sig/qube_sync/operations/payroll_year_to_date_adjustment.rbs +66 -0
  221. data/sig/qube_sync/operations/preferences.rbs +26 -0
  222. data/sig/qube_sync/operations/price_level.rbs +57 -0
  223. data/sig/qube_sync/operations/purchase_order.rbs +159 -0
  224. data/sig/qube_sync/operations/qb_command_exec.rbs +22 -0
  225. data/sig/qube_sync/operations/receive_payment.rbs +102 -0
  226. data/sig/qube_sync/operations/receive_payment_to_deposit.rbs +15 -0
  227. data/sig/qube_sync/operations/sales_order.rbs +153 -0
  228. data/sig/qube_sync/operations/sales_receipt.rbs +139 -0
  229. data/sig/qube_sync/operations/sales_rep.rbs +43 -0
  230. data/sig/qube_sync/operations/sales_tax_code.rbs +49 -0
  231. data/sig/qube_sync/operations/sales_tax_payable.rbs +16 -0
  232. data/sig/qube_sync/operations/sales_tax_payment_check.rbs +64 -0
  233. data/sig/qube_sync/operations/sales_tax_return.rbs +14 -0
  234. data/sig/qube_sync/operations/sales_tax_return_line.rbs +15 -0
  235. data/sig/qube_sync/operations/ship_method.rbs +31 -0
  236. data/sig/qube_sync/operations/special_account.rbs +16 -0
  237. data/sig/qube_sync/operations/special_item.rbs +17 -0
  238. data/sig/qube_sync/operations/standard_terms.rbs +34 -0
  239. data/sig/qube_sync/operations/template.rbs +15 -0
  240. data/sig/qube_sync/operations/terms.rbs +23 -0
  241. data/sig/qube_sync/operations/time_report.rbs +26 -0
  242. data/sig/qube_sync/operations/time_tracking.rbs +57 -0
  243. data/sig/qube_sync/operations/to_do.rbs +59 -0
  244. data/sig/qube_sync/operations/transaction.rbs +39 -0
  245. data/sig/qube_sync/operations/transfer.rbs +47 -0
  246. data/sig/qube_sync/operations/transfer_inventory.rbs +76 -0
  247. data/sig/qube_sync/operations/txn.rbs +15 -0
  248. data/sig/qube_sync/operations/txn_deleted.rbs +17 -0
  249. data/sig/qube_sync/operations/txn_display.rbs +22 -0
  250. data/sig/qube_sync/operations/txn_void.rbs +15 -0
  251. data/sig/qube_sync/operations/types.rbs +434 -0
  252. data/sig/qube_sync/operations/unit_of_measure_set.rbs +51 -0
  253. data/sig/qube_sync/operations/vehicle.rbs +43 -0
  254. data/sig/qube_sync/operations/vehicle_mileage.rbs +38 -0
  255. data/sig/qube_sync/operations/vendor.rbs +142 -0
  256. data/sig/qube_sync/operations/vendor_credit.rbs +70 -0
  257. data/sig/qube_sync/operations/vendor_type.rbs +32 -0
  258. data/sig/qube_sync/operations/workers_comp_code.rbs +52 -0
  259. data/sig/qube_sync/operations.rbs +147 -0
  260. metadata +255 -2
@@ -0,0 +1,70 @@
1
+ # Generated from operations.json by bin/generate-operations: don't edit.
2
+ # frozen_string_literal: true
3
+
4
+ module QubeSync
5
+ module Operations
6
+ # QuickBooks payroll item direct deposit operations, reached as `client.payroll_item_direct_deposit`. Each queues a request and
7
+ # returns it (the response's `data`); the answer comes to `webhook_url`.
8
+ class PayrollItemDirectDeposit < Base
9
+ # Create payroll item direct deposit: POST
10
+ # /connections/{connection_id}/payroll-item-direct-deposits
11
+ # (`payroll_item_direct_deposit.create`).
12
+ #
13
+ # QuickBooks answers in one webhook.
14
+ #
15
+ # Params, sent as the JSON body:
16
+ # - `include_ret_element` (Array<one of "EditSequence", "IsActive", "LiabilityAccountRef",
17
+ # "ListID", "Name", "PayrollItemDetailTypeValue", "TimeCreated", "TimeModified">)
18
+ # - `is_active` (Boolean)
19
+ # - `liability_account_ref` (Hash, required)
20
+ # - `full_name` (String)
21
+ # - `list_id` (String)
22
+ # - `name` (String, required)
23
+ # - `payroll_item_detail_type_value` (Integer)
24
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
25
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
26
+ # webhook already carries the request's `id`.
27
+ #
28
+ # @param connection_id [String]
29
+ # @param params [Hash] the fields above
30
+ # @param webhook_url [String] where QuBe Sync sends the answer
31
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
32
+ # @return [Hash] the queued request
33
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-direct-deposits/create-payroll-item-direct-deposit
34
+ def create(connection_id, params = {}, webhook_url:, idempotency_key: nil)
35
+ queue("payroll_item_direct_deposit.create", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
36
+ end
37
+
38
+ # Update payroll item direct deposit: PUT
39
+ # /connections/{connection_id}/payroll-item-direct-deposits
40
+ # (`payroll_item_direct_deposit.update`).
41
+ #
42
+ # QuickBooks answers in one webhook.
43
+ #
44
+ # Params, sent as the JSON body:
45
+ # - `edit_sequence` (String, required)
46
+ # - `include_ret_element` (Array<one of "EditSequence", "IsActive", "LiabilityAccountRef",
47
+ # "ListID", "Name", "PayrollItemDetailTypeValue", "TimeCreated", "TimeModified">)
48
+ # - `is_active` (Boolean)
49
+ # - `liability_account_ref` (Hash)
50
+ # - `full_name` (String)
51
+ # - `list_id` (String)
52
+ # - `list_id` (String, required)
53
+ # - `name` (String)
54
+ # - `payroll_item_detail_type_value` (Integer)
55
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
56
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
57
+ # webhook already carries the request's `id`.
58
+ #
59
+ # @param connection_id [String]
60
+ # @param params [Hash] the fields above
61
+ # @param webhook_url [String] where QuBe Sync sends the answer
62
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
63
+ # @return [Hash] the queued request
64
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-direct-deposits/update-payroll-item-direct-deposit
65
+ def update(connection_id, params = {}, webhook_url:, idempotency_key: nil)
66
+ queue("payroll_item_direct_deposit.update", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,93 @@
1
+ # Generated from operations.json by bin/generate-operations: don't edit.
2
+ # frozen_string_literal: true
3
+
4
+ module QubeSync
5
+ module Operations
6
+ # QuickBooks payroll item non wage operations, reached as `client.payroll_item_non_wage`. Each queues a request and
7
+ # returns it (the response's `data`); the answer comes to `webhook_url`.
8
+ class PayrollItemNonWage < Base
9
+ # List payroll item non wages: GET /connections/{connection_id}/payroll-item-non-wages
10
+ # (`payroll_item_non_wage.query`).
11
+ #
12
+ # QuickBooks answers in one webhook.
13
+ #
14
+ # Params, sent as the query string:
15
+ # - `active_status` (one of "ActiveOnly", "All", "InactiveOnly"): Used in filters to select
16
+ # list objects based on whether or not they are currently enabled for use by QuickBooks. The
17
+ # default value is asActiveOnly, which selects only list objects that are active. Choose at
18
+ # most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
19
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
20
+ # combine with each other, not with the other choices.
21
+ # - `from_modified_date` (String): Filters results to objects modified on or after this
22
+ # timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
23
+ # date is provided, time defaults to 00:00:00. Choose at most one of: `list_id`, or
24
+ # `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`,
25
+ # `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with
26
+ # each other, not with the other choices.
27
+ # - `full_name` (Array<String>): `full_name` (along with `list_id`) is a way to identify a
28
+ # list object. The `full_name` is the name prefixed by the names of each ancestor, for
29
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive. Choose at most
30
+ # one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
31
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
32
+ # combine with each other, not with the other choices.
33
+ # - `include_ret_element` (Array<one of "EditSequence", "ExpenseAccountRef", "IsActive",
34
+ # "LiabilityAccountRef", "ListID", "Name", "NonWageType", "TimeCreated", "TimeModified">)
35
+ # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
36
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
37
+ # within a list type, not globally across all lists. If both `full_name` and `list_id` are
38
+ # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`. Choose at most
39
+ # one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
40
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
41
+ # combine with each other, not with the other choices.
42
+ # - `max_returned` (Integer): Limits the number of objects that a query returns. (To get a
43
+ # count of how many objects could possibly be returned, use the `meta_data` query
44
+ # attribute.) If you include a `max_returned` value, it must be at least 1. QuickBooks
45
+ # doesn't page this query: at most this many records come back, in one answer, with no sign
46
+ # of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the
47
+ # Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type`
48
+ # `response_too_large`), so narrow a large one with its filters. Choose at most one of:
49
+ # `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
50
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
51
+ # combine with each other, not with the other choices.
52
+ # - `meta_data` (one of "MetaDataAndResponseData", "MetaDataOnly", "NoMetaData"): Use the
53
+ # `meta_data` attribute to control whether query responses include counts. Options are
54
+ # NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus
55
+ # objects). Counts are approximate and may vary slightly if records are created or deleted
56
+ # during processing.
57
+ # - `name_filter` (Hash): Filters according to the object’s Name. Choose at most one of:
58
+ # `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
59
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
60
+ # combine with each other, not with the other choices.
61
+ # - `match_criterion` (one of "Contains", "EndsWith", "StartsWith", required): The criterion
62
+ # to match.
63
+ # - `name` (String, required): The string to match.
64
+ # - `name_range_filter` (Hash): Filters according to the object’s Name. Choose at most one of:
65
+ # `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
66
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
67
+ # combine with each other, not with the other choices.
68
+ # - `from_name` (String): The first name or item in the search range. If `from_name` is
69
+ # omitted, the range will begin with first name on the list.
70
+ # - `to_name` (String): The final name or item in the search range. If `to_name` is omitted,
71
+ # the range will end with last name on the list.
72
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
73
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
74
+ # webhook already carries the request's `id`.
75
+ # - `to_modified_date` (String): Filters results to objects modified on or before this
76
+ # timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
77
+ # date is provided, time defaults to end-of-day (23:59:59). Choose at most one of:
78
+ # `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
79
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
80
+ # combine with each other, not with the other choices.
81
+ #
82
+ # @param connection_id [String]
83
+ # @param params [Hash] the fields above
84
+ # @param webhook_url [String] where QuBe Sync sends the answer
85
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
86
+ # @return [Hash] the queued request
87
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-non-wages/list-payroll-item-non-wages
88
+ def query(connection_id, params = {}, webhook_url:, idempotency_key: nil)
89
+ queue("payroll_item_non_wage.query", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,123 @@
1
+ # Generated from operations.json by bin/generate-operations: don't edit.
2
+ # frozen_string_literal: true
3
+
4
+ module QubeSync
5
+ module Operations
6
+ # QuickBooks payroll item tax operations, reached as `client.payroll_item_tax`. Each queues a request and
7
+ # returns it (the response's `data`); the answer comes to `webhook_url`.
8
+ class PayrollItemTax < Base
9
+ # Create payroll item tax: POST /connections/{connection_id}/payroll-item-taxes
10
+ # (`payroll_item_tax.create`).
11
+ #
12
+ # QuickBooks answers in one webhook.
13
+ #
14
+ # Params, sent as the JSON body:
15
+ # - `expense_account_ref` (Hash)
16
+ # - `full_name` (String)
17
+ # - `list_id` (String)
18
+ # - `include_ret_element` (Array<one of "EditSequence", "ExpenseAccountRef", "IsActive",
19
+ # "LiabilityAccountRef", "LiabilityPaymentSchedule", "Limit", "ListID", "Name",
20
+ # "PaymentTemplateRef", "PayrollItemDetailTypeValue", "Rate", "RateChange", "RatePercent",
21
+ # "State", "TaxCalculatedBasedOn", "TimeCreated", "TimeModified", "VendorAccountNumber",
22
+ # "VendorRef", "W2TrackingTypeValue">)
23
+ # - `is_active` (Boolean)
24
+ # - `liability_account_ref` (Hash, required)
25
+ # - `full_name` (String)
26
+ # - `list_id` (String)
27
+ # - `liability_payment_schedule` (Hash)
28
+ # - `payment_due_date` (String)
29
+ # - `payment_due_num_days_after` (Integer)
30
+ # - `payment_schedule_type` (one of "Empty", "FederalMonthly", "FederalNextDay",
31
+ # "FederalQuarterly", "FederalSemiweekly", "Monthly", "Quarterly", "Semiweekly", "Weekly",
32
+ # "Yearly", required)
33
+ # - `limit` (Numeric)
34
+ # - `name` (String, required)
35
+ # - `payment_template_ref` (Hash, required)
36
+ # - `full_name` (String)
37
+ # - `list_id` (String)
38
+ # - `payroll_item_detail_type_value` (Integer, required)
39
+ # - `rate` (Numeric): Choose at most one of: `rate`, or `rate_percent`.
40
+ # - `rate_change` (Array<Hash>)
41
+ # - `rate_percent` (Numeric, required)
42
+ # - `sunset_date` (String, required)
43
+ # - `rate_percent` (Numeric): Choose at most one of: `rate`, or `rate_percent`.
44
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
45
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
46
+ # webhook already carries the request's `id`.
47
+ # - `state` (String)
48
+ # - `tax_calculated_based_on` (one of "Compensation", "HoursAll", "HoursWorked", "Quantity")
49
+ # - `vendor_account_number` (String)
50
+ # - `vendor_ref` (Hash)
51
+ # - `full_name` (String)
52
+ # - `list_id` (String)
53
+ # - `w2_tracking_type_value` (Integer)
54
+ #
55
+ # @param connection_id [String]
56
+ # @param params [Hash] the fields above
57
+ # @param webhook_url [String] where QuBe Sync sends the answer
58
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
59
+ # @return [Hash] the queued request
60
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-taxes/create-payroll-item-tax
61
+ def create(connection_id, params = {}, webhook_url:, idempotency_key: nil)
62
+ queue("payroll_item_tax.create", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
63
+ end
64
+
65
+ # Update payroll item tax: PUT /connections/{connection_id}/payroll-item-taxes
66
+ # (`payroll_item_tax.update`).
67
+ #
68
+ # QuickBooks answers in one webhook.
69
+ #
70
+ # Params, sent as the JSON body:
71
+ # - `edit_sequence` (String, required)
72
+ # - `expense_account_ref` (Hash)
73
+ # - `full_name` (String)
74
+ # - `list_id` (String)
75
+ # - `include_ret_element` (Array<one of "EditSequence", "ExpenseAccountRef", "IsActive",
76
+ # "LiabilityAccountRef", "LiabilityPaymentSchedule", "Limit", "ListID", "Name",
77
+ # "PaymentTemplateRef", "PayrollItemDetailTypeValue", "Rate", "RateChange", "RatePercent",
78
+ # "State", "TaxCalculatedBasedOn", "TimeCreated", "TimeModified", "VendorAccountNumber",
79
+ # "VendorRef", "W2TrackingTypeValue">)
80
+ # - `is_active` (Boolean)
81
+ # - `liability_account_ref` (Hash)
82
+ # - `full_name` (String)
83
+ # - `list_id` (String)
84
+ # - `liability_payment_schedule` (Hash)
85
+ # - `payment_due_date` (String)
86
+ # - `payment_due_num_days_after` (Integer)
87
+ # - `payment_schedule_type` (one of "Empty", "FederalMonthly", "FederalNextDay",
88
+ # "FederalQuarterly", "FederalSemiweekly", "Monthly", "Quarterly", "Semiweekly", "Weekly",
89
+ # "Yearly", required)
90
+ # - `limit` (Numeric)
91
+ # - `list_id` (String, required)
92
+ # - `name` (String)
93
+ # - `payment_template_ref` (Hash)
94
+ # - `full_name` (String)
95
+ # - `list_id` (String)
96
+ # - `rate` (Numeric): Choose at most one of: `rate`, or `rate_percent`.
97
+ # - `rate_change` (Array<Hash>)
98
+ # - `rate_percent` (Numeric, required)
99
+ # - `sunset_date` (String, required)
100
+ # - `rate_percent` (Numeric): Choose at most one of: `rate`, or `rate_percent`.
101
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
102
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
103
+ # webhook already carries the request's `id`.
104
+ # - `state` (String)
105
+ # - `tax_calculated_based_on` (one of "Compensation", "HoursAll", "HoursWorked", "Quantity")
106
+ # - `vendor_account_number` (String)
107
+ # - `vendor_ref` (Hash)
108
+ # - `full_name` (String)
109
+ # - `list_id` (String)
110
+ # - `w2_tracking_type_value` (Integer)
111
+ #
112
+ # @param connection_id [String]
113
+ # @param params [Hash] the fields above
114
+ # @param webhook_url [String] where QuBe Sync sends the answer
115
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
116
+ # @return [Hash] the queued request
117
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-taxes/update-payroll-item-tax
118
+ def update(connection_id, params = {}, webhook_url:, idempotency_key: nil)
119
+ queue("payroll_item_tax.update", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
120
+ end
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,168 @@
1
+ # Generated from operations.json by bin/generate-operations: don't edit.
2
+ # frozen_string_literal: true
3
+
4
+ module QubeSync
5
+ module Operations
6
+ # QuickBooks payroll item wage operations, reached as `client.payroll_item_wage`. Each queues a request and
7
+ # returns it (the response's `data`); the answer comes to `webhook_url`.
8
+ class PayrollItemWage < Base
9
+ # Create payroll item wage: POST /connections/{connection_id}/payroll-item-wages
10
+ # (`payroll_item_wage.create`).
11
+ #
12
+ # QuickBooks answers in one webhook.
13
+ #
14
+ # Params, sent as the JSON body:
15
+ # - `expense_account_ref` (Hash, required): Refers to an expense account. If an
16
+ # `expense_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will
17
+ # be ignored.
18
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
19
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
20
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
21
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
22
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
23
+ # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
24
+ # request, QuickBooks uses `list_id` and ignores `full_name`.
25
+ # - `include_ret_element` (Array<one of "EditSequence", "ExpenseAccountRef", "IsActive",
26
+ # "ListID", "Name", "OvertimeMultiplier", "PayrollItemDetailTypeValue", "Rate",
27
+ # "RatePercent", "TimeCreated", "TimeModified", "WageType">)
28
+ # - `is_active` (Boolean): If `is_active` is true, this object is currently enabled for use by
29
+ # QuickBooks. The default value is true.
30
+ # - `name` (String, required): Description of the wage: for example, Regular Pay or Overtime
31
+ # Pay.
32
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
33
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
34
+ # webhook already carries the request's `id`.
35
+ # - `wage_type` (one of "Bonus", "Commission", "HourlyOvertime", "HourlyRegular",
36
+ # "HourlySick", "HourlyVacation", "SalaryRegular", "SalarySick", "SalaryVacation",
37
+ # required): The type of pay.
38
+ #
39
+ # @param connection_id [String]
40
+ # @param params [Hash] the fields above
41
+ # @param webhook_url [String] where QuBe Sync sends the answer
42
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
43
+ # @return [Hash] the queued request
44
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/create-payroll-item-wage
45
+ def create(connection_id, params = {}, webhook_url:, idempotency_key: nil)
46
+ queue("payroll_item_wage.create", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
47
+ end
48
+
49
+ # List payroll item wages: GET /connections/{connection_id}/payroll-item-wages
50
+ # (`payroll_item_wage.query`).
51
+ #
52
+ # QuickBooks answers in one webhook.
53
+ #
54
+ # Params, sent as the query string:
55
+ # - `active_status` (one of "ActiveOnly", "All", "InactiveOnly"): Used in filters to select
56
+ # list objects based on whether or not they are currently enabled for use by QuickBooks. The
57
+ # default value is asActiveOnly, which selects only list objects that are active. Choose at
58
+ # most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
59
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
60
+ # combine with each other, not with the other choices.
61
+ # - `from_modified_date` (String): Filters results to objects modified on or after this
62
+ # timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
63
+ # date is provided, time defaults to 00:00:00. Choose at most one of: `list_id`, or
64
+ # `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`,
65
+ # `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with
66
+ # each other, not with the other choices.
67
+ # - `full_name` (Array<String>): `full_name` (along with `list_id`) is a way to identify a
68
+ # list object. The `full_name` is the name prefixed by the names of each ancestor, for
69
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive. Choose at most
70
+ # one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
71
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
72
+ # combine with each other, not with the other choices.
73
+ # - `include_ret_element` (Array<one of "EditSequence", "ExpenseAccountRef", "IsActive",
74
+ # "ListID", "Name", "OvertimeMultiplier", "PayrollItemDetailTypeValue", "Rate",
75
+ # "RatePercent", "TimeCreated", "TimeModified", "WageType">)
76
+ # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
77
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
78
+ # within a list type, not globally across all lists. If both `full_name` and `list_id` are
79
+ # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`. Choose at most
80
+ # one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
81
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
82
+ # combine with each other, not with the other choices.
83
+ # - `max_returned` (Integer): Limits the number of objects that a query returns. (To get a
84
+ # count of how many objects could possibly be returned, use the `meta_data` query
85
+ # attribute.) If you include a `max_returned` value, it must be at least 1. QuickBooks
86
+ # doesn't page this query: at most this many records come back, in one answer, with no sign
87
+ # of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the
88
+ # Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type`
89
+ # `response_too_large`), so narrow a large one with its filters. Choose at most one of:
90
+ # `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
91
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
92
+ # combine with each other, not with the other choices.
93
+ # - `meta_data` (one of "MetaDataAndResponseData", "MetaDataOnly", "NoMetaData"): Use the
94
+ # `meta_data` attribute to control whether query responses include counts. Options are
95
+ # NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus
96
+ # objects). Counts are approximate and may vary slightly if records are created or deleted
97
+ # during processing.
98
+ # - `name_filter` (Hash): Filters according to the object’s Name. Choose at most one of:
99
+ # `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
100
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
101
+ # combine with each other, not with the other choices.
102
+ # - `match_criterion` (one of "Contains", "EndsWith", "StartsWith", required): The criterion
103
+ # to match.
104
+ # - `name` (String, required): The string to match.
105
+ # - `name_range_filter` (Hash): Filters according to the object’s Name. Choose at most one of:
106
+ # `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
107
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
108
+ # combine with each other, not with the other choices.
109
+ # - `from_name` (String): The first name or item in the search range. If `from_name` is
110
+ # omitted, the range will begin with first name on the list.
111
+ # - `to_name` (String): The final name or item in the search range. If `to_name` is omitted,
112
+ # the range will end with last name on the list.
113
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
114
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
115
+ # webhook already carries the request's `id`.
116
+ # - `to_modified_date` (String): Filters results to objects modified on or before this
117
+ # timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
118
+ # date is provided, time defaults to end-of-day (23:59:59). Choose at most one of:
119
+ # `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
120
+ # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
121
+ # combine with each other, not with the other choices.
122
+ #
123
+ # @param connection_id [String]
124
+ # @param params [Hash] the fields above
125
+ # @param webhook_url [String] where QuBe Sync sends the answer
126
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
127
+ # @return [Hash] the queued request
128
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/list-payroll-item-wages
129
+ def query(connection_id, params = {}, webhook_url:, idempotency_key: nil)
130
+ queue("payroll_item_wage.query", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
131
+ end
132
+
133
+ # Update payroll item wage: PUT /connections/{connection_id}/payroll-item-wages
134
+ # (`payroll_item_wage.update`).
135
+ #
136
+ # QuickBooks answers in one webhook.
137
+ #
138
+ # Params, sent as the JSON body:
139
+ # - `edit_sequence` (String, required)
140
+ # - `expense_account_ref` (Hash)
141
+ # - `full_name` (String)
142
+ # - `list_id` (String)
143
+ # - `include_ret_element` (Array<one of "EditSequence", "ExpenseAccountRef", "IsActive",
144
+ # "ListID", "Name", "OvertimeMultiplier", "PayrollItemDetailTypeValue", "Rate",
145
+ # "RatePercent", "TimeCreated", "TimeModified", "WageType">)
146
+ # - `is_active` (Boolean)
147
+ # - `list_id` (String, required)
148
+ # - `name` (String)
149
+ # - `overtime_multiplier` (Numeric)
150
+ # - `payroll_item_detail_type_value` (Integer)
151
+ # - `rate` (Numeric): Choose at most one of: `rate`, or `rate_percent`.
152
+ # - `rate_percent` (Numeric): Choose at most one of: `rate`, or `rate_percent`.
153
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
154
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
155
+ # webhook already carries the request's `id`.
156
+ #
157
+ # @param connection_id [String]
158
+ # @param params [Hash] the fields above
159
+ # @param webhook_url [String] where QuBe Sync sends the answer
160
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
161
+ # @return [Hash] the queued request
162
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-wages/update-payroll-item-wage
163
+ def update(connection_id, params = {}, webhook_url:, idempotency_key: nil)
164
+ queue("payroll_item_wage.update", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
165
+ end
166
+ end
167
+ end
168
+ end
@@ -0,0 +1,108 @@
1
+ # Generated from operations.json by bin/generate-operations: don't edit.
2
+ # frozen_string_literal: true
3
+
4
+ module QubeSync
5
+ module Operations
6
+ # QuickBooks payroll item workers compensation operations, reached as `client.payroll_item_workers_compensation`. Each queues a request and
7
+ # returns it (the response's `data`); the answer comes to `webhook_url`.
8
+ class PayrollItemWorkersCompensation < Base
9
+ # Create payroll item workers compensation: POST
10
+ # /connections/{connection_id}/payroll-item-workers-compensations
11
+ # (`payroll_item_workers_compensation.create`).
12
+ #
13
+ # QuickBooks answers in one webhook.
14
+ #
15
+ # Params, sent as the JSON body:
16
+ # - `expense_account_ref` (Hash, required)
17
+ # - `full_name` (String)
18
+ # - `list_id` (String)
19
+ # - `include_ret_element` (Array<one of "EditSequence", "ExpenseAccountRef", "IsActive",
20
+ # "IsTrackedByCustJob", "LiabilityAccountRef", "LiabilityPaymentSchedule", "ListID", "Name",
21
+ # "PaymentTemplateRef", "PayrollItemDetailTypeValue", "TimeCreated", "TimeModified",
22
+ # "VendorAccountNumber", "VendorRef">)
23
+ # - `is_active` (Boolean)
24
+ # - `is_tracked_by_cust_job` (Boolean)
25
+ # - `liability_account_ref` (Hash, required)
26
+ # - `full_name` (String)
27
+ # - `list_id` (String)
28
+ # - `liability_payment_schedule` (Hash)
29
+ # - `payment_due_date` (String)
30
+ # - `payment_due_num_days_after` (Integer)
31
+ # - `payment_schedule_type` (one of "Empty", "FederalMonthly", "FederalNextDay",
32
+ # "FederalQuarterly", "FederalSemiweekly", "Monthly", "Quarterly", "Semiweekly", "Weekly",
33
+ # "Yearly", required)
34
+ # - `name` (String, required)
35
+ # - `payment_template_ref` (Hash, required)
36
+ # - `full_name` (String)
37
+ # - `list_id` (String)
38
+ # - `payroll_item_detail_type_value` (Integer)
39
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
40
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
41
+ # webhook already carries the request's `id`.
42
+ # - `vendor_account_number` (String)
43
+ # - `vendor_ref` (Hash)
44
+ # - `full_name` (String)
45
+ # - `list_id` (String)
46
+ #
47
+ # @param connection_id [String]
48
+ # @param params [Hash] the fields above
49
+ # @param webhook_url [String] where QuBe Sync sends the answer
50
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
51
+ # @return [Hash] the queued request
52
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-workers-compensations/create-payroll-item-workers-compensation
53
+ def create(connection_id, params = {}, webhook_url:, idempotency_key: nil)
54
+ queue("payroll_item_workers_compensation.create", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
55
+ end
56
+
57
+ # Update payroll item workers compensation: PUT
58
+ # /connections/{connection_id}/payroll-item-workers-compensations
59
+ # (`payroll_item_workers_compensation.update`).
60
+ #
61
+ # QuickBooks answers in one webhook.
62
+ #
63
+ # Params, sent as the JSON body:
64
+ # - `edit_sequence` (String, required)
65
+ # - `expense_account_ref` (Hash)
66
+ # - `full_name` (String)
67
+ # - `list_id` (String)
68
+ # - `include_ret_element` (Array<one of "EditSequence", "ExpenseAccountRef", "IsActive",
69
+ # "IsTrackedByCustJob", "LiabilityAccountRef", "LiabilityPaymentSchedule", "ListID", "Name",
70
+ # "PaymentTemplateRef", "PayrollItemDetailTypeValue", "TimeCreated", "TimeModified",
71
+ # "VendorAccountNumber", "VendorRef">)
72
+ # - `is_active` (Boolean)
73
+ # - `is_tracked_by_cust_job` (Boolean)
74
+ # - `liability_account_ref` (Hash)
75
+ # - `full_name` (String)
76
+ # - `list_id` (String)
77
+ # - `liability_payment_schedule` (Hash)
78
+ # - `payment_due_date` (String)
79
+ # - `payment_due_num_days_after` (Integer)
80
+ # - `payment_schedule_type` (one of "Empty", "FederalMonthly", "FederalNextDay",
81
+ # "FederalQuarterly", "FederalSemiweekly", "Monthly", "Quarterly", "Semiweekly", "Weekly",
82
+ # "Yearly", required)
83
+ # - `list_id` (String, required)
84
+ # - `name` (String)
85
+ # - `payment_template_ref` (Hash)
86
+ # - `full_name` (String)
87
+ # - `list_id` (String)
88
+ # - `payroll_item_detail_type_value` (Integer)
89
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
90
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
91
+ # webhook already carries the request's `id`.
92
+ # - `vendor_account_number` (String)
93
+ # - `vendor_ref` (Hash)
94
+ # - `full_name` (String)
95
+ # - `list_id` (String)
96
+ #
97
+ # @param connection_id [String]
98
+ # @param params [Hash] the fields above
99
+ # @param webhook_url [String] where QuBe Sync sends the answer
100
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
101
+ # @return [Hash] the queued request
102
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-item-workers-compensations/update-payroll-item-workers-compensation
103
+ def update(connection_id, params = {}, webhook_url:, idempotency_key: nil)
104
+ queue("payroll_item_workers_compensation.update", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
105
+ end
106
+ end
107
+ end
108
+ end
@@ -0,0 +1,30 @@
1
+ # Generated from operations.json by bin/generate-operations: don't edit.
2
+ # frozen_string_literal: true
3
+
4
+ module QubeSync
5
+ module Operations
6
+ # QuickBooks payroll last period operations, reached as `client.payroll_last_period`. Each queues a request and
7
+ # returns it (the response's `data`); the answer comes to `webhook_url`.
8
+ class PayrollLastPeriod < Base
9
+ # List payroll last periods: GET /connections/{connection_id}/payroll-last-periods
10
+ # (`payroll_last_period.query`).
11
+ #
12
+ # QuickBooks answers in one webhook.
13
+ #
14
+ # Params, sent as the query string:
15
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
16
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
17
+ # webhook already carries the request's `id`.
18
+ #
19
+ # @param connection_id [String]
20
+ # @param params [Hash] the fields above
21
+ # @param webhook_url [String] where QuBe Sync sends the answer
22
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
23
+ # @return [Hash] the queued request
24
+ # @see https://docs.qubesync.com/api-reference/v2/payroll-last-periods/list-payroll-last-periods
25
+ def query(connection_id, params = {}, webhook_url:, idempotency_key: nil)
26
+ queue("payroll_last_period.query", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
27
+ end
28
+ end
29
+ end
30
+ end