qube_sync 0.3.0 → 0.4.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 +48 -0
- data/README.md +235 -75
- data/Rakefile +12 -0
- data/lib/qube_sync/client.rb +579 -0
- data/lib/qube_sync/operations/account.rb +337 -0
- data/lib/qube_sync/operations/account_tax_line_info.rb +30 -0
- data/lib/qube_sync/operations/aging_report.rb +160 -0
- data/lib/qube_sync/operations/alert.rb +91 -0
- data/lib/qube_sync/operations/ar_refund_credit_card.rb +399 -0
- data/lib/qube_sync/operations/bar_code.rb +37 -0
- data/lib/qube_sync/operations/bill.rb +1073 -0
- data/lib/qube_sync/operations/bill_payment_check.rb +413 -0
- data/lib/qube_sync/operations/bill_payment_credit_card.rb +315 -0
- data/lib/qube_sync/operations/bill_to_pay.rb +66 -0
- data/lib/qube_sync/operations/billing_rate.rb +172 -0
- data/lib/qube_sync/operations/budget_summary_report.rb +80 -0
- data/lib/qube_sync/operations/build_assembly.rb +318 -0
- data/lib/qube_sync/operations/charge.rb +452 -0
- data/lib/qube_sync/operations/check.rb +1055 -0
- data/lib/qube_sync/operations/class.rb +176 -0
- data/lib/qube_sync/operations/cleared_status.rb +39 -0
- data/lib/qube_sync/operations/company.rb +39 -0
- data/lib/qube_sync/operations/company_activity.rb +31 -0
- data/lib/qube_sync/operations/credit_card_charge.rb +1000 -0
- data/lib/qube_sync/operations/credit_card_credit.rb +1000 -0
- data/lib/qube_sync/operations/credit_memo.rb +1243 -0
- data/lib/qube_sync/operations/currency.rb +195 -0
- data/lib/qube_sync/operations/custom_detail_report.rb +176 -0
- data/lib/qube_sync/operations/custom_summary_report.rb +180 -0
- data/lib/qube_sync/operations/customer.rb +744 -0
- data/lib/qube_sync/operations/customer_msg.rb +117 -0
- data/lib/qube_sync/operations/customer_type.rb +133 -0
- data/lib/qube_sync/operations/data_event_recovery_info.rb +54 -0
- data/lib/qube_sync/operations/data_ext.rb +201 -0
- data/lib/qube_sync/operations/data_ext_def.rb +179 -0
- data/lib/qube_sync/operations/date_driven_terms.rb +131 -0
- data/lib/qube_sync/operations/deposit.rb +555 -0
- data/lib/qube_sync/operations/employee.rb +577 -0
- data/lib/qube_sync/operations/employee_default.rb +100 -0
- data/lib/qube_sync/operations/entity.rb +118 -0
- data/lib/qube_sync/operations/estimate.rb +1055 -0
- data/lib/qube_sync/operations/form1099_category_account_mapping.rb +90 -0
- data/lib/qube_sync/operations/general_detail_report.rb +185 -0
- data/lib/qube_sync/operations/general_summary_report.rb +180 -0
- data/lib/qube_sync/operations/host.rb +36 -0
- data/lib/qube_sync/operations/inventory_adjustment.rb +482 -0
- data/lib/qube_sync/operations/inventory_site.rb +214 -0
- data/lib/qube_sync/operations/invoice.rb +1208 -0
- data/lib/qube_sync/operations/item.rb +115 -0
- data/lib/qube_sync/operations/item_assemblies_can_build.rb +44 -0
- data/lib/qube_sync/operations/item_discount.rb +319 -0
- data/lib/qube_sync/operations/item_fixed_asset.rb +317 -0
- data/lib/qube_sync/operations/item_group.rb +253 -0
- data/lib/qube_sync/operations/item_inventory.rb +446 -0
- data/lib/qube_sync/operations/item_inventory_assembly.rb +483 -0
- data/lib/qube_sync/operations/item_non_inventory.rb +461 -0
- data/lib/qube_sync/operations/item_other_charge.rb +434 -0
- data/lib/qube_sync/operations/item_payment.rb +268 -0
- data/lib/qube_sync/operations/item_receipt.rb +1011 -0
- data/lib/qube_sync/operations/item_sales_tax.rb +270 -0
- data/lib/qube_sync/operations/item_sales_tax_group.rb +200 -0
- data/lib/qube_sync/operations/item_service.rb +455 -0
- data/lib/qube_sync/operations/item_sites.rb +96 -0
- data/lib/qube_sync/operations/item_subtotal.rb +182 -0
- data/lib/qube_sync/operations/job_report.rb +156 -0
- data/lib/qube_sync/operations/job_type.rb +131 -0
- data/lib/qube_sync/operations/journal_entry.rb +518 -0
- data/lib/qube_sync/operations/lead.rb +216 -0
- data/lib/qube_sync/operations/list.rb +42 -0
- data/lib/qube_sync/operations/list_deleted.rb +57 -0
- data/lib/qube_sync/operations/list_display.rb +59 -0
- data/lib/qube_sync/operations/list_merge.rb +55 -0
- data/lib/qube_sync/operations/other_name.rb +245 -0
- data/lib/qube_sync/operations/paycheck.rb +139 -0
- data/lib/qube_sync/operations/payment_method.rb +128 -0
- data/lib/qube_sync/operations/payroll_detail_report.rb +161 -0
- data/lib/qube_sync/operations/payroll_item.rb +75 -0
- data/lib/qube_sync/operations/payroll_item_addition.rb +98 -0
- data/lib/qube_sync/operations/payroll_item_company_contribution.rb +134 -0
- data/lib/qube_sync/operations/payroll_item_deduction.rb +124 -0
- data/lib/qube_sync/operations/payroll_item_direct_deposit.rb +70 -0
- data/lib/qube_sync/operations/payroll_item_non_wage.rb +93 -0
- data/lib/qube_sync/operations/payroll_item_tax.rb +123 -0
- data/lib/qube_sync/operations/payroll_item_wage.rb +168 -0
- data/lib/qube_sync/operations/payroll_item_workers_compensation.rb +108 -0
- data/lib/qube_sync/operations/payroll_last_period.rb +30 -0
- data/lib/qube_sync/operations/payroll_liability_adjustment.rb +204 -0
- data/lib/qube_sync/operations/payroll_liability_check.rb +137 -0
- data/lib/qube_sync/operations/payroll_prior_payment.rb +178 -0
- data/lib/qube_sync/operations/payroll_summary_report.rb +157 -0
- data/lib/qube_sync/operations/payroll_year_to_date_adjustment.rb +211 -0
- data/lib/qube_sync/operations/preferences.rb +61 -0
- data/lib/qube_sync/operations/price_level.rb +305 -0
- data/lib/qube_sync/operations/purchase_order.rb +1038 -0
- data/lib/qube_sync/operations/qb_command_exec.rb +37 -0
- data/lib/qube_sync/operations/receive_payment.rb +627 -0
- data/lib/qube_sync/operations/receive_payment_to_deposit.rb +38 -0
- data/lib/qube_sync/operations/sales_order.rb +1045 -0
- data/lib/qube_sync/operations/sales_receipt.rb +1337 -0
- data/lib/qube_sync/operations/sales_rep.rb +172 -0
- data/lib/qube_sync/operations/sales_tax_code.rb +205 -0
- data/lib/qube_sync/operations/sales_tax_payable.rb +37 -0
- data/lib/qube_sync/operations/sales_tax_payment_check.rb +375 -0
- data/lib/qube_sync/operations/sales_tax_return.rb +35 -0
- data/lib/qube_sync/operations/sales_tax_return_line.rb +43 -0
- data/lib/qube_sync/operations/ship_method.rb +116 -0
- data/lib/qube_sync/operations/special_account.rb +55 -0
- data/lib/qube_sync/operations/special_item.rb +44 -0
- data/lib/qube_sync/operations/standard_terms.rb +125 -0
- data/lib/qube_sync/operations/template.rb +36 -0
- data/lib/qube_sync/operations/terms.rb +91 -0
- data/lib/qube_sync/operations/time_report.rb +127 -0
- data/lib/qube_sync/operations/time_tracking.rb +303 -0
- data/lib/qube_sync/operations/to_do.rb +260 -0
- data/lib/qube_sync/operations/transaction.rb +356 -0
- data/lib/qube_sync/operations/transfer.rb +213 -0
- data/lib/qube_sync/operations/transfer_inventory.rb +384 -0
- data/lib/qube_sync/operations/txn.rb +38 -0
- data/lib/qube_sync/operations/txn_deleted.rb +54 -0
- data/lib/qube_sync/operations/txn_display.rb +76 -0
- data/lib/qube_sync/operations/txn_void.rb +36 -0
- data/lib/qube_sync/operations/unit_of_measure_set.rb +149 -0
- data/lib/qube_sync/operations/vehicle.rb +152 -0
- data/lib/qube_sync/operations/vehicle_mileage.rb +191 -0
- data/lib/qube_sync/operations/vendor.rb +661 -0
- data/lib/qube_sync/operations/vendor_credit.rb +1008 -0
- data/lib/qube_sync/operations/vendor_type.rb +131 -0
- data/lib/qube_sync/operations/workers_comp_code.rb +184 -0
- data/lib/qube_sync/operations.rb +1165 -0
- data/lib/qube_sync/version.rb +1 -1
- data/lib/qube_sync.rb +1 -0
- data/sig/qube_sync/client.rbs +82 -0
- data/sig/qube_sync/operations/account.rbs +65 -0
- data/sig/qube_sync/operations/account_tax_line_info.rbs +13 -0
- data/sig/qube_sync/operations/aging_report.rbs +29 -0
- data/sig/qube_sync/operations/alert.rbs +53 -0
- data/sig/qube_sync/operations/ar_refund_credit_card.rbs +53 -0
- data/sig/qube_sync/operations/bar_code.rbs +16 -0
- data/sig/qube_sync/operations/bill.rbs +78 -0
- data/sig/qube_sync/operations/bill_payment_check.rbs +62 -0
- data/sig/qube_sync/operations/bill_payment_credit_card.rbs +45 -0
- data/sig/qube_sync/operations/bill_to_pay.rbs +19 -0
- data/sig/qube_sync/operations/billing_rate.rbs +40 -0
- data/sig/qube_sync/operations/budget_summary_report.rbs +22 -0
- data/sig/qube_sync/operations/build_assembly.rbs +64 -0
- data/sig/qube_sync/operations/charge.rbs +80 -0
- data/sig/qube_sync/operations/check.rbs +81 -0
- data/sig/qube_sync/operations/class.rbs +43 -0
- data/sig/qube_sync/operations/cleared_status.rbs +16 -0
- data/sig/qube_sync/operations/company.rbs +15 -0
- data/sig/qube_sync/operations/company_activity.rbs +14 -0
- data/sig/qube_sync/operations/credit_card_charge.rbs +69 -0
- data/sig/qube_sync/operations/credit_card_credit.rbs +69 -0
- data/sig/qube_sync/operations/credit_memo.rbs +162 -0
- data/sig/qube_sync/operations/currency.rbs +52 -0
- data/sig/qube_sync/operations/custom_detail_report.rbs +31 -0
- data/sig/qube_sync/operations/custom_summary_report.rbs +33 -0
- data/sig/qube_sync/operations/customer.rbs +174 -0
- data/sig/qube_sync/operations/customer_msg.rbs +31 -0
- data/sig/qube_sync/operations/customer_type.rbs +32 -0
- data/sig/qube_sync/operations/data_event_recovery_info.rbs +20 -0
- data/sig/qube_sync/operations/data_ext.rbs +53 -0
- data/sig/qube_sync/operations/data_ext_def.rbs +51 -0
- data/sig/qube_sync/operations/date_driven_terms.rbs +35 -0
- data/sig/qube_sync/operations/deposit.rbs +100 -0
- data/sig/qube_sync/operations/employee.rbs +173 -0
- data/sig/qube_sync/operations/employee_default.rbs +68 -0
- data/sig/qube_sync/operations/entity.rbs +24 -0
- data/sig/qube_sync/operations/estimate.rbs +148 -0
- data/sig/qube_sync/operations/form1099_category_account_mapping.rbs +33 -0
- data/sig/qube_sync/operations/general_detail_report.rbs +31 -0
- data/sig/qube_sync/operations/general_summary_report.rbs +32 -0
- data/sig/qube_sync/operations/host.rbs +19 -0
- data/sig/qube_sync/operations/inventory_adjustment.rbs +105 -0
- data/sig/qube_sync/operations/inventory_site.rbs +66 -0
- data/sig/qube_sync/operations/invoice.rbs +144 -0
- data/sig/qube_sync/operations/item.rbs +25 -0
- data/sig/qube_sync/operations/item_assemblies_can_build.rbs +15 -0
- data/sig/qube_sync/operations/item_discount.rbs +62 -0
- data/sig/qube_sync/operations/item_fixed_asset.rbs +97 -0
- data/sig/qube_sync/operations/item_group.rbs +62 -0
- data/sig/qube_sync/operations/item_inventory.rbs +87 -0
- data/sig/qube_sync/operations/item_inventory_assembly.rbs +94 -0
- data/sig/qube_sync/operations/item_non_inventory.rbs +64 -0
- data/sig/qube_sync/operations/item_other_charge.rbs +59 -0
- data/sig/qube_sync/operations/item_payment.rbs +55 -0
- data/sig/qube_sync/operations/item_receipt.rbs +71 -0
- data/sig/qube_sync/operations/item_sales_tax.rbs +57 -0
- data/sig/qube_sync/operations/item_sales_tax_group.rbs +50 -0
- data/sig/qube_sync/operations/item_service.rbs +62 -0
- data/sig/qube_sync/operations/item_sites.rbs +26 -0
- data/sig/qube_sync/operations/item_subtotal.rbs +48 -0
- data/sig/qube_sync/operations/job_report.rbs +28 -0
- data/sig/qube_sync/operations/job_type.rbs +32 -0
- data/sig/qube_sync/operations/journal_entry.rbs +88 -0
- data/sig/qube_sync/operations/lead.rbs +91 -0
- data/sig/qube_sync/operations/list.rbs +15 -0
- data/sig/qube_sync/operations/list_deleted.rbs +17 -0
- data/sig/qube_sync/operations/list_display.rbs +21 -0
- data/sig/qube_sync/operations/list_merge.rbs +22 -0
- data/sig/qube_sync/operations/other_name.rbs +71 -0
- data/sig/qube_sync/operations/paycheck.rbs +27 -0
- data/sig/qube_sync/operations/payment_method.rbs +33 -0
- data/sig/qube_sync/operations/payroll_detail_report.rbs +29 -0
- data/sig/qube_sync/operations/payroll_item.rbs +23 -0
- data/sig/qube_sync/operations/payroll_item_addition.rbs +48 -0
- data/sig/qube_sync/operations/payroll_item_company_contribution.rbs +58 -0
- data/sig/qube_sync/operations/payroll_item_deduction.rbs +54 -0
- data/sig/qube_sync/operations/payroll_item_direct_deposit.rbs +30 -0
- data/sig/qube_sync/operations/payroll_item_non_wage.rbs +23 -0
- data/sig/qube_sync/operations/payroll_item_tax.rbs +58 -0
- data/sig/qube_sync/operations/payroll_item_wage.rbs +48 -0
- data/sig/qube_sync/operations/payroll_item_workers_compensation.rbs +42 -0
- data/sig/qube_sync/operations/payroll_last_period.rbs +13 -0
- data/sig/qube_sync/operations/payroll_liability_adjustment.rbs +59 -0
- data/sig/qube_sync/operations/payroll_liability_check.rbs +27 -0
- data/sig/qube_sync/operations/payroll_prior_payment.rbs +48 -0
- data/sig/qube_sync/operations/payroll_summary_report.rbs +30 -0
- data/sig/qube_sync/operations/payroll_year_to_date_adjustment.rbs +66 -0
- data/sig/qube_sync/operations/preferences.rbs +26 -0
- data/sig/qube_sync/operations/price_level.rbs +57 -0
- data/sig/qube_sync/operations/purchase_order.rbs +159 -0
- data/sig/qube_sync/operations/qb_command_exec.rbs +22 -0
- data/sig/qube_sync/operations/receive_payment.rbs +102 -0
- data/sig/qube_sync/operations/receive_payment_to_deposit.rbs +15 -0
- data/sig/qube_sync/operations/sales_order.rbs +153 -0
- data/sig/qube_sync/operations/sales_receipt.rbs +139 -0
- data/sig/qube_sync/operations/sales_rep.rbs +43 -0
- data/sig/qube_sync/operations/sales_tax_code.rbs +49 -0
- data/sig/qube_sync/operations/sales_tax_payable.rbs +16 -0
- data/sig/qube_sync/operations/sales_tax_payment_check.rbs +64 -0
- data/sig/qube_sync/operations/sales_tax_return.rbs +14 -0
- data/sig/qube_sync/operations/sales_tax_return_line.rbs +15 -0
- data/sig/qube_sync/operations/ship_method.rbs +31 -0
- data/sig/qube_sync/operations/special_account.rbs +16 -0
- data/sig/qube_sync/operations/special_item.rbs +17 -0
- data/sig/qube_sync/operations/standard_terms.rbs +34 -0
- data/sig/qube_sync/operations/template.rbs +15 -0
- data/sig/qube_sync/operations/terms.rbs +23 -0
- data/sig/qube_sync/operations/time_report.rbs +26 -0
- data/sig/qube_sync/operations/time_tracking.rbs +57 -0
- data/sig/qube_sync/operations/to_do.rbs +59 -0
- data/sig/qube_sync/operations/transaction.rbs +39 -0
- data/sig/qube_sync/operations/transfer.rbs +47 -0
- data/sig/qube_sync/operations/transfer_inventory.rbs +76 -0
- data/sig/qube_sync/operations/txn.rbs +15 -0
- data/sig/qube_sync/operations/txn_deleted.rbs +17 -0
- data/sig/qube_sync/operations/txn_display.rbs +22 -0
- data/sig/qube_sync/operations/txn_void.rbs +15 -0
- data/sig/qube_sync/operations/types.rbs +434 -0
- data/sig/qube_sync/operations/unit_of_measure_set.rbs +51 -0
- data/sig/qube_sync/operations/vehicle.rbs +43 -0
- data/sig/qube_sync/operations/vehicle_mileage.rbs +38 -0
- data/sig/qube_sync/operations/vendor.rbs +142 -0
- data/sig/qube_sync/operations/vendor_credit.rbs +70 -0
- data/sig/qube_sync/operations/vendor_type.rbs +32 -0
- data/sig/qube_sync/operations/workers_comp_code.rbs +52 -0
- data/sig/qube_sync/operations.rbs +147 -0
- metadata +255 -2
|
@@ -0,0 +1,375 @@
|
|
|
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 sales tax payment check operations, reached as `client.sales_tax_payment_check`. Each queues a request and
|
|
7
|
+
# returns it (the response's `data`); the answer comes to `webhook_url`.
|
|
8
|
+
class SalesTaxPaymentCheck < Base
|
|
9
|
+
# Create sales tax payment check: POST /connections/{connection_id}/sales-tax-payment-checks
|
|
10
|
+
# (`sales_tax_payment_check.create`).
|
|
11
|
+
#
|
|
12
|
+
# QuickBooks answers in one webhook.
|
|
13
|
+
#
|
|
14
|
+
# Params, sent as the JSON body:
|
|
15
|
+
# Give at most one of: `is_to_be_printed`, or `ref_number`.
|
|
16
|
+
# - `address` (Hash): If an address request fails, some combination of address fields might be
|
|
17
|
+
# too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the
|
|
18
|
+
# address that will print on the check.
|
|
19
|
+
# - `addr1` (String): The first line of an address.
|
|
20
|
+
# - `addr2` (String): The second line of an address (if a second line is needed).
|
|
21
|
+
# - `addr3` (String): The third line of an address (if a third line is needed).
|
|
22
|
+
# - `addr4` (String): The fourth line of an address (if a fourth line is needed).
|
|
23
|
+
# - `addr5` (String): The fifth line of an address (if a fifth line is needed).
|
|
24
|
+
# - `city` (String): The city name in an address.
|
|
25
|
+
# - `country` (String): The country name in an address, or, in returned Host information
|
|
26
|
+
# (HostRet or HostInfo), the country for which this edition of QuickBooks was designed.
|
|
27
|
+
# (Possible values are US, CA, UK, and AU.)
|
|
28
|
+
# - `note` (String): In a BillAddress or ShipAddress aggregate, the Note field value is
|
|
29
|
+
# written at the bottom of the address in the form in which it appears, such as the
|
|
30
|
+
# invoice form.
|
|
31
|
+
# - `postal_code` (String): The postal code in an address.
|
|
32
|
+
# - `state` (String): The state name in an address.
|
|
33
|
+
# - `bank_account_ref` (Hash, required): Refers to the account from which the funds are being
|
|
34
|
+
# drawn for this check, for example, Checking or Savings. If a `bank_account_ref` aggregate
|
|
35
|
+
# includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
36
|
+
# - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
|
|
37
|
+
# object. The `full_name` is the name prefixed by the names of each ancestor, for example
|
|
38
|
+
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
39
|
+
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
40
|
+
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
41
|
+
# type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
|
|
42
|
+
# request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
43
|
+
# - `def_macro` (String): `def_macro` lets you assign a reusable name to a returned `txn_id`
|
|
44
|
+
# or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires
|
|
45
|
+
# SDK 2.0+.
|
|
46
|
+
# - `external_guid` (String): Allows for the attachment of a user defined GUID value.
|
|
47
|
+
# - `include_ret_element` (Array<one of "Address", "AddressBlock", "Amount", "BankAccountRef",
|
|
48
|
+
# "DataExtRet", "EditSequence", "ExternalGUID", "IsToBePrinted", "ListID", "Memo",
|
|
49
|
+
# "OwnerID", "PayeeEntityRef", "RefNumber", "SalesTaxPaymentCheckLineRet", "TimeCreated",
|
|
50
|
+
# "TimeModified", "TxnDate", "TxnID", "TxnNumber">)
|
|
51
|
+
# - `is_to_be_printed` (Boolean): If `is_to_be_printed` is true, QuickBooks queues the form
|
|
52
|
+
# for later printing. It does not print immediately; printing is still a user action in
|
|
53
|
+
# QuickBooks.
|
|
54
|
+
# - `memo` (String): Additional information.
|
|
55
|
+
# - `payee_entity_ref` (Hash, required): `payee_entity_ref` identifies the payee (customer,
|
|
56
|
+
# vendor, employee, or Other Name). If both `full_name` and `list_id` are provided,
|
|
57
|
+
# `full_name` is ignored.
|
|
58
|
+
# - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
|
|
59
|
+
# object. The `full_name` is the name prefixed by the names of each ancestor, for example
|
|
60
|
+
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
61
|
+
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
62
|
+
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
63
|
+
# type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
|
|
64
|
+
# request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
65
|
+
# - `ref_number` (String): `ref_number` is a user-managed transaction reference (for example,
|
|
66
|
+
# a check number). It can be edited and is not guaranteed to be globally unique. Some
|
|
67
|
+
# transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences
|
|
68
|
+
# and numbering state.
|
|
69
|
+
# - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
|
|
70
|
+
# `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
|
|
71
|
+
# webhook already carries the request's `id`.
|
|
72
|
+
# - `sales_tax_payment_check_line_add` (Array<Hash>, required)
|
|
73
|
+
# - `amount` (Numeric, required): A monetary amount.
|
|
74
|
+
# - `item_sales_tax_ref` (Hash): An ItemSalesTax entry represents one tax rate paid to one
|
|
75
|
+
# tax agency. Use it when a transaction needs a single tax calculation. For multi-rate
|
|
76
|
+
# scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided
|
|
77
|
+
# for `item_sales_tax_ref`, `list_id` is used.
|
|
78
|
+
# - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
|
|
79
|
+
# object. The `full_name` is the name prefixed by the names of each ancestor, for
|
|
80
|
+
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
81
|
+
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
82
|
+
# assigns `list_id` when the object is created. `list_id` values are unique within a
|
|
83
|
+
# list type, not globally across all lists. If both `full_name` and `list_id` are
|
|
84
|
+
# supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
85
|
+
# - `txn_date` (String, required): The date of the transaction. In some cases, if you leave
|
|
86
|
+
# `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the
|
|
87
|
+
# last-saved transaction of the same type.
|
|
88
|
+
#
|
|
89
|
+
# @param connection_id [String]
|
|
90
|
+
# @param params [Hash] the fields above
|
|
91
|
+
# @param webhook_url [String] where QuBe Sync sends the answer
|
|
92
|
+
# @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
|
|
93
|
+
# @return [Hash] the queued request
|
|
94
|
+
# @see https://docs.qubesync.com/api-reference/v2/sales-tax-payment-checks/create-sales-tax-payment-check
|
|
95
|
+
def create(connection_id, params = {}, webhook_url:, idempotency_key: nil)
|
|
96
|
+
queue("sales_tax_payment_check.create", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# List sales tax payment checks: GET /connections/{connection_id}/sales-tax-payment-checks
|
|
100
|
+
# (`sales_tax_payment_check.query`).
|
|
101
|
+
#
|
|
102
|
+
# QuickBooks answers in pages: one webhook per page, each with its `page`, the last with
|
|
103
|
+
# `iteration_state` `done`.
|
|
104
|
+
#
|
|
105
|
+
# Params, sent as the query string:
|
|
106
|
+
# - `account_filter` (Hash): Filters according to the account name or `list_id`. If the “Use
|
|
107
|
+
# account numbers” preference is enabled in the QuickBooks company file, you can specify an
|
|
108
|
+
# account number (instead of an account name) for `full_name` and get the account you’re
|
|
109
|
+
# looking for. But if numbers have been used as account names, confusion could arise. Choose
|
|
110
|
+
# at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set
|
|
111
|
+
# (`account_filter`, `entity_filter`, `item_filter`, `max_returned`,
|
|
112
|
+
# `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`,
|
|
113
|
+
# `txn_date_range_filter`). Members of a set combine with each other, not with the other
|
|
114
|
+
# choices.
|
|
115
|
+
# Give at most one of: `list_id`, or `full_name`, or `list_id_with_children`, or
|
|
116
|
+
# `full_name_with_children`.
|
|
117
|
+
# - `full_name` (Array<String>): `full_name` (along with `list_id`) is a way to identify a
|
|
118
|
+
# list object. The `full_name` is the name prefixed by the names of each ancestor, for
|
|
119
|
+
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
120
|
+
# - `full_name_with_children` (String): Allows you to filter for data that relates to the
|
|
121
|
+
# specified object and its descendants. For names that don’t have children,
|
|
122
|
+
# `full_name_with_children` is exactly the same as `full_name`.
|
|
123
|
+
# - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
|
|
124
|
+
# QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
|
|
125
|
+
# within a list type, not globally across all lists. If both `full_name` and `list_id` are
|
|
126
|
+
# supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
127
|
+
# - `list_id_with_children` (String): Allows you to filter for data that relates to the
|
|
128
|
+
# specified object and its descendants.
|
|
129
|
+
# - `entity_filter` (Hash): An entity refers to a person on the QuickBooks Customer list,
|
|
130
|
+
# Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get
|
|
131
|
+
# information about all the entities that are set up in the QuickBooks file. In an
|
|
132
|
+
# ARRefundCreditCard query, this must be a customer/customer job. Choose at most one of:
|
|
133
|
+
# `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
|
|
134
|
+
# `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`,
|
|
135
|
+
# `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set
|
|
136
|
+
# combine with each other, not with the other choices.
|
|
137
|
+
# Give at most one of: `list_id`, or `full_name`, or `list_id_with_children`, or
|
|
138
|
+
# `full_name_with_children`.
|
|
139
|
+
# - `full_name` (Array<String>): `full_name` (along with `list_id`) is a way to identify a
|
|
140
|
+
# list object. The `full_name` is the name prefixed by the names of each ancestor, for
|
|
141
|
+
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
142
|
+
# - `full_name_with_children` (String): Allows you to filter for data that relates to the
|
|
143
|
+
# specified object and its descendants. For names that don’t have children,
|
|
144
|
+
# `full_name_with_children` is exactly the same as `full_name`.
|
|
145
|
+
# - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
|
|
146
|
+
# QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
|
|
147
|
+
# within a list type, not globally across all lists. If both `full_name` and `list_id` are
|
|
148
|
+
# supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
149
|
+
# - `list_id_with_children` (String): Allows you to filter for data that relates to the
|
|
150
|
+
# specified object and its descendants.
|
|
151
|
+
# - `include_line_items` (Boolean): This filter allows you to omit line items from a query
|
|
152
|
+
# response to get a smaller result. The default value is false, so line items are omitted by
|
|
153
|
+
# default. Set `include_line_items` to true to include line items in the response if you
|
|
154
|
+
# don’t mind getting a larger result.
|
|
155
|
+
# - `include_ret_element` (Array<one of "Address", "AddressBlock", "Amount", "BankAccountRef",
|
|
156
|
+
# "DataExtRet", "EditSequence", "ExternalGUID", "IsToBePrinted", "Memo", "PayeeEntityRef",
|
|
157
|
+
# "RefNumber", "SalesTaxPaymentCheckLineRet", "TimeCreated", "TimeModified", "TxnDate",
|
|
158
|
+
# "TxnID", "TxnNumber">)
|
|
159
|
+
# - `item_filter` (Hash): Filters according to the item name or ID. You can use an ItemQuery
|
|
160
|
+
# request to get information about all the items that are set up in the QuickBooks file.
|
|
161
|
+
# “Items” are line items used for fast entry on sales and purchase forms. They include
|
|
162
|
+
# services and goods that a business buys and sells, as well as special items that perform
|
|
163
|
+
# calculations–for example, subtotal, discount, and sales-tax items. Choose at most one of:
|
|
164
|
+
# `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
|
|
165
|
+
# `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`,
|
|
166
|
+
# `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set
|
|
167
|
+
# combine with each other, not with the other choices.
|
|
168
|
+
# Give at most one of: `list_id`, or `full_name`, or `list_id_with_children`, or
|
|
169
|
+
# `full_name_with_children`.
|
|
170
|
+
# - `full_name` (Array<String>): `full_name` (along with `list_id`) is a way to identify a
|
|
171
|
+
# list object. The `full_name` is the name prefixed by the names of each ancestor, for
|
|
172
|
+
# example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
173
|
+
# - `full_name_with_children` (String): Allows you to filter for data that relates to the
|
|
174
|
+
# specified object and its descendants. For names that don’t have children,
|
|
175
|
+
# `full_name_with_children` is exactly the same as `full_name`.
|
|
176
|
+
# - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
|
|
177
|
+
# QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
|
|
178
|
+
# within a list type, not globally across all lists. If both `full_name` and `list_id` are
|
|
179
|
+
# supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
180
|
+
# - `list_id_with_children` (String): Allows you to filter for data that relates to the
|
|
181
|
+
# specified object and its descendants.
|
|
182
|
+
# - `iterator` (Boolean): Page through every match: QuBe Sync asks QuickBooks for each page in
|
|
183
|
+
# turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by
|
|
184
|
+
# default, with pages of 100 records (25 with `include_line_items`); send `iterator=true`
|
|
185
|
+
# with `max_returned` for another size. Off when you send `iterator=false` (every match in
|
|
186
|
+
# one answer) or `max_returned` alone (at most that many, in one answer). It pages a
|
|
187
|
+
# filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every
|
|
188
|
+
# match comes back in one answer, so leave `iterator` out.
|
|
189
|
+
# - `max_returned` (Integer): Limits the number of objects that a query returns. (To get a
|
|
190
|
+
# count of how many objects could possibly be returned, use the `meta_data` query
|
|
191
|
+
# attribute.) If you include a `max_returned` value, it must be at least 1. The page size,
|
|
192
|
+
# with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap
|
|
193
|
+
# instead: at most this many records come back, in one answer, and QuickBooks doesn't say
|
|
194
|
+
# whether more matched. Choose at most one of: `txn_id`, or `ref_number`, or
|
|
195
|
+
# `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`,
|
|
196
|
+
# `max_returned`, `modified_date_range_filter`, `ref_number_filter`,
|
|
197
|
+
# `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each
|
|
198
|
+
# other, not with the other choices.
|
|
199
|
+
# - `meta_data` (one of "MetaDataAndResponseData", "MetaDataOnly", "NoMetaData"): Use the
|
|
200
|
+
# `meta_data` attribute to control whether query responses include counts. Options are
|
|
201
|
+
# NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus
|
|
202
|
+
# objects). Counts are approximate and may vary slightly if records are created or deleted
|
|
203
|
+
# during processing.
|
|
204
|
+
# - `modified_date_range_filter` (Hash): Filters according to the dates when transactions were
|
|
205
|
+
# last modified. The `modified_date_range_filter` aggregate isn’t required to contain any
|
|
206
|
+
# elements, but if it is empty, we recommend that you leave it out altogether. Note that the
|
|
207
|
+
# time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in
|
|
208
|
+
# qbXML version 1.0 or 1.1. Choose at most one of: `txn_id`, or `ref_number`, or
|
|
209
|
+
# `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`,
|
|
210
|
+
# `max_returned`, `modified_date_range_filter`, `ref_number_filter`,
|
|
211
|
+
# `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each
|
|
212
|
+
# other, not with the other choices.
|
|
213
|
+
# - `from_modified_date` (String): Filters results to objects modified on or after this
|
|
214
|
+
# timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
|
|
215
|
+
# date is provided, time defaults to 00:00:00.
|
|
216
|
+
# - `to_modified_date` (String): Filters results to objects modified on or before this
|
|
217
|
+
# timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
|
|
218
|
+
# date is provided, time defaults to end-of-day (23:59:59).
|
|
219
|
+
# - `owner_id` (Array<String>): `owner_id` identifies who owns the data extension. Use 0 for
|
|
220
|
+
# QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned
|
|
221
|
+
# by an app. Keep private GUIDs confidential unless you intentionally share extensions
|
|
222
|
+
# across apps. If you do share them, both apps must use the same `owner_id` and
|
|
223
|
+
# `data_ext_name`, because that pair uniquely identifies the extension.
|
|
224
|
+
# - `ref_number` (Array<String>): `ref_number` is a user-managed transaction reference (for
|
|
225
|
+
# example, a check number). It can be edited and is not guaranteed to be globally unique.
|
|
226
|
+
# Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks
|
|
227
|
+
# preferences and numbering state. Choose at most one of: `txn_id`, or `ref_number`, or
|
|
228
|
+
# `ref_number_case_sensitive`, or the set (`account_filter`, `entity_filter`, `item_filter`,
|
|
229
|
+
# `max_returned`, `modified_date_range_filter`, `ref_number_filter`,
|
|
230
|
+
# `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each
|
|
231
|
+
# other, not with the other choices.
|
|
232
|
+
# - `ref_number_case_sensitive` (Array<String>): Choose at most one of: `txn_id`, or
|
|
233
|
+
# `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
|
|
234
|
+
# `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`,
|
|
235
|
+
# `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set
|
|
236
|
+
# combine with each other, not with the other choices.
|
|
237
|
+
# - `ref_number_filter` (Hash): Filters by `ref_number` range. Numeric-only bounds are
|
|
238
|
+
# compared numerically; otherwise comparison is lexicographic. Choose at most one of:
|
|
239
|
+
# `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
|
|
240
|
+
# `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`,
|
|
241
|
+
# `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set
|
|
242
|
+
# combine with each other, not with the other choices.
|
|
243
|
+
# - `match_criterion` (one of "Contains", "EndsWith", "StartsWith", required): The criterion
|
|
244
|
+
# to match.
|
|
245
|
+
# - `ref_number` (String, required): `ref_number` is a user-managed transaction reference
|
|
246
|
+
# (for example, a check number). It can be edited and is not guaranteed to be globally
|
|
247
|
+
# unique. Some transaction types auto-populate `ref_number` when omitted, based on
|
|
248
|
+
# QuickBooks preferences and numbering state.
|
|
249
|
+
# - `ref_number_range_filter` (Hash): Filters by `ref_number` range. Numeric-only bounds are
|
|
250
|
+
# compared numerically; otherwise comparison is lexicographic. Choose at most one of:
|
|
251
|
+
# `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`,
|
|
252
|
+
# `entity_filter`, `item_filter`, `max_returned`, `modified_date_range_filter`,
|
|
253
|
+
# `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set
|
|
254
|
+
# combine with each other, not with the other choices.
|
|
255
|
+
# - `from_ref_number` (String): The first `ref_number` in the search range. If
|
|
256
|
+
# `from_ref_number` is omitted, the range will begin with first number on the list.
|
|
257
|
+
# - `to_ref_number` (String): The final `ref_number` in the search range. If `to_ref_number`
|
|
258
|
+
# is omitted, the range will end with last number on the list.
|
|
259
|
+
# - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
|
|
260
|
+
# `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
|
|
261
|
+
# webhook already carries the request's `id`.
|
|
262
|
+
# - `txn_date_range_filter` (Hash): Filters according to the original transaction dates.
|
|
263
|
+
# Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the
|
|
264
|
+
# set (`account_filter`, `entity_filter`, `item_filter`, `max_returned`,
|
|
265
|
+
# `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`,
|
|
266
|
+
# `txn_date_range_filter`). Members of a set combine with each other, not with the other
|
|
267
|
+
# choices.
|
|
268
|
+
# Give at most one of: `from_txn_date` with `to_txn_date`, or `date_macro`.
|
|
269
|
+
# - `date_macro` (one of "All", "LastCalendarQuarter", "LastCalendarQuarterToDate",
|
|
270
|
+
# "LastCalendarYear", "LastCalendarYearToDate", "LastFiscalQuarter",
|
|
271
|
+
# "LastFiscalQuarterToDate", "LastFiscalYear", "LastFiscalYearToDate", "LastMonth",
|
|
272
|
+
# "LastMonthToDate", "LastWeek", "LastWeekToDate", "NextCalendarQuarter",
|
|
273
|
+
# "NextCalendarYear", "NextFiscalQuarter", "NextFiscalYear", "NextFourWeeks", "NextMonth",
|
|
274
|
+
# "NextWeek", "ThisCalendarQuarter", "ThisCalendarQuarterToDate", "ThisCalendarYear",
|
|
275
|
+
# "ThisCalendarYearToDate", "ThisFiscalQuarter", "ThisFiscalQuarterToDate",
|
|
276
|
+
# "ThisFiscalYear", "ThisFiscalYearToDate", "ThisMonth", "ThisMonthToDate", "ThisWeek",
|
|
277
|
+
# "ThisWeekToDate", "Today", "Yesterday"): `date_macro` filters by transaction date (not
|
|
278
|
+
# last-modified date). Do not combine `date_macro` with
|
|
279
|
+
# `from_modified_date`/`to_modified_date` in the same query filter set.
|
|
280
|
+
# - `from_txn_date` (String): Selects transactions created on or after this date. Both
|
|
281
|
+
# `from_txn_date` and `to_txn_date` must be between 01/01/1901 and 12/31/9999.If you omit
|
|
282
|
+
# `from_txn_date`, it will be set to 1970-01-01 (1969-12-31 PST).
|
|
283
|
+
# - `to_txn_date` (String): Selects transactions created on or before this date. Both
|
|
284
|
+
# `to_txn_date` and `from_txn_date` must be between 01/01/1901 and 12/31/9999. If you omit
|
|
285
|
+
# `to_txn_date`, it will be set to 2038-01-19 (2038-01-18 PST).
|
|
286
|
+
# - `txn_id` (Array<String>): `txn_id` is the unique QuickBooks identifier for a transaction.
|
|
287
|
+
# Use it to reference that transaction in later requests. `txn_id` values are
|
|
288
|
+
# transaction-specific and should not be reused across unrelated transaction types. Choose
|
|
289
|
+
# at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set
|
|
290
|
+
# (`account_filter`, `entity_filter`, `item_filter`, `max_returned`,
|
|
291
|
+
# `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`,
|
|
292
|
+
# `txn_date_range_filter`). Members of a set combine with each other, not with the other
|
|
293
|
+
# choices.
|
|
294
|
+
#
|
|
295
|
+
# @param connection_id [String]
|
|
296
|
+
# @param params [Hash] the fields above
|
|
297
|
+
# @param webhook_url [String] where QuBe Sync sends the answer
|
|
298
|
+
# @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
|
|
299
|
+
# @return [Hash] the queued request
|
|
300
|
+
# @see https://docs.qubesync.com/api-reference/v2/sales-tax-payment-checks/list-sales-tax-payment-checks
|
|
301
|
+
def query(connection_id, params = {}, webhook_url:, idempotency_key: nil)
|
|
302
|
+
queue("sales_tax_payment_check.query", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Update sales tax payment check: PUT /connections/{connection_id}/sales-tax-payment-checks
|
|
306
|
+
# (`sales_tax_payment_check.update`).
|
|
307
|
+
#
|
|
308
|
+
# QuickBooks answers in one webhook.
|
|
309
|
+
#
|
|
310
|
+
# Params, sent as the JSON body:
|
|
311
|
+
# - `address` (Hash): If an address request fails, some combination of address fields might be
|
|
312
|
+
# too long. In a Check, BillPaymentCheck, or SalesTaxPaymentCheck message, Address is the
|
|
313
|
+
# address that will print on the check.
|
|
314
|
+
# - `addr1` (String): The first line of an address.
|
|
315
|
+
# - `addr2` (String): The second line of an address (if a second line is needed).
|
|
316
|
+
# - `addr3` (String): The third line of an address (if a third line is needed).
|
|
317
|
+
# - `addr4` (String): The fourth line of an address (if a fourth line is needed).
|
|
318
|
+
# - `addr5` (String): The fifth line of an address (if a fifth line is needed).
|
|
319
|
+
# - `city` (String): The city name in an address.
|
|
320
|
+
# - `country` (String): The country name in an address, or, in returned Host information
|
|
321
|
+
# (HostRet or HostInfo), the country for which this edition of QuickBooks was designed.
|
|
322
|
+
# (Possible values are US, CA, UK, and AU.)
|
|
323
|
+
# - `note` (String): In a BillAddress or ShipAddress aggregate, the Note field value is
|
|
324
|
+
# written at the bottom of the address in the form in which it appears, such as the
|
|
325
|
+
# invoice form.
|
|
326
|
+
# - `postal_code` (String): The postal code in an address.
|
|
327
|
+
# - `state` (String): The state name in an address.
|
|
328
|
+
# - `bank_account_ref` (Hash): Refers to the account from which the funds are being drawn for
|
|
329
|
+
# this check, for example, Checking or Savings. If a `bank_account_ref` aggregate includes
|
|
330
|
+
# both `full_name` and `list_id`, `full_name` will be ignored.
|
|
331
|
+
# - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
|
|
332
|
+
# object. The `full_name` is the name prefixed by the names of each ancestor, for example
|
|
333
|
+
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
334
|
+
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
335
|
+
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
336
|
+
# type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
|
|
337
|
+
# request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
338
|
+
# - `edit_sequence` (String, required): `edit_sequence` is a server-generated revision token.
|
|
339
|
+
# It changes each time the object is updated. To modify an existing object, you must send
|
|
340
|
+
# the current `edit_sequence`. If your value is stale, the update is rejected to prevent
|
|
341
|
+
# overwriting newer changes.
|
|
342
|
+
# - `include_ret_element` (Array<one of "Address", "AddressBlock", "Amount", "BankAccountRef",
|
|
343
|
+
# "DataExtRet", "EditSequence", "ExternalGUID", "IsToBePrinted", "ListID", "Memo",
|
|
344
|
+
# "OwnerID", "PayeeEntityRef", "RefNumber", "SalesTaxPaymentCheckLineRet", "TimeCreated",
|
|
345
|
+
# "TimeModified", "TxnDate", "TxnID", "TxnNumber">)
|
|
346
|
+
# - `is_to_be_printed` (Boolean): If `is_to_be_printed` is true, QuickBooks queues the form
|
|
347
|
+
# for later printing. It does not print immediately; printing is still a user action in
|
|
348
|
+
# QuickBooks. Choose at most one of: `is_to_be_printed`, or `ref_number`.
|
|
349
|
+
# - `memo` (String): Additional information.
|
|
350
|
+
# - `ref_number` (String): `ref_number` is a user-managed transaction reference (for example,
|
|
351
|
+
# a check number). It can be edited and is not guaranteed to be globally unique. Some
|
|
352
|
+
# transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences
|
|
353
|
+
# and numbering state. Choose at most one of: `is_to_be_printed`, or `ref_number`.
|
|
354
|
+
# - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
|
|
355
|
+
# `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
|
|
356
|
+
# webhook already carries the request's `id`.
|
|
357
|
+
# - `txn_date` (String): The date of the transaction. In some cases, if you leave `txn_date`
|
|
358
|
+
# out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved
|
|
359
|
+
# transaction of the same type.
|
|
360
|
+
# - `txn_id` (String, required): `txn_id` is the unique QuickBooks identifier for a
|
|
361
|
+
# transaction. Use it to reference that transaction in later requests. `txn_id` values are
|
|
362
|
+
# transaction-specific and should not be reused across unrelated transaction types.
|
|
363
|
+
#
|
|
364
|
+
# @param connection_id [String]
|
|
365
|
+
# @param params [Hash] the fields above
|
|
366
|
+
# @param webhook_url [String] where QuBe Sync sends the answer
|
|
367
|
+
# @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
|
|
368
|
+
# @return [Hash] the queued request
|
|
369
|
+
# @see https://docs.qubesync.com/api-reference/v2/sales-tax-payment-checks/update-sales-tax-payment-check
|
|
370
|
+
def update(connection_id, params = {}, webhook_url:, idempotency_key: nil)
|
|
371
|
+
queue("sales_tax_payment_check.update", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
|
|
372
|
+
end
|
|
373
|
+
end
|
|
374
|
+
end
|
|
375
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
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 sales tax return operations, reached as `client.sales_tax_return`. Each queues a request and
|
|
7
|
+
# returns it (the response's `data`); the answer comes to `webhook_url`.
|
|
8
|
+
class SalesTaxReturn < Base
|
|
9
|
+
# List sales tax returns: GET /connections/{connection_id}/sales-tax-returns
|
|
10
|
+
# (`sales_tax_return.query`).
|
|
11
|
+
#
|
|
12
|
+
# QuickBooks answers in one webhook.
|
|
13
|
+
#
|
|
14
|
+
# Params, sent as the query string:
|
|
15
|
+
# - `meta_data` (one of "MetaDataAndResponseData", "MetaDataOnly", "NoMetaData"): Use the
|
|
16
|
+
# `meta_data` attribute to control whether query responses include counts. Options are
|
|
17
|
+
# NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus
|
|
18
|
+
# objects). Counts are approximate and may vary slightly if records are created or deleted
|
|
19
|
+
# during processing.
|
|
20
|
+
# - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
|
|
21
|
+
# `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
|
|
22
|
+
# webhook already carries the request's `id`.
|
|
23
|
+
#
|
|
24
|
+
# @param connection_id [String]
|
|
25
|
+
# @param params [Hash] the fields above
|
|
26
|
+
# @param webhook_url [String] where QuBe Sync sends the answer
|
|
27
|
+
# @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
|
|
28
|
+
# @return [Hash] the queued request
|
|
29
|
+
# @see https://docs.qubesync.com/api-reference/v2/sales-tax-returns/list-sales-tax-returns
|
|
30
|
+
def query(connection_id, params = {}, webhook_url:, idempotency_key: nil)
|
|
31
|
+
queue("sales_tax_return.query", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
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 sales tax return line operations, reached as `client.sales_tax_return_line`. Each queues a request and
|
|
7
|
+
# returns it (the response's `data`); the answer comes to `webhook_url`.
|
|
8
|
+
class SalesTaxReturnLine < Base
|
|
9
|
+
# List sales tax return lines: GET /connections/{connection_id}/sales-tax-return-lines
|
|
10
|
+
# (`sales_tax_return_line.query`).
|
|
11
|
+
#
|
|
12
|
+
# QuickBooks answers in one webhook.
|
|
13
|
+
#
|
|
14
|
+
# Params, sent as the query string:
|
|
15
|
+
# - `meta_data` (one of "MetaDataAndResponseData", "MetaDataOnly", "NoMetaData"): Use the
|
|
16
|
+
# `meta_data` attribute to control whether query responses include counts. Options are
|
|
17
|
+
# NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus
|
|
18
|
+
# objects). Counts are approximate and may vary slightly if records are created or deleted
|
|
19
|
+
# during processing.
|
|
20
|
+
# - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
|
|
21
|
+
# `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
|
|
22
|
+
# webhook already carries the request's `id`.
|
|
23
|
+
# - `tax_agency_vendor_ref` (Array<Hash>, required)
|
|
24
|
+
# - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
|
|
25
|
+
# object. The `full_name` is the name prefixed by the names of each ancestor, for example
|
|
26
|
+
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
27
|
+
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
28
|
+
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
29
|
+
# type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
|
|
30
|
+
# request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
31
|
+
#
|
|
32
|
+
# @param connection_id [String]
|
|
33
|
+
# @param params [Hash] the fields above
|
|
34
|
+
# @param webhook_url [String] where QuBe Sync sends the answer
|
|
35
|
+
# @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
|
|
36
|
+
# @return [Hash] the queued request
|
|
37
|
+
# @see https://docs.qubesync.com/api-reference/v2/sales-tax-return-lines/list-sales-tax-return-lines
|
|
38
|
+
def query(connection_id, params = {}, webhook_url:, idempotency_key: nil)
|
|
39
|
+
queue("sales_tax_return_line.query", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,116 @@
|
|
|
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 ship method operations, reached as `client.ship_method`. Each queues a request and
|
|
7
|
+
# returns it (the response's `data`); the answer comes to `webhook_url`.
|
|
8
|
+
class ShipMethod < Base
|
|
9
|
+
# Create ship method: POST /connections/{connection_id}/ship-methods (`ship_method.create`).
|
|
10
|
+
#
|
|
11
|
+
# QuickBooks answers in one webhook.
|
|
12
|
+
#
|
|
13
|
+
# Params, sent as the JSON body:
|
|
14
|
+
# - `include_ret_element` (Array<one of "EditSequence", "ExternalGUID", "IsActive", "ListID",
|
|
15
|
+
# "Name", "OwnerID", "TimeCreated", "TimeModified", "TxnID", "TxnNumber">)
|
|
16
|
+
# - `is_active` (Boolean): If `is_active` is true, this object is currently enabled for use by
|
|
17
|
+
# QuickBooks. The default value is true.
|
|
18
|
+
# - `name` (String, required): Name is the case-insensitive short name of a list object
|
|
19
|
+
# (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can
|
|
20
|
+
# reuse the same Name in different branches because FullName remains distinct.
|
|
21
|
+
# - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
|
|
22
|
+
# `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
|
|
23
|
+
# webhook already carries the request's `id`.
|
|
24
|
+
#
|
|
25
|
+
# @param connection_id [String]
|
|
26
|
+
# @param params [Hash] the fields above
|
|
27
|
+
# @param webhook_url [String] where QuBe Sync sends the answer
|
|
28
|
+
# @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
|
|
29
|
+
# @return [Hash] the queued request
|
|
30
|
+
# @see https://docs.qubesync.com/api-reference/v2/ship-methods/create-ship-method
|
|
31
|
+
def create(connection_id, params = {}, webhook_url:, idempotency_key: nil)
|
|
32
|
+
queue("ship_method.create", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# List ship methods: GET /connections/{connection_id}/ship-methods (`ship_method.query`).
|
|
36
|
+
#
|
|
37
|
+
# QuickBooks answers in one webhook.
|
|
38
|
+
#
|
|
39
|
+
# Params, sent as the query string:
|
|
40
|
+
# - `active_status` (one of "ActiveOnly", "All", "InactiveOnly"): Used in filters to select
|
|
41
|
+
# list objects based on whether or not they are currently enabled for use by QuickBooks. The
|
|
42
|
+
# default value is asActiveOnly, which selects only list objects that are active. Choose at
|
|
43
|
+
# most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
|
|
44
|
+
# `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
|
|
45
|
+
# combine with each other, not with the other choices.
|
|
46
|
+
# - `from_modified_date` (String): Filters results to objects modified on or after this
|
|
47
|
+
# timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
|
|
48
|
+
# date is provided, time defaults to 00:00:00. Choose at most one of: `list_id`, or
|
|
49
|
+
# `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`,
|
|
50
|
+
# `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with
|
|
51
|
+
# each other, not with the other choices.
|
|
52
|
+
# - `full_name` (Array<String>): Choose at most one of: `list_id`, or `full_name`, or the set
|
|
53
|
+
# (`active_status`, `from_modified_date`, `max_returned`, `name_filter`,
|
|
54
|
+
# `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not
|
|
55
|
+
# with the other choices.
|
|
56
|
+
# - `include_ret_element` (Array<one of "EditSequence", "IsActive", "ListID", "Name",
|
|
57
|
+
# "TimeCreated", "TimeModified">)
|
|
58
|
+
# - `list_id` (Array<String>): `list_id` and `full_name` both identify a list object.
|
|
59
|
+
# QuickBooks assigns `list_id` when the object is created. `list_id` values are unique
|
|
60
|
+
# within a list type, not globally across all lists. If both `full_name` and `list_id` are
|
|
61
|
+
# supplied in a request, QuickBooks uses `list_id` and ignores `full_name`. Choose at most
|
|
62
|
+
# one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
|
|
63
|
+
# `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
|
|
64
|
+
# combine with each other, not with the other choices.
|
|
65
|
+
# - `max_returned` (Integer): Limits the number of objects that a query returns. (To get a
|
|
66
|
+
# count of how many objects could possibly be returned, use the `meta_data` query
|
|
67
|
+
# attribute.) If you include a `max_returned` value, it must be at least 1. QuickBooks
|
|
68
|
+
# doesn't page this query: at most this many records come back, in one answer, with no sign
|
|
69
|
+
# of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the
|
|
70
|
+
# Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type`
|
|
71
|
+
# `response_too_large`), so narrow a large one with its filters. Choose at most one of:
|
|
72
|
+
# `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
|
|
73
|
+
# `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
|
|
74
|
+
# combine with each other, not with the other choices.
|
|
75
|
+
# - `meta_data` (one of "MetaDataAndResponseData", "MetaDataOnly", "NoMetaData"): Use the
|
|
76
|
+
# `meta_data` attribute to control whether query responses include counts. Options are
|
|
77
|
+
# NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus
|
|
78
|
+
# objects). Counts are approximate and may vary slightly if records are created or deleted
|
|
79
|
+
# during processing.
|
|
80
|
+
# - `name_filter` (Hash): Filters according to the object’s Name. Choose at most one of:
|
|
81
|
+
# `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
|
|
82
|
+
# `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
|
|
83
|
+
# combine with each other, not with the other choices.
|
|
84
|
+
# - `match_criterion` (one of "Contains", "EndsWith", "StartsWith", required): The criterion
|
|
85
|
+
# to match.
|
|
86
|
+
# - `name` (String, required): The string to match.
|
|
87
|
+
# - `name_range_filter` (Hash): Filters according to the object’s Name. Choose at most one of:
|
|
88
|
+
# `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
|
|
89
|
+
# `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
|
|
90
|
+
# combine with each other, not with the other choices.
|
|
91
|
+
# - `from_name` (String): The first name or item in the search range. If `from_name` is
|
|
92
|
+
# omitted, the range will begin with first name on the list.
|
|
93
|
+
# - `to_name` (String): The final name or item in the search range. If `to_name` is omitted,
|
|
94
|
+
# the range will end with last name on the list.
|
|
95
|
+
# - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
|
|
96
|
+
# `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
|
|
97
|
+
# webhook already carries the request's `id`.
|
|
98
|
+
# - `to_modified_date` (String): Filters results to objects modified on or before this
|
|
99
|
+
# timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a
|
|
100
|
+
# date is provided, time defaults to end-of-day (23:59:59). Choose at most one of:
|
|
101
|
+
# `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`,
|
|
102
|
+
# `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set
|
|
103
|
+
# combine with each other, not with the other choices.
|
|
104
|
+
#
|
|
105
|
+
# @param connection_id [String]
|
|
106
|
+
# @param params [Hash] the fields above
|
|
107
|
+
# @param webhook_url [String] where QuBe Sync sends the answer
|
|
108
|
+
# @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
|
|
109
|
+
# @return [Hash] the queued request
|
|
110
|
+
# @see https://docs.qubesync.com/api-reference/v2/ship-methods/list-ship-methods
|
|
111
|
+
def query(connection_id, params = {}, webhook_url:, idempotency_key: nil)
|
|
112
|
+
queue("ship_method.query", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
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 special account operations, reached as `client.special_account`. Each queues a request and
|
|
7
|
+
# returns it (the response's `data`); the answer comes to `webhook_url`.
|
|
8
|
+
class SpecialAccount < Base
|
|
9
|
+
# Create special account: POST /connections/{connection_id}/special-accounts
|
|
10
|
+
# (`special_account.create`).
|
|
11
|
+
#
|
|
12
|
+
# QuickBooks answers in one webhook.
|
|
13
|
+
#
|
|
14
|
+
# Params, sent as the JSON body:
|
|
15
|
+
# - `currency_ref` (Hash): A currency record defines how QuickBooks stores and displays a
|
|
16
|
+
# currency. Built-in currency name/code values are fixed; formatting and active status can
|
|
17
|
+
# vary by settings and workflow.
|
|
18
|
+
# - `full_name` (String): `full_name` (along with `list_id`) is a way to identify a list
|
|
19
|
+
# object. The `full_name` is the name prefixed by the names of each ancestor, for example
|
|
20
|
+
# Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
21
|
+
# - `list_id` (String): `list_id` and `full_name` both identify a list object. QuickBooks
|
|
22
|
+
# assigns `list_id` when the object is created. `list_id` values are unique within a list
|
|
23
|
+
# type, not globally across all lists. If both `full_name` and `list_id` are supplied in a
|
|
24
|
+
# request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
25
|
+
# - `include_ret_element` (Array<one of "AccountNumber", "AccountType", "Balance",
|
|
26
|
+
# "BankNumber", "CashFlowClassification", "CurrencyRef", "DataExtRet", "Desc",
|
|
27
|
+
# "DetailAccountType", "EditSequence", "ExternalGUID", "FullName", "IsActive",
|
|
28
|
+
# "IsTaxAccount", "LastCheckNumber", "ListID", "Name", "OwnerID", "ParentRef",
|
|
29
|
+
# "SalesTaxCodeRef", "SpecialAccountType", "Sublevel", "TaxLineInfoRet", "TimeCreated",
|
|
30
|
+
# "TimeModified", "TotalBalance", "TxnID", "TxnNumber">)
|
|
31
|
+
# - `request_id` (String): Your own label for the request, sent to QuickBooks as its qbXML
|
|
32
|
+
# `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's
|
|
33
|
+
# webhook already carries the request's `id`.
|
|
34
|
+
# - `special_account_type` (one of "AccountsPayable", "AccountsReceivable",
|
|
35
|
+
# "CondenseItemAdjustmentExpenses", "CostOfGoodsSold", "DirectDepositLiabilities",
|
|
36
|
+
# "Estimates", "ExchangeGainLoss", "InventoryAssets", "ItemReceiptAccount",
|
|
37
|
+
# "OpeningBalanceEquity", "PayrollExpenses", "PayrollLiabilities", "PettyCash",
|
|
38
|
+
# "PurchaseOrders", "ReconciliationDifferences", "RetainedEarnings", "SalesOrders",
|
|
39
|
+
# "SalesTaxPayable", "UncategorizedExpenses", "UncategorizedIncome", "UndepositedFunds",
|
|
40
|
+
# required): If `special_account_type` returns a value, then QuickBooks automatically
|
|
41
|
+
# created this account when it was needed. Some special accounts can’t be overridden,
|
|
42
|
+
# because QuickBooks uses them exclusively for special purposes.
|
|
43
|
+
#
|
|
44
|
+
# @param connection_id [String]
|
|
45
|
+
# @param params [Hash] the fields above
|
|
46
|
+
# @param webhook_url [String] where QuBe Sync sends the answer
|
|
47
|
+
# @param idempotency_key [String, nil] made for the call when nil, and reused on its retries
|
|
48
|
+
# @return [Hash] the queued request
|
|
49
|
+
# @see https://docs.qubesync.com/api-reference/v2/special-accounts/create-special-account
|
|
50
|
+
def create(connection_id, params = {}, webhook_url:, idempotency_key: nil)
|
|
51
|
+
queue("special_account.create", connection_id, params, webhook_url: webhook_url, idempotency_key: idempotency_key)
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|