qube_sync 0.4.0 → 0.6.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +94 -3
- data/README.md +106 -7
- data/exe/qube_sync +11 -0
- data/lib/qube_sync/client.rb +58 -7
- data/lib/qube_sync/operations/account.rb +21 -20
- data/lib/qube_sync/operations/ar_refund_credit_card.rb +17 -14
- data/lib/qube_sync/operations/bill.rb +148 -104
- data/lib/qube_sync/operations/bill_payment_check.rb +29 -22
- data/lib/qube_sync/operations/bill_payment_credit_card.rb +21 -16
- data/lib/qube_sync/operations/bill_to_pay.rb +7 -6
- data/lib/qube_sync/operations/billing_rate.rb +10 -9
- data/lib/qube_sync/operations/build_assembly.rb +13 -12
- data/lib/qube_sync/operations/charge.rb +36 -34
- data/lib/qube_sync/operations/check.rb +144 -100
- data/lib/qube_sync/operations/class.rb +11 -11
- data/lib/qube_sync/operations/credit_card_charge.rb +144 -100
- data/lib/qube_sync/operations/credit_card_credit.rb +144 -100
- data/lib/qube_sync/operations/credit_memo.rb +142 -108
- data/lib/qube_sync/operations/currency.rb +7 -7
- data/lib/qube_sync/operations/customer.rb +54 -53
- data/lib/qube_sync/operations/customer_msg.rb +5 -5
- data/lib/qube_sync/operations/customer_type.rb +7 -7
- data/lib/qube_sync/operations/data_ext.rb +7 -6
- data/lib/qube_sync/operations/date_driven_terms.rb +5 -5
- data/lib/qube_sync/operations/deposit.rb +53 -38
- data/lib/qube_sync/operations/employee.rb +27 -23
- data/lib/qube_sync/operations/entity.rb +5 -5
- data/lib/qube_sync/operations/estimate.rb +119 -90
- data/lib/qube_sync/operations/fields.rb +4058 -0
- data/lib/qube_sync/operations/form1099_category_account_mapping.rb +3 -2
- data/lib/qube_sync/operations/inventory_adjustment.rb +43 -34
- data/lib/qube_sync/operations/inventory_site.rb +11 -11
- data/lib/qube_sync/operations/invoice.rb +142 -108
- data/lib/qube_sync/operations/item.rb +5 -5
- data/lib/qube_sync/operations/item_assemblies_can_build.rb +2 -2
- data/lib/qube_sync/operations/item_discount.rb +25 -24
- data/lib/qube_sync/operations/item_fixed_asset.rb +17 -16
- data/lib/qube_sync/operations/item_group.rb +17 -15
- data/lib/qube_sync/operations/item_inventory.rb +45 -44
- data/lib/qube_sync/operations/item_inventory_assembly.rb +51 -48
- data/lib/qube_sync/operations/item_non_inventory.rb +55 -44
- data/lib/qube_sync/operations/item_other_charge.rb +51 -40
- data/lib/qube_sync/operations/item_payment.rb +21 -20
- data/lib/qube_sync/operations/item_receipt.rb +144 -100
- data/lib/qube_sync/operations/item_sales_tax.rb +21 -20
- data/lib/qube_sync/operations/item_sales_tax_group.rb +11 -11
- data/lib/qube_sync/operations/item_service.rb +55 -44
- data/lib/qube_sync/operations/item_sites.rb +10 -8
- data/lib/qube_sync/operations/item_subtotal.rb +7 -7
- data/lib/qube_sync/operations/job_type.rb +7 -7
- data/lib/qube_sync/operations/journal_entry.rb +49 -34
- data/lib/qube_sync/operations/lead.rb +7 -7
- data/lib/qube_sync/operations/list.rb +2 -2
- data/lib/qube_sync/operations/list_display.rb +2 -2
- data/lib/qube_sync/operations/list_merge.rb +6 -4
- data/lib/qube_sync/operations/other_name.rb +7 -7
- data/lib/qube_sync/operations/payment_method.rb +6 -5
- data/lib/qube_sync/operations/payroll_item_non_wage.rb +5 -5
- data/lib/qube_sync/operations/payroll_item_wage.rb +7 -7
- data/lib/qube_sync/operations/price_level.rb +23 -19
- data/lib/qube_sync/operations/purchase_order.rb +113 -86
- data/lib/qube_sync/operations/receive_payment.rb +37 -30
- data/lib/qube_sync/operations/sales_order.rb +117 -90
- data/lib/qube_sync/operations/sales_receipt.rb +142 -108
- data/lib/qube_sync/operations/sales_rep.rb +11 -11
- data/lib/qube_sync/operations/sales_tax_code.rb +15 -15
- data/lib/qube_sync/operations/sales_tax_payment_check.rb +18 -14
- data/lib/qube_sync/operations/sales_tax_return_line.rb +2 -2
- data/lib/qube_sync/operations/ship_method.rb +5 -5
- data/lib/qube_sync/operations/special_account.rb +2 -2
- data/lib/qube_sync/operations/standard_terms.rb +5 -5
- data/lib/qube_sync/operations/terms.rb +5 -5
- data/lib/qube_sync/operations/time_tracking.rb +23 -22
- data/lib/qube_sync/operations/to_do.rb +23 -23
- data/lib/qube_sync/operations/transaction.rb +15 -10
- data/lib/qube_sync/operations/transfer.rb +12 -12
- data/lib/qube_sync/operations/transfer_inventory.rb +35 -26
- data/lib/qube_sync/operations/txn_display.rb +2 -2
- data/lib/qube_sync/operations/unit_of_measure_set.rb +5 -5
- data/lib/qube_sync/operations/vehicle.rb +7 -7
- data/lib/qube_sync/operations/vehicle_mileage.rb +8 -8
- data/lib/qube_sync/operations/vendor.rb +54 -52
- data/lib/qube_sync/operations/vendor_credit.rb +144 -100
- data/lib/qube_sync/operations/vendor_type.rb +7 -7
- data/lib/qube_sync/operations/workers_comp_code.rb +8 -8
- data/lib/qube_sync/operations.rb +267 -262
- data/lib/qube_sync/version.rb +1 -1
- data/lib/qube_sync/webhooks/event.rb +80 -6
- data/lib/qube_sync/workflow_types/cli.rb +120 -0
- data/lib/qube_sync/workflow_types/rbs_renderer.rb +290 -0
- data/lib/qube_sync/workflow_types/ruby_renderer.rb +391 -0
- data/lib/qube_sync/workflow_types/workflow.rb +153 -0
- data/lib/qube_sync/workflow_types.rb +219 -0
- data/sig/qube_sync/client.rbs +6 -2
- data/sig/qube_sync/operations.rbs +2 -1
- data/sig/qube_sync/webhooks.rbs +148 -0
- data/sig/qube_sync/workflow_types.rbs +59 -0
- metadata +13 -3
|
@@ -21,8 +21,9 @@ module QubeSync
|
|
|
21
21
|
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
22
22
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
23
23
|
# assigns `list_id` when the object is created. `list_id` values are unique within a
|
|
24
|
-
# list
|
|
25
|
-
#
|
|
24
|
+
# list family, not across the company file: customers, vendors, employees and other
|
|
25
|
+
# names share one sequence, every item type shares another, and each other list has its
|
|
26
|
+
# own.
|
|
26
27
|
# - `discount_amount` (Numeric): Reduces the receivable amount.
|
|
27
28
|
# - `discount_class_ref` (Hash): Class reference used in the Discount object.
|
|
28
29
|
# - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
|
|
@@ -30,8 +31,9 @@ module QubeSync
|
|
|
30
31
|
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
31
32
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
32
33
|
# assigns `list_id` when the object is created. `list_id` values are unique within a
|
|
33
|
-
# list
|
|
34
|
-
#
|
|
34
|
+
# list family, not across the company file: customers, vendors, employees and other
|
|
35
|
+
# names share one sequence, every item type shares another, and each other list has its
|
|
36
|
+
# own.
|
|
35
37
|
# - `payment_amount` (Numeric): Represents the amount assigned to a particular receivable.
|
|
36
38
|
# The sum of all `payment_amount` elements in any given receive payment transaction must
|
|
37
39
|
# not be greater than `total_amount`.
|
|
@@ -56,8 +58,8 @@ module QubeSync
|
|
|
56
58
|
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
57
59
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
58
60
|
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
+
# family, not across the company file: customers, vendors, employees and other names share
|
|
62
|
+
# one sequence, every item type shares another, and each other list has its own.
|
|
61
63
|
# - `credit_card_txn_info` (Hash): Contains data from the credit card transaction used in the
|
|
62
64
|
# payment. This data originates from a previous qbmsXML credit card transaction. The data
|
|
63
65
|
# following the element `credit_card_txn_input_info`” data is the data from the original
|
|
@@ -150,8 +152,8 @@ module QubeSync
|
|
|
150
152
|
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
151
153
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
152
154
|
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
153
|
-
#
|
|
154
|
-
#
|
|
155
|
+
# family, not across the company file: customers, vendors, employees and other names share
|
|
156
|
+
# one sequence, every item type shares another, and each other list has its own.
|
|
155
157
|
# - `def_macro` (String): `def_macro` lets you assign a reusable name to a returned `txn_id`
|
|
156
158
|
# or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires
|
|
157
159
|
# SDK 2.0+.
|
|
@@ -164,8 +166,8 @@ module QubeSync
|
|
|
164
166
|
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
165
167
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
166
168
|
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
167
|
-
#
|
|
168
|
-
#
|
|
169
|
+
# family, not across the company file: customers, vendors, employees and other names share
|
|
170
|
+
# one sequence, every item type shares another, and each other list has its own.
|
|
169
171
|
# - `exchange_rate` (Numeric): `exchange_rate` is the rate from this currency to the company’s
|
|
170
172
|
# home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks
|
|
171
173
|
# does not provide rates through the SDK. If your home currency is USD and internet access
|
|
@@ -193,8 +195,8 @@ module QubeSync
|
|
|
193
195
|
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
194
196
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
195
197
|
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
196
|
-
#
|
|
197
|
-
#
|
|
198
|
+
# family, not across the company file: customers, vendors, employees and other names share
|
|
199
|
+
# one sequence, every item type shares another, and each other list has its own.
|
|
198
200
|
# - `ref_number` (String): `ref_number` is a user-managed transaction reference (for example,
|
|
199
201
|
# a check number). It can be edited and is not guaranteed to be globally unique. Some
|
|
200
202
|
# transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences
|
|
@@ -245,8 +247,9 @@ module QubeSync
|
|
|
245
247
|
# `full_name_with_children` is exactly the same as `full_name`.
|
|
246
248
|
# - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
|
|
247
249
|
# QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
|
|
248
|
-
# within a list
|
|
249
|
-
#
|
|
250
|
+
# within a list family, not across the company file: customers, vendors, employees and
|
|
251
|
+
# other names share one sequence, every item type shares another, and each other list has
|
|
252
|
+
# its own.
|
|
250
253
|
# - `list_id_with_children` (String): Allows you to filter for data that relates to the
|
|
251
254
|
# specified object and its descendants.
|
|
252
255
|
# - `currency_filter` (Hash): Filters by the specified currency. Choose at most one of:
|
|
@@ -260,8 +263,9 @@ module QubeSync
|
|
|
260
263
|
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
261
264
|
# - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
|
|
262
265
|
# QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
|
|
263
|
-
# within a list
|
|
264
|
-
#
|
|
266
|
+
# within a list family, not across the company file: customers, vendors, employees and
|
|
267
|
+
# other names share one sequence, every item type shares another, and each other list has
|
|
268
|
+
# its own.
|
|
265
269
|
# - `entity_filter` (Hash): An entity refers to a person on the QuickBooks Customer list,
|
|
266
270
|
# Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get
|
|
267
271
|
# information about all the entities that are set up in the QuickBooks file. In an
|
|
@@ -280,8 +284,9 @@ module QubeSync
|
|
|
280
284
|
# `full_name_with_children` is exactly the same as `full_name`.
|
|
281
285
|
# - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
|
|
282
286
|
# QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
|
|
283
|
-
# within a list
|
|
284
|
-
#
|
|
287
|
+
# within a list family, not across the company file: customers, vendors, employees and
|
|
288
|
+
# other names share one sequence, every item type shares another, and each other list has
|
|
289
|
+
# its own.
|
|
285
290
|
# - `list_id_with_children` (String): Allows you to filter for data that relates to the
|
|
286
291
|
# specified object and its descendants.
|
|
287
292
|
# - `include_line_items` (Boolean): This filter allows you to omit line items from a query
|
|
@@ -431,8 +436,9 @@ module QubeSync
|
|
|
431
436
|
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
432
437
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
433
438
|
# assigns `list_id` when the object is created. `list_id` values are unique within a
|
|
434
|
-
# list
|
|
435
|
-
#
|
|
439
|
+
# list family, not across the company file: customers, vendors, employees and other
|
|
440
|
+
# names share one sequence, every item type shares another, and each other list has its
|
|
441
|
+
# own.
|
|
436
442
|
# - `discount_amount` (Numeric): Reduces the receivable amount.
|
|
437
443
|
# - `discount_class_ref` (Hash): Class reference used in the Discount object.
|
|
438
444
|
# - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
|
|
@@ -440,8 +446,9 @@ module QubeSync
|
|
|
440
446
|
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
441
447
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
442
448
|
# assigns `list_id` when the object is created. `list_id` values are unique within a
|
|
443
|
-
# list
|
|
444
|
-
#
|
|
449
|
+
# list family, not across the company file: customers, vendors, employees and other
|
|
450
|
+
# names share one sequence, every item type shares another, and each other list has its
|
|
451
|
+
# own.
|
|
445
452
|
# - `payment_amount` (Numeric): Represents the amount assigned to a particular receivable.
|
|
446
453
|
# The sum of all `payment_amount` elements in any given receive payment transaction must
|
|
447
454
|
# not be greater than `total_amount`.
|
|
@@ -463,8 +470,8 @@ module QubeSync
|
|
|
463
470
|
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
464
471
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
465
472
|
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
466
|
-
#
|
|
467
|
-
#
|
|
473
|
+
# family, not across the company file: customers, vendors, employees and other names share
|
|
474
|
+
# one sequence, every item type shares another, and each other list has its own.
|
|
468
475
|
# - `credit_card_txn_info_mod` (Hash): Contains data from the credit card transaction used in
|
|
469
476
|
# the payment. This data originates from a previous qbmsXML credit card transaction. The
|
|
470
477
|
# data following the element `credit_card_txn_input_info`” data is the data from the
|
|
@@ -556,8 +563,8 @@ module QubeSync
|
|
|
556
563
|
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
557
564
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
558
565
|
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
559
|
-
#
|
|
560
|
-
#
|
|
566
|
+
# family, not across the company file: customers, vendors, employees and other names share
|
|
567
|
+
# one sequence, every item type shares another, and each other list has its own.
|
|
561
568
|
# - `deposit_to_account_ref` (Hash): Refers to the account where these funds will be (or have
|
|
562
569
|
# been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this
|
|
563
570
|
# isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate
|
|
@@ -567,8 +574,8 @@ module QubeSync
|
|
|
567
574
|
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
568
575
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
569
576
|
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
570
|
-
#
|
|
571
|
-
#
|
|
577
|
+
# family, not across the company file: customers, vendors, employees and other names share
|
|
578
|
+
# one sequence, every item type shares another, and each other list has its own.
|
|
572
579
|
# - `edit_sequence` (String, required): `edit_sequence` is a server-generated revision token.
|
|
573
580
|
# It changes each time the object is updated. To modify an existing object, you must send
|
|
574
581
|
# the current `edit_sequence`. If your value is stale, the update is rejected to prevent
|
|
@@ -594,8 +601,8 @@ module QubeSync
|
|
|
594
601
|
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
595
602
|
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
596
603
|
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
597
|
-
#
|
|
598
|
-
#
|
|
604
|
+
# family, not across the company file: customers, vendors, employees and other names share
|
|
605
|
+
# one sequence, every item type shares another, and each other list has its own.
|
|
599
606
|
# - `ref_number` (String): `ref_number` is a user-managed transaction reference (for example,
|
|
600
607
|
# a check number). It can be edited and is not guaranteed to be globally unique. Some
|
|
601
608
|
# transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences
|