qube_sync 0.3.0 → 0.5.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 (268) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +84 -0
  3. data/README.md +291 -75
  4. data/Rakefile +12 -0
  5. data/exe/qube_sync +11 -0
  6. data/lib/qube_sync/client.rb +614 -0
  7. data/lib/qube_sync/operations/account.rb +338 -0
  8. data/lib/qube_sync/operations/account_tax_line_info.rb +30 -0
  9. data/lib/qube_sync/operations/aging_report.rb +160 -0
  10. data/lib/qube_sync/operations/alert.rb +91 -0
  11. data/lib/qube_sync/operations/ar_refund_credit_card.rb +402 -0
  12. data/lib/qube_sync/operations/bar_code.rb +37 -0
  13. data/lib/qube_sync/operations/bill.rb +1117 -0
  14. data/lib/qube_sync/operations/bill_payment_check.rb +420 -0
  15. data/lib/qube_sync/operations/bill_payment_credit_card.rb +320 -0
  16. data/lib/qube_sync/operations/bill_to_pay.rb +67 -0
  17. data/lib/qube_sync/operations/billing_rate.rb +173 -0
  18. data/lib/qube_sync/operations/budget_summary_report.rb +80 -0
  19. data/lib/qube_sync/operations/build_assembly.rb +319 -0
  20. data/lib/qube_sync/operations/charge.rb +454 -0
  21. data/lib/qube_sync/operations/check.rb +1099 -0
  22. data/lib/qube_sync/operations/class.rb +176 -0
  23. data/lib/qube_sync/operations/cleared_status.rb +39 -0
  24. data/lib/qube_sync/operations/company.rb +39 -0
  25. data/lib/qube_sync/operations/company_activity.rb +31 -0
  26. data/lib/qube_sync/operations/credit_card_charge.rb +1044 -0
  27. data/lib/qube_sync/operations/credit_card_credit.rb +1044 -0
  28. data/lib/qube_sync/operations/credit_memo.rb +1277 -0
  29. data/lib/qube_sync/operations/currency.rb +195 -0
  30. data/lib/qube_sync/operations/custom_detail_report.rb +176 -0
  31. data/lib/qube_sync/operations/custom_summary_report.rb +180 -0
  32. data/lib/qube_sync/operations/customer.rb +745 -0
  33. data/lib/qube_sync/operations/customer_msg.rb +117 -0
  34. data/lib/qube_sync/operations/customer_type.rb +133 -0
  35. data/lib/qube_sync/operations/data_event_recovery_info.rb +54 -0
  36. data/lib/qube_sync/operations/data_ext.rb +202 -0
  37. data/lib/qube_sync/operations/data_ext_def.rb +179 -0
  38. data/lib/qube_sync/operations/date_driven_terms.rb +131 -0
  39. data/lib/qube_sync/operations/deposit.rb +570 -0
  40. data/lib/qube_sync/operations/employee.rb +581 -0
  41. data/lib/qube_sync/operations/employee_default.rb +100 -0
  42. data/lib/qube_sync/operations/entity.rb +118 -0
  43. data/lib/qube_sync/operations/estimate.rb +1084 -0
  44. data/lib/qube_sync/operations/fields.rb +4058 -0
  45. data/lib/qube_sync/operations/form1099_category_account_mapping.rb +91 -0
  46. data/lib/qube_sync/operations/general_detail_report.rb +185 -0
  47. data/lib/qube_sync/operations/general_summary_report.rb +180 -0
  48. data/lib/qube_sync/operations/host.rb +36 -0
  49. data/lib/qube_sync/operations/inventory_adjustment.rb +491 -0
  50. data/lib/qube_sync/operations/inventory_site.rb +214 -0
  51. data/lib/qube_sync/operations/invoice.rb +1242 -0
  52. data/lib/qube_sync/operations/item.rb +115 -0
  53. data/lib/qube_sync/operations/item_assemblies_can_build.rb +44 -0
  54. data/lib/qube_sync/operations/item_discount.rb +320 -0
  55. data/lib/qube_sync/operations/item_fixed_asset.rb +318 -0
  56. data/lib/qube_sync/operations/item_group.rb +255 -0
  57. data/lib/qube_sync/operations/item_inventory.rb +447 -0
  58. data/lib/qube_sync/operations/item_inventory_assembly.rb +486 -0
  59. data/lib/qube_sync/operations/item_non_inventory.rb +472 -0
  60. data/lib/qube_sync/operations/item_other_charge.rb +445 -0
  61. data/lib/qube_sync/operations/item_payment.rb +269 -0
  62. data/lib/qube_sync/operations/item_receipt.rb +1055 -0
  63. data/lib/qube_sync/operations/item_sales_tax.rb +271 -0
  64. data/lib/qube_sync/operations/item_sales_tax_group.rb +200 -0
  65. data/lib/qube_sync/operations/item_service.rb +466 -0
  66. data/lib/qube_sync/operations/item_sites.rb +98 -0
  67. data/lib/qube_sync/operations/item_subtotal.rb +182 -0
  68. data/lib/qube_sync/operations/job_report.rb +156 -0
  69. data/lib/qube_sync/operations/job_type.rb +131 -0
  70. data/lib/qube_sync/operations/journal_entry.rb +533 -0
  71. data/lib/qube_sync/operations/lead.rb +216 -0
  72. data/lib/qube_sync/operations/list.rb +42 -0
  73. data/lib/qube_sync/operations/list_deleted.rb +57 -0
  74. data/lib/qube_sync/operations/list_display.rb +59 -0
  75. data/lib/qube_sync/operations/list_merge.rb +57 -0
  76. data/lib/qube_sync/operations/other_name.rb +245 -0
  77. data/lib/qube_sync/operations/paycheck.rb +139 -0
  78. data/lib/qube_sync/operations/payment_method.rb +129 -0
  79. data/lib/qube_sync/operations/payroll_detail_report.rb +161 -0
  80. data/lib/qube_sync/operations/payroll_item.rb +75 -0
  81. data/lib/qube_sync/operations/payroll_item_addition.rb +98 -0
  82. data/lib/qube_sync/operations/payroll_item_company_contribution.rb +134 -0
  83. data/lib/qube_sync/operations/payroll_item_deduction.rb +124 -0
  84. data/lib/qube_sync/operations/payroll_item_direct_deposit.rb +70 -0
  85. data/lib/qube_sync/operations/payroll_item_non_wage.rb +93 -0
  86. data/lib/qube_sync/operations/payroll_item_tax.rb +123 -0
  87. data/lib/qube_sync/operations/payroll_item_wage.rb +168 -0
  88. data/lib/qube_sync/operations/payroll_item_workers_compensation.rb +108 -0
  89. data/lib/qube_sync/operations/payroll_last_period.rb +30 -0
  90. data/lib/qube_sync/operations/payroll_liability_adjustment.rb +204 -0
  91. data/lib/qube_sync/operations/payroll_liability_check.rb +137 -0
  92. data/lib/qube_sync/operations/payroll_prior_payment.rb +178 -0
  93. data/lib/qube_sync/operations/payroll_summary_report.rb +157 -0
  94. data/lib/qube_sync/operations/payroll_year_to_date_adjustment.rb +211 -0
  95. data/lib/qube_sync/operations/preferences.rb +61 -0
  96. data/lib/qube_sync/operations/price_level.rb +309 -0
  97. data/lib/qube_sync/operations/purchase_order.rb +1065 -0
  98. data/lib/qube_sync/operations/qb_command_exec.rb +37 -0
  99. data/lib/qube_sync/operations/receive_payment.rb +634 -0
  100. data/lib/qube_sync/operations/receive_payment_to_deposit.rb +38 -0
  101. data/lib/qube_sync/operations/sales_order.rb +1072 -0
  102. data/lib/qube_sync/operations/sales_receipt.rb +1371 -0
  103. data/lib/qube_sync/operations/sales_rep.rb +172 -0
  104. data/lib/qube_sync/operations/sales_tax_code.rb +205 -0
  105. data/lib/qube_sync/operations/sales_tax_payable.rb +37 -0
  106. data/lib/qube_sync/operations/sales_tax_payment_check.rb +379 -0
  107. data/lib/qube_sync/operations/sales_tax_return.rb +35 -0
  108. data/lib/qube_sync/operations/sales_tax_return_line.rb +43 -0
  109. data/lib/qube_sync/operations/ship_method.rb +116 -0
  110. data/lib/qube_sync/operations/special_account.rb +55 -0
  111. data/lib/qube_sync/operations/special_item.rb +44 -0
  112. data/lib/qube_sync/operations/standard_terms.rb +125 -0
  113. data/lib/qube_sync/operations/template.rb +36 -0
  114. data/lib/qube_sync/operations/terms.rb +91 -0
  115. data/lib/qube_sync/operations/time_report.rb +127 -0
  116. data/lib/qube_sync/operations/time_tracking.rb +304 -0
  117. data/lib/qube_sync/operations/to_do.rb +260 -0
  118. data/lib/qube_sync/operations/transaction.rb +361 -0
  119. data/lib/qube_sync/operations/transfer.rb +213 -0
  120. data/lib/qube_sync/operations/transfer_inventory.rb +393 -0
  121. data/lib/qube_sync/operations/txn.rb +38 -0
  122. data/lib/qube_sync/operations/txn_deleted.rb +54 -0
  123. data/lib/qube_sync/operations/txn_display.rb +76 -0
  124. data/lib/qube_sync/operations/txn_void.rb +36 -0
  125. data/lib/qube_sync/operations/unit_of_measure_set.rb +149 -0
  126. data/lib/qube_sync/operations/vehicle.rb +152 -0
  127. data/lib/qube_sync/operations/vehicle_mileage.rb +191 -0
  128. data/lib/qube_sync/operations/vendor.rb +663 -0
  129. data/lib/qube_sync/operations/vendor_credit.rb +1052 -0
  130. data/lib/qube_sync/operations/vendor_type.rb +131 -0
  131. data/lib/qube_sync/operations/workers_comp_code.rb +184 -0
  132. data/lib/qube_sync/operations.rb +1169 -0
  133. data/lib/qube_sync/version.rb +1 -1
  134. data/lib/qube_sync/workflow_types/cli.rb +120 -0
  135. data/lib/qube_sync/workflow_types/rbs_renderer.rb +290 -0
  136. data/lib/qube_sync/workflow_types/ruby_renderer.rb +391 -0
  137. data/lib/qube_sync/workflow_types/workflow.rb +153 -0
  138. data/lib/qube_sync/workflow_types.rb +219 -0
  139. data/lib/qube_sync.rb +1 -0
  140. data/sig/qube_sync/client.rbs +85 -0
  141. data/sig/qube_sync/operations/account.rbs +65 -0
  142. data/sig/qube_sync/operations/account_tax_line_info.rbs +13 -0
  143. data/sig/qube_sync/operations/aging_report.rbs +29 -0
  144. data/sig/qube_sync/operations/alert.rbs +53 -0
  145. data/sig/qube_sync/operations/ar_refund_credit_card.rbs +53 -0
  146. data/sig/qube_sync/operations/bar_code.rbs +16 -0
  147. data/sig/qube_sync/operations/bill.rbs +78 -0
  148. data/sig/qube_sync/operations/bill_payment_check.rbs +62 -0
  149. data/sig/qube_sync/operations/bill_payment_credit_card.rbs +45 -0
  150. data/sig/qube_sync/operations/bill_to_pay.rbs +19 -0
  151. data/sig/qube_sync/operations/billing_rate.rbs +40 -0
  152. data/sig/qube_sync/operations/budget_summary_report.rbs +22 -0
  153. data/sig/qube_sync/operations/build_assembly.rbs +64 -0
  154. data/sig/qube_sync/operations/charge.rbs +80 -0
  155. data/sig/qube_sync/operations/check.rbs +81 -0
  156. data/sig/qube_sync/operations/class.rbs +43 -0
  157. data/sig/qube_sync/operations/cleared_status.rbs +16 -0
  158. data/sig/qube_sync/operations/company.rbs +15 -0
  159. data/sig/qube_sync/operations/company_activity.rbs +14 -0
  160. data/sig/qube_sync/operations/credit_card_charge.rbs +69 -0
  161. data/sig/qube_sync/operations/credit_card_credit.rbs +69 -0
  162. data/sig/qube_sync/operations/credit_memo.rbs +162 -0
  163. data/sig/qube_sync/operations/currency.rbs +52 -0
  164. data/sig/qube_sync/operations/custom_detail_report.rbs +31 -0
  165. data/sig/qube_sync/operations/custom_summary_report.rbs +33 -0
  166. data/sig/qube_sync/operations/customer.rbs +174 -0
  167. data/sig/qube_sync/operations/customer_msg.rbs +31 -0
  168. data/sig/qube_sync/operations/customer_type.rbs +32 -0
  169. data/sig/qube_sync/operations/data_event_recovery_info.rbs +20 -0
  170. data/sig/qube_sync/operations/data_ext.rbs +53 -0
  171. data/sig/qube_sync/operations/data_ext_def.rbs +51 -0
  172. data/sig/qube_sync/operations/date_driven_terms.rbs +35 -0
  173. data/sig/qube_sync/operations/deposit.rbs +100 -0
  174. data/sig/qube_sync/operations/employee.rbs +173 -0
  175. data/sig/qube_sync/operations/employee_default.rbs +68 -0
  176. data/sig/qube_sync/operations/entity.rbs +24 -0
  177. data/sig/qube_sync/operations/estimate.rbs +148 -0
  178. data/sig/qube_sync/operations/form1099_category_account_mapping.rbs +33 -0
  179. data/sig/qube_sync/operations/general_detail_report.rbs +31 -0
  180. data/sig/qube_sync/operations/general_summary_report.rbs +32 -0
  181. data/sig/qube_sync/operations/host.rbs +19 -0
  182. data/sig/qube_sync/operations/inventory_adjustment.rbs +105 -0
  183. data/sig/qube_sync/operations/inventory_site.rbs +66 -0
  184. data/sig/qube_sync/operations/invoice.rbs +144 -0
  185. data/sig/qube_sync/operations/item.rbs +25 -0
  186. data/sig/qube_sync/operations/item_assemblies_can_build.rbs +15 -0
  187. data/sig/qube_sync/operations/item_discount.rbs +62 -0
  188. data/sig/qube_sync/operations/item_fixed_asset.rbs +97 -0
  189. data/sig/qube_sync/operations/item_group.rbs +62 -0
  190. data/sig/qube_sync/operations/item_inventory.rbs +87 -0
  191. data/sig/qube_sync/operations/item_inventory_assembly.rbs +94 -0
  192. data/sig/qube_sync/operations/item_non_inventory.rbs +64 -0
  193. data/sig/qube_sync/operations/item_other_charge.rbs +59 -0
  194. data/sig/qube_sync/operations/item_payment.rbs +55 -0
  195. data/sig/qube_sync/operations/item_receipt.rbs +71 -0
  196. data/sig/qube_sync/operations/item_sales_tax.rbs +57 -0
  197. data/sig/qube_sync/operations/item_sales_tax_group.rbs +50 -0
  198. data/sig/qube_sync/operations/item_service.rbs +62 -0
  199. data/sig/qube_sync/operations/item_sites.rbs +26 -0
  200. data/sig/qube_sync/operations/item_subtotal.rbs +48 -0
  201. data/sig/qube_sync/operations/job_report.rbs +28 -0
  202. data/sig/qube_sync/operations/job_type.rbs +32 -0
  203. data/sig/qube_sync/operations/journal_entry.rbs +88 -0
  204. data/sig/qube_sync/operations/lead.rbs +91 -0
  205. data/sig/qube_sync/operations/list.rbs +15 -0
  206. data/sig/qube_sync/operations/list_deleted.rbs +17 -0
  207. data/sig/qube_sync/operations/list_display.rbs +21 -0
  208. data/sig/qube_sync/operations/list_merge.rbs +22 -0
  209. data/sig/qube_sync/operations/other_name.rbs +71 -0
  210. data/sig/qube_sync/operations/paycheck.rbs +27 -0
  211. data/sig/qube_sync/operations/payment_method.rbs +33 -0
  212. data/sig/qube_sync/operations/payroll_detail_report.rbs +29 -0
  213. data/sig/qube_sync/operations/payroll_item.rbs +23 -0
  214. data/sig/qube_sync/operations/payroll_item_addition.rbs +48 -0
  215. data/sig/qube_sync/operations/payroll_item_company_contribution.rbs +58 -0
  216. data/sig/qube_sync/operations/payroll_item_deduction.rbs +54 -0
  217. data/sig/qube_sync/operations/payroll_item_direct_deposit.rbs +30 -0
  218. data/sig/qube_sync/operations/payroll_item_non_wage.rbs +23 -0
  219. data/sig/qube_sync/operations/payroll_item_tax.rbs +58 -0
  220. data/sig/qube_sync/operations/payroll_item_wage.rbs +48 -0
  221. data/sig/qube_sync/operations/payroll_item_workers_compensation.rbs +42 -0
  222. data/sig/qube_sync/operations/payroll_last_period.rbs +13 -0
  223. data/sig/qube_sync/operations/payroll_liability_adjustment.rbs +59 -0
  224. data/sig/qube_sync/operations/payroll_liability_check.rbs +27 -0
  225. data/sig/qube_sync/operations/payroll_prior_payment.rbs +48 -0
  226. data/sig/qube_sync/operations/payroll_summary_report.rbs +30 -0
  227. data/sig/qube_sync/operations/payroll_year_to_date_adjustment.rbs +66 -0
  228. data/sig/qube_sync/operations/preferences.rbs +26 -0
  229. data/sig/qube_sync/operations/price_level.rbs +57 -0
  230. data/sig/qube_sync/operations/purchase_order.rbs +159 -0
  231. data/sig/qube_sync/operations/qb_command_exec.rbs +22 -0
  232. data/sig/qube_sync/operations/receive_payment.rbs +102 -0
  233. data/sig/qube_sync/operations/receive_payment_to_deposit.rbs +15 -0
  234. data/sig/qube_sync/operations/sales_order.rbs +153 -0
  235. data/sig/qube_sync/operations/sales_receipt.rbs +139 -0
  236. data/sig/qube_sync/operations/sales_rep.rbs +43 -0
  237. data/sig/qube_sync/operations/sales_tax_code.rbs +49 -0
  238. data/sig/qube_sync/operations/sales_tax_payable.rbs +16 -0
  239. data/sig/qube_sync/operations/sales_tax_payment_check.rbs +64 -0
  240. data/sig/qube_sync/operations/sales_tax_return.rbs +14 -0
  241. data/sig/qube_sync/operations/sales_tax_return_line.rbs +15 -0
  242. data/sig/qube_sync/operations/ship_method.rbs +31 -0
  243. data/sig/qube_sync/operations/special_account.rbs +16 -0
  244. data/sig/qube_sync/operations/special_item.rbs +17 -0
  245. data/sig/qube_sync/operations/standard_terms.rbs +34 -0
  246. data/sig/qube_sync/operations/template.rbs +15 -0
  247. data/sig/qube_sync/operations/terms.rbs +23 -0
  248. data/sig/qube_sync/operations/time_report.rbs +26 -0
  249. data/sig/qube_sync/operations/time_tracking.rbs +57 -0
  250. data/sig/qube_sync/operations/to_do.rbs +59 -0
  251. data/sig/qube_sync/operations/transaction.rbs +39 -0
  252. data/sig/qube_sync/operations/transfer.rbs +47 -0
  253. data/sig/qube_sync/operations/transfer_inventory.rbs +76 -0
  254. data/sig/qube_sync/operations/txn.rbs +15 -0
  255. data/sig/qube_sync/operations/txn_deleted.rbs +17 -0
  256. data/sig/qube_sync/operations/txn_display.rbs +22 -0
  257. data/sig/qube_sync/operations/txn_void.rbs +15 -0
  258. data/sig/qube_sync/operations/types.rbs +434 -0
  259. data/sig/qube_sync/operations/unit_of_measure_set.rbs +51 -0
  260. data/sig/qube_sync/operations/vehicle.rbs +43 -0
  261. data/sig/qube_sync/operations/vehicle_mileage.rbs +38 -0
  262. data/sig/qube_sync/operations/vendor.rbs +142 -0
  263. data/sig/qube_sync/operations/vendor_credit.rbs +70 -0
  264. data/sig/qube_sync/operations/vendor_type.rbs +32 -0
  265. data/sig/qube_sync/operations/workers_comp_code.rbs +52 -0
  266. data/sig/qube_sync/operations.rbs +148 -0
  267. data/sig/qube_sync/workflow_types.rbs +59 -0
  268. metadata +265 -3
