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