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.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +94 -3
  3. data/README.md +106 -7
  4. data/exe/qube_sync +11 -0
  5. data/lib/qube_sync/client.rb +58 -7
  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 +267 -262
  88. data/lib/qube_sync/version.rb +1 -1
  89. data/lib/qube_sync/webhooks/event.rb +80 -6
  90. data/lib/qube_sync/workflow_types/cli.rb +120 -0
  91. data/lib/qube_sync/workflow_types/rbs_renderer.rb +290 -0
  92. data/lib/qube_sync/workflow_types/ruby_renderer.rb +391 -0
  93. data/lib/qube_sync/workflow_types/workflow.rb +153 -0
  94. data/lib/qube_sync/workflow_types.rb +219 -0
  95. data/sig/qube_sync/client.rbs +6 -2
  96. data/sig/qube_sync/operations.rbs +2 -1
  97. data/sig/qube_sync/webhooks.rbs +148 -0
  98. data/sig/qube_sync/workflow_types.rbs +59 -0
  99. metadata +13 -3
@@ -29,8 +29,8 @@ module QubeSync
29
29
  # Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
30
30
  # - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
31
31
  # assigns `list_id` when the object is created. `list_id` values are unique within a list
32
- # type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
33
- # request, QuickBooks uses `list_id` and ignores `full_name`.
32
+ # family, not across the company file: customers, vendors, employees and other names share
33
+ # one sequence, every item type shares another, and each other list has its own.
34
34
  # - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
35
35
  # `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
36
36
  # webhook already carries the request's `id`.
@@ -72,11 +72,11 @@ module QubeSync
72
72
  # "Name", "ParentRef", "Sublevel", "TimeCreated", "TimeModified">)
73
73
  # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
74
74
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
75
- # within a list type, not globally across all lists. If both `full_name` and `list_id` are
76
- # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`. Choose at most
77
- # one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
78
- # `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
79
- # combine with each other, not with the other choices.
75
+ # within a list family, not across the company file: customers, vendors, employees and other
76
+ # names share one sequence, every item type shares another, and each other list has its own.
77
+ # Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`,
78
+ # `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`,
79
+ # `to_modified_date`). Members of a set combine with each other, not with the other choices.
80
80
  # - `max_returned` (Integer): Limits the number of objects that a query returns. (To get a
81
81
  # count of how many objects could possibly be returned, use the `meta_data` query
82
82
  # attribute.) If you include a `max_returned` value, it must be at least 1. QuickBooks
@@ -73,12 +73,12 @@ module QubeSync
73
73
  # "RateHistory", "TimeCreated", "TimeModified">)
74
74
  # - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
75
75
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
76
- # within a list type, not globally across all lists. If both `full_name` and `list_id` are
77
- # supplied in a request, QuickBooks uses `list_id` and ignores `full_name`. Choose at most
78
- # one of: `list_id`, or `full_name`, or the set (`active_status`, `from_effective_date`,
79
- # `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`,
80
- # `to_effective_date`, `to_modified_date`). Members of a set combine with each other, not
81
- # with the other choices.
76
+ # within a list family, not across the company file: customers, vendors, employees and other
77
+ # names share one sequence, every item type shares another, and each other list has its own.
78
+ # Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`,
79
+ # `from_effective_date`, `from_modified_date`, `max_returned`, `name_filter`,
80
+ # `name_range_filter`, `to_effective_date`, `to_modified_date`). Members of a set combine
81
+ # with each other, not with the other choices.
82
82
  # - `max_returned` (Integer): Limits the number of objects that a query returns. (To get a
83
83
  # count of how many objects could possibly be returned, use the `meta_data` query
84
84
  # attribute.) If you include a `max_returned` value, it must be at least 1. QuickBooks
@@ -157,8 +157,8 @@ module QubeSync
157
157
  # QuickBooks. The default value is true.
158
158
  # - `list_id` (String, required): `list_id` and FullName both identify a list object.
159
159
  # QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
160
- # within a list type, not globally across all lists. If both FullName and `list_id` are
161
- # supplied in a request, QuickBooks uses `list_id` and ignores FullName.
160
+ # within a list family, not across the company file: customers, vendors, employees and other
161
+ # names share one sequence, every item type shares another, and each other list has its own.
162
162
  # - `name` (String): Name is the case-insensitive short name of a list object (without
163
163
  # ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the
164
164
  # same Name in different branches because FullName remains distinct.