@@ -0,0 +1,1242 @@
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 invoice operations, reached as `client.invoice`. Each queues a request and
7
+ # returns it (the response's `data`); the answer comes to `webhook_url`.
8
+ class Invoice < Base
9
+ # Create invoice: POST /connections/{connection_id}/invoices (`invoice.create`).
10
+ #
11
+ # QuickBooks answers in one webhook.
12
+ #
13
+ # Params, sent as the JSON body:
14
+ # - `ar_account_ref` (Hash): `ar_account_ref` points to an Accounts Receivable account. If
15
+ # both `full_name` and `list_id` are provided, `full_name` is ignored.
16
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
17
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
18
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
19
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
20
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
21
+ # family, not across the company file: customers, vendors, employees and other names share
22
+ # one sequence, every item type shares another, and each other list has its own.
23
+ # - `bill_address` (Hash): This aggregate supports at most five address lines. You can provide
24
+ # a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode
25
+ # (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each
26
+ # Addr line prints as its own line and is returned in `ship_address_block` or
27
+ # `bill_address_block`.
28
+ # - `addr1` (String): The first line of an address.
29
+ # - `addr2` (String): The second line of an address (if a second line is needed).
30
+ # - `addr3` (String): The third line of an address (if a third line is needed).
31
+ # - `addr4` (String): The fourth line of an address (if a fourth line is needed).
32
+ # - `addr5` (String): The fifth line of an address (if a fifth line is needed).
33
+ # - `city` (String): The city name in an address.
34
+ # - `country` (String): The country name in an address, or, in returned Host information
35
+ # (HostRet or HostInfo), the country for which this edition of QuickBooks was designed.
36
+ # (Possible values are US, CA, UK, and AU.)
37
+ # - `note` (String): In a `bill_address` or `ship_address` aggregate, the Note field value
38
+ # is written at the bottom of the address in the form in which it appears, such as the
39
+ # invoice form.
40
+ # - `postal_code` (String): The postal code in an address.
41
+ # - `state` (String): The state name in an address.
42
+ # - `class_ref` (Hash): Use classes to categorize transactions (for example, by department,
43
+ # location, or work type). Class tracking is off by default in QuickBooks. A `class_ref`
44
+ # points to one class; if both `full_name` and `list_id` are provided, `full_name` is
45
+ # ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you
46
+ # override or clear it on individual lines.
47
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
48
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
49
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
50
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
51
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
52
+ # family, not across the company file: customers, vendors, employees and other names share
53
+ # one sequence, every item type shares another, and each other list has its own.
54
+ # - `customer_msg_ref` (Hash): A standard message such as “Thank you for your business,” or
55
+ # “Please sign and return this estimate to indicate your approval.” A customer message can
56
+ # be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the
57
+ # messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes
58
+ # both `full_name` and `list_id`, `full_name` will be ignored.
59
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
60
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
61
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
62
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
63
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
64
+ # family, not across the company file: customers, vendors, employees and other names share
65
+ # one sequence, every item type shares another, and each other list has its own.
66
+ # - `customer_ref` (Hash, required): `customer_ref` identifies a customer or customer job. If
67
+ # both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and
68
+ # ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the
69
+ # time can be billed to and is required in TimeTrackingAdd when IsBillable is true.
70
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
71
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
72
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
73
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
74
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
75
+ # family, not across the company file: customers, vendors, employees and other names share
76
+ # one sequence, every item type shares another, and each other list has its own.
77
+ # - `customer_sales_tax_code_ref` (Hash): Refers to the sales-tax code for sales related to
78
+ # this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax
79
+ # code indicates whether an item is taxable or non-taxable, and why. In a request, if a
80
+ # `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`,
81
+ # `full_name` will be ignored.
82
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
83
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
84
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
85
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
86
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
87
+ # family, not across the company file: customers, vendors, employees and other names share
88
+ # one sequence, every item type shares another, and each other list has its own.
89
+ # - `def_macro` (String): `def_macro` lets you assign a reusable name to a returned `txn_id`
90
+ # or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires
91
+ # SDK 2.0+.
92
+ # - `discount_line_add` (Hash)
93
+ # - `account_ref` (Hash)
94
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
95
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
96
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
97
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
98
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
99
+ # list family, not across the company file: customers, vendors, employees and other
100
+ # names share one sequence, every item type shares another, and each other list has its
101
+ # own.
102
+ # - `amount` (Numeric): A monetary amount. Choose at most one of: `amount`, or
103
+ # `rate_percent`.
104
+ # - `is_taxable` (Boolean)
105
+ # - `rate_percent` (Numeric): Indicates the price of something as a percent. Choose at most
106
+ # one of: `amount`, or `rate_percent`.
107
+ # - `due_date` (String): If `due_date` isn’t included in an InvoiceAdd request, QuickBooks
108
+ # might determine the due date according to the terms set for this customer.
109
+ # - `exchange_rate` (Numeric): `exchange_rate` is the rate from this currency to the company’s
110
+ # home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks
111
+ # does not provide rates through the SDK. If your home currency is USD and internet access
112
+ # is available, rates can be downloaded in the QuickBooks UI via Lists > Currency >
113
+ # Activities > Download Latest Exchange Rates.
114
+ # - `external_guid` (String): Allows for the attachment of a user defined GUID value.
115
+ # - `fob` (String): QuickBooks uses the term FOB, “freight on board,” to indicate the place
116
+ # from which the product is shipped. The FOB has no accounting implications.
117
+ # - `include_ret_element` (Array<one of "ARAccountRef", "AppliedAmount", "BalanceRemaining",
118
+ # "BalanceRemainingInHomeCurrency", "BillAddress", "BillAddressBlock", "ClassRef",
119
+ # "CurrencyRef", "CustomerMsgRef", "CustomerRef", "CustomerSalesTaxCodeRef", "DataExtRet",
120
+ # "DiscountLineRet", "DueDate", "EditSequence", "ExchangeRate", "ExternalGUID", "FOB",
121
+ # "InvoiceLineGroupRet", "InvoiceLineRet", "IsFinanceCharge", "IsPaid", "IsPending",
122
+ # "IsTaxIncluded", "IsToBeEmailed", "IsToBePrinted", "ItemSalesTaxRef", "LinkedTxn",
123
+ # "ListID", "Memo", "Other", "OwnerID", "PONumber", "RefNumber", "SalesRepRef",
124
+ # "SalesTaxLineRet", "SalesTaxPercentage", "SalesTaxTotal", "ShipAddress",
125
+ # "ShipAddressBlock", "ShipDate", "ShipMethodRef", "ShippingLineRet", "Subtotal",
126
+ # "SuggestedDiscountAmount", "SuggestedDiscountDate", "TemplateRef", "TermsRef",
127
+ # "TimeCreated", "TimeModified", "TxnDate", "TxnID", "TxnNumber">)
128
+ # - `invoice_line_add` (Array<Hash>): Represents one line in the invoice. Compare with
129
+ # InvoiceLineGroup, which represents a previously defined group of lines in the invoice.
130
+ # `invoice_line_add` and `invoice_line_group_add` combine: any number of each. QuickBooks
131
+ # receives them in that order: every `invoice_line_add`, then every
132
+ # `invoice_line_group_add`.
133
+ # - `amount` (Numeric): A monetary amount.
134
+ # - `class_ref` (Hash): Use classes to categorize transactions (for example, by department,
135
+ # location, or work type). Class tracking is off by default in QuickBooks. A `class_ref`
136
+ # points to one class; if both `full_name` and `list_id` are provided, `full_name` is
137
+ # ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you
138
+ # override or clear it on individual lines.
139
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
140
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
141
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
142
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
143
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
144
+ # list family, not across the company file: customers, vendors, employees and other
145
+ # names share one sequence, every item type shares another, and each other list has its
146
+ # own.
147
+ # - `data_ext` (Array<Hash>)
148
+ # - `data_ext_name` (String, required): The name of the data extension. If this is a
149
+ # custom field, `data_ext_name` will be visible as a label in the QuickBooks user
150
+ # interface. Also because `owner_id` and `data_ext_name` together make the data
151
+ # extension unique, and because custom fields all have the same `owner_id` of zero, the
152
+ # `data_ext_name` must be a unique value among existing custom fields.
153
+ # - `data_ext_value` (String, required): The data in this field. The maximum length of
154
+ # `data_ext_value` will depend on the `data_ext_type` of this data extension. For
155
+ # example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is
156
+ # 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of
157
+ # `data_ext_value` is 1KB.
158
+ # - `owner_id` (String, required): `owner_id` identifies who owns the data extension. Use
159
+ # 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private
160
+ # extensions owned by an app. Keep private GUIDs confidential unless you intentionally
161
+ # share extensions across apps. If you do share them, both apps must use the same
162
+ # `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.
163
+ # - `def_macro` (String): `def_macro` lets you assign a reusable name to a returned `txn_id`
164
+ # or `txn_line_id` so later requests can reference it with `useMacro`. This feature
165
+ # requires SDK 2.0+.
166
+ # - `desc` (String): A descriptive text field.
167
+ # - `inventory_site_location_ref` (Hash): Location within the Inventory Site.
168
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
169
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
170
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
171
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
172
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
173
+ # list family, not across the company file: customers, vendors, employees and other
174
+ # names share one sequence, every item type shares another, and each other list has its
175
+ # own.
176
+ # - `inventory_site_ref` (Hash): Site where inventory is located.
177
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
178
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
179
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
180
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
181
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
182
+ # list family, not across the company file: customers, vendors, employees and other
183
+ # names share one sequence, every item type shares another, and each other list has its
184
+ # own.
185
+ # - `is_taxable` (Boolean)
186
+ # - `item_ref` (Hash): `item_ref` may accept all item types or a restricted subset,
187
+ # depending on the request. Examples: PurchaseOrder and Bill do not allow discount or
188
+ # sales-tax items; VehicleMileageAdd requires a service or other-charge item;
189
+ # BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided,
190
+ # `full_name` is ignored.
191
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
192
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
193
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
194
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
195
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
196
+ # list family, not across the company file: customers, vendors, employees and other
197
+ # names share one sequence, every item type shares another, and each other list has its
198
+ # own.
199
+ # - `link_to_txn` (Hash): When used with InvoiceAdd, the transaction you are linking to via
200
+ # this field must be a SalesOrder; links to other transactions, such as to estimates,
201
+ # aren’t currently supported. When used with BillAdd or ItemReceiptAdd, the transaction
202
+ # you are linking to via this field must be a PurchaseOrder: links to other transactions
203
+ # aren’t currently supported.
204
+ # - `txn_id` (String, required): `txn_id` is the unique QuickBooks identifier for a
205
+ # transaction. Use it to reference that transaction in later requests. `txn_id` values
206
+ # are transaction-specific and should not be reused across unrelated transaction types.
207
+ # - `txn_line_id` (String, required): Identification number of the transaction line.
208
+ # (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1,
209
+ # `txn_line_id` is always returned as zero.) If you need to add a new transaction line
210
+ # in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.
211
+ # - `lot_number` (String): The lot number of the asset. Choose at most one of:
212
+ # `serial_number`, or `lot_number`.
213
+ # - `option_for_price_rule_conflict` (one of "BasePrice", "Zero"): Flag to override price
214
+ # rule conflict.
215
+ # - `other1` (String): Other, Other1, and Other2 are built-in transaction custom fields.
216
+ # Other is transaction-level; Other1 and Other2 are line-level. These fields are always
217
+ # available through the SDK and do not require DataExtDef setup. Template labels in the UI
218
+ # can be renamed, but SDK names remain fixed as Other, Other1, and Other2.
219
+ # - `other2` (String): Other, Other1, and Other2 are built-in transaction custom fields.
220
+ # Other is transaction-level; Other1 and Other2 are line-level. These fields are always
221
+ # available through the SDK and do not require DataExtDef setup. Template labels in the UI
222
+ # can be renamed, but SDK names remain fixed as Other, Other1, and Other2.
223
+ # - `override_item_account_ref` (Hash): Refers to a QuickBooks account. If an
224
+ # `override_item_account_ref` aggregate includes both `full_name` and `list_id`,
225
+ # `full_name` will be ignored.
226
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
227
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
228
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
229
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
230
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
231
+ # list family, not across the company file: customers, vendors, employees and other
232
+ # names share one sequence, every item type shares another, and each other list has its
233
+ # own.
234
+ # - `price_level_ref` (Hash): Price levels let you apply custom pricing rules for selected
235
+ # customers. Once assigned, QuickBooks uses those prices automatically on supported sales
236
+ # forms unless explicitly overridden. Choose at most one of: `rate`, or `rate_percent`, or
237
+ # `price_level_ref`.
238
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
239
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
240
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
241
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
242
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
243
+ # list family, not across the company file: customers, vendors, employees and other
244
+ # names share one sequence, every item type shares another, and each other list has its
245
+ # own.
246
+ # - `quantity` (Numeric): On transaction lines, QuickBooks can derive one value from the
247
+ # other two among Quantity, Rate, and Amount. If you supply Quantity and Amount,
248
+ # QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates
249
+ # Amount.
250
+ # - `rate` (Numeric): If you specify both Rate and Amount in a request, the Rate you provide
251
+ # will be ignored, and you will receive a warning. If you specify both Quantity and Amount
252
+ # in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and
253
+ # Quantity can’t be cleared.) Choose at most one of: `rate`, or `rate_percent`, or
254
+ # `price_level_ref`.
255
+ # - `rate_percent` (Numeric): Indicates the price of something as a percent. Choose at most
256
+ # one of: `rate`, or `rate_percent`, or `price_level_ref`.
257
+ # - `sales_tax_code_ref` (Hash): `sales_tax_code_ref` points to the sales-tax code used for
258
+ # an item or customer context. QuickBooks includes default TAX and NON codes, and a code
259
+ # can be deleted only when nothing references it. If sales tax is disabled, QuickBooks
260
+ # assigns the default non-taxable code. If both `full_name` and `list_id` are provided in
261
+ # `sales_tax_code_ref`, `full_name` is ignored.
262
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
263
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
264
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
265
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
266
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
267
+ # list family, not across the company file: customers, vendors, employees and other
268
+ # names share one sequence, every item type shares another, and each other list has its
269
+ # own.
270
+ # - `serial_number` (String): The serial number of the asset. Choose at most one of:
271
+ # `serial_number`, or `lot_number`.
272
+ # - `service_date` (String): Indicates the date on which the QuickBooks user performs the
273
+ # service for the customer.
274
+ # - `tax_amount` (Numeric)
275
+ # - `unit_of_measure` (String): In a transaction line item, the name of the unit of measure
276
+ # selected from within the item’s available units. If the company file is enabled only for
277
+ # single unit of measure per item, this must be the base unit!
278
+ # - `invoice_line_group_add` (Array<Hash>): Represents a previously defined group of lines in
279
+ # the invoice. Compare with InvoiceLine, which represents just one line in the invoice.
280
+ # `invoice_line_add` and `invoice_line_group_add` combine: any number of each. QuickBooks
281
+ # receives them in that order: every `invoice_line_add`, then every
282
+ # `invoice_line_group_add`.
283
+ # - `data_ext` (Array<Hash>)
284
+ # - `data_ext_name` (String, required): The name of the data extension. If this is a
285
+ # custom field, `data_ext_name` will be visible as a label in the QuickBooks user
286
+ # interface. Also because `owner_id` and `data_ext_name` together make the data
287
+ # extension unique, and because custom fields all have the same `owner_id` of zero, the
288
+ # `data_ext_name` must be a unique value among existing custom fields.
289
+ # - `data_ext_value` (String, required): The data in this field. The maximum length of
290
+ # `data_ext_value` will depend on the `data_ext_type` of this data extension. For
291
+ # example, if `data_ext_type` is STR255TYPE, the maximum length of `data_ext_value` is
292
+ # 255 characters. If `data_ext_type` is STR1024TYPE, the maximum size of
293
+ # `data_ext_value` is 1KB.
294
+ # - `owner_id` (String, required): `owner_id` identifies who owns the data extension. Use
295
+ # 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private
296
+ # extensions owned by an app. Keep private GUIDs confidential unless you intentionally
297
+ # share extensions across apps. If you do share them, both apps must use the same
298
+ # `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.
299
+ # - `desc` (String): A descriptive text field.
300
+ # - `inventory_site_location_ref` (Hash): Location within the Inventory Site.
301
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
302
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
303
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
304
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
305
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
306
+ # list family, not across the company file: customers, vendors, employees and other
307
+ # names share one sequence, every item type shares another, and each other list has its
308
+ # own.
309
+ # - `inventory_site_ref` (Hash): Site where inventory is located.
310
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
311
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
312
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
313
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
314
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
315
+ # list family, not across the company file: customers, vendors, employees and other
316
+ # names share one sequence, every item type shares another, and each other list has its
317
+ # own.
318
+ # - `item_group_ref` (Hash, required): ItemGroup objects represent items that are grouped
319
+ # together for fast entry, and an `item_group_ref` aggregate refers to one of these item
320
+ # groups. In a request, if an `item_group_ref` aggregate includes both `full_name` and
321
+ # `list_id`, `full_name` will be ignored. You can use an ItemGroupQuery request to get
322
+ # information about all the item groups that are set up in the QuickBooks file.
323
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
324
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
325
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
326
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
327
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
328
+ # list family, not across the company file: customers, vendors, employees and other
329
+ # names share one sequence, every item type shares another, and each other list has its
330
+ # own.
331
+ # - `quantity` (Numeric): On transaction lines, QuickBooks can derive one value from the
332
+ # other two among Quantity, Rate, and Amount. If you supply Quantity and Amount,
333
+ # QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates
334
+ # Amount.
335
+ # - `service_date` (String): Indicates the date on which the QuickBooks user performs the
336
+ # service for the customer.
337
+ # - `unit_of_measure` (String): In a transaction line item, the name of the unit of measure
338
+ # selected from within the item’s available units. If the company file is enabled only for
339
+ # single unit of measure per item, this must be the base unit!
340
+ # - `is_finance_charge` (Boolean): If `is_finance_charge` is true, a finance-charge item has
341
+ # been added to the invoice.
342
+ # - `is_pending` (Boolean): If `is_pending` is set to true, the invoice hasn’t been completed.
343
+ # Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been
344
+ # billed, or sales of back-ordered items.
345
+ # - `is_tax_included` (Boolean): For future use with international versions of QuickBooks.
346
+ # - `is_to_be_emailed` (Boolean): When enabled, QuickBooks validates the customer email at
347
+ # runtime before sending. If no valid email is available, the request fails.
348
+ # - `is_to_be_printed` (Boolean): If `is_to_be_printed` is true, QuickBooks queues the form
349
+ # for later printing. It does not print immediately; printing is still a user action in
350
+ # QuickBooks.
351
+ # - `item_sales_tax_ref` (Hash): An ItemSalesTax entry represents one tax rate paid to one tax
352
+ # agency. Use it when a transaction needs a single tax calculation. For multi-rate
353
+ # scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided
354
+ # for `item_sales_tax_ref`, `list_id` is used.
355
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
356
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
357
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
358
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
359
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
360
+ # family, not across the company file: customers, vendors, employees and other names share
361
+ # one sequence, every item type shares another, and each other list has its own.
362
+ # - `link_to_txn_id` (Array<String>)
363
+ # - `memo` (String): Message that appears in reports, but not on the invoice.
364
+ # - `other` (String): Other, Other1, and Other2 are built-in transaction custom fields. Other
365
+ # is transaction-level; Other1 and Other2 are line-level. These fields are always available
366
+ # through the SDK and do not require DataExtDef setup. Template labels in the UI can be
367
+ # renamed, but SDK names remain fixed as Other, Other1, and Other2.
368
+ # - `po_number` (String): Purchase order number.
369
+ # - `ref_number` (String): `ref_number` is a user-managed transaction reference (for example,
370
+ # a check number). It can be edited and is not guaranteed to be globally unique. Some
371
+ # transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences
372
+ # and numbering state.
373
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
374
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
375
+ # webhook already carries the request's `id`.
376
+ # - `sales_rep_ref` (Hash): A sales representative must be on the Employee, Vendor, or Other
377
+ # Names list within QuickBooks. Sales representative’s names and initials appear on the Rep
378
+ # drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the
379
+ # SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and
380
+ # `list_id`, `full_name` will be ignored.
381
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
382
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
383
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
384
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
385
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
386
+ # family, not across the company file: customers, vendors, employees and other names share
387
+ # one sequence, every item type shares another, and each other list has its own.
388
+ # - `sales_tax_line_add` (Hash)
389
+ # - `account_ref` (Hash)
390
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
391
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
392
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
393
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
394
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
395
+ # list family, not across the company file: customers, vendors, employees and other
396
+ # names share one sequence, every item type shares another, and each other list has its
397
+ # own.
398
+ # - `amount` (Numeric): A monetary amount. Choose at most one of: `amount`, or
399
+ # `rate_percent`.
400
+ # - `rate_percent` (Numeric): Indicates the price of something as a percent. Choose at most
401
+ # one of: `amount`, or `rate_percent`.
402
+ # - `set_credit` (Array<Hash>)
403
+ # - `applied_amount` (Numeric, required): Amount of a credit that is applied to a customer’s
404
+ # invoice, or amount of a payment that is applied to a particular bill or vendor credit.
405
+ # - `credit_txn_id` (String, required): The ID of the credit memo that you are applying to
406
+ # this invoice or bill.
407
+ # - `override` (Boolean): Option to override credit.
408
+ # - `txn_line_id` (String): Identification number of the transaction line. (`txn_line_id` is
409
+ # supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always
410
+ # returned as zero.) If you need to add a new transaction line in a transaction Mod
411
+ # request, you can do so by setting the `txn_line_id` to -1.
412
+ # - `ship_address` (Hash): This aggregate supports at most five address lines. You can provide
413
+ # a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode
414
+ # (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each
415
+ # Addr line prints as its own line and is returned in `ship_address_block` or
416
+ # `bill_address_block`.
417
+ # - `addr1` (String): The first line of an address.
418
+ # - `addr2` (String): The second line of an address (if a second line is needed).
419
+ # - `addr3` (String): The third line of an address (if a third line is needed).
420
+ # - `addr4` (String): The fourth line of an address (if a fourth line is needed).
421
+ # - `addr5` (String): The fifth line of an address (if a fifth line is needed).
422
+ # - `city` (String): The city name in an address.
423
+ # - `country` (String): The country name in an address, or, in returned Host information
424
+ # (HostRet or HostInfo), the country for which this edition of QuickBooks was designed.
425
+ # (Possible values are US, CA, UK, and AU.)
426
+ # - `note` (String): In a `bill_address` or `ship_address` aggregate, the Note field value
427
+ # is written at the bottom of the address in the form in which it appears, such as the
428
+ # invoice form.
429
+ # - `postal_code` (String): The postal code in an address.
430
+ # - `state` (String): The state name in an address.
431
+ # - `ship_date` (String): The date when the product was, or will be, shipped.
432
+ # - `ship_method_ref` (Hash): A shipping method, for example, standard mail or overnight
433
+ # delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a
434
+ # request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`,
435
+ # `full_name` will be ignored.
436
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
437
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
438
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
439
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
440
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
441
+ # family, not across the company file: customers, vendors, employees and other names share
442
+ # one sequence, every item type shares another, and each other list has its own.
443
+ # - `shipping_line_add` (Hash)
444
+ # - `account_ref` (Hash)
445
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
446
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
447
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
448
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
449
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
450
+ # list family, not across the company file: customers, vendors, employees and other
451
+ # names share one sequence, every item type shares another, and each other list has its
452
+ # own.
453
+ # - `amount` (Numeric, required): A monetary amount.
454
+ # - `template_ref` (Hash): QuickBooks templates specify how to print certain transactions. A
455
+ # template query returns the names of all templates that have been defined in QuickBooks. A
456
+ # `template_ref` element refers to one of these templates.
457
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
458
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
459
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
460
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
461
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
462
+ # family, not across the company file: customers, vendors, employees and other names share
463
+ # one sequence, every item type shares another, and each other list has its own.
464
+ # - `terms_ref` (Hash): Refers to the payment terms associated with this entity. (This will be
465
+ # an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes
466
+ # both `full_name` and `list_id`, `full_name` will be ignored.
467
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
468
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
469
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
470
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
471
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
472
+ # family, not across the company file: customers, vendors, employees and other names share
473
+ # one sequence, every item type shares another, and each other list has its own.
474
+ # - `txn_date` (String): The date of the invoice. If you leave `txn_date` out of an InvoiceAdd
475
+ # message, QuickBooks might prefill it with the date of the invoice that was most recently
476
+ # saved.
477
+ #
478
+ # @param connection_id [String]
479
+ # @param params [Hash] the fields above
480
+ # @param webhook_url [String] where QuBe Sync sends the answer
481
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
482
+ # @return [Hash] the queued request
483
+ # @see https://docs.qubesync.com/api-reference/v2/invoices/create-invoice
484
+ def create(connection_id, params = {}, webhook_url:, idempotency_key: nil)
485
+ queue("invoice.create", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
486
+ end
487
+
488
+ # List invoices: GET /connections/{connection_id}/invoices (`invoice.query`).
489
+ #
490
+ # QuickBooks answers in pages: one webhook per page, each with its `page`, the last with
491
+ # `iteration_state` `done`.
492
+ #
493
+ # Params, sent as the query string:
494
+ # - `account_filter` (Hash): Filters according to the account name or `list_id`. If the “Use
495
+ # account numbers” preference is enabled in the QuickBooks company file, you can specify an
496
+ # account number (instead of an account name) for `full_name` and get the account you’re
497
+ # looking for. But if numbers have been used as account names, confusion could arise. Choose
498
+ # at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set
499
+ # (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`,
500
+ # `modified_date_range_filter`, `paid_status`, `ref_number_filter`,
501
+ # `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each
502
+ # other, not with the other choices.
503
+ # Give at most one of: `list_id`, or `full_name`, or `list_id_with_children`, or
504
+ # `full_name_with_children`.
505
+ # - `full_name` (Array<String>): `full_name` (along with `list_id`) is a way to identify a
506
+ # list object. The `full_name` is the name prefixed by the names of each ancestor, for
507
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
508
+ # - `full_name_with_children` (String): Allows you to filter for data that relates to the
509
+ # specified object and its descendants. For names that don’t have children,
510
+ # `full_name_with_children` is exactly the same as `full_name`.
511
+ # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
512
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
513
+ # within a list family, not across the company file: customers, vendors, employees and
514
+ # other names share one sequence, every item type shares another, and each other list has
515
+ # its own.
516
+ # - `list_id_with_children` (String): Allows you to filter for data that relates to the
517
+ # specified object and its descendants.
518
+ # - `currency_filter` (Hash): Filters by the specified currency. Choose at most one of:
519
+ # `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
520
+ # `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`,
521
+ # `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`).
522
+ # Members of a set combine with each other, not with the other choices.
523
+ # Give at most one of: `list_id`, or `full_name`.
524
+ # - `full_name` (Array<String>): `full_name` (along with `list_id`) is a way to identify a
525
+ # list object. The `full_name` is the name prefixed by the names of each ancestor, for
526
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
527
+ # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
528
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
529
+ # within a list family, not across the company file: customers, vendors, employees and
530
+ # other names share one sequence, every item type shares another, and each other list has
531
+ # its own.
532
+ # - `entity_filter` (Hash): An entity refers to a person on the QuickBooks Customer list,
533
+ # Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get
534
+ # information about all the entities that are set up in the QuickBooks file. In an
535
+ # ARRefundCreditCard query, this must be a customer/customer job. Choose at most one of:
536
+ # `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
537
+ # `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`,
538
+ # `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`).
539
+ # Members of a set combine with each other, not with the other choices.
540
+ # Give at most one of: `list_id`, or `full_name`, or `list_id_with_children`, or
541
+ # `full_name_with_children`.
542
+ # - `full_name` (Array<String>): `full_name` (along with `list_id`) is a way to identify a
543
+ # list object. The `full_name` is the name prefixed by the names of each ancestor, for
544
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
545
+ # - `full_name_with_children` (String): Allows you to filter for data that relates to the
546
+ # specified object and its descendants. For names that don’t have children,
547
+ # `full_name_with_children` is exactly the same as `full_name`.
548
+ # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
549
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
550
+ # within a list family, not across the company file: customers, vendors, employees and
551
+ # other names share one sequence, every item type shares another, and each other list has
552
+ # its own.
553
+ # - `list_id_with_children` (String): Allows you to filter for data that relates to the
554
+ # specified object and its descendants.
555
+ # - `include_line_items` (Boolean): This filter allows you to omit line items from a query
556
+ # response to get a smaller result. The default value is false, so line items are omitted by
557
+ # default. Set `include_line_items` to true to include line items in the response if you
558
+ # don’t mind getting a larger result.
559
+ # - `include_linked_txns` (Boolean): If you set `include_linked_txns` to true, then the
560
+ # returned object will include a list of all the transactions linked to the queried object.
561
+ # (This list is similar to the History view of a transaction in the user interface, but not
562
+ # identical, as the SDK list contains only linked transactions, not items.) Each linked
563
+ # transaction will be represented by a `linked_txn` aggregate.
564
+ # - `include_ret_element` (Array<one of "ARAccountRef", "AppliedAmount", "BalanceRemaining",
565
+ # "BalanceRemainingInHomeCurrency", "BillAddress", "BillAddressBlock", "ClassRef",
566
+ # "CurrencyRef", "CustomerMsgRef", "CustomerRef", "CustomerSalesTaxCodeRef", "DataExtRet",
567
+ # "DiscountLineRet", "DueDate", "EditSequence", "ExchangeRate", "ExternalGUID", "FOB",
568
+ # "InvoiceLineGroupRet", "InvoiceLineRet", "IsFinanceCharge", "IsPaid", "IsPending",
569
+ # "IsTaxIncluded", "IsToBeEmailed", "IsToBePrinted", "ItemSalesTaxRef", "LinkedTxn", "Memo",
570
+ # "Other", "PONumber", "RefNumber", "SalesRepRef", "SalesTaxLineRet", "SalesTaxPercentage",
571
+ # "SalesTaxTotal", "ShipAddress", "ShipAddressBlock", "ShipDate", "ShipMethodRef",
572
+ # "ShippingLineRet", "Subtotal", "SuggestedDiscountAmount", "SuggestedDiscountDate",
573
+ # "TemplateRef", "TermsRef", "TimeCreated", "TimeModified", "TxnDate", "TxnID",
574
+ # "TxnNumber">)
575
+ # - `iterator` (Boolean): Page through every match: QuBe Sync asks QuickBooks for each page in
576
+ # turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by
577
+ # default, with pages of 100 records (25 with `include_line_items` or
578
+ # `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off
579
+ # when you send `iterator=false` (every match in one answer) or `max_returned` alone (at
580
+ # most that many, in one answer). It pages a filtered query only: with `ref_number`,
581
+ # `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave
582
+ # `iterator` out.
583
+ # - `max_returned` (Integer): Limits the number of objects that a query returns. (To get a
584
+ # count of how many objects could possibly be returned, use the `meta_data` query
585
+ # attribute.) If you include a `max_returned` value, it must be at least 1. The page size,
586
+ # with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap
587
+ # instead: at most this many records come back, in one answer, and QuickBooks doesn't say
588
+ # whether more matched. Choose at most one of: `txn_id`, or `ref_number`, or
589
+ # `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`,
590
+ # `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`,
591
+ # `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set
592
+ # combine with each other, not with the other choices.
593
+ # - `meta_data` (one of "MetaDataAndResponseData", "MetaDataOnly", "NoMetaData"): Use the
594
+ # `meta_data` attribute to control whether query responses include counts. Options are
595
+ # NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus
596
+ # objects). Counts are approximate and may vary slightly if records are created or deleted
597
+ # during processing.
598
+ # - `modified_date_range_filter` (Hash): Filters according to the dates when transactions were
599
+ # last modified. The `modified_date_range_filter` aggregate isn’t required to contain any
600
+ # elements, but if it is empty, we recommend that you leave it out altogether. Note that the
601
+ # time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in
602
+ # qbXML version 1.0 or 1.1. Choose at most one of: `txn_id`, or `ref_number`, or
603
+ # `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`,
604
+ # `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`,
605
+ # `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set
606
+ # combine with each other, not with the other choices.
607
+ # - `from_modified_date` (String): Filters results to objects modified on or after this
608
+ # timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
609
+ # date is provided, time defaults to 00:00:00.
610
+ # - `to_modified_date` (String): Filters results to objects modified on or before this
611
+ # timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
612
+ # date is provided, time defaults to end-of-day (23:59:59).
613
+ # - `owner_id` (Array<String>): `owner_id` identifies who owns the data extension. Use 0 for
614
+ # QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned
615
+ # by an app. Keep private GUIDs confidential unless you intentionally share extensions
616
+ # across apps. If you do share them, both apps must use the same `owner_id` and
617
+ # `data_ext_name`, because that pair uniquely identifies the extension.
618
+ # - `paid_status` (one of "All", "NotPaidOnly", "PaidOnly"): Allows you to filter for
619
+ # transactions according to whether or not they are paid. Choose at most one of: `txn_id`,
620
+ # or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
621
+ # `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`,
622
+ # `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`).
623
+ # Members of a set combine with each other, not with the other choices.
624
+ # - `ref_number` (Array<String>): `ref_number` is a user-managed transaction reference (for
625
+ # example, a check number). It can be edited and is not guaranteed to be globally unique.
626
+ # Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks
627
+ # preferences and numbering state. Choose at most one of: `txn_id`, or `ref_number`, or
628
+ # `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`,
629
+ # `entity_filter`, `max_returned`, `modified_date_range_filter`, `paid_status`,
630
+ # `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set
631
+ # combine with each other, not with the other choices.
632
+ # - `ref_number_case_sensitive` (Array<String>): Choose at most one of: `txn_id`, or
633
+ # `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
634
+ # `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`,
635
+ # `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`).
636
+ # Members of a set combine with each other, not with the other choices.
637
+ # - `ref_number_filter` (Hash): Filters by `ref_number` range. Numeric-only bounds are
638
+ # compared numerically; otherwise comparison is lexicographic. Choose at most one of:
639
+ # `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
640
+ # `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`,
641
+ # `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`).
642
+ # Members of a set combine with each other, not with the other choices.
643
+ # - `match_criterion` (one of "Contains", "EndsWith", "StartsWith", required): The criterion
644
+ # to match.
645
+ # - `ref_number` (String, required): `ref_number` is a user-managed transaction reference
646
+ # (for example, a check number). It can be edited and is not guaranteed to be globally
647
+ # unique. Some transaction types auto-populate `ref_number` when omitted, based on
648
+ # QuickBooks preferences and numbering state.
649
+ # - `ref_number_range_filter` (Hash): Filters by `ref_number` range. Numeric-only bounds are
650
+ # compared numerically; otherwise comparison is lexicographic. Choose at most one of:
651
+ # `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
652
+ # `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`,
653
+ # `paid_status`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`).
654
+ # Members of a set combine with each other, not with the other choices.
655
+ # - `from_ref_number` (String): The first `ref_number` in the search range. If
656
+ # `from_ref_number` is omitted, the range will begin with first number on the list.
657
+ # - `to_ref_number` (String): The final `ref_number` in the search range. If `to_ref_number`
658
+ # is omitted, the range will end with last number on the list.
659
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
660
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
661
+ # webhook already carries the request's `id`.
662
+ # - `txn_date_range_filter` (Hash): Filters according to the original transaction dates.
663
+ # Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the
664
+ # set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`,
665
+ # `modified_date_range_filter`, `paid_status`, `ref_number_filter`,
666
+ # `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each
667
+ # other, not with the other choices.
668
+ # Give at most one of: `from_txn_date` with `to_txn_date`, or `date_macro`.
669
+ # - `date_macro` (one of "All", "LastCalendarQuarter", "LastCalendarQuarterToDate",
670
+ # "LastCalendarYear", "LastCalendarYearToDate", "LastFiscalQuarter",
671
+ # "LastFiscalQuarterToDate", "LastFiscalYear", "LastFiscalYearToDate", "LastMonth",
672
+ # "LastMonthToDate", "LastWeek", "LastWeekToDate", "NextCalendarQuarter",
673
+ # "NextCalendarYear", "NextFiscalQuarter", "NextFiscalYear", "NextFourWeeks", "NextMonth",
674
+ # "NextWeek", "ThisCalendarQuarter", "ThisCalendarQuarterToDate", "ThisCalendarYear",
675
+ # "ThisCalendarYearToDate", "ThisFiscalQuarter", "ThisFiscalQuarterToDate",
676
+ # "ThisFiscalYear", "ThisFiscalYearToDate", "ThisMonth", "ThisMonthToDate", "ThisWeek",
677
+ # "ThisWeekToDate", "Today", "Yesterday"): `date_macro` filters by transaction date (not
678
+ # last-modified date). Do not combine `date_macro` with
679
+ # `from_modified_date`/`to_modified_date` in the same query filter set.
680
+ # - `from_txn_date` (String): Selects transactions created on or after this date. Both
681
+ # `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit
682
+ # `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).
683
+ # - `to_txn_date` (String): Selects transactions created on or before this date. Both
684
+ # `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit
685
+ # `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).
686
+ # - `txn_id` (Array<String>): `txn_id` is the unique QuickBooks identifier for a transaction.
687
+ # Use it to reference that transaction in later requests. `txn_id` values are
688
+ # transaction-specific and should not be reused across unrelated transaction types. Choose
689
+ # at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set
690
+ # (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`,
691
+ # `modified_date_range_filter`, `paid_status`, `ref_number_filter`,
692
+ # `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each
693
+ # other, not with the other choices.
694
+ #
695
+ # @param connection_id [String]
696
+ # @param params [Hash] the fields above
697
+ # @param webhook_url [String] where QuBe Sync sends the answer
698
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
699
+ # @return [Hash] the queued request
700
+ # @see https://docs.qubesync.com/api-reference/v2/invoices/list-invoices
701
+ def query(connection_id, params = {}, webhook_url:, idempotency_key: nil)
702
+ queue("invoice.query", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
703
+ end
704
+
705
+ # Update invoice: PUT /connections/{connection_id}/invoices (`invoice.update`).
706
+ #
707
+ # QuickBooks answers in one webhook.
708
+ #
709
+ # Params, sent as the JSON body:
710
+ # - `ar_account_ref` (Hash): `ar_account_ref` points to an Accounts Receivable account. If
711
+ # both `full_name` and `list_id` are provided, `full_name` is ignored.
712
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
713
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
714
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
715
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
716
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
717
+ # family, not across the company file: customers, vendors, employees and other names share
718
+ # one sequence, every item type shares another, and each other list has its own.
719
+ # - `bill_address` (Hash): This aggregate supports at most five address lines. You can provide
720
+ # a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode
721
+ # (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each
722
+ # Addr line prints as its own line and is returned in `ship_address_block` or
723
+ # `bill_address_block`.
724
+ # - `addr1` (String): The first line of an address.
725
+ # - `addr2` (String): The second line of an address (if a second line is needed).
726
+ # - `addr3` (String): The third line of an address (if a third line is needed).
727
+ # - `addr4` (String): The fourth line of an address (if a fourth line is needed).
728
+ # - `addr5` (String): The fifth line of an address (if a fifth line is needed).
729
+ # - `city` (String): The city name in an address.
730
+ # - `country` (String): The country name in an address, or, in returned Host information
731
+ # (HostRet or HostInfo), the country for which this edition of QuickBooks was designed.
732
+ # (Possible values are US, CA, UK, and AU.)
733
+ # - `note` (String): In a `bill_address` or `ship_address` aggregate, the Note field value
734
+ # is written at the bottom of the address in the form in which it appears, such as the
735
+ # invoice form.
736
+ # - `postal_code` (String): The postal code in an address.
737
+ # - `state` (String): The state name in an address.
738
+ # - `class_ref` (Hash): Use classes to categorize transactions (for example, by department,
739
+ # location, or work type). Class tracking is off by default in QuickBooks. A `class_ref`
740
+ # points to one class; if both `full_name` and `list_id` are provided, `full_name` is
741
+ # ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you
742
+ # override or clear it on individual lines.
743
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
744
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
745
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
746
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
747
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
748
+ # family, not across the company file: customers, vendors, employees and other names share
749
+ # one sequence, every item type shares another, and each other list has its own.
750
+ # - `customer_msg_ref` (Hash): A standard message such as “Thank you for your business,” or
751
+ # “Please sign and return this estimate to indicate your approval.” A customer message can
752
+ # be included at the bottom of a form. A `customer_msg_ref` aggregate refers to one of the
753
+ # messages on the CustomerMsg list. In a request, if a `customer_msg_ref` aggregate includes
754
+ # both `full_name` and `list_id`, `full_name` will be ignored.
755
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
756
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
757
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
758
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
759
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
760
+ # family, not across the company file: customers, vendors, employees and other names share
761
+ # one sequence, every item type shares another, and each other list has its own.
762
+ # - `customer_ref` (Hash): `customer_ref` identifies a customer or customer job. If both
763
+ # `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and
764
+ # ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the
765
+ # time can be billed to and is required in TimeTrackingAdd when IsBillable is true.
766
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
767
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
768
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
769
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
770
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
771
+ # family, not across the company file: customers, vendors, employees and other names share
772
+ # one sequence, every item type shares another, and each other list has its own.
773
+ # - `customer_sales_tax_code_ref` (Hash): Refers to the sales-tax code for sales related to
774
+ # this customer. (That is, it refers to a member of the SalesTaxCode list.) The sales-tax
775
+ # code indicates whether an item is taxable or non-taxable, and why. In a request, if a
776
+ # `customer_sales_tax_code_ref` aggregate includes both `full_name` and `list_id`,
777
+ # `full_name` will be ignored.
778
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
779
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
780
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
781
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
782
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
783
+ # family, not across the company file: customers, vendors, employees and other names share
784
+ # one sequence, every item type shares another, and each other list has its own.
785
+ # - `due_date` (String): If `due_date` isn’t included in an InvoiceAdd request, QuickBooks
786
+ # might determine the due date according to the terms set for this customer.
787
+ # - `edit_sequence` (String, required): `edit_sequence` is a server-generated revision token.
788
+ # It changes each time the object is updated. To modify an existing object, you must send
789
+ # the current `edit_sequence`. If your value is stale, the update is rejected to prevent
790
+ # overwriting newer changes.
791
+ # - `exchange_rate` (Numeric): `exchange_rate` is the rate from this currency to the company’s
792
+ # home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks
793
+ # does not provide rates through the SDK. If your home currency is USD and internet access
794
+ # is available, rates can be downloaded in the QuickBooks UI via Lists > Currency >
795
+ # Activities > Download Latest Exchange Rates.
796
+ # - `fob` (String): QuickBooks uses the term FOB, “freight on board,” to indicate the place
797
+ # from which the product is shipped. The FOB has no accounting implications.
798
+ # - `include_ret_element` (Array<one of "ARAccountRef", "AppliedAmount", "BalanceRemaining",
799
+ # "BalanceRemainingInHomeCurrency", "BillAddress", "BillAddressBlock", "ClassRef",
800
+ # "CurrencyRef", "CustomerMsgRef", "CustomerRef", "CustomerSalesTaxCodeRef", "DataExtRet",
801
+ # "DiscountLineRet", "DueDate", "EditSequence", "ExchangeRate", "ExternalGUID", "FOB",
802
+ # "InvoiceLineGroupRet", "InvoiceLineRet", "IsFinanceCharge", "IsPaid", "IsPending",
803
+ # "IsTaxIncluded", "IsToBeEmailed", "IsToBePrinted", "ItemSalesTaxRef", "LinkedTxn",
804
+ # "ListID", "Memo", "Other", "OwnerID", "PONumber", "RefNumber", "SalesRepRef",
805
+ # "SalesTaxLineRet", "SalesTaxPercentage", "SalesTaxTotal", "ShipAddress",
806
+ # "ShipAddressBlock", "ShipDate", "ShipMethodRef", "ShippingLineRet", "Subtotal",
807
+ # "SuggestedDiscountAmount", "SuggestedDiscountDate", "TemplateRef", "TermsRef",
808
+ # "TimeCreated", "TimeModified", "TxnDate", "TxnID", "TxnNumber">)
809
+ # - `invoice_line_group_mod` (Array<Hash>): Represents a previously defined group of lines in
810
+ # the invoice. Compare with InvoiceLine, which represents just one line in the invoice.
811
+ # `invoice_line_mod` and `invoice_line_group_mod` combine: any number of each. QuickBooks
812
+ # receives them in that order: every `invoice_line_mod`, then every
813
+ # `invoice_line_group_mod`.
814
+ # - `invoice_line_mod` (Array<Hash>): Represents one line in the invoice. Compare with
815
+ # InvoiceLineGroup, which represents a previously defined group of lines in the invoice.
816
+ # - `amount` (Numeric): A monetary amount.
817
+ # - `class_ref` (Hash): Use classes to categorize transactions (for example, by
818
+ # department, location, or work type). Class tracking is off by default in QuickBooks. A
819
+ # `class_ref` points to one class; if both `full_name` and `list_id` are provided,
820
+ # `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line
821
+ # items unless you override or clear it on individual lines.
822
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
823
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
824
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
825
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object.
826
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
827
+ # within a list family, not across the company file: customers, vendors, employees and
828
+ # other names share one sequence, every item type shares another, and each other list
829
+ # has its own.
830
+ # - `desc` (String): A descriptive text field.
831
+ # - `inventory_site_location_ref` (Hash): Location within the Inventory Site.
832
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
833
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
834
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
835
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object.
836
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
837
+ # within a list family, not across the company file: customers, vendors, employees and
838
+ # other names share one sequence, every item type shares another, and each other list
839
+ # has its own.
840
+ # - `inventory_site_ref` (Hash): Site where inventory is located.
841
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
842
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
843
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
844
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object.
845
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
846
+ # within a list family, not across the company file: customers, vendors, employees and
847
+ # other names share one sequence, every item type shares another, and each other list
848
+ # has its own.
849
+ # - `item_ref` (Hash): `item_ref` may accept all item types or a restricted subset,
850
+ # depending on the request. Examples: PurchaseOrder and Bill do not allow discount or
851
+ # sales-tax items; VehicleMileageAdd requires a service or other-charge item;
852
+ # BillingRateAdd requires a service item. If both `full_name` and `list_id` are
853
+ # provided, `full_name` is ignored.
854
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
855
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
856
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
857
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object.
858
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
859
+ # within a list family, not across the company file: customers, vendors, employees and
860
+ # other names share one sequence, every item type shares another, and each other list
861
+ # has its own.
862
+ # - `lot_number` (String): The lot number of the asset. Choose at most one of:
863
+ # `serial_number`, or `lot_number`.
864
+ # - `option_for_price_rule_conflict` (one of "BasePrice", "Zero"): Flag to override price
865
+ # rule conflict.
866
+ # - `other1` (String): Other, Other1, and Other2 are built-in transaction custom fields.
867
+ # Other is transaction-level; Other1 and Other2 are line-level. These fields are always
868
+ # available through the SDK and do not require DataExtDef setup. Template labels in the
869
+ # UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.
870
+ # - `other2` (String): Other, Other1, and Other2 are built-in transaction custom fields.
871
+ # Other is transaction-level; Other1 and Other2 are line-level. These fields are always
872
+ # available through the SDK and do not require DataExtDef setup. Template labels in the
873
+ # UI can be renamed, but SDK names remain fixed as Other, Other1, and Other2.
874
+ # - `override_item_account_ref` (Hash): Refers to a QuickBooks account. If an
875
+ # `override_item_account_ref` aggregate includes both `full_name` and `list_id`,
876
+ # `full_name` will be ignored.
877
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
878
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
879
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
880
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object.
881
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
882
+ # within a list family, not across the company file: customers, vendors, employees and
883
+ # other names share one sequence, every item type shares another, and each other list
884
+ # has its own.
885
+ # - `override_uom_set_ref` (Hash): When you modify a transaction line to change the unit
886
+ # of measure used in that line, you use this aggregate to specify the UOM set within
887
+ # which you are choosing an available unit of measure. The “override” here refers to the
888
+ # unit within the set, not the UOM Set itself, which you can’t change or override–the
889
+ # UOM set that can be set or changed only in the item itself via an Item Mod request.
890
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
891
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
892
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
893
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object.
894
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
895
+ # within a list family, not across the company file: customers, vendors, employees and
896
+ # other names share one sequence, every item type shares another, and each other list
897
+ # has its own.
898
+ # - `price_level_ref` (Hash): Price levels let you apply custom pricing rules for selected
899
+ # customers. Once assigned, QuickBooks uses those prices automatically on supported
900
+ # sales forms unless explicitly overridden. Choose at most one of: `rate`, or
901
+ # `rate_percent`, or `price_level_ref`.
902
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
903
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
904
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
905
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object.
906
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
907
+ # within a list family, not across the company file: customers, vendors, employees and
908
+ # other names share one sequence, every item type shares another, and each other list
909
+ # has its own.
910
+ # - `quantity` (Numeric): On transaction lines, QuickBooks can derive one value from the
911
+ # other two among Quantity, Rate, and Amount. If you supply Quantity and Amount,
912
+ # QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates
913
+ # Amount.
914
+ # - `rate` (Numeric): If you specify both Rate and Amount in a request, the Rate you
915
+ # provide will be ignored, and you will receive a warning. If you specify both Quantity
916
+ # and Amount in an Add or Mod request, QuickBooks will use them to calculate Rate.
917
+ # (Rate, Amount, and Quantity can’t be cleared.) Choose at most one of: `rate`, or
918
+ # `rate_percent`, or `price_level_ref`.
919
+ # - `rate_percent` (Numeric): Indicates the price of something as a percent. Choose at
920
+ # most one of: `rate`, or `rate_percent`, or `price_level_ref`.
921
+ # - `sales_tax_code_ref` (Hash): `sales_tax_code_ref` points to the sales-tax code used
922
+ # for an item or customer context. QuickBooks includes default TAX and NON codes, and a
923
+ # code can be deleted only when nothing references it. If sales tax is disabled,
924
+ # QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are
925
+ # provided in `sales_tax_code_ref`, `full_name` is ignored.
926
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
927
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
928
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
929
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object.
930
+ # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
931
+ # within a list family, not across the company file: customers, vendors, employees and
932
+ # other names share one sequence, every item type shares another, and each other list
933
+ # has its own.
934
+ # - `serial_number` (String): The serial number of the asset. Choose at most one of:
935
+ # `serial_number`, or `lot_number`.
936
+ # - `service_date` (String): Indicates the date on which the QuickBooks user performs the
937
+ # service for the customer.
938
+ # - `tax_amount` (Numeric)
939
+ # - `txn_line_id` (String, required): Identification number of the transaction line.
940
+ # (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1,
941
+ # `txn_line_id` is always returned as zero.) If you need to add a new transaction line
942
+ # in a transaction Mod request, you can do so by setting the `txn_line_id` to -1.
943
+ # - `unit_of_measure` (String): In a transaction line item, the name of the unit of
944
+ # measure selected from within the item’s available units. If the company file is
945
+ # enabled only for single unit of measure per item, this must be the base unit!
946
+ # - `item_group_ref` (Hash): ItemGroup objects represent items that are grouped together for
947
+ # fast entry, and an `item_group_ref` aggregate refers to one of these item groups. In a
948
+ # request, if an `item_group_ref` aggregate includes both `full_name` and `list_id`,
949
+ # `full_name` will be ignored. You can use an ItemGroupQuery request to get information
950
+ # about all the item groups that are set up in the QuickBooks file.
951
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
952
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
953
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
954
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
955
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
956
+ # list family, not across the company file: customers, vendors, employees and other
957
+ # names share one sequence, every item type shares another, and each other list has its
958
+ # own.
959
+ # - `override_uom_set_ref` (Hash): When you modify a transaction line to change the unit of
960
+ # measure used in that line, you use this aggregate to specify the UOM set within which
961
+ # you are choosing an available unit of measure. The “override” here refers to the unit
962
+ # within the set, not the UOM Set itself, which you can’t change or override–the UOM set
963
+ # that can be set or changed only in the item itself via an Item Mod request.
964
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
965
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
966
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
967
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
968
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
969
+ # list family, not across the company file: customers, vendors, employees and other
970
+ # names share one sequence, every item type shares another, and each other list has its
971
+ # own.
972
+ # - `quantity` (Numeric): On transaction lines, QuickBooks can derive one value from the
973
+ # other two among Quantity, Rate, and Amount. If you supply Quantity and Amount,
974
+ # QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates
975
+ # Amount.
976
+ # - `txn_line_id` (String, required): Identification number of the transaction line.
977
+ # (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1,
978
+ # `txn_line_id` is always returned as zero.) If you need to add a new transaction line in
979
+ # a transaction Mod request, you can do so by setting the `txn_line_id` to -1.
980
+ # - `unit_of_measure` (String): In a transaction line item, the name of the unit of measure
981
+ # selected from within the item’s available units. If the company file is enabled only for
982
+ # single unit of measure per item, this must be the base unit!
983
+ # - `invoice_line_mod` (Array<Hash>): Represents one line in the invoice. Compare with
984
+ # InvoiceLineGroup, which represents a previously defined group of lines in the invoice.
985
+ # `invoice_line_mod` and `invoice_line_group_mod` combine: any number of each. QuickBooks
986
+ # receives them in that order: every `invoice_line_mod`, then every
987
+ # `invoice_line_group_mod`.
988
+ # - `amount` (Numeric): A monetary amount.
989
+ # - `class_ref` (Hash): Use classes to categorize transactions (for example, by department,
990
+ # location, or work type). Class tracking is off by default in QuickBooks. A `class_ref`
991
+ # points to one class; if both `full_name` and `list_id` are provided, `full_name` is
992
+ # ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you
993
+ # override or clear it on individual lines.
994
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
995
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
996
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
997
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
998
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
999
+ # list family, not across the company file: customers, vendors, employees and other
1000
+ # names share one sequence, every item type shares another, and each other list has its
1001
+ # own.
1002
+ # - `desc` (String): A descriptive text field.
1003
+ # - `inventory_site_location_ref` (Hash): Location within the Inventory Site.
1004
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1005
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
1006
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1007
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1008
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
1009
+ # list family, not across the company file: customers, vendors, employees and other
1010
+ # names share one sequence, every item type shares another, and each other list has its
1011
+ # own.
1012
+ # - `inventory_site_ref` (Hash): Site where inventory is located.
1013
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1014
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
1015
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1016
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1017
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
1018
+ # list family, not across the company file: customers, vendors, employees and other
1019
+ # names share one sequence, every item type shares another, and each other list has its
1020
+ # own.
1021
+ # - `item_ref` (Hash): `item_ref` may accept all item types or a restricted subset,
1022
+ # depending on the request. Examples: PurchaseOrder and Bill do not allow discount or
1023
+ # sales-tax items; VehicleMileageAdd requires a service or other-charge item;
1024
+ # BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided,
1025
+ # `full_name` is ignored.
1026
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1027
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
1028
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1029
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1030
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
1031
+ # list family, not across the company file: customers, vendors, employees and other
1032
+ # names share one sequence, every item type shares another, and each other list has its
1033
+ # own.
1034
+ # - `lot_number` (String): The lot number of the asset. Choose at most one of:
1035
+ # `serial_number`, or `lot_number`.
1036
+ # - `option_for_price_rule_conflict` (one of "BasePrice", "Zero"): Flag to override price
1037
+ # rule conflict.
1038
+ # - `other1` (String): Other, Other1, and Other2 are built-in transaction custom fields.
1039
+ # Other is transaction-level; Other1 and Other2 are line-level. These fields are always
1040
+ # available through the SDK and do not require DataExtDef setup. Template labels in the UI
1041
+ # can be renamed, but SDK names remain fixed as Other, Other1, and Other2.
1042
+ # - `other2` (String): Other, Other1, and Other2 are built-in transaction custom fields.
1043
+ # Other is transaction-level; Other1 and Other2 are line-level. These fields are always
1044
+ # available through the SDK and do not require DataExtDef setup. Template labels in the UI
1045
+ # can be renamed, but SDK names remain fixed as Other, Other1, and Other2.
1046
+ # - `override_item_account_ref` (Hash): Refers to a QuickBooks account. If an
1047
+ # `override_item_account_ref` aggregate includes both `full_name` and `list_id`,
1048
+ # `full_name` will be ignored.
1049
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1050
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
1051
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1052
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1053
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
1054
+ # list family, not across the company file: customers, vendors, employees and other
1055
+ # names share one sequence, every item type shares another, and each other list has its
1056
+ # own.
1057
+ # - `override_uom_set_ref` (Hash): When you modify a transaction line to change the unit of
1058
+ # measure used in that line, you use this aggregate to specify the UOM set within which
1059
+ # you are choosing an available unit of measure. The “override” here refers to the unit
1060
+ # within the set, not the UOM Set itself, which you can’t change or override–the UOM set
1061
+ # that can be set or changed only in the item itself via an Item Mod request.
1062
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1063
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
1064
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1065
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1066
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
1067
+ # list family, not across the company file: customers, vendors, employees and other
1068
+ # names share one sequence, every item type shares another, and each other list has its
1069
+ # own.
1070
+ # - `price_level_ref` (Hash): Price levels let you apply custom pricing rules for selected
1071
+ # customers. Once assigned, QuickBooks uses those prices automatically on supported sales
1072
+ # forms unless explicitly overridden. Choose at most one of: `rate`, or `rate_percent`, or
1073
+ # `price_level_ref`.
1074
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1075
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
1076
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1077
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1078
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
1079
+ # list family, not across the company file: customers, vendors, employees and other
1080
+ # names share one sequence, every item type shares another, and each other list has its
1081
+ # own.
1082
+ # - `quantity` (Numeric): On transaction lines, QuickBooks can derive one value from the
1083
+ # other two among Quantity, Rate, and Amount. If you supply Quantity and Amount,
1084
+ # QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates
1085
+ # Amount.
1086
+ # - `rate` (Numeric): If you specify both Rate and Amount in a request, the Rate you provide
1087
+ # will be ignored, and you will receive a warning. If you specify both Quantity and Amount
1088
+ # in an Add or Mod request, QuickBooks will use them to calculate Rate. (Rate, Amount, and
1089
+ # Quantity can’t be cleared.) Choose at most one of: `rate`, or `rate_percent`, or
1090
+ # `price_level_ref`.
1091
+ # - `rate_percent` (Numeric): Indicates the price of something as a percent. Choose at most
1092
+ # one of: `rate`, or `rate_percent`, or `price_level_ref`.
1093
+ # - `sales_tax_code_ref` (Hash): `sales_tax_code_ref` points to the sales-tax code used for
1094
+ # an item or customer context. QuickBooks includes default TAX and NON codes, and a code
1095
+ # can be deleted only when nothing references it. If sales tax is disabled, QuickBooks
1096
+ # assigns the default non-taxable code. If both `full_name` and `list_id` are provided in
1097
+ # `sales_tax_code_ref`, `full_name` is ignored.
1098
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1099
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for
1100
+ # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1101
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1102
+ # assigns `list_id` when the object is created. `list_id` values are unique within a
1103
+ # list family, not across the company file: customers, vendors, employees and other
1104
+ # names share one sequence, every item type shares another, and each other list has its
1105
+ # own.
1106
+ # - `serial_number` (String): The serial number of the asset. Choose at most one of:
1107
+ # `serial_number`, or `lot_number`.
1108
+ # - `service_date` (String): Indicates the date on which the QuickBooks user performs the
1109
+ # service for the customer.
1110
+ # - `tax_amount` (Numeric)
1111
+ # - `txn_line_id` (String, required): Identification number of the transaction line.
1112
+ # (`txn_line_id` is supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1,
1113
+ # `txn_line_id` is always returned as zero.) If you need to add a new transaction line in
1114
+ # a transaction Mod request, you can do so by setting the `txn_line_id` to -1.
1115
+ # - `unit_of_measure` (String): In a transaction line item, the name of the unit of measure
1116
+ # selected from within the item’s available units. If the company file is enabled only for
1117
+ # single unit of measure per item, this must be the base unit!
1118
+ # - `is_pending` (Boolean): If `is_pending` is set to true, the invoice hasn’t been completed.
1119
+ # Pending sales might include unpaid orders, estimates, tracked hours that haven’t yet been
1120
+ # billed, or sales of back-ordered items.
1121
+ # - `is_tax_included` (Boolean): For future use with international versions of QuickBooks.
1122
+ # - `is_to_be_emailed` (Boolean): When enabled, QuickBooks validates the customer email at
1123
+ # runtime before sending. If no valid email is available, the request fails.
1124
+ # - `is_to_be_printed` (Boolean): If `is_to_be_printed` is true, QuickBooks queues the form
1125
+ # for later printing. It does not print immediately; printing is still a user action in
1126
+ # QuickBooks.
1127
+ # - `item_sales_tax_ref` (Hash): An ItemSalesTax entry represents one tax rate paid to one tax
1128
+ # agency. Use it when a transaction needs a single tax calculation. For multi-rate
1129
+ # scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided
1130
+ # for `item_sales_tax_ref`, `list_id` is used.
1131
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1132
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
1133
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1134
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1135
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
1136
+ # family, not across the company file: customers, vendors, employees and other names share
1137
+ # one sequence, every item type shares another, and each other list has its own.
1138
+ # - `memo` (String): Message that appears in reports, but not on the invoice.
1139
+ # - `other` (String): Other, Other1, and Other2 are built-in transaction custom fields. Other
1140
+ # is transaction-level; Other1 and Other2 are line-level. These fields are always available
1141
+ # through the SDK and do not require DataExtDef setup. Template labels in the UI can be
1142
+ # renamed, but SDK names remain fixed as Other, Other1, and Other2.
1143
+ # - `po_number` (String): Purchase order number.
1144
+ # - `ref_number` (String): `ref_number` is a user-managed transaction reference (for example,
1145
+ # a check number). It can be edited and is not guaranteed to be globally unique. Some
1146
+ # transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences
1147
+ # and numbering state.
1148
+ # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
1149
+ # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
1150
+ # webhook already carries the request's `id`.
1151
+ # - `sales_rep_ref` (Hash): A sales representative must be on the Employee, Vendor, or Other
1152
+ # Names list within QuickBooks. Sales representative’s names and initials appear on the Rep
1153
+ # drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the
1154
+ # SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and
1155
+ # `list_id`, `full_name` will be ignored.
1156
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1157
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
1158
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1159
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1160
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
1161
+ # family, not across the company file: customers, vendors, employees and other names share
1162
+ # one sequence, every item type shares another, and each other list has its own.
1163
+ # - `set_credit` (Array<Hash>)
1164
+ # - `applied_amount` (Numeric, required): Amount of a credit that is applied to a customer’s
1165
+ # invoice, or amount of a payment that is applied to a particular bill or vendor credit.
1166
+ # - `credit_txn_id` (String, required): The ID of the credit memo that you are applying to
1167
+ # this invoice or bill.
1168
+ # - `override` (Boolean): Option to override credit.
1169
+ # - `txn_line_id` (String): Identification number of the transaction line. (`txn_line_id` is
1170
+ # supported as of v2.0 of the SDK. With qbXML v1.0 and v1.1, `txn_line_id` is always
1171
+ # returned as zero.) If you need to add a new transaction line in a transaction Mod
1172
+ # request, you can do so by setting the `txn_line_id` to -1.
1173
+ # - `ship_address` (Hash): This aggregate supports at most five address lines. You can provide
1174
+ # a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode
1175
+ # (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each
1176
+ # Addr line prints as its own line and is returned in `ship_address_block` or
1177
+ # `bill_address_block`.
1178
+ # - `addr1` (String): The first line of an address.
1179
+ # - `addr2` (String): The second line of an address (if a second line is needed).
1180
+ # - `addr3` (String): The third line of an address (if a third line is needed).
1181
+ # - `addr4` (String): The fourth line of an address (if a fourth line is needed).
1182
+ # - `addr5` (String): The fifth line of an address (if a fifth line is needed).
1183
+ # - `city` (String): The city name in an address.
1184
+ # - `country` (String): The country name in an address, or, in returned Host information
1185
+ # (HostRet or HostInfo), the country for which this edition of QuickBooks was designed.
1186
+ # (Possible values are US, CA, UK, and AU.)
1187
+ # - `note` (String): In a `bill_address` or `ship_address` aggregate, the Note field value
1188
+ # is written at the bottom of the address in the form in which it appears, such as the
1189
+ # invoice form.
1190
+ # - `postal_code` (String): The postal code in an address.
1191
+ # - `state` (String): The state name in an address.
1192
+ # - `ship_date` (String): The date when the product was, or will be, shipped.
1193
+ # - `ship_method_ref` (Hash): A shipping method, for example, standard mail or overnight
1194
+ # delivery. A `ship_method_ref` aggregate refers to an item on the ShipMethod list. In a
1195
+ # request, if a `ship_method_ref` aggregate includes both `full_name` and `list_id`,
1196
+ # `full_name` will be ignored.
1197
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1198
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
1199
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1200
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1201
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
1202
+ # family, not across the company file: customers, vendors, employees and other names share
1203
+ # one sequence, every item type shares another, and each other list has its own.
1204
+ # - `template_ref` (Hash): QuickBooks templates specify how to print certain transactions. A
1205
+ # template query returns the names of all templates that have been defined in QuickBooks. A
1206
+ # `template_ref` element refers to one of these templates.
1207
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1208
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
1209
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1210
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1211
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
1212
+ # family, not across the company file: customers, vendors, employees and other names share
1213
+ # one sequence, every item type shares another, and each other list has its own.
1214
+ # - `terms_ref` (Hash): Refers to the payment terms associated with this entity. (This will be
1215
+ # an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes
1216
+ # both `full_name` and `list_id`, `full_name` will be ignored.
1217
+ # - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
1218
+ # object. The `full_name` is the name prefixed by the names of each ancestor, for example
1219
+ # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
1220
+ # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
1221
+ # assigns `list_id` when the object is created. `list_id` values are unique within a list
1222
+ # family, not across the company file: customers, vendors, employees and other names share
1223
+ # one sequence, every item type shares another, and each other list has its own.
1224
+ # - `txn_date` (String): The date of the invoice. If you leave `txn_date` out of an InvoiceAdd
1225
+ # message, QuickBooks might prefill it with the date of the invoice that was most recently
1226
+ # saved.
1227
+ # - `txn_id` (String, required): `txn_id` is the unique QuickBooks identifier for a
1228
+ # transaction. Use it to reference that transaction in later requests. `txn_id` values are
1229
+ # transaction-specific and should not be reused across unrelated transaction types.
1230
+ #
1231
+ # @param connection_id [String]
1232
+ # @param params [Hash] the fields above
1233
+ # @param webhook_url [String] where QuBe Sync sends the answer
1234
+ # @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
1235
+ # @return [Hash] the queued request
1236
+ # @see https://docs.qubesync.com/api-reference/v2/invoices/update-invoice
1237
+ def update(connection_id, params = {}, webhook_url:, idempotency_key: nil)
1238
+ queue("invoice.update", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
1239
+ end
1240
+ end
1241
+ end
1242
+ end