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