qubesync 0.1.0 → 0.2.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.
- package/CHANGELOG.md +38 -2
- package/README.md +188 -5
- package/client.js +660 -0
- package/index.d.ts +211 -1
- package/index.js +5 -1
- package/index.mjs +2 -0
- package/operations/account.d.ts +263 -0
- package/operations/account.js +50 -0
- package/operations/account_tax_line_info.d.ts +31 -0
- package/operations/account_tax_line_info.js +26 -0
- package/operations/aging_report.d.ts +100 -0
- package/operations/aging_report.js +26 -0
- package/operations/alert.d.ts +118 -0
- package/operations/alert.js +50 -0
- package/operations/ar_refund_credit_card.d.ts +201 -0
- package/operations/ar_refund_credit_card.js +38 -0
- package/operations/bar_code.d.ts +40 -0
- package/operations/bar_code.js +26 -0
- package/operations/bill.d.ts +612 -0
- package/operations/bill.js +50 -0
- package/operations/bill_payment_check.d.ts +276 -0
- package/operations/bill_payment_check.js +50 -0
- package/operations/bill_payment_credit_card.d.ts +178 -0
- package/operations/bill_payment_credit_card.js +38 -0
- package/operations/bill_to_pay.d.ts +54 -0
- package/operations/bill_to_pay.js +26 -0
- package/operations/billing_rate.d.ts +159 -0
- package/operations/billing_rate.js +38 -0
- package/operations/budget_summary_report.d.ts +71 -0
- package/operations/budget_summary_report.js +26 -0
- package/operations/build_assembly.d.ts +264 -0
- package/operations/build_assembly.js +50 -0
- package/operations/charge.d.ts +330 -0
- package/operations/charge.js +50 -0
- package/operations/check.d.ts +394 -0
- package/operations/check.js +50 -0
- package/operations/class.d.ts +170 -0
- package/operations/class.js +50 -0
- package/operations/cleared_status.d.ts +43 -0
- package/operations/cleared_status.js +26 -0
- package/operations/client.d.ts +254 -0
- package/operations/company.d.ts +36 -0
- package/operations/company.js +26 -0
- package/operations/company_activity.d.ts +32 -0
- package/operations/company_activity.js +26 -0
- package/operations/credit_card_charge.d.ts +280 -0
- package/operations/credit_card_charge.js +50 -0
- package/operations/credit_card_credit.d.ts +280 -0
- package/operations/credit_card_credit.js +50 -0
- package/operations/credit_memo.d.ts +642 -0
- package/operations/credit_memo.js +50 -0
- package/operations/currency.d.ts +195 -0
- package/operations/currency.js +50 -0
- package/operations/custom_detail_report.d.ts +108 -0
- package/operations/custom_detail_report.js +26 -0
- package/operations/custom_summary_report.d.ts +119 -0
- package/operations/custom_summary_report.js +26 -0
- package/operations/customer.d.ts +639 -0
- package/operations/customer.js +50 -0
- package/operations/customer_msg.d.ts +121 -0
- package/operations/customer_msg.js +38 -0
- package/operations/customer_type.d.ts +127 -0
- package/operations/customer_type.js +38 -0
- package/operations/data_event_recovery_info.d.ts +61 -0
- package/operations/data_event_recovery_info.js +38 -0
- package/operations/data_ext.d.ts +197 -0
- package/operations/data_ext.js +50 -0
- package/operations/data_ext_def.d.ts +173 -0
- package/operations/data_ext_def.js +62 -0
- package/operations/date_driven_terms.d.ts +141 -0
- package/operations/date_driven_terms.js +38 -0
- package/operations/deposit.d.ts +402 -0
- package/operations/deposit.js +50 -0
- package/operations/employee.d.ts +683 -0
- package/operations/employee.js +50 -0
- package/operations/employee_default.d.ts +133 -0
- package/operations/employee_default.js +38 -0
- package/operations/entity.d.ts +96 -0
- package/operations/entity.js +26 -0
- package/operations/estimate.d.ts +590 -0
- package/operations/estimate.js +50 -0
- package/operations/form1099_category_account_mapping.d.ts +89 -0
- package/operations/form1099_category_account_mapping.js +38 -0
- package/operations/general_detail_report.d.ts +108 -0
- package/operations/general_detail_report.js +26 -0
- package/operations/general_summary_report.d.ts +115 -0
- package/operations/general_summary_report.js +26 -0
- package/operations/host.d.ts +43 -0
- package/operations/host.js +26 -0
- package/operations/index.js +397 -0
- package/operations/inventory_adjustment.d.ts +389 -0
- package/operations/inventory_adjustment.js +50 -0
- package/operations/inventory_site.d.ts +247 -0
- package/operations/inventory_site.js +50 -0
- package/operations/invoice.d.ts +682 -0
- package/operations/invoice.js +50 -0
- package/operations/item.d.ts +100 -0
- package/operations/item.js +26 -0
- package/operations/item_assemblies_can_build.d.ts +41 -0
- package/operations/item_assemblies_can_build.js +26 -0
- package/operations/item_discount.d.ts +256 -0
- package/operations/item_discount.js +50 -0
- package/operations/item_fixed_asset.d.ts +382 -0
- package/operations/item_fixed_asset.js +50 -0
- package/operations/item_group.d.ts +236 -0
- package/operations/item_group.js +50 -0
- package/operations/item_inventory.d.ts +350 -0
- package/operations/item_inventory.js +50 -0
- package/operations/item_inventory_assembly.d.ts +368 -0
- package/operations/item_inventory_assembly.js +50 -0
- package/operations/item_non_inventory.d.ts +264 -0
- package/operations/item_non_inventory.js +50 -0
- package/operations/item_other_charge.d.ts +244 -0
- package/operations/item_other_charge.js +50 -0
- package/operations/item_payment.d.ts +220 -0
- package/operations/item_payment.js +50 -0
- package/operations/item_receipt.d.ts +362 -0
- package/operations/item_receipt.js +50 -0
- package/operations/item_sales_tax.d.ts +228 -0
- package/operations/item_sales_tax.js +50 -0
- package/operations/item_sales_tax_group.d.ts +192 -0
- package/operations/item_sales_tax_group.js +50 -0
- package/operations/item_service.d.ts +256 -0
- package/operations/item_service.js +50 -0
- package/operations/item_sites.d.ts +81 -0
- package/operations/item_sites.js +26 -0
- package/operations/item_subtotal.d.ts +188 -0
- package/operations/item_subtotal.js +50 -0
- package/operations/job_report.d.ts +99 -0
- package/operations/job_report.js +26 -0
- package/operations/job_type.d.ts +127 -0
- package/operations/job_type.js +38 -0
- package/operations/journal_entry.d.ts +339 -0
- package/operations/journal_entry.js +50 -0
- package/operations/lead.d.ts +291 -0
- package/operations/lead.js +50 -0
- package/operations/list.d.ts +39 -0
- package/operations/list.js +26 -0
- package/operations/list_deleted.d.ts +44 -0
- package/operations/list_deleted.js +26 -0
- package/operations/list_display.d.ts +65 -0
- package/operations/list_display.js +38 -0
- package/operations/list_merge.d.ts +58 -0
- package/operations/list_merge.js +26 -0
- package/operations/other_name.d.ts +280 -0
- package/operations/other_name.js +50 -0
- package/operations/paycheck.d.ts +82 -0
- package/operations/paycheck.js +26 -0
- package/operations/payment_method.d.ts +131 -0
- package/operations/payment_method.js +38 -0
- package/operations/payroll_detail_report.d.ts +97 -0
- package/operations/payroll_detail_report.js +26 -0
- package/operations/payroll_item.d.ts +83 -0
- package/operations/payroll_item.js +26 -0
- package/operations/payroll_item_addition.d.ts +95 -0
- package/operations/payroll_item_addition.js +38 -0
- package/operations/payroll_item_company_contribution.d.ts +105 -0
- package/operations/payroll_item_company_contribution.js +38 -0
- package/operations/payroll_item_deduction.d.ts +101 -0
- package/operations/payroll_item_deduction.js +38 -0
- package/operations/payroll_item_direct_deposit.d.ts +65 -0
- package/operations/payroll_item_direct_deposit.js +38 -0
- package/operations/payroll_item_non_wage.d.ts +92 -0
- package/operations/payroll_item_non_wage.js +26 -0
- package/operations/payroll_item_tax.d.ts +108 -0
- package/operations/payroll_item_tax.js +38 -0
- package/operations/payroll_item_wage.d.ts +169 -0
- package/operations/payroll_item_wage.js +50 -0
- package/operations/payroll_item_workers_compensation.d.ts +77 -0
- package/operations/payroll_item_workers_compensation.js +38 -0
- package/operations/payroll_last_period.d.ts +31 -0
- package/operations/payroll_last_period.js +26 -0
- package/operations/payroll_liability_adjustment.d.ts +137 -0
- package/operations/payroll_liability_adjustment.js +38 -0
- package/operations/payroll_liability_check.d.ts +82 -0
- package/operations/payroll_liability_check.js +26 -0
- package/operations/payroll_prior_payment.d.ts +126 -0
- package/operations/payroll_prior_payment.js +38 -0
- package/operations/payroll_summary_report.d.ts +107 -0
- package/operations/payroll_summary_report.js +26 -0
- package/operations/payroll_year_to_date_adjustment.d.ts +156 -0
- package/operations/payroll_year_to_date_adjustment.js +38 -0
- package/operations/preferences.d.ts +64 -0
- package/operations/preferences.js +38 -0
- package/operations/price_level.d.ts +234 -0
- package/operations/price_level.js +50 -0
- package/operations/purchase_order.d.ts +620 -0
- package/operations/purchase_order.js +50 -0
- package/operations/qb_command_exec.d.ts +49 -0
- package/operations/qb_command_exec.js +26 -0
- package/operations/receive_payment.d.ts +450 -0
- package/operations/receive_payment.js +50 -0
- package/operations/receive_payment_to_deposit.d.ts +36 -0
- package/operations/receive_payment_to_deposit.js +26 -0
- package/operations/sales_order.d.ts +612 -0
- package/operations/sales_order.js +50 -0
- package/operations/sales_receipt.d.ts +650 -0
- package/operations/sales_receipt.js +50 -0
- package/operations/sales_rep.d.ts +170 -0
- package/operations/sales_rep.js +50 -0
- package/operations/sales_tax_code.d.ts +194 -0
- package/operations/sales_tax_code.js +50 -0
- package/operations/sales_tax_payable.d.ts +42 -0
- package/operations/sales_tax_payable.js +26 -0
- package/operations/sales_tax_payment_check.d.ts +254 -0
- package/operations/sales_tax_payment_check.js +50 -0
- package/operations/sales_tax_return.d.ts +35 -0
- package/operations/sales_tax_return.js +26 -0
- package/operations/sales_tax_return_line.d.ts +36 -0
- package/operations/sales_tax_return_line.js +26 -0
- package/operations/ship_method.d.ts +121 -0
- package/operations/ship_method.js +38 -0
- package/operations/special_account.d.ts +40 -0
- package/operations/special_account.js +26 -0
- package/operations/special_item.d.ts +44 -0
- package/operations/special_item.js +26 -0
- package/operations/standard_terms.d.ts +133 -0
- package/operations/standard_terms.js +38 -0
- package/operations/template.d.ts +36 -0
- package/operations/template.js +26 -0
- package/operations/terms.d.ts +90 -0
- package/operations/terms.js +26 -0
- package/operations/time_report.d.ts +84 -0
- package/operations/time_report.js +26 -0
- package/operations/time_tracking.d.ts +214 -0
- package/operations/time_tracking.js +50 -0
- package/operations/to_do.d.ts +254 -0
- package/operations/to_do.js +50 -0
- package/operations/transaction.d.ts +244 -0
- package/operations/transaction.js +26 -0
- package/operations/transfer.d.ts +178 -0
- package/operations/transfer.js +50 -0
- package/operations/transfer_inventory.d.ts +290 -0
- package/operations/transfer_inventory.js +50 -0
- package/operations/txn.d.ts +39 -0
- package/operations/txn.js +26 -0
- package/operations/txn_deleted.d.ts +44 -0
- package/operations/txn_deleted.js +26 -0
- package/operations/txn_display.d.ts +69 -0
- package/operations/txn_display.js +38 -0
- package/operations/txn_void.d.ts +39 -0
- package/operations/txn_void.js +26 -0
- package/operations/types.d.ts +1259 -0
- package/operations/unit_of_measure_set.d.ts +168 -0
- package/operations/unit_of_measure_set.js +38 -0
- package/operations/vehicle.d.ts +168 -0
- package/operations/vehicle.js +50 -0
- package/operations/vehicle_mileage.d.ts +147 -0
- package/operations/vehicle_mileage.js +38 -0
- package/operations/vendor.d.ts +541 -0
- package/operations/vendor.js +50 -0
- package/operations/vendor_credit.d.ts +365 -0
- package/operations/vendor_credit.js +50 -0
- package/operations/vendor_type.d.ts +127 -0
- package/operations/vendor_type.js +38 -0
- package/operations/workers_comp_code.d.ts +199 -0
- package/operations/workers_comp_code.js +50 -0
- package/package.json +14 -4
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payment method operations. Types: payment_method.d.ts. */
|
|
5
|
+
class PaymentMethod {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create payment method.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payment_method").PaymentMethodCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payment-methods/create-payment-method
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payment_method.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List payment methods.
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./payment_method").PaymentMethodQueryParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/payment-methods/list-payment-methods
|
|
32
|
+
*/
|
|
33
|
+
query(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("payment_method.query", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = { PaymentMethod };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
|
|
3
|
+
import type { Client } from "../index";
|
|
4
|
+
import type { OperationOptions, QueuedRequest, ReportAccountFilter, ReportClassFilter, ReportEntityFilter, ReportItemFilter, ReportModifiedDateRangeFilter, ReportPeriod } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks payroll detail report operations: `qube.payrollDetailReport.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class PayrollDetailReport {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* List payroll detail reports: `GET /connections/{connection_id}/payroll-detail-reports`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the query string.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `display_report`, `include_accounts`, `include_column`, `payroll_detail_report_type` (required), `report_account_filter`, `report_class_filter`, `report_date_macro`, `report_detail_level_filter`, `report_entity_filter`, `report_item_filter`, `report_modified_date_range_filter`, `report_modified_date_range_macro`, `report_open_balance_as_of`, `report_period`, `report_posting_status_filter`, `request_id`, `summarize_rows_by`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-detail-reports/list-payroll-detail-reports
|
|
19
|
+
*/
|
|
20
|
+
query(connectionId: string, params: PayrollDetailReportQueryParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The params of `payroll_detail_report.query`: List payroll detail reports.
|
|
25
|
+
*/
|
|
26
|
+
export interface PayrollDetailReportQueryParams {
|
|
27
|
+
/**
|
|
28
|
+
* Set `display_report` to true to display this report within the QuickBooks UI. (Default is false.) If you want the request to display the report without returning any data to your application, set the responseData attribute to includeNone.
|
|
29
|
+
*/
|
|
30
|
+
display_report?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates whether this report should include all accounts or just those that are currently in use.
|
|
33
|
+
*/
|
|
34
|
+
include_accounts?: "All" | "InUse";
|
|
35
|
+
include_column?: Array<"Account" | "Aging" | "Amount" | "AmountDifference" | "AverageCost" | "BilledDate" | "BillingStatus" | "CalculatedAmount" | "Class" | "ClearedStatus" | "CostPrice" | "Credit" | "Currency" | "Date" | "Debit" | "DeliveryDate" | "DueDate" | "EstimateActive" | "ExchangeRate" | "FOB" | "IncomeSubjectToTax" | "Invoiced" | "Item" | "ItemDesc" | "LastModifiedBy" | "LatestOrPriorState" | "Memo" | "ModifiedTime" | "Name" | "NameAccountNumber" | "NameAddress" | "NameCity" | "NameContact" | "NameEmail" | "NameFax" | "NamePhone" | "NameState" | "NameZip" | "OpenBalance" | "OriginalAmount" | "PONumber" | "PaidAmount" | "PaidStatus" | "PaidThroughDate" | "PaymentMethod" | "PayrollItem" | "PrintStatus" | "ProgressAmount" | "ProgressPercent" | "Quantity" | "QuantityAvailable" | "QuantityOnHand" | "QuantityOnSalesOrder" | "ReceivedQuantity" | "RefNumber" | "RunningBalance" | "SSNOrTaxID" | "SalesRep" | "SalesTaxCode" | "SerialOrLotNumber" | "ShipDate" | "ShipMethod" | "SourceName" | "SplitAccount" | "TaxLine" | "TaxTableVersion" | "Terms" | "TxnID" | "TxnNumber" | "TxnType" | "UnitPrice" | "UserEdit" | "ValueOnHand" | "WageBase" | "WageBaseTips">;
|
|
36
|
+
payroll_detail_report_type: "EmployeeStateTaxesDetail" | "PayrollItemDetail" | "PayrollReviewDetail" | "PayrollTransactionDetail" | "PayrollTransactionsByPayee";
|
|
37
|
+
/**
|
|
38
|
+
* Allows you to query for a specified account type or for specific list elements.
|
|
39
|
+
*/
|
|
40
|
+
report_account_filter?: ReportAccountFilter;
|
|
41
|
+
/**
|
|
42
|
+
* Allows you to query for a specified class. Classes can be used to separate transactions into meaningful categories. (For example, transactions could be classified according to department, business location, or type of work.) In QuickBooks, class tracking is off by default.
|
|
43
|
+
*/
|
|
44
|
+
report_class_filter?: ReportClassFilter;
|
|
45
|
+
/**
|
|
46
|
+
* The time period covered by this report.
|
|
47
|
+
*
|
|
48
|
+
* Choose at most one of: `report_period`, or `report_date_macro`.
|
|
49
|
+
*/
|
|
50
|
+
report_date_macro?: "All" | "LastMonth" | "LastMonthToDate" | "LastQuarter" | "LastQuarterToDate" | "LastWeek" | "LastWeekToDate" | "LastYear" | "LastYearToDate" | "NextFourWeeks" | "NextMonth" | "NextQuarter" | "NextWeek" | "NextYear" | "ThisMonth" | "ThisMonthToDate" | "ThisQuarter" | "ThisQuarterToDate" | "ThisWeek" | "ThisWeekToDate" | "ThisYear" | "ThisYearToDate" | "Today" | "Yesterday";
|
|
51
|
+
/**
|
|
52
|
+
* The level of detail to include in the report.
|
|
53
|
+
*/
|
|
54
|
+
report_detail_level_filter?: "All" | "AllExceptSummary" | "SummaryOnly";
|
|
55
|
+
/**
|
|
56
|
+
* Allows you to query for a specified name type (customer, employee, vendor, or other) or query for specific list elements.
|
|
57
|
+
*/
|
|
58
|
+
report_entity_filter?: ReportEntityFilter;
|
|
59
|
+
/**
|
|
60
|
+
* Allows you to query for a specified item type (for example, discount, inventory, or non-inventory) or query for specific list elements.
|
|
61
|
+
*/
|
|
62
|
+
report_item_filter?: ReportItemFilter;
|
|
63
|
+
/**
|
|
64
|
+
* Returns reports that were modified between these two dates (inclusive). The range of acceptable dates for both `from_report_modified_date` and `to_report_modified_date` is 1970-01-01 to 2038-01-19T03:14:07 (2038-01-18T19:14:07-08:00 PST).
|
|
65
|
+
*
|
|
66
|
+
* Choose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.
|
|
67
|
+
*/
|
|
68
|
+
report_modified_date_range_filter?: ReportModifiedDateRangeFilter;
|
|
69
|
+
/**
|
|
70
|
+
* The time period covered by this report.
|
|
71
|
+
*
|
|
72
|
+
* Choose at most one of: `report_modified_date_range_filter`, or `report_modified_date_range_macro`.
|
|
73
|
+
*/
|
|
74
|
+
report_modified_date_range_macro?: "All" | "LastMonth" | "LastMonthToDate" | "LastQuarter" | "LastQuarterToDate" | "LastWeek" | "LastWeekToDate" | "LastYear" | "LastYearToDate" | "NextFourWeeks" | "NextMonth" | "NextQuarter" | "NextWeek" | "NextYear" | "ThisMonth" | "ThisMonthToDate" | "ThisQuarter" | "ThisQuarterToDate" | "ThisWeek" | "ThisWeekToDate" | "ThisYear" | "ThisYearToDate" | "Today" | "Yesterday";
|
|
75
|
+
/**
|
|
76
|
+
* The report will return open balance information up to the `report_open_balance_as_of` date.
|
|
77
|
+
*/
|
|
78
|
+
report_open_balance_as_of?: "ReportEndDate" | "Today";
|
|
79
|
+
/**
|
|
80
|
+
* If you omit both `to_report_date` and `from_report_date`, the report will cover the current fiscal year to date.
|
|
81
|
+
*
|
|
82
|
+
* Choose at most one of: `report_period`, or `report_date_macro`.
|
|
83
|
+
*/
|
|
84
|
+
report_period?: ReportPeriod;
|
|
85
|
+
/**
|
|
86
|
+
* Allows you to query for posting reports, non-posting reports, or reports that are either one.
|
|
87
|
+
*/
|
|
88
|
+
report_posting_status_filter?: "Either" | "NonPosting" | "Posting";
|
|
89
|
+
/**
|
|
90
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
91
|
+
*/
|
|
92
|
+
request_id?: string;
|
|
93
|
+
/**
|
|
94
|
+
* `summarize_rows_by` (along with IncludeColumnList, in most cases) determines what data is calculated for this report and controls how the rows are organized and labeled. For example, if you set the value to srbAccount, the report’s row labels might be “Checking,” “Savings,” and so on.
|
|
95
|
+
*/
|
|
96
|
+
summarize_rows_by?: "Account" | "BalanceSheet" | "Class" | "Customer" | "CustomerType" | "Day" | "Employee" | "FourWeek" | "HalfMonth" | "IncomeStatement" | "ItemDetail" | "ItemType" | "Month" | "Payee" | "PaymentMethod" | "PayrollItemDetail" | "PayrollYtdDetail" | "Quarter" | "SalesRep" | "SalesTaxCode" | "ShipMethod" | "TaxLine" | "Terms" | "TotalOnly" | "TwoWeek" | "Vendor" | "VendorType" | "Week" | "Year";
|
|
97
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payroll detail report operations. Types: payroll_detail_report.d.ts. */
|
|
5
|
+
class PayrollDetailReport {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* List payroll detail reports.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payroll_detail_report").PayrollDetailReportQueryParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-detail-reports/list-payroll-detail-reports
|
|
20
|
+
*/
|
|
21
|
+
query(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payroll_detail_report.query", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = { PayrollDetailReport };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
|
|
3
|
+
import type { Client } from "../index";
|
|
4
|
+
import type { OperationOptions, QueuedRequest } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks payroll item operations: `qube.payrollItem.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class PayrollItem {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* List payroll items: `GET /connections/{connection_id}/payroll-items`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the query string.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `active_status`, `from_modified_date`, `full_name`, `include_ret_element`, `list_id`, `max_returned`, `meta_data`, `name_filter`, `name_range_filter`, `request_id`, `to_modified_date`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-items/list-payroll-items
|
|
19
|
+
*/
|
|
20
|
+
query(connectionId: string, params: PayrollItemQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* The params of `payroll_item.query`: List payroll items.
|
|
25
|
+
*/
|
|
26
|
+
export interface PayrollItemQueryParams {
|
|
27
|
+
/**
|
|
28
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
29
|
+
*/
|
|
30
|
+
active_status?: "ActiveOnly" | "All" | "InactiveOnly";
|
|
31
|
+
/**
|
|
32
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
33
|
+
*
|
|
34
|
+
* Format: date-time.
|
|
35
|
+
*/
|
|
36
|
+
from_modified_date?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
39
|
+
*/
|
|
40
|
+
full_name?: string[];
|
|
41
|
+
include_ret_element?: Array<"CalculatedBasedOn" | "EditSequence" | "ExpenseAccountRef" | "IsActive" | "IsTrackedByCustJob" | "LiabilityAccountRef" | "LiabilityPaymentSchedule" | "Limit" | "LimitTimePeriod" | "ListID" | "Name" | "NetOrGross" | "OvertimeMultiplier" | "PaymentTemplateRef" | "PayrollItemDetailTypeValue" | "Rate" | "RateChange" | "RatePercent" | "State" | "TaxCalculatedBasedOn" | "Taxability" | "TimeCreated" | "TimeModified" | "VendorAccountNumber" | "VendorRef" | "W2TrackingTypeValue" | "WageType">;
|
|
42
|
+
/**
|
|
43
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
44
|
+
*/
|
|
45
|
+
list_id?: string[];
|
|
46
|
+
/**
|
|
47
|
+
* QuickBooks doesn't page this query: at most this many records come back, in one answer, with no sign of whether more matched. Leave it out for every match, in one answer; one over 4 MB as the Web Connector sends it, about 3 MB of qbXML isn't kept (`error_type` `response_too_large`), so narrow a large one with its filters.
|
|
48
|
+
*
|
|
49
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
50
|
+
*
|
|
51
|
+
* Minimum 1.
|
|
52
|
+
*/
|
|
53
|
+
max_returned?: number;
|
|
54
|
+
meta_data?: "MetaDataAndResponseData" | "MetaDataOnly" | "NoMetaData";
|
|
55
|
+
/**
|
|
56
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
57
|
+
*/
|
|
58
|
+
name_filter?: NameFilterPayrollItem;
|
|
59
|
+
/**
|
|
60
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
61
|
+
*/
|
|
62
|
+
name_range_filter?: NameRangeFilterPayrollItem;
|
|
63
|
+
/**
|
|
64
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
65
|
+
*/
|
|
66
|
+
request_id?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
69
|
+
*
|
|
70
|
+
* Format: date-time.
|
|
71
|
+
*/
|
|
72
|
+
to_modified_date?: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface NameFilterPayrollItem {
|
|
76
|
+
match_criterion: "Contains" | "EndsWith" | "StartsWith";
|
|
77
|
+
name: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export interface NameRangeFilterPayrollItem {
|
|
81
|
+
from_name?: string;
|
|
82
|
+
to_name?: string;
|
|
83
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payroll item operations. Types: payroll_item.d.ts. */
|
|
5
|
+
class PayrollItem {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* List payroll items.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payroll_item").PayrollItemQueryParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-items/list-payroll-items
|
|
20
|
+
*/
|
|
21
|
+
query(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payroll_item.query", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = { PayrollItem };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
|
|
3
|
+
import type { Client } from "../index";
|
|
4
|
+
import type { OperationOptions, QueuedRequest, ClassRef, Taxability } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks payroll item addition operations: `qube.payrollItemAddition.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class PayrollItemAddition {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create payroll item addition: `POST /connections/{connection_id}/payroll-item-additions`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `calculated_based_on`, `expense_account_ref` (required), `include_ret_element`, `is_active`, `is_tracked_by_cust_job`, `limit`, `limit_time_period`, `name` (required), `net_or_gross`, `payroll_item_detail_type_value`, `rate`, `rate_percent`, `request_id`, `taxability`, `w2_tracking_type_value`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-additions/create-payroll-item-addition
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: PayrollItemAdditionCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* Update payroll item addition: `PUT /connections/{connection_id}/payroll-item-additions`, queued for QuickBooks.
|
|
23
|
+
*
|
|
24
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
25
|
+
* Params go in the JSON body.
|
|
26
|
+
*
|
|
27
|
+
* Fields: `calculated_based_on`, `edit_sequence` (required), `expense_account_ref`, `include_ret_element`, `is_active`, `is_tracked_by_cust_job`, `limit`, `limit_time_period`, `list_id` (required), `name`, `net_or_gross`, `payroll_item_detail_type_value`, `rate`, `rate_percent`, `request_id`, `taxability`, `w2_tracking_type_value`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-additions/update-payroll-item-addition
|
|
31
|
+
*/
|
|
32
|
+
update(connectionId: string, params: PayrollItemAdditionUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The params of `payroll_item_addition.create`: Create payroll item addition.
|
|
37
|
+
*/
|
|
38
|
+
export interface PayrollItemAdditionCreateParams {
|
|
39
|
+
calculated_based_on?: "HoursAll" | "HoursWorked" | "Quantity" | "Rate";
|
|
40
|
+
expense_account_ref: ClassRef;
|
|
41
|
+
include_ret_element?: Array<"CalculatedBasedOn" | "EditSequence" | "ExpenseAccountRef" | "IsActive" | "IsTrackedByCustJob" | "Limit" | "LimitTimePeriod" | "ListID" | "Name" | "NetOrGross" | "PayrollItemDetailTypeValue" | "Rate" | "RatePercent" | "Taxability" | "TimeCreated" | "TimeModified" | "W2TrackingTypeValue">;
|
|
42
|
+
is_active?: boolean;
|
|
43
|
+
is_tracked_by_cust_job?: boolean;
|
|
44
|
+
limit?: number;
|
|
45
|
+
limit_time_period?: "Annual" | "Forever";
|
|
46
|
+
name: string;
|
|
47
|
+
net_or_gross?: "Gross" | "Net";
|
|
48
|
+
payroll_item_detail_type_value?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
51
|
+
*/
|
|
52
|
+
rate?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
55
|
+
*/
|
|
56
|
+
rate_percent?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
59
|
+
*/
|
|
60
|
+
request_id?: string;
|
|
61
|
+
taxability?: Taxability[];
|
|
62
|
+
w2_tracking_type_value?: number;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The params of `payroll_item_addition.update`: Update payroll item addition.
|
|
67
|
+
*/
|
|
68
|
+
export interface PayrollItemAdditionUpdateParams {
|
|
69
|
+
calculated_based_on?: "HoursAll" | "HoursWorked" | "Quantity" | "Rate";
|
|
70
|
+
edit_sequence: string;
|
|
71
|
+
expense_account_ref?: ClassRef;
|
|
72
|
+
include_ret_element?: Array<"CalculatedBasedOn" | "EditSequence" | "ExpenseAccountRef" | "IsActive" | "IsTrackedByCustJob" | "Limit" | "LimitTimePeriod" | "ListID" | "Name" | "NetOrGross" | "PayrollItemDetailTypeValue" | "Rate" | "RatePercent" | "Taxability" | "TimeCreated" | "TimeModified" | "W2TrackingTypeValue">;
|
|
73
|
+
is_active?: boolean;
|
|
74
|
+
is_tracked_by_cust_job?: boolean;
|
|
75
|
+
limit?: number;
|
|
76
|
+
limit_time_period?: "Annual" | "Forever";
|
|
77
|
+
list_id: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
net_or_gross?: "Gross" | "Net";
|
|
80
|
+
payroll_item_detail_type_value?: number;
|
|
81
|
+
/**
|
|
82
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
83
|
+
*/
|
|
84
|
+
rate?: number;
|
|
85
|
+
/**
|
|
86
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
87
|
+
*/
|
|
88
|
+
rate_percent?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
91
|
+
*/
|
|
92
|
+
request_id?: string;
|
|
93
|
+
taxability?: Taxability[];
|
|
94
|
+
w2_tracking_type_value?: number;
|
|
95
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payroll item addition operations. Types: payroll_item_addition.d.ts. */
|
|
5
|
+
class PayrollItemAddition {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create payroll item addition.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payroll_item_addition").PayrollItemAdditionCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-additions/create-payroll-item-addition
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payroll_item_addition.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Update payroll item addition.
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./payroll_item_addition").PayrollItemAdditionUpdateParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-additions/update-payroll-item-addition
|
|
32
|
+
*/
|
|
33
|
+
update(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("payroll_item_addition.update", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = { PayrollItemAddition };
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
|
|
3
|
+
import type { Client } from "../index";
|
|
4
|
+
import type { OperationOptions, QueuedRequest, ClassRef, LiabilityPaymentSchedule, Taxability } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks payroll item company contribution operations: `qube.payrollItemCompanyContribution.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class PayrollItemCompanyContribution {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create payroll item company contribution: `POST /connections/{connection_id}/payroll-item-company-contributions`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `calculated_based_on`, `expense_account_ref` (required), `include_ret_element`, `is_active`, `is_tracked_by_cust_job`, `liability_account_ref` (required), `liability_payment_schedule`, `limit`, `limit_time_period`, `name` (required), `net_or_gross`, `payment_template_ref` (required), `payroll_item_detail_type_value`, `rate`, `rate_percent`, `request_id`, `taxability`, `vendor_account_number`, `vendor_ref`, `w2_tracking_type_value`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-company-contributions/create-payroll-item-company-contribution
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: PayrollItemCompanyContributionCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* Update payroll item company contribution: `PUT /connections/{connection_id}/payroll-item-company-contributions`, queued for QuickBooks.
|
|
23
|
+
*
|
|
24
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
25
|
+
* Params go in the JSON body.
|
|
26
|
+
*
|
|
27
|
+
* Fields: `calculated_based_on`, `edit_sequence` (required), `expense_account_ref`, `include_ret_element`, `is_active`, `is_tracked_by_cust_job`, `liability_account_ref`, `liability_payment_schedule`, `limit`, `limit_time_period`, `list_id` (required), `name`, `net_or_gross`, `payment_template_ref`, `payroll_item_detail_type_value`, `rate`, `rate_percent`, `request_id`, `taxability`, `vendor_account_number`, `vendor_ref`, `w2_tracking_type_value`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-company-contributions/update-payroll-item-company-contribution
|
|
31
|
+
*/
|
|
32
|
+
update(connectionId: string, params: PayrollItemCompanyContributionUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The params of `payroll_item_company_contribution.create`: Create payroll item company contribution.
|
|
37
|
+
*/
|
|
38
|
+
export interface PayrollItemCompanyContributionCreateParams {
|
|
39
|
+
calculated_based_on?: "HoursAll" | "HoursWorked" | "Quantity" | "Rate";
|
|
40
|
+
expense_account_ref: ClassRef;
|
|
41
|
+
include_ret_element?: Array<"CalculatedBasedOn" | "EditSequence" | "ExpenseAccountRef" | "IsActive" | "IsTrackedByCustJob" | "LiabilityAccountRef" | "LiabilityPaymentSchedule" | "Limit" | "LimitTimePeriod" | "ListID" | "Name" | "NetOrGross" | "PaymentTemplateRef" | "PayrollItemDetailTypeValue" | "Rate" | "RatePercent" | "Taxability" | "TimeCreated" | "TimeModified" | "VendorAccountNumber" | "VendorRef" | "W2TrackingTypeValue">;
|
|
42
|
+
is_active?: boolean;
|
|
43
|
+
is_tracked_by_cust_job?: boolean;
|
|
44
|
+
liability_account_ref: ClassRef;
|
|
45
|
+
liability_payment_schedule?: LiabilityPaymentSchedule;
|
|
46
|
+
limit?: number;
|
|
47
|
+
limit_time_period?: "Annual" | "Forever";
|
|
48
|
+
name: string;
|
|
49
|
+
net_or_gross?: "Gross" | "Net";
|
|
50
|
+
payment_template_ref: ClassRef;
|
|
51
|
+
payroll_item_detail_type_value?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
54
|
+
*/
|
|
55
|
+
rate?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
58
|
+
*/
|
|
59
|
+
rate_percent?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
62
|
+
*/
|
|
63
|
+
request_id?: string;
|
|
64
|
+
taxability?: Taxability[];
|
|
65
|
+
vendor_account_number?: string;
|
|
66
|
+
vendor_ref?: ClassRef;
|
|
67
|
+
w2_tracking_type_value?: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The params of `payroll_item_company_contribution.update`: Update payroll item company contribution.
|
|
72
|
+
*/
|
|
73
|
+
export interface PayrollItemCompanyContributionUpdateParams {
|
|
74
|
+
calculated_based_on?: "HoursAll" | "HoursWorked" | "Quantity" | "Rate";
|
|
75
|
+
edit_sequence: string;
|
|
76
|
+
expense_account_ref?: ClassRef;
|
|
77
|
+
include_ret_element?: Array<"CalculatedBasedOn" | "EditSequence" | "ExpenseAccountRef" | "IsActive" | "IsTrackedByCustJob" | "LiabilityAccountRef" | "LiabilityPaymentSchedule" | "Limit" | "LimitTimePeriod" | "ListID" | "Name" | "NetOrGross" | "PaymentTemplateRef" | "PayrollItemDetailTypeValue" | "Rate" | "RatePercent" | "Taxability" | "TimeCreated" | "TimeModified" | "VendorAccountNumber" | "VendorRef" | "W2TrackingTypeValue">;
|
|
78
|
+
is_active?: boolean;
|
|
79
|
+
is_tracked_by_cust_job?: boolean;
|
|
80
|
+
liability_account_ref?: ClassRef;
|
|
81
|
+
liability_payment_schedule?: LiabilityPaymentSchedule;
|
|
82
|
+
limit?: number;
|
|
83
|
+
limit_time_period?: "Annual" | "Forever";
|
|
84
|
+
list_id: string;
|
|
85
|
+
name?: string;
|
|
86
|
+
net_or_gross?: "Gross" | "Net";
|
|
87
|
+
payment_template_ref?: ClassRef;
|
|
88
|
+
payroll_item_detail_type_value?: number;
|
|
89
|
+
/**
|
|
90
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
91
|
+
*/
|
|
92
|
+
rate?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Choose at most one of: `rate`, or `rate_percent`.
|
|
95
|
+
*/
|
|
96
|
+
rate_percent?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Your own label for the request, sent to QuickBooks as its qbXML `requestID` and echoed in the raw answer (`response_xml`); optional, since the answer's webhook already carries the request's `id`.
|
|
99
|
+
*/
|
|
100
|
+
request_id?: string;
|
|
101
|
+
taxability?: Taxability[];
|
|
102
|
+
vendor_account_number?: string;
|
|
103
|
+
vendor_ref?: ClassRef;
|
|
104
|
+
w2_tracking_type_value?: number;
|
|
105
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks payroll item company contribution operations. Types: payroll_item_company_contribution.d.ts. */
|
|
5
|
+
class PayrollItemCompanyContribution {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create payroll item company contribution.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./payroll_item_company_contribution").PayrollItemCompanyContributionCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-company-contributions/create-payroll-item-company-contribution
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("payroll_item_company_contribution.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Update payroll item company contribution.
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./payroll_item_company_contribution").PayrollItemCompanyContributionUpdateParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/payroll-item-company-contributions/update-payroll-item-company-contribution
|
|
32
|
+
*/
|
|
33
|
+
update(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("payroll_item_company_contribution.update", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
module.exports = { PayrollItemCompanyContribution };
|