qube_sync 0.4.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 (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -2
  3. data/README.md +58 -2
  4. data/exe/qube_sync +11 -0
  5. data/lib/qube_sync/client.rb +40 -5
  6. data/lib/qube_sync/operations/account.rb +21 -20
  7. data/lib/qube_sync/operations/ar_refund_credit_card.rb +17 -14
  8. data/lib/qube_sync/operations/bill.rb +148 -104
  9. data/lib/qube_sync/operations/bill_payment_check.rb +29 -22
  10. data/lib/qube_sync/operations/bill_payment_credit_card.rb +21 -16
  11. data/lib/qube_sync/operations/bill_to_pay.rb +7 -6
  12. data/lib/qube_sync/operations/billing_rate.rb +10 -9
  13. data/lib/qube_sync/operations/build_assembly.rb +13 -12
  14. data/lib/qube_sync/operations/charge.rb +36 -34
  15. data/lib/qube_sync/operations/check.rb +144 -100
  16. data/lib/qube_sync/operations/class.rb +11 -11
  17. data/lib/qube_sync/operations/credit_card_charge.rb +144 -100
  18. data/lib/qube_sync/operations/credit_card_credit.rb +144 -100
  19. data/lib/qube_sync/operations/credit_memo.rb +142 -108
  20. data/lib/qube_sync/operations/currency.rb +7 -7
  21. data/lib/qube_sync/operations/customer.rb +54 -53
  22. data/lib/qube_sync/operations/customer_msg.rb +5 -5
  23. data/lib/qube_sync/operations/customer_type.rb +7 -7
  24. data/lib/qube_sync/operations/data_ext.rb +7 -6
  25. data/lib/qube_sync/operations/date_driven_terms.rb +5 -5
  26. data/lib/qube_sync/operations/deposit.rb +53 -38
  27. data/lib/qube_sync/operations/employee.rb +27 -23
  28. data/lib/qube_sync/operations/entity.rb +5 -5
  29. data/lib/qube_sync/operations/estimate.rb +119 -90
  30. data/lib/qube_sync/operations/fields.rb +4058 -0
  31. data/lib/qube_sync/operations/form1099_category_account_mapping.rb +3 -2
  32. data/lib/qube_sync/operations/inventory_adjustment.rb +43 -34
  33. data/lib/qube_sync/operations/inventory_site.rb +11 -11
  34. data/lib/qube_sync/operations/invoice.rb +142 -108
  35. data/lib/qube_sync/operations/item.rb +5 -5
  36. data/lib/qube_sync/operations/item_assemblies_can_build.rb +2 -2
  37. data/lib/qube_sync/operations/item_discount.rb +25 -24
  38. data/lib/qube_sync/operations/item_fixed_asset.rb +17 -16
  39. data/lib/qube_sync/operations/item_group.rb +17 -15
  40. data/lib/qube_sync/operations/item_inventory.rb +45 -44
  41. data/lib/qube_sync/operations/item_inventory_assembly.rb +51 -48
  42. data/lib/qube_sync/operations/item_non_inventory.rb +55 -44
  43. data/lib/qube_sync/operations/item_other_charge.rb +51 -40
  44. data/lib/qube_sync/operations/item_payment.rb +21 -20
  45. data/lib/qube_sync/operations/item_receipt.rb +144 -100
  46. data/lib/qube_sync/operations/item_sales_tax.rb +21 -20
  47. data/lib/qube_sync/operations/item_sales_tax_group.rb +11 -11
  48. data/lib/qube_sync/operations/item_service.rb +55 -44
  49. data/lib/qube_sync/operations/item_sites.rb +10 -8
  50. data/lib/qube_sync/operations/item_subtotal.rb +7 -7
  51. data/lib/qube_sync/operations/job_type.rb +7 -7
  52. data/lib/qube_sync/operations/journal_entry.rb +49 -34
  53. data/lib/qube_sync/operations/lead.rb +7 -7
  54. data/lib/qube_sync/operations/list.rb +2 -2
  55. data/lib/qube_sync/operations/list_display.rb +2 -2
  56. data/lib/qube_sync/operations/list_merge.rb +6 -4
  57. data/lib/qube_sync/operations/other_name.rb +7 -7
  58. data/lib/qube_sync/operations/payment_method.rb +6 -5
  59. data/lib/qube_sync/operations/payroll_item_non_wage.rb +5 -5
  60. data/lib/qube_sync/operations/payroll_item_wage.rb +7 -7
  61. data/lib/qube_sync/operations/price_level.rb +23 -19
  62. data/lib/qube_sync/operations/purchase_order.rb +113 -86
  63. data/lib/qube_sync/operations/receive_payment.rb +37 -30
  64. data/lib/qube_sync/operations/sales_order.rb +117 -90
  65. data/lib/qube_sync/operations/sales_receipt.rb +142 -108
  66. data/lib/qube_sync/operations/sales_rep.rb +11 -11
  67. data/lib/qube_sync/operations/sales_tax_code.rb +15 -15
  68. data/lib/qube_sync/operations/sales_tax_payment_check.rb +18 -14
  69. data/lib/qube_sync/operations/sales_tax_return_line.rb +2 -2
  70. data/lib/qube_sync/operations/ship_method.rb +5 -5
  71. data/lib/qube_sync/operations/special_account.rb +2 -2
  72. data/lib/qube_sync/operations/standard_terms.rb +5 -5
  73. data/lib/qube_sync/operations/terms.rb +5 -5
  74. data/lib/qube_sync/operations/time_tracking.rb +23 -22
  75. data/lib/qube_sync/operations/to_do.rb +23 -23
  76. data/lib/qube_sync/operations/transaction.rb +15 -10
  77. data/lib/qube_sync/operations/transfer.rb +12 -12
  78. data/lib/qube_sync/operations/transfer_inventory.rb +35 -26
  79. data/lib/qube_sync/operations/txn_display.rb +2 -2
  80. data/lib/qube_sync/operations/unit_of_measure_set.rb +5 -5
  81. data/lib/qube_sync/operations/vehicle.rb +7 -7
  82. data/lib/qube_sync/operations/vehicle_mileage.rb +8 -8
  83. data/lib/qube_sync/operations/vendor.rb +54 -52
  84. data/lib/qube_sync/operations/vendor_credit.rb +144 -100
  85. data/lib/qube_sync/operations/vendor_type.rb +7 -7
  86. data/lib/qube_sync/operations/workers_comp_code.rb +8 -8
  87. data/lib/qube_sync/operations.rb +4 -0
  88. data/lib/qube_sync/version.rb +1 -1
  89. data/lib/qube_sync/workflow_types/cli.rb +120 -0
  90. data/lib/qube_sync/workflow_types/rbs_renderer.rb +290 -0
  91. data/lib/qube_sync/workflow_types/ruby_renderer.rb +391 -0
  92. data/lib/qube_sync/workflow_types/workflow.rb +153 -0
  93. data/lib/qube_sync/workflow_types.rb +219 -0
  94. data/sig/qube_sync/client.rbs +4 -1
  95. data/sig/qube_sync/operations.rbs +1 -0
  96. data/sig/qube_sync/workflow_types.rbs +59 -0
  97. metadata +12 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1eac592828778d486630d76ff7d8b43072a5006682c1b8182f1c5e13f48097f2
4
- data.tar.gz: 04de6f5cc7db7be2569186733e1961f291348d96e8a23dcf832ab4f40a96d722
3
+ metadata.gz: dc09f26aabd06f4a7ac423990cc7ae51742aa1ae7731d9e5e7b09a64335b4093
4
+ data.tar.gz: e696f0278123e6546adff8d65ade1547075946038a90f4780b86104e73d09a58
5
5
  SHA512:
6
- metadata.gz: 1011b04d773e99fb8fa441608c11f2d37a173ded5a98a41c07b3237eaa0cc67a3ea460a5fda24b9b39e39441c4dcc2a12cbe0a8c69b2d9994f89d765117a18d5
7
- data.tar.gz: 5f681be6ee755144dfae40d73d2a8d3d9eb0a43ceeea9a9c712c89e09719f9a86f52bd6e3dfd056f5a00d660d1ef518f3a22eb0a6a06bccbcd54d54c465ac9a0
6
+ metadata.gz: 25778ea6b1ed553c3fcfa69a402903a2e306f8b1b708ed73a59588258911ad30913d0bf23748fea913fe17823f305ecb684aace696e5696ce1df6ec81c9aff75
7
+ data.tar.gz: 8020665667de1b9d698f11dc73a1bcbda52eb74bfe84558bb08221386ce2f8fc39af1d9e345fae2d5d138f81aa901a18951f42ae2109500e19ffbea6b8e8b13e
data/CHANGELOG.md CHANGED
@@ -1,7 +1,43 @@
1
1
  ## [Unreleased]
2
2
 
3
- - Releases publish through RubyGems trusted publishing, from `release.yml`'s OIDC token; no
4
- API key is stored.
3
+ ## [0.5.0] - 2026-10-27
4
+
5
+ Typed workflow starts, simulated connections, resending a run's latest event, and per-row search. Nothing
6
+ existing changes: every 0.4.0 call works as it did.
7
+
8
+ ### New
9
+
10
+ - **Typed workflow starts.** `bundle exec qube_sync workflows` (with `QUBE_API_KEY` set) fetches
11
+ your app's workflow input types from QuBe Sync and writes `lib/qube_workflows.rb` and its RBS
12
+ (`sig/qube_workflows.rbs`): a start method and an `*_input` builder for each branch of each
13
+ workflow's input, with every operation body typed as that operation's params
14
+ (`QubeSync::Operations::<Entity>::<action>_params`) and linked to its YARD reference. Fields a
15
+ workflow sets itself (`set_by_workflow`) are optional in its bodies. Options: `--drafts`,
16
+ `--output`, `--sig`, and `--check`, which exits 1 when your file no longer matches what QuBe
17
+ Sync serves (naming the workflows that changed) or on a 401, and warns but exits 0 when QuBe
18
+ Sync can't be reached. The same input always gives byte-identical files, and the generated
19
+ file loads on Ruby 2.7 too. `QubeSync::WorkflowTypes.render` and `.check` do the same from
20
+ code; qube_rails' generator uses them.
21
+ - `Client#workflow_types(include_drafts: false, etag: nil)`: `GET /workflows/types`, returning
22
+ `:not_modified` on a 304.
23
+ - `Client#create_connection(webhook_url:, name: nil, type: nil)`: `type: "simulated"` makes a
24
+ connection to a simulated QuickBooks company file, connected as soon as it's made, for trying
25
+ an integration without QuickBooks Desktop.
26
+ - `Client#redeliver_run(connection_id, run_id)`: `POST .../workflow-runs/{id}/redeliver` has
27
+ QuBe Sync send the run's latest event to your webhook again, for when your endpoint was down
28
+ longer than QuBe Sync's retries.
29
+ - `search(search_url, field:, q:, row: nil)`: `row` names the row of a question's rows field,
30
+ for a search whose kind depends on that row (the missing-records question's per-record search).
31
+ - `QubeSync::Operations::DIGEST`: the sha256 of the QuickBooks operations manifest this version
32
+ was generated from. `qube_sync workflows` warns when QuBe Sync's operations differ from it,
33
+ since operations this version doesn't know are typed as a plain Hash.
34
+
35
+ ### Changed
36
+
37
+ - The per-operation docs now say a QuickBooks `list_id` is unique within a list family, not
38
+ across the company file: customers, vendors, employees and other names share one sequence,
39
+ every item type shares another, and each other list has its own. Key stored ids by
40
+ connection and record kind, never by `list_id` alone.
5
41
 
6
42
  ## [0.4.0] - 2026-10-25
7
43
 
data/README.md CHANGED
@@ -41,7 +41,9 @@ redirect_to connection["links"]["onboarding"], allow_other_host: true
41
41
 
42
42
  QuBe Sync sends `connection.connected` to the connection's `webhook_url` once the customer's Web
43
43
  Connector first checks in. `regenerate_onboarding(id)` makes a fresh onboarding link, and
44
- `update_connection(id, webhook_url:, name:)` changes either. `get_connection`,
44
+ `update_connection(id, webhook_url:, name:)` changes either. `create_connection(webhook_url:,
45
+ type: "simulated")` makes a connection to a simulated QuickBooks company file instead, connected
46
+ as it's made, for testing without a Windows computer. `get_connection`,
45
47
  `list_connections`, `delete_connection`, `set_password(id, password: nil)` and `get_qwc(id)` (the
46
48
  QWC file's XML) are there for setup without hosted onboarding.
47
49
 
@@ -63,12 +65,66 @@ end
63
65
  ```
64
66
 
65
67
  `get_run(run_url)` or `get_run(connection_id, run_id)` reads a run, `list_runs(connection_id,
66
- reference:, state:, outcome:)` finds runs, `cancel_run(cancel_url, reason: nil)` cancels one, and
68
+ reference:, state:, outcome:)` finds runs, `cancel_run(cancel_url, reason: nil)` cancels one,
69
+ `redeliver_run(connection_id, run_id)` has QuBe Sync send its latest event again (after an
70
+ outage longer than the webhook retries), and
67
71
  `run_events(connection_id, run_id, after:, limit:)` returns a page of its event log whole
68
72
  (`{"data" => [...], "next_after" => ...}`). A method that takes a link takes it from a webhook's
69
73
  or a run's `links`, or a path under `/api/v2`. A link on any other scheme, host or port raises
70
74
  `ArgumentError` before a request is made, so the API key only ever goes to QuBe Sync.
71
75
 
76
+ ### Typed workflow starts
77
+
78
+ `qube_sync workflows` fetches your app's workflow input types (`GET /api/v2/workflows/types`) and
79
+ writes them as Ruby and RBS you check in: a start method per workflow, and per branch of its
80
+ input, whose operation bodies have the same types and field docs as the operation methods below.
81
+
82
+ ```sh
83
+ QUBE_API_KEY=... bundle exec qube_sync workflows # lib/qube_workflows.rb, sig/qube_workflows.rbs
84
+ QUBE_API_KEY=... bundle exec qube_sync workflows --check # in CI: exits 1 when the files are out of date
85
+ ```
86
+
87
+ ```ruby
88
+ require_relative "qube_workflows"
89
+ QubeWorkflows.client = QUBE # once, at boot
90
+
91
+ QubeWorkflows.add_transaction.invoice(connection_id, {
92
+ customer_ref: {list_id: "80000001-1700000000"},
93
+ invoice_line_add: [{item_ref: {full_name: "Consulting"}, amount: "100.00"}]
94
+ }, adds: [{kind: "customer", add: {name: "Acme Ltd"}}],
95
+ reference: "invoice-#{invoice.id}", webhook_url: "https://myapp.example/qube/runs")
96
+
97
+ # The input alone, for start or a QubeRails::Operation's input:
98
+ QubeWorkflows.add_transaction.invoice_input(params, adds: adds)
99
+ ```
100
+
101
+ - A workflow whose input has branches (add_transaction's `operation`, upsert's `kind`) gets one
102
+ method per branch, named by the branch: the discriminator is filled in and the inputs are
103
+ keywords (required ones without defaults), except a workflow's one operation body (add_transaction's
104
+ `params`), which every branch takes positionally; a workflow with two (upsert's `add` and
105
+ `update`) takes both as keywords. `start(connection_id, input, ...)` takes any branch's input. A workflow without
106
+ branches gets `start(connection_id, <inputs as keywords>, reference:, webhook_url:)` and
107
+ `input(...)`. Each `*_input` leaves out nil values. `connection_id` may be anything with a
108
+ `qube_id` (a QubeRails::Connection).
109
+ - Each start takes `reference:`, `webhook_url:`, `version: nil` and `client:` (QubeWorkflows.client
110
+ unless given), and returns the run as `start_run` does.
111
+ - The RBS gives each input a type alias (`QubeWorkflows::AddTransaction::invoice_input`), each
112
+ operation body that operation's params record (`::QubeSync::Operations::Invoice::create_params`)
113
+ and a nested entry with branches (an `adds` item) a union of a record per branch. An operation
114
+ newer than your qube_sync is a plain Hash, with a warning when the served operations aren't the
115
+ gem's. A field the workflow sets itself (QuBe Sync lists them as `set_by_workflow`: upsert's
116
+ `list_id` and `edit_sequence`) is optional in that body, which then gets a record of its own
117
+ (`payment_body`, `customer_update_body`), and its docs say a value given for it is overwritten.
118
+ - QuBe Sync still checks every start: a field the operation doesn't take is a 422 at the call, its
119
+ error's `path` the body (`input.params`) and its `message` naming the field (`unknown parameter:
120
+ "customer_rf"`).
121
+ - `--drafts` types each workflow's draft where it has one, so you can build against a workflow
122
+ before publishing it. The header records the digest and the flag, and `--check` fetches with the
123
+ same flag. When QuBe Sync can't be reached or answers 5xx, `--check` warns and exits 0; a 401
124
+ exits 1.
125
+ - `--output PATH` and `--sig PATH` choose the files; `QUBE_BASE_URL` another host.
126
+ - In Rails, `bin/rails g qube_rails:workflows` (qube_rails) writes the same file into `app/qube/`.
127
+
72
128
  ### Queueing an operation
73
129
 
74
130
  Every QuickBooks operation is a method on its entity: `client.<entity>.<action>`, where the
data/exe/qube_sync ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # qube_sync workflows [--drafts] [--check] [--output lib/qube_workflows.rb] [--sig sig/qube_workflows.rbs]
5
+ #
6
+ # Writes your app's typed workflow starts (QubeSync::WorkflowTypes::CLI). QUBE_API_KEY is your
7
+ # app's API key; QUBE_BASE_URL is https://qubesync.com unless set.
8
+
9
+ require "qube_sync/workflow_types"
10
+
11
+ exit QubeSync::WorkflowTypes::CLI.new.run(ARGV)
@@ -159,8 +159,10 @@ module QubeSync
159
159
 
160
160
  # -- Connections ------------------------------------------------------------------------
161
161
 
162
- def create_connection(webhook_url:, name: nil)
163
- call(:post, "/connections", compact(webhook_url: webhook_url, name: name))
162
+ # type: "simulated" makes a connection to a simulated QuickBooks company file, connected as
163
+ # it's made (connection.connected comes at once), for testing with no Windows computer.
164
+ def create_connection(webhook_url:, name: nil, type: nil)
165
+ call(:post, "/connections", compact(webhook_url: webhook_url, name: name, type: type))
164
166
  end
165
167
 
166
168
  def get_connection(id)
@@ -223,12 +225,39 @@ module QubeSync
223
225
  call(:post, cancel_url, compact(reason: reason))
224
226
  end
225
227
 
228
+ # Asks QuBe Sync to send the run's latest event again (its ending, or the question it's
229
+ # waiting on) to the run's webhook URL, signed, with the revision it carries, so a receiver
230
+ # that missed it, or was down for longer than the retries, catches up. Returns
231
+ # `{"run_id", "event", "revision", "webhook_url"}`. A run with nothing to send yet answers
232
+ # 409 (APIError), and one asked again too soon 429.
233
+ def redeliver_run(connection_id, run_id)
234
+ call(:post, "/connections/#{segment(connection_id)}/workflow-runs/#{segment(run_id)}/redeliver")
235
+ end
236
+
226
237
  # Returns the whole body: `{"data" => [...], "next_after" => ...}`.
227
238
  def run_events(connection_id, run_id, after: nil, limit: nil)
228
239
  request(:get, "/connections/#{segment(connection_id)}/workflow-runs/#{segment(run_id)}/events",
229
240
  query: {after: after, limit: limit})
230
241
  end
231
242
 
243
+ # -- Workflow types ---------------------------------------------------------------------
244
+
245
+ # The input types of the app's workflows, which `qube_sync workflows` renders into a typed
246
+ # file (QubeSync::WorkflowTypes). Returns the document (the response's data): `digest`,
247
+ # `operations_digest`, `include_drafts`, `workflows` (each published workflow at its
248
+ # published version) and, with `include_drafts: true`, `drafts` (each workflow whose working
249
+ # copy differs from it). With `etag:` (a document's `digest`, or the ETag it came with),
250
+ # returns :not_modified when the document is still that one.
251
+ def workflow_types(include_drafts: false, etag: nil)
252
+ headers = {}
253
+ headers["If-None-Match"] = entity_tag(etag) unless etag.nil? || etag.to_s.empty?
254
+ call(:get, "/workflows/types", query: {include: include_drafts ? "drafts" : nil}, headers: headers)
255
+ rescue APIError => e
256
+ raise unless e.status == 304
257
+
258
+ :not_modified
259
+ end
260
+
232
261
  # -- Questions --------------------------------------------------------------------------
233
262
 
234
263
  # `decisions_url` is the run's `links.decisions`. It's retried like a GET when the link
@@ -240,9 +269,10 @@ module QubeSync
240
269
  call(:post, decisions_url, compact(choice: choice, data: data), retry_safe: prompt_token?(decisions_url))
241
270
  end
242
271
 
243
- # `search_url` is the run's `links.search`. Returns the matches, an Array.
244
- def search(search_url, field:, q:)
245
- call(:get, search_url, query: {field: field, q: q})
272
+ # `search_url` is the run's `links.search`. Returns the matches, an Array. `row` names the
273
+ # row of a rows field whose column's kind depends on it (`field: "records.list_id"`).
274
+ def search(search_url, field:, q:, row: nil)
275
+ call(:get, search_url, query: compact(field: field, q: q, row: row))
246
276
  end
247
277
 
248
278
  # -- Queued requests --------------------------------------------------------------------
@@ -563,6 +593,11 @@ module QubeSync
563
593
  parts.map { |part| segment(part) }.join("/")
564
594
  end
565
595
 
596
+ def entity_tag(value)
597
+ text = value.to_s
598
+ (text.start_with?("\"") || text.start_with?("W/")) ? text : "\"#{text}\""
599
+ end
600
+
566
601
  def key_for(idempotency_key)
567
602
  key = idempotency_key.nil? ? SecureRandom.uuid : idempotency_key.to_s
568
603
  raise ArgumentError, "idempotency_key can't be empty" if key.empty?
@@ -35,8 +35,8 @@ module QubeSync
35
35
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
36
36
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
37
37
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
38
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
39
- # request, QuickBooks uses `list_id` and ignores `full_name`.
38
+ # family, not across the company file: customers, vendors, employees and other names share
39
+ # one sequence, every item type shares another, and each other list has its own.
40
40
  # - `desc` (String): A descriptive text field.
41
41
  # - `detail_account_type` (one of "AP", "AR", "AccumulatedAdjustment",
42
42
  # "AccumulatedAmortization", "AccumulatedAmortizationOfOtherAssets", "AccumulatedDepletion",
@@ -93,8 +93,8 @@ module QubeSync
93
93
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
94
94
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
95
95
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
96
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
97
- # request, QuickBooks uses `list_id` and ignores `full_name`.
96
+ # family, not across the company file: customers, vendors, employees and other names share
97
+ # one sequence, every item type shares another, and each other list has its own.
98
98
  # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
99
99
  # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
100
100
  # webhook already carries the request's `id`.
@@ -108,8 +108,8 @@ module QubeSync
108
108
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
109
109
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
110
110
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
111
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
112
- # request, QuickBooks uses `list_id` and ignores `full_name`.
111
+ # family, not across the company file: customers, vendors, employees and other names share
112
+ # one sequence, every item type shares another, and each other list has its own.
113
113
  # - `tax_line_id` (Integer): An internal representation of the tax line associated with this
114
114
  # account.
115
115
  #
@@ -155,8 +155,9 @@ module QubeSync
155
155
  # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
156
156
  # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
157
157
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
158
- # within a list type, not globally across all lists. If both `full_name` and `list_id` are
159
- # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
158
+ # within a list family, not across the company file: customers, vendors, employees and
159
+ # other names share one sequence, every item type shares another, and each other list has
160
+ # its own.
160
161
  # - `from_modified_date` (String): Filters results to objects modified on or after this
161
162
  # timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
162
163
  # date is provided, time defaults to 00:00:00. Choose at most one of: `list_id`, or
@@ -177,10 +178,10 @@ module QubeSync
177
178
  # "Sublevel", "TaxLineInfoRet", "TimeCreated", "TimeModified", "TotalBalance">)
178
179
  # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
179
180
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
180
- # within a list type, not globally across all lists. If both `full_name` and `list_id` are
181
- # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`. Choose at most
182
- # one of: `list_id`, or `full_name`, or the set (`account_type`, `active_status`,
183
- # `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`,
181
+ # within a list family, not across the company file: customers, vendors, employees and other
182
+ # names share one sequence, every item type shares another, and each other list has its own.
183
+ # Choose at most one of: `list_id`, or `full_name`, or the set (`account_type`,
184
+ # `active_status`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`,
184
185
  # `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not
185
186
  # with the other choices.
186
187
  # - `max_returned` (Integer): Limits the number of objects that a query returns. (To get a
@@ -266,8 +267,8 @@ module QubeSync
266
267
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
267
268
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
268
269
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
269
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
270
- # request, QuickBooks uses `list_id` and ignores `full_name`.
270
+ # family, not across the company file: customers, vendors, employees and other names share
271
+ # one sequence, every item type shares another, and each other list has its own.
271
272
  # - `desc` (String): A descriptive text field.
272
273
  # - `edit_sequence` (String, required): `edit_sequence` is a server-generated revision token.
273
274
  # It changes each time the object is updated. To modify an existing object, you must send
@@ -283,8 +284,8 @@ module QubeSync
283
284
  # QuickBooks. The default value is true.
284
285
  # - `list_id` (String, required): `list_id` and `full_name` both identify a list object.
285
286
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
286
- # within a list type, not globally across all lists. If both `full_name` and `list_id` are
287
- # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
287
+ # within a list family, not across the company file: customers, vendors, employees and other
288
+ # names share one sequence, every item type shares another, and each other list has its own.
288
289
  # - `name` (String): Name is the case-insensitive short name of a list object (without
289
290
  # ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the
290
291
  # same Name in different branches because `full_name` remains distinct.
@@ -303,8 +304,8 @@ module QubeSync
303
304
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
304
305
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
305
306
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
306
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
307
- # request, QuickBooks uses `list_id` and ignores `full_name`.
307
+ # family, not across the company file: customers, vendors, employees and other names share
308
+ # one sequence, every item type shares another, and each other list has its own.
308
309
  # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
309
310
  # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
310
311
  # webhook already carries the request's `id`.
@@ -318,8 +319,8 @@ module QubeSync
318
319
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
319
320
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
320
321
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
321
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
322
- # request, QuickBooks uses `list_id` and ignores `full_name`.
322
+ # family, not across the company file: customers, vendors, employees and other names share
323
+ # one sequence, every item type shares another, and each other list has its own.
323
324
  # - `tax_line_id` (Integer): An internal representation of the tax line associated with this
324
325
  # account.
325
326
  #
@@ -36,8 +36,8 @@ module QubeSync
36
36
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
37
37
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
38
38
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
39
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
40
- # request, QuickBooks uses `list_id` and ignores `full_name`.
39
+ # family, not across the company file: customers, vendors, employees and other names share
40
+ # one sequence, every item type shares another, and each other list has its own.
41
41
  # - `credit_card_txn_info` (Hash): Contains data from the credit card transaction used in the
42
42
  # payment. This data originates from a previous qbmsXML credit card transaction. The data
43
43
  # following the element `credit_card_txn_input_info`” data is the data from the original
@@ -130,8 +130,8 @@ module QubeSync
130
130
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
131
131
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
132
132
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
133
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
134
- # request, QuickBooks uses `list_id` and ignores `full_name`.
133
+ # family, not across the company file: customers, vendors, employees and other names share
134
+ # one sequence, every item type shares another, and each other list has its own.
135
135
  # - `def_macro` (String): `def_macro` lets you assign a reusable name to a returned `txn_id`
136
136
  # or TxnLineID so later requests can reference it with `useMacro`. This feature requires SDK
137
137
  # 2.0+.
@@ -156,8 +156,8 @@ module QubeSync
156
156
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
157
157
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
158
158
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
159
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
160
- # request, QuickBooks uses `list_id` and ignores `full_name`.
159
+ # family, not across the company file: customers, vendors, employees and other names share
160
+ # one sequence, every item type shares another, and each other list has its own.
161
161
  # - `ref_number` (String): `ref_number` is a user-managed transaction reference (for example,
162
162
  # a check number). It can be edited and is not guaranteed to be globally unique. Some
163
163
  # transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences
@@ -179,8 +179,8 @@ module QubeSync
179
179
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
180
180
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
181
181
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
182
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
183
- # request, QuickBooks uses `list_id` and ignores `full_name`.
182
+ # family, not across the company file: customers, vendors, employees and other names share
183
+ # one sequence, every item type shares another, and each other list has its own.
184
184
  # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
185
185
  # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
186
186
  # webhook already carries the request's `id`.
@@ -224,8 +224,9 @@ module QubeSync
224
224
  # `full_name_with_children` is exactly the same as `full_name`.
225
225
  # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
226
226
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
227
- # within a list type, not globally across all lists. If both `full_name` and `list_id` are
228
- # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
227
+ # within a list family, not across the company file: customers, vendors, employees and
228
+ # other names share one sequence, every item type shares another, and each other list has
229
+ # its own.
229
230
  # - `list_id_with_children` (String): Allows you to filter for data that relates to the
230
231
  # specified object and its descendants.
231
232
  # - `currency_filter` (Hash): Filters by the specified currency. Choose at most one of:
@@ -239,8 +240,9 @@ module QubeSync
239
240
  # example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
240
241
  # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
241
242
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
242
- # within a list type, not globally across all lists. If both `full_name` and `list_id` are
243
- # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
243
+ # within a list family, not across the company file: customers, vendors, employees and
244
+ # other names share one sequence, every item type shares another, and each other list has
245
+ # its own.
244
246
  # - `entity_filter` (Hash): An entity refers to a person on the QuickBooks Customer list,
245
247
  # Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get
246
248
  # information about all the entities that are set up in the QuickBooks file. In an
@@ -259,8 +261,9 @@ module QubeSync
259
261
  # `full_name_with_children` is exactly the same as `full_name`.
260
262
  # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
261
263
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
262
- # within a list type, not globally across all lists. If both `full_name` and `list_id` are
263
- # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
264
+ # within a list family, not across the company file: customers, vendors, employees and
265
+ # other names share one sequence, every item type shares another, and each other list has
266
+ # its own.
264
267
  # - `list_id_with_children` (String): Allows you to filter for data that relates to the
265
268
  # specified object and its descendants.
266
269
  # - `include_line_items` (Boolean): This filter allows you to omit line items from a query