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,220 @@
|
|
|
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, AccountFilter, BarCodeItemDiscount, CurrencyRef, NameFilter, NameRangeFilter } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks item payment operations: `qube.itemPayment.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class ItemPayment {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create item payment: `POST /connections/{connection_id}/item-payments`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `bar_code`, `class_ref`, `deposit_to_account_ref`, `external_guid`, `include_ret_element`, `is_active`, `item_desc`, `name` (required), `payment_method_ref`, `request_id`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-payments/create-item-payment
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: ItemPaymentCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* List item payments: `GET /connections/{connection_id}/item-payments`, queued for QuickBooks.
|
|
23
|
+
*
|
|
24
|
+
* QuickBooks answers in pages: each page comes to `webhookUrl` as its own webhook.
|
|
25
|
+
* Params go in the query string.
|
|
26
|
+
*
|
|
27
|
+
* Fields: `active_status`, `class_filter`, `from_modified_date`, `full_name`, `include_ret_element`, `iterator`, `list_id`, `max_returned`, `meta_data`, `name_filter`, `name_range_filter`, `owner_id`, `request_id`, `to_modified_date`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-payments/list-item-payments
|
|
31
|
+
*/
|
|
32
|
+
query(connectionId: string, params: ItemPaymentQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* Update item payment: `PUT /connections/{connection_id}/item-payments`, queued for QuickBooks.
|
|
35
|
+
*
|
|
36
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
37
|
+
* Params go in the JSON body.
|
|
38
|
+
*
|
|
39
|
+
* Fields: `bar_code`, `class_ref`, `deposit_to_account_ref`, `edit_sequence` (required), `include_ret_element`, `is_active`, `item_desc`, `list_id` (required), `name`, `payment_method_ref`, `request_id`.
|
|
40
|
+
*
|
|
41
|
+
* Resolves to the queued request.
|
|
42
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-payments/update-item-payment
|
|
43
|
+
*/
|
|
44
|
+
update(connectionId: string, params: ItemPaymentUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The params of `item_payment.create`: Create item payment.
|
|
49
|
+
*/
|
|
50
|
+
export interface ItemPaymentCreateParams {
|
|
51
|
+
/**
|
|
52
|
+
* Barcode reference information.
|
|
53
|
+
*/
|
|
54
|
+
bar_code?: BarCodeItemDiscount;
|
|
55
|
+
/**
|
|
56
|
+
* Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.
|
|
57
|
+
*/
|
|
58
|
+
class_ref?: CurrencyRef;
|
|
59
|
+
/**
|
|
60
|
+
* Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
61
|
+
*/
|
|
62
|
+
deposit_to_account_ref?: CurrencyRef;
|
|
63
|
+
/**
|
|
64
|
+
* Allows for the attachment of a user defined GUID value.
|
|
65
|
+
*/
|
|
66
|
+
external_guid?: string;
|
|
67
|
+
include_ret_element?: Array<"BarCodeValue" | "ClassRef" | "DataExtRet" | "DepositToAccountRef" | "EditSequence" | "ExternalGUID" | "IsActive" | "ItemDesc" | "ListID" | "Name" | "OwnerID" | "PaymentMethodRef" | "TimeCreated" | "TimeModified" | "TxnID" | "TxnNumber">;
|
|
68
|
+
/**
|
|
69
|
+
* If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
|
|
70
|
+
*/
|
|
71
|
+
is_active?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* The description that will appear on a sales form when the item is used.
|
|
74
|
+
*/
|
|
75
|
+
item_desc?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
/**
|
|
81
|
+
* `payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.
|
|
82
|
+
*/
|
|
83
|
+
payment_method_ref?: CurrencyRef;
|
|
84
|
+
/**
|
|
85
|
+
* 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`.
|
|
86
|
+
*/
|
|
87
|
+
request_id?: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The params of `item_payment.query`: List item payments.
|
|
92
|
+
*/
|
|
93
|
+
export interface ItemPaymentQueryParams {
|
|
94
|
+
/**
|
|
95
|
+
* Used in filters to select list objects based on whether or not they are currently enabled for use by QuickBooks. The default value is asActiveOnly, which selects only list objects that are active.
|
|
96
|
+
*
|
|
97
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
98
|
+
*/
|
|
99
|
+
active_status?: "ActiveOnly" | "All" | "InactiveOnly";
|
|
100
|
+
/**
|
|
101
|
+
* Filters according to the object’s class.
|
|
102
|
+
*
|
|
103
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
104
|
+
*/
|
|
105
|
+
class_filter?: AccountFilter;
|
|
106
|
+
/**
|
|
107
|
+
* Filters results to objects modified on or after this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to 00:00:00.
|
|
108
|
+
*
|
|
109
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
110
|
+
*
|
|
111
|
+
* Format: date-time.
|
|
112
|
+
*/
|
|
113
|
+
from_modified_date?: string;
|
|
114
|
+
/**
|
|
115
|
+
* `full_name` (along with `list_id`) is a way to identify a list object. The `full_name` is the name prefixed by the names of each ancestor, for example Jones:Kitchen:Cabinets. `full_name` values aren’t case-sensitive.
|
|
116
|
+
*
|
|
117
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
118
|
+
*/
|
|
119
|
+
full_name?: string[];
|
|
120
|
+
include_ret_element?: Array<"BarCodeValue" | "ClassRef" | "DataExtRet" | "DepositToAccountRef" | "EditSequence" | "ExternalGUID" | "IsActive" | "ItemDesc" | "ListID" | "Name" | "PaymentMethodRef" | "TimeCreated" | "TimeModified">;
|
|
121
|
+
/**
|
|
122
|
+
* Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records; send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `full_name` or `list_id` every match comes back in one answer, so leave `iterator` out.
|
|
123
|
+
*/
|
|
124
|
+
iterator?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* `list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list type, not globally across all lists. If both `full_name` and `list_id` are supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
127
|
+
*
|
|
128
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
129
|
+
*/
|
|
130
|
+
list_id?: string[];
|
|
131
|
+
/**
|
|
132
|
+
* Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.
|
|
133
|
+
*
|
|
134
|
+
* The page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.
|
|
135
|
+
*
|
|
136
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
137
|
+
*
|
|
138
|
+
* Minimum 1.
|
|
139
|
+
*/
|
|
140
|
+
max_returned?: number;
|
|
141
|
+
/**
|
|
142
|
+
* Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.
|
|
143
|
+
*/
|
|
144
|
+
meta_data?: "MetaDataAndResponseData" | "MetaDataOnly" | "NoMetaData";
|
|
145
|
+
/**
|
|
146
|
+
* Filters according to the object’s Name.
|
|
147
|
+
*
|
|
148
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
149
|
+
*/
|
|
150
|
+
name_filter?: NameFilter;
|
|
151
|
+
/**
|
|
152
|
+
* Filters according to the object’s Name.
|
|
153
|
+
*
|
|
154
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
155
|
+
*/
|
|
156
|
+
name_range_filter?: NameRangeFilter;
|
|
157
|
+
/**
|
|
158
|
+
* `owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.
|
|
159
|
+
*/
|
|
160
|
+
owner_id?: string[];
|
|
161
|
+
/**
|
|
162
|
+
* 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`.
|
|
163
|
+
*/
|
|
164
|
+
request_id?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Filters results to objects modified on or before this timestamp. QuickBooks Desktop accepts 1970-01-01 through 2038-01-19T03:14:07. If only a date is provided, time defaults to end-of-day (23:59:59).
|
|
167
|
+
*
|
|
168
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `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.
|
|
169
|
+
*
|
|
170
|
+
* Format: date-time.
|
|
171
|
+
*/
|
|
172
|
+
to_modified_date?: string;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The params of `item_payment.update`: Update item payment.
|
|
177
|
+
*/
|
|
178
|
+
export interface ItemPaymentUpdateParams {
|
|
179
|
+
/**
|
|
180
|
+
* Barcode reference information.
|
|
181
|
+
*/
|
|
182
|
+
bar_code?: BarCodeItemDiscount;
|
|
183
|
+
/**
|
|
184
|
+
* Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.
|
|
185
|
+
*/
|
|
186
|
+
class_ref?: CurrencyRef;
|
|
187
|
+
/**
|
|
188
|
+
* Refers to the account where these funds will be (or have been) deposited. In a ReceivePaymentAdd request, the default is Undeposited Funds if this isn’t included in the request. In a request, if a `deposit_to_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
189
|
+
*/
|
|
190
|
+
deposit_to_account_ref?: CurrencyRef;
|
|
191
|
+
/**
|
|
192
|
+
* `edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.
|
|
193
|
+
*/
|
|
194
|
+
edit_sequence: string;
|
|
195
|
+
include_ret_element?: Array<"BarCodeValue" | "ClassRef" | "DataExtRet" | "DepositToAccountRef" | "EditSequence" | "ExternalGUID" | "IsActive" | "ItemDesc" | "ListID" | "Name" | "OwnerID" | "PaymentMethodRef" | "TimeCreated" | "TimeModified" | "TxnID" | "TxnNumber">;
|
|
196
|
+
/**
|
|
197
|
+
* If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
|
|
198
|
+
*/
|
|
199
|
+
is_active?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* The description that will appear on a sales form when the item is used.
|
|
202
|
+
*/
|
|
203
|
+
item_desc?: string;
|
|
204
|
+
/**
|
|
205
|
+
* `list_id` and `full_name` both identify a list object. QuickBooks assigns `list_id` when the object is created. `list_id` values are unique within a list type, not globally across all lists. If both `full_name` and `list_id` are supplied in a request, QuickBooks uses `list_id` and ignores `full_name`.
|
|
206
|
+
*/
|
|
207
|
+
list_id: string;
|
|
208
|
+
/**
|
|
209
|
+
* Name is the case-insensitive short name of a list object (without ancestors). It must be unique within its hierarchy scope. Hierarchical lists can reuse the same Name in different branches because `full_name` remains distinct.
|
|
210
|
+
*/
|
|
211
|
+
name?: string;
|
|
212
|
+
/**
|
|
213
|
+
* `payment_method_ref` identifies how a payment is made (for example, cash, check, or card type). If both `full_name` and `list_id` are provided, `full_name` is ignored.
|
|
214
|
+
*/
|
|
215
|
+
payment_method_ref?: CurrencyRef;
|
|
216
|
+
/**
|
|
217
|
+
* 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`.
|
|
218
|
+
*/
|
|
219
|
+
request_id?: string;
|
|
220
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks item payment operations. Types: item_payment.d.ts. */
|
|
5
|
+
class ItemPayment {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create item payment.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./item_payment").ItemPaymentCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-payments/create-item-payment
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("item_payment.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List item payments (answers in pages, one webhook each).
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./item_payment").ItemPaymentQueryParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-payments/list-item-payments
|
|
32
|
+
*/
|
|
33
|
+
query(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("item_payment.query", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Update item payment.
|
|
39
|
+
* @param {string} connectionId
|
|
40
|
+
* @param {import("./item_payment").ItemPaymentUpdateParams} params
|
|
41
|
+
* @param {import("./types").OperationOptions} options
|
|
42
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
43
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-payments/update-item-payment
|
|
44
|
+
*/
|
|
45
|
+
update(connectionId, params, options) {
|
|
46
|
+
return this.#client.queue("item_payment.update", connectionId, params, options);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = { ItemPayment };
|
|
@@ -0,0 +1,362 @@
|
|
|
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, AccountFilter, CurrencyFilter, CurrencyRef, DataExtBill, ExpenseLineAdd, ExpenseLineMod, ItemGroupLineAdd, ItemGroupLineMod, ItemLineMod, LinkToTxn, ModifiedDateRangeFilter, RefNumberFilter, RefNumberRangeFilter, TxnDateRangeFilter } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks item receipt operations: `qube.itemReceipt.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class ItemReceipt {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create item receipt: `POST /connections/{connection_id}/item-receipts`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `ap_account_ref`, `def_macro`, `exchange_rate`, `expense_line_add`, `external_guid`, `include_ret_element`, `is_tax_included`, `item_group_line_add`, `item_line_add`, `link_to_txn_id`, `memo`, `ref_number`, `request_id`, `sales_tax_code_ref`, `txn_date`, `vendor_ref` (required).
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-receipts/create-item-receipt
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: ItemReceiptCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* List item receipts: `GET /connections/{connection_id}/item-receipts`, queued for QuickBooks.
|
|
23
|
+
*
|
|
24
|
+
* QuickBooks answers in pages: each page comes to `webhookUrl` as its own webhook.
|
|
25
|
+
* Params go in the query string.
|
|
26
|
+
*
|
|
27
|
+
* Fields: `account_filter`, `currency_filter`, `entity_filter`, `include_line_items`, `include_linked_txns`, `include_ret_element`, `iterator`, `max_returned`, `meta_data`, `modified_date_range_filter`, `owner_id`, `ref_number`, `ref_number_case_sensitive`, `ref_number_filter`, `ref_number_range_filter`, `request_id`, `txn_date_range_filter`, `txn_id`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-receipts/list-item-receipts
|
|
31
|
+
*/
|
|
32
|
+
query(connectionId: string, params: ItemReceiptQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* Update item receipt: `PUT /connections/{connection_id}/item-receipts`, queued for QuickBooks.
|
|
35
|
+
*
|
|
36
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
37
|
+
* Params go in the JSON body.
|
|
38
|
+
*
|
|
39
|
+
* Fields: `ap_account_ref`, `clear_expense_lines`, `clear_item_lines`, `edit_sequence` (required), `exchange_rate`, `expense_line_mod`, `include_ret_element`, `is_tax_included`, `item_group_line_mod`, `item_line_mod`, `memo`, `ref_number`, `request_id`, `sales_tax_code_ref`, `txn_date`, `txn_id` (required), `vendor_ref`.
|
|
40
|
+
*
|
|
41
|
+
* Resolves to the queued request.
|
|
42
|
+
* @see https://docs.qubesync.com/api-reference/v2/item-receipts/update-item-receipt
|
|
43
|
+
*/
|
|
44
|
+
update(connectionId: string, params: ItemReceiptUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The params of `item_receipt.create`: Create item receipt.
|
|
49
|
+
*/
|
|
50
|
+
export interface ItemReceiptCreateParams {
|
|
51
|
+
/**
|
|
52
|
+
* Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
53
|
+
*/
|
|
54
|
+
ap_account_ref?: CurrencyRef;
|
|
55
|
+
/**
|
|
56
|
+
* `def_macro` lets you assign a reusable name to a returned `txn_id` or `txn_line_id` so later requests can reference it with `useMacro`. This feature requires SDK 2.0+.
|
|
57
|
+
*/
|
|
58
|
+
def_macro?: string;
|
|
59
|
+
/**
|
|
60
|
+
* `exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.
|
|
61
|
+
*/
|
|
62
|
+
exchange_rate?: number;
|
|
63
|
+
expense_line_add?: ExpenseLineAdd[];
|
|
64
|
+
/**
|
|
65
|
+
* Allows for the attachment of a user defined GUID value.
|
|
66
|
+
*/
|
|
67
|
+
external_guid?: string;
|
|
68
|
+
include_ret_element?: Array<"APAccountRef" | "CurrencyRef" | "DataExtRet" | "EditSequence" | "ExchangeRate" | "ExpenseLineRet" | "ExternalGUID" | "IsTaxIncluded" | "ItemGroupLineRet" | "ItemLineRet" | "LiabilityAccountRef" | "LinkedTxn" | "ListID" | "Memo" | "OwnerID" | "RefNumber" | "SalesTaxCodeRef" | "TimeCreated" | "TimeModified" | "TotalAmount" | "TotalAmountInHomeCurrency" | "TxnDate" | "TxnID" | "TxnNumber" | "VendorRef">;
|
|
69
|
+
/**
|
|
70
|
+
* For future use with international versions of QuickBooks.
|
|
71
|
+
*/
|
|
72
|
+
is_tax_included?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Refers to items that are grouped together in QuickBooks for fast entry.
|
|
75
|
+
*
|
|
76
|
+
* `item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.
|
|
77
|
+
*/
|
|
78
|
+
item_group_line_add?: ItemGroupLineAdd[];
|
|
79
|
+
/**
|
|
80
|
+
* An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If `item_line_add` doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.
|
|
81
|
+
*
|
|
82
|
+
* `item_line_add` and `item_group_line_add` combine: any number of each. QuickBooks receives them in that order: every `item_line_add`, then every `item_group_line_add`.
|
|
83
|
+
*/
|
|
84
|
+
item_line_add?: ItemLineAddItemReceipt[];
|
|
85
|
+
link_to_txn_id?: string[];
|
|
86
|
+
/**
|
|
87
|
+
* Additional information.
|
|
88
|
+
*/
|
|
89
|
+
memo?: string;
|
|
90
|
+
/**
|
|
91
|
+
* `ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.
|
|
92
|
+
*/
|
|
93
|
+
ref_number?: string;
|
|
94
|
+
/**
|
|
95
|
+
* 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`.
|
|
96
|
+
*/
|
|
97
|
+
request_id?: string;
|
|
98
|
+
/**
|
|
99
|
+
* `sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.
|
|
100
|
+
*/
|
|
101
|
+
sales_tax_code_ref?: CurrencyRef;
|
|
102
|
+
/**
|
|
103
|
+
* The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.
|
|
104
|
+
*
|
|
105
|
+
* Format: date.
|
|
106
|
+
*/
|
|
107
|
+
txn_date?: string;
|
|
108
|
+
/**
|
|
109
|
+
* A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.
|
|
110
|
+
*/
|
|
111
|
+
vendor_ref: CurrencyRef;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* The params of `item_receipt.query`: List item receipts.
|
|
116
|
+
*/
|
|
117
|
+
export interface ItemReceiptQueryParams {
|
|
118
|
+
/**
|
|
119
|
+
* Filters according to the account name or `list_id`. If the “Use account numbers” preference is enabled in the QuickBooks company file, you can specify an account number (instead of an account name) for `full_name` and get the account you’re looking for. But if numbers have been used as account names, confusion could arise.
|
|
120
|
+
*
|
|
121
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
122
|
+
*/
|
|
123
|
+
account_filter?: AccountFilter;
|
|
124
|
+
/**
|
|
125
|
+
* Filters by the specified currency.
|
|
126
|
+
*
|
|
127
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
128
|
+
*/
|
|
129
|
+
currency_filter?: CurrencyFilter;
|
|
130
|
+
/**
|
|
131
|
+
* An entity refers to a person on the QuickBooks Customer list, Vendor list, Employee list, or Other Names list. You can use an EntityQuery request to get information about all the entities that are set up in the QuickBooks file. In an ARRefundCreditCard query, this must be a customer/customer job.
|
|
132
|
+
*
|
|
133
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
134
|
+
*/
|
|
135
|
+
entity_filter?: AccountFilter;
|
|
136
|
+
/**
|
|
137
|
+
* This filter allows you to omit line items from a query response to get a smaller result. The default value is false, so line items are omitted by default. Set `include_line_items` to true to include line items in the response if you don’t mind getting a larger result.
|
|
138
|
+
*/
|
|
139
|
+
include_line_items?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* If you set `include_linked_txns` to true, then the returned object will include a list of all the transactions linked to the queried object. (This list is similar to the History view of a transaction in the user interface, but not identical, as the SDK list contains only linked transactions, not items.) Each linked transaction will be represented by a `linked_txn` aggregate.
|
|
142
|
+
*/
|
|
143
|
+
include_linked_txns?: boolean;
|
|
144
|
+
include_ret_element?: Array<"APAccountRef" | "CurrencyRef" | "DataExtRet" | "EditSequence" | "ExchangeRate" | "ExpenseLineRet" | "ExternalGUID" | "IsTaxIncluded" | "ItemGroupLineRet" | "ItemLineRet" | "LiabilityAccountRef" | "LinkedTxn" | "Memo" | "RefNumber" | "SalesTaxCodeRef" | "TimeCreated" | "TimeModified" | "TotalAmount" | "TotalAmountInHomeCurrency" | "TxnDate" | "TxnID" | "TxnNumber" | "VendorRef">;
|
|
145
|
+
/**
|
|
146
|
+
* Page through every match: QuBe Sync asks QuickBooks for each page in turn and sends each to your `webhook_url` as it arrives, all with the same `id`. On by default, with pages of 100 records (25 with `include_line_items` or `include_linked_txns`); send `iterator=true` with `max_returned` for another size. Off when you send `iterator=false` (every match in one answer) or `max_returned` alone (at most that many, in one answer). It pages a filtered query only: with `ref_number`, `ref_number_case_sensitive` or `txn_id` every match comes back in one answer, so leave `iterator` out.
|
|
147
|
+
*/
|
|
148
|
+
iterator?: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the `meta_data` query attribute.) If you include a `max_returned` value, it must be at least 1.
|
|
151
|
+
*
|
|
152
|
+
* The page size, with `iterator=true`. Sent without `iterator`, or with `iterator=false`, it's a cap instead: at most this many records come back, in one answer, and QuickBooks doesn't say whether more matched.
|
|
153
|
+
*
|
|
154
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
155
|
+
*
|
|
156
|
+
* Minimum 1.
|
|
157
|
+
*/
|
|
158
|
+
max_returned?: number;
|
|
159
|
+
/**
|
|
160
|
+
* Use the `meta_data` attribute to control whether query responses include counts. Options are NoMetaData (default), MetaDataOnly (count only), and MetaDataAndResponseData (count plus objects). Counts are approximate and may vary slightly if records are created or deleted during processing.
|
|
161
|
+
*/
|
|
162
|
+
meta_data?: "MetaDataAndResponseData" | "MetaDataOnly" | "NoMetaData";
|
|
163
|
+
/**
|
|
164
|
+
* Filters according to the dates when transactions were last modified. The `modified_date_range_filter` aggregate isn’t required to contain any elements, but if it is empty, we recommend that you leave it out altogether. Note that the time portion of the `from_modified_date` and `to_modified_date` fields wasn’t supported in qbXML version 1.0 or 1.1.
|
|
165
|
+
*
|
|
166
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
167
|
+
*/
|
|
168
|
+
modified_date_range_filter?: ModifiedDateRangeFilter;
|
|
169
|
+
/**
|
|
170
|
+
* `owner_id` identifies who owns the data extension. Use 0 for QuickBooks custom fields that appear in the UI, or use a GUID for private extensions owned by an app. Keep private GUIDs confidential unless you intentionally share extensions across apps. If you do share them, both apps must use the same `owner_id` and `data_ext_name`, because that pair uniquely identifies the extension.
|
|
171
|
+
*/
|
|
172
|
+
owner_id?: string[];
|
|
173
|
+
/**
|
|
174
|
+
* `ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.
|
|
175
|
+
*
|
|
176
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
177
|
+
*/
|
|
178
|
+
ref_number?: string[];
|
|
179
|
+
/**
|
|
180
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
181
|
+
*/
|
|
182
|
+
ref_number_case_sensitive?: string[];
|
|
183
|
+
/**
|
|
184
|
+
* Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.
|
|
185
|
+
*
|
|
186
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
187
|
+
*/
|
|
188
|
+
ref_number_filter?: RefNumberFilter;
|
|
189
|
+
/**
|
|
190
|
+
* Filters by `ref_number` range. Numeric-only bounds are compared numerically; otherwise comparison is lexicographic.
|
|
191
|
+
*
|
|
192
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
193
|
+
*/
|
|
194
|
+
ref_number_range_filter?: RefNumberRangeFilter;
|
|
195
|
+
/**
|
|
196
|
+
* 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`.
|
|
197
|
+
*/
|
|
198
|
+
request_id?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Filters according to the original transaction dates.
|
|
201
|
+
*
|
|
202
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
203
|
+
*/
|
|
204
|
+
txn_date_range_filter?: TxnDateRangeFilter;
|
|
205
|
+
/**
|
|
206
|
+
* `txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.
|
|
207
|
+
*
|
|
208
|
+
* Choose at most one of: `txn_id`, or `ref_number`, or `ref_number_case_sensitive`, or the set (`account_filter`, `currency_filter`, `entity_filter`, `max_returned`, `modified_date_range_filter`, `ref_number_filter`, `ref_number_range_filter`, `txn_date_range_filter`). Members of a set combine with each other, not with the other choices.
|
|
209
|
+
*/
|
|
210
|
+
txn_id?: string[];
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* The params of `item_receipt.update`: Update item receipt.
|
|
215
|
+
*/
|
|
216
|
+
export interface ItemReceiptUpdateParams {
|
|
217
|
+
/**
|
|
218
|
+
* Refers to an accounts payable account in the QuickBooks file. (The AccountType of this account will be AccountsPayable.) If `ap_account_ref` is missing, the SDK will use the QuickBooks default AP account. In a request, if an `ap_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
219
|
+
*/
|
|
220
|
+
ap_account_ref?: CurrencyRef;
|
|
221
|
+
/**
|
|
222
|
+
* Set `clear_expense_lines` to true to clear all the expense lines. To modify individual lines, use `expense_line_mod`.
|
|
223
|
+
*/
|
|
224
|
+
clear_expense_lines?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Set `clear_item_lines` to true to clear all the item lines. To modify individual lines, use `item_line_mod`.
|
|
227
|
+
*/
|
|
228
|
+
clear_item_lines?: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* `edit_sequence` is a server-generated revision token. It changes each time the object is updated. To modify an existing object, you must send the current `edit_sequence`. If your value is stale, the update is rejected to prevent overwriting newer changes.
|
|
231
|
+
*/
|
|
232
|
+
edit_sequence: string;
|
|
233
|
+
/**
|
|
234
|
+
* `exchange_rate` is the rate from this currency to the company’s home currency at AsOfDate. You can supply a rate when adding transactions, but QuickBooks does not provide rates through the SDK. If your home currency is USD and internet access is available, rates can be downloaded in the QuickBooks UI via Lists > Currency > Activities > Download Latest Exchange Rates.
|
|
235
|
+
*/
|
|
236
|
+
exchange_rate?: number;
|
|
237
|
+
expense_line_mod?: ExpenseLineMod[];
|
|
238
|
+
include_ret_element?: Array<"APAccountRef" | "CurrencyRef" | "DataExtRet" | "EditSequence" | "ExchangeRate" | "ExpenseLineRet" | "ExternalGUID" | "IsTaxIncluded" | "ItemGroupLineRet" | "ItemLineRet" | "LiabilityAccountRef" | "LinkedTxn" | "ListID" | "Memo" | "OwnerID" | "RefNumber" | "SalesTaxCodeRef" | "TimeCreated" | "TimeModified" | "TotalAmount" | "TotalAmountInHomeCurrency" | "TxnDate" | "TxnID" | "TxnNumber" | "VendorRef">;
|
|
239
|
+
/**
|
|
240
|
+
* For future use with international versions of QuickBooks.
|
|
241
|
+
*/
|
|
242
|
+
is_tax_included?: boolean;
|
|
243
|
+
/**
|
|
244
|
+
* Refers to items that are grouped together in QuickBooks for fast entry.
|
|
245
|
+
*
|
|
246
|
+
* `item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.
|
|
247
|
+
*/
|
|
248
|
+
item_group_line_mod?: ItemGroupLineMod[];
|
|
249
|
+
/**
|
|
250
|
+
* An ItemLine is used to track any portion of a transaction that represents the purchase of an “item.” If ItemLineAdd doesn’t specify an Amount, Cost, or Quantity, then QuickBooks will calculate Amount based on a Quantity of 1 and the suggested Cost.
|
|
251
|
+
*
|
|
252
|
+
* `item_line_mod` and `item_group_line_mod` combine: any number of each. QuickBooks receives them in that order: every `item_line_mod`, then every `item_group_line_mod`.
|
|
253
|
+
*/
|
|
254
|
+
item_line_mod?: ItemLineMod[];
|
|
255
|
+
/**
|
|
256
|
+
* Additional information.
|
|
257
|
+
*/
|
|
258
|
+
memo?: string;
|
|
259
|
+
/**
|
|
260
|
+
* `ref_number` is a user-managed transaction reference (for example, a check number). It can be edited and is not guaranteed to be globally unique. Some transaction types auto-populate `ref_number` when omitted, based on QuickBooks preferences and numbering state.
|
|
261
|
+
*/
|
|
262
|
+
ref_number?: string;
|
|
263
|
+
/**
|
|
264
|
+
* 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`.
|
|
265
|
+
*/
|
|
266
|
+
request_id?: string;
|
|
267
|
+
/**
|
|
268
|
+
* `sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.
|
|
269
|
+
*/
|
|
270
|
+
sales_tax_code_ref?: CurrencyRef;
|
|
271
|
+
/**
|
|
272
|
+
* The date of the transaction. In some cases, if you leave `txn_date` out of an -Add message, QuickBooks will prefill `txn_date` with the date of the last-saved transaction of the same type.
|
|
273
|
+
*
|
|
274
|
+
* Format: date.
|
|
275
|
+
*/
|
|
276
|
+
txn_date?: string;
|
|
277
|
+
/**
|
|
278
|
+
* `txn_id` is the unique QuickBooks identifier for a transaction. Use it to reference that transaction in later requests. `txn_id` values are transaction-specific and should not be reused across unrelated transaction types.
|
|
279
|
+
*/
|
|
280
|
+
txn_id: string;
|
|
281
|
+
/**
|
|
282
|
+
* A vendor is any person or company from whom a small business owner buys goods and services. (Banks and tax agencies usually are included on the vendor list.) A company’s vendor list contains information such as account balance and contact information about each vendor. A `vendor_ref` aggregate refers to one of the vendors on the list.
|
|
283
|
+
*/
|
|
284
|
+
vendor_ref?: CurrencyRef;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface ItemLineAddItemReceipt {
|
|
288
|
+
/**
|
|
289
|
+
* A monetary amount.
|
|
290
|
+
*/
|
|
291
|
+
amount?: number;
|
|
292
|
+
/**
|
|
293
|
+
* The billing status of this item line or expense line.
|
|
294
|
+
*/
|
|
295
|
+
billable_status?: "Billable" | "HasBeenBilled" | "NotBillable";
|
|
296
|
+
/**
|
|
297
|
+
* Use classes to categorize transactions (for example, by department, location, or work type). Class tracking is off by default in QuickBooks. A `class_ref` points to one class; if both `full_name` and `list_id` are provided, `full_name` is ignored. In InvoiceAdd, a header-level `class_ref` is applied to line items unless you override or clear it on individual lines.
|
|
298
|
+
*/
|
|
299
|
+
class_ref?: CurrencyRef;
|
|
300
|
+
/**
|
|
301
|
+
* If both Quantity and Amount are specified, QuickBooks will use them to calculate Cost. Likewise, if both Quantity and Cost are specified, QuickBooks will use them to calculate the total Amount.
|
|
302
|
+
*/
|
|
303
|
+
cost?: number;
|
|
304
|
+
/**
|
|
305
|
+
* `customer_ref` identifies a customer or customer job. If both `full_name` and `list_id` are provided, `full_name` is ignored. In SalesReceipt and ReceivePayment, it identifies who receives credit. In TimeTracking, it identifies who the time can be billed to and is required in TimeTrackingAdd when IsBillable is true.
|
|
306
|
+
*/
|
|
307
|
+
customer_ref?: CurrencyRef;
|
|
308
|
+
data_ext?: DataExtBill[];
|
|
309
|
+
/**
|
|
310
|
+
* A descriptive text field.
|
|
311
|
+
*/
|
|
312
|
+
desc?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Location within the Inventory Site.
|
|
315
|
+
*/
|
|
316
|
+
inventory_site_location_ref?: CurrencyRef;
|
|
317
|
+
/**
|
|
318
|
+
* Site where inventory is located.
|
|
319
|
+
*/
|
|
320
|
+
inventory_site_ref?: CurrencyRef;
|
|
321
|
+
/**
|
|
322
|
+
* `item_ref` may accept all item types or a restricted subset, depending on the request. Examples: PurchaseOrder and Bill do not allow discount or sales-tax items; VehicleMileageAdd requires a service or other-charge item; BillingRateAdd requires a service item. If both `full_name` and `list_id` are provided, `full_name` is ignored.
|
|
323
|
+
*/
|
|
324
|
+
item_ref?: CurrencyRef;
|
|
325
|
+
/**
|
|
326
|
+
* When used with InvoiceAdd, the transaction you are linking to via this field must be a SalesOrder; links to other transactions, such as to estimates, aren’t currently supported. When used with BillAdd or ItemReceiptAdd, the transaction you are linking to via this field must be a PurchaseOrder: links to other transactions aren’t currently supported.
|
|
327
|
+
*/
|
|
328
|
+
link_to_txn?: LinkToTxn;
|
|
329
|
+
/**
|
|
330
|
+
* The lot number of the asset.
|
|
331
|
+
*
|
|
332
|
+
* Choose at most one of: `serial_number`, or `lot_number`.
|
|
333
|
+
*/
|
|
334
|
+
lot_number?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Refers to a QuickBooks account. If an `override_item_account_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
337
|
+
*/
|
|
338
|
+
override_item_account_ref?: CurrencyRef;
|
|
339
|
+
/**
|
|
340
|
+
* On transaction lines, QuickBooks can derive one value from the other two among Quantity, Rate, and Amount. If you supply Quantity and Amount, QuickBooks calculates Rate. If you supply Quantity and Rate, QuickBooks calculates Amount.
|
|
341
|
+
*/
|
|
342
|
+
quantity?: number;
|
|
343
|
+
/**
|
|
344
|
+
* A sales representative must be on the Employee, Vendor, or Other Names list within QuickBooks. Sales representative’s names and initials appear on the Rep drop-down list on QuickBooks sales forms. A `sales_rep_ref` refers to a person on the SalesRep list. In a request, if a `sales_rep_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
345
|
+
*/
|
|
346
|
+
sales_rep_ref?: CurrencyRef;
|
|
347
|
+
/**
|
|
348
|
+
* `sales_tax_code_ref` points to the sales-tax code used for an item or customer context. QuickBooks includes default TAX and NON codes, and a code can be deleted only when nothing references it. If sales tax is disabled, QuickBooks assigns the default non-taxable code. If both `full_name` and `list_id` are provided in `sales_tax_code_ref`, `full_name` is ignored.
|
|
349
|
+
*/
|
|
350
|
+
sales_tax_code_ref?: CurrencyRef;
|
|
351
|
+
/**
|
|
352
|
+
* The serial number of the asset.
|
|
353
|
+
*
|
|
354
|
+
* Choose at most one of: `serial_number`, or `lot_number`.
|
|
355
|
+
*/
|
|
356
|
+
serial_number?: string;
|
|
357
|
+
tax_amount?: number;
|
|
358
|
+
/**
|
|
359
|
+
* In a transaction line item, the name of the unit of measure selected from within the item’s available units. If the company file is enabled only for single unit of measure per item, this must be the base unit!
|
|
360
|
+
*/
|
|
361
|
+
unit_of_measure?: string;
|
|
362
|
+
}
|