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,541 @@
|
|
|
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, AdditionalContactRef, Contacts, ContactsMod, CurrencyFilter, CurrencyRef, NameFilter, NameRangeFilter, ShipAddress } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks vendor operations: `qube.vendor.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class Vendor {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create vendor: `POST /connections/{connection_id}/vendors`, queued for QuickBooks.
|
|
11
|
+
*
|
|
12
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
13
|
+
* Params go in the JSON body.
|
|
14
|
+
*
|
|
15
|
+
* Fields: `account_number`, `additional_contact_ref`, `additional_notes`, `alt_contact`, `alt_phone`, `billing_rate_ref`, `cc`, `class_ref`, `company_name`, `contact`, `contacts`, `credit_limit`, `currency_ref`, `email`, `external_guid`, `fax`, `first_name`, `include_ret_element`, `is_active`, `is_sales_tax_agency`, `is_tax_on_tax`, `is_tax_tracked_on_purchases`, `is_tax_tracked_on_sales`, `is_vendor_eligible_for1099`, `job_title`, `last_name`, `middle_name`, `mobile`, `name` (required), `name_on_check`, `notes`, `open_balance`, `open_balance_date`, `pager`, `phone`, `prefill_account_ref`, `reporting_period`, `request_id`, `sales_tax_code_ref`, `sales_tax_country`, `sales_tax_return_ref`, `salutation`, `ship_address`, `suffix`, `tax_on_purchases_account_ref`, `tax_on_sales_account_ref`, `tax_registration_number`, `terms_ref`, `vendor_address`, `vendor_tax_ident`, `vendor_type_ref`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/vendors/create-vendor
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: VendorCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* List vendors: `GET /connections/{connection_id}/vendors`, 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`, `currency_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`, `total_balance_filter`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/vendors/list-vendors
|
|
31
|
+
*/
|
|
32
|
+
query(connectionId: string, params: VendorQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* Update vendor: `PUT /connections/{connection_id}/vendors`, queued for QuickBooks.
|
|
35
|
+
*
|
|
36
|
+
* The answer comes to `webhookUrl` as one webhook.
|
|
37
|
+
* Params go in the JSON body.
|
|
38
|
+
*
|
|
39
|
+
* Fields: `account_number`, `additional_contact_ref`, `additional_notes_mod`, `alt_contact`, `alt_phone`, `billing_rate_ref`, `cc`, `class_ref`, `company_name`, `contact`, `contacts_mod`, `credit_limit`, `currency_ref`, `edit_sequence` (required), `email`, `fax`, `first_name`, `include_ret_element`, `is_active`, `is_sales_tax_agency`, `is_tax_on_tax`, `is_tax_tracked_on_purchases`, `is_tax_tracked_on_sales`, `is_vendor_eligible_for1099`, `job_title`, `last_name`, `list_id` (required), `middle_name`, `mobile`, `name`, `name_on_check`, `notes`, `pager`, `phone`, `prefill_account_ref`, `reporting_period`, `request_id`, `sales_tax_code_ref`, `sales_tax_country`, `sales_tax_return_ref`, `salutation`, `ship_address`, `suffix`, `tax_on_purchases_account_ref`, `tax_on_sales_account_ref`, `tax_registration_number`, `terms_ref`, `vendor_address`, `vendor_tax_ident`, `vendor_type_ref`.
|
|
40
|
+
*
|
|
41
|
+
* Resolves to the queued request.
|
|
42
|
+
* @see https://docs.qubesync.com/api-reference/v2/vendors/update-vendor
|
|
43
|
+
*/
|
|
44
|
+
update(connectionId: string, params: VendorUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The params of `vendor.create`: Create vendor.
|
|
49
|
+
*/
|
|
50
|
+
export interface VendorCreateParams {
|
|
51
|
+
/**
|
|
52
|
+
* Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.
|
|
53
|
+
*/
|
|
54
|
+
account_number?: string;
|
|
55
|
+
additional_contact_ref?: AdditionalContactRef[];
|
|
56
|
+
additional_notes?: AdditionalNotesVendor[];
|
|
57
|
+
/**
|
|
58
|
+
* The name of an alternate contact person for a vendor, customer, or “other name” entry.
|
|
59
|
+
*/
|
|
60
|
+
alt_contact?: string;
|
|
61
|
+
/**
|
|
62
|
+
* A telephone number given as an alternative to Phone.
|
|
63
|
+
*/
|
|
64
|
+
alt_phone?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.
|
|
67
|
+
*/
|
|
68
|
+
billing_rate_ref?: CurrencyRef;
|
|
69
|
+
/**
|
|
70
|
+
* Email address that would be carbon copied or CC.
|
|
71
|
+
*/
|
|
72
|
+
cc?: string;
|
|
73
|
+
/**
|
|
74
|
+
* 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.
|
|
75
|
+
*/
|
|
76
|
+
class_ref?: CurrencyRef;
|
|
77
|
+
/**
|
|
78
|
+
* The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)
|
|
79
|
+
*/
|
|
80
|
+
company_name?: string;
|
|
81
|
+
/**
|
|
82
|
+
* The name of a contact person for a customer or vendor.
|
|
83
|
+
*/
|
|
84
|
+
contact?: string;
|
|
85
|
+
contacts?: Contacts[];
|
|
86
|
+
/**
|
|
87
|
+
* Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.
|
|
88
|
+
*/
|
|
89
|
+
credit_limit?: number;
|
|
90
|
+
/**
|
|
91
|
+
* A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.
|
|
92
|
+
*/
|
|
93
|
+
currency_ref?: CurrencyRef;
|
|
94
|
+
/**
|
|
95
|
+
* E-mail address.
|
|
96
|
+
*/
|
|
97
|
+
email?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Allows for the attachment of a user defined GUID value.
|
|
100
|
+
*/
|
|
101
|
+
external_guid?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Fax number.
|
|
104
|
+
*/
|
|
105
|
+
fax?: string;
|
|
106
|
+
/**
|
|
107
|
+
* The first name of a customer, vendor, employee, or person on the “other names” list.
|
|
108
|
+
*/
|
|
109
|
+
first_name?: string;
|
|
110
|
+
include_ret_element?: Array<"AccountNumber" | "AdditionalContactRef" | "AdditionalNotesRet" | "AltContact" | "AltPhone" | "Balance" | "BillingRateRef" | "Cc" | "ClassRef" | "CompanyName" | "Contact" | "ContactsRet" | "CreditLimit" | "CurrencyRef" | "DataExtRet" | "EditSequence" | "Email" | "ExternalGUID" | "Fax" | "FirstName" | "IsActive" | "IsSalesTaxAgency" | "IsTaxAgency" | "IsTaxOnTax" | "IsTaxTrackedOnPurchases" | "IsTaxTrackedOnSales" | "IsVendorEligibleFor1099" | "JobTitle" | "LastName" | "ListID" | "MiddleName" | "Mobile" | "Name" | "NameOnCheck" | "Notes" | "OwnerID" | "Pager" | "Phone" | "PrefillAccountRef" | "ReportingPeriod" | "SalesTaxCodeRef" | "SalesTaxCountry" | "SalesTaxReturnRef" | "Salutation" | "ShipAddress" | "Suffix" | "TaxOnPurchasesAccountRef" | "TaxOnSalesAccountRef" | "TaxRegistrationNumber" | "TermsRef" | "TimeCreated" | "TimeModified" | "TxnID" | "TxnNumber" | "VendorAddress" | "VendorAddressBlock" | "VendorTaxIdent" | "VendorTypeRef">;
|
|
111
|
+
/**
|
|
112
|
+
* If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
|
|
113
|
+
*/
|
|
114
|
+
is_active?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Indicates whether the entity is a sales tax agency.
|
|
117
|
+
*/
|
|
118
|
+
is_sales_tax_agency?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* For vendor in CA or UK, is there tax charged on top of tax.
|
|
121
|
+
*/
|
|
122
|
+
is_tax_on_tax?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* This flag is used for CA or UK and whether tax is tracked on purchases.
|
|
125
|
+
*/
|
|
126
|
+
is_tax_tracked_on_purchases?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* This flag is used for CA or UK and whether tax is tracked on sales.
|
|
129
|
+
*/
|
|
130
|
+
is_tax_tracked_on_sales?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* If `is_vendor_eligible_for1099` is set to true, `vendor_tax_ident` and `vendor_address` are required in a vendor add request message. Otherwise, `vendor_tax_ident` and `vendor_address` are optional.
|
|
133
|
+
*/
|
|
134
|
+
is_vendor_eligible_for1099?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* The job title of a customer, vendor, employee, or person on the “other names” list.
|
|
137
|
+
*/
|
|
138
|
+
job_title?: string;
|
|
139
|
+
/**
|
|
140
|
+
* The last name of a customer, vendor, employee, or person on the “other names” list.
|
|
141
|
+
*/
|
|
142
|
+
last_name?: string;
|
|
143
|
+
/**
|
|
144
|
+
* The middle name of a customer, vendor, employee, or person on the “other names” list.
|
|
145
|
+
*/
|
|
146
|
+
middle_name?: string;
|
|
147
|
+
mobile?: string;
|
|
148
|
+
/**
|
|
149
|
+
* 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.
|
|
150
|
+
*/
|
|
151
|
+
name: string;
|
|
152
|
+
/**
|
|
153
|
+
* The vendor’s name as it will appear on checks sent to the vendor. (Corresponds in the QuickBooks user interface to the “Print on Check as” field of the Edit Vendor and New Vendor windows.)
|
|
154
|
+
*/
|
|
155
|
+
name_on_check?: string;
|
|
156
|
+
/**
|
|
157
|
+
* Additional information about this vendor.
|
|
158
|
+
*/
|
|
159
|
+
notes?: string;
|
|
160
|
+
/**
|
|
161
|
+
* The opening balance of this vendor’s account. A positive number indicates money owed to this vendor.
|
|
162
|
+
*/
|
|
163
|
+
open_balance?: number;
|
|
164
|
+
/**
|
|
165
|
+
* The date of the opening balance for this vendor.
|
|
166
|
+
*
|
|
167
|
+
* Format: date.
|
|
168
|
+
*/
|
|
169
|
+
open_balance_date?: string;
|
|
170
|
+
pager?: string;
|
|
171
|
+
/**
|
|
172
|
+
* The telephone number.
|
|
173
|
+
*/
|
|
174
|
+
phone?: string;
|
|
175
|
+
prefill_account_ref?: CurrencyRef[];
|
|
176
|
+
/**
|
|
177
|
+
* Vendor reporting period for CA or UK. This can be monthly or quarterly.
|
|
178
|
+
*/
|
|
179
|
+
reporting_period?: "Monthly" | "Quarterly";
|
|
180
|
+
/**
|
|
181
|
+
* 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`.
|
|
182
|
+
*/
|
|
183
|
+
request_id?: string;
|
|
184
|
+
/**
|
|
185
|
+
* `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.
|
|
186
|
+
*/
|
|
187
|
+
sales_tax_code_ref?: CurrencyRef;
|
|
188
|
+
/**
|
|
189
|
+
* The country that sales tax is collected for.
|
|
190
|
+
*/
|
|
191
|
+
sales_tax_country?: "Australia" | "Canada" | "UK" | "US";
|
|
192
|
+
/**
|
|
193
|
+
* Sales tax return information.
|
|
194
|
+
*/
|
|
195
|
+
sales_tax_return_ref?: CurrencyRef;
|
|
196
|
+
/**
|
|
197
|
+
* A formal reference, such as Mr. or Dr., that precedes a name.
|
|
198
|
+
*/
|
|
199
|
+
salutation?: string;
|
|
200
|
+
/**
|
|
201
|
+
* This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.
|
|
202
|
+
*/
|
|
203
|
+
ship_address?: ShipAddress;
|
|
204
|
+
suffix?: string;
|
|
205
|
+
/**
|
|
206
|
+
* Account used for taxes on purchases in CA or UK.
|
|
207
|
+
*/
|
|
208
|
+
tax_on_purchases_account_ref?: CurrencyRef;
|
|
209
|
+
/**
|
|
210
|
+
* Account used for taxes on sales in CA or UK.
|
|
211
|
+
*/
|
|
212
|
+
tax_on_sales_account_ref?: CurrencyRef;
|
|
213
|
+
/**
|
|
214
|
+
* The tax registration number used in CA and UK.
|
|
215
|
+
*/
|
|
216
|
+
tax_registration_number?: string;
|
|
217
|
+
/**
|
|
218
|
+
* Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
219
|
+
*/
|
|
220
|
+
terms_ref?: CurrencyRef;
|
|
221
|
+
/**
|
|
222
|
+
* If an address request fails, some combination of address fields might be too long.
|
|
223
|
+
*/
|
|
224
|
+
vendor_address?: ShipAddress;
|
|
225
|
+
/**
|
|
226
|
+
* A character string that identifies a vendor.
|
|
227
|
+
*/
|
|
228
|
+
vendor_tax_ident?: string;
|
|
229
|
+
/**
|
|
230
|
+
* Vendor types allow business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in. A `vendor_type_ref` aggregate refers to one of the types on the VendorType list.
|
|
231
|
+
*/
|
|
232
|
+
vendor_type_ref?: CurrencyRef;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The params of `vendor.query`: List vendors.
|
|
237
|
+
*/
|
|
238
|
+
export interface VendorQueryParams {
|
|
239
|
+
/**
|
|
240
|
+
* 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.
|
|
241
|
+
*
|
|
242
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
243
|
+
*/
|
|
244
|
+
active_status?: "ActiveOnly" | "All" | "InactiveOnly";
|
|
245
|
+
/**
|
|
246
|
+
* Filter according to class.
|
|
247
|
+
*
|
|
248
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
249
|
+
*/
|
|
250
|
+
class_filter?: AccountFilter;
|
|
251
|
+
/**
|
|
252
|
+
* Filters by the specified currency.
|
|
253
|
+
*
|
|
254
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
255
|
+
*/
|
|
256
|
+
currency_filter?: CurrencyFilter;
|
|
257
|
+
/**
|
|
258
|
+
* 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.
|
|
259
|
+
*
|
|
260
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
261
|
+
*
|
|
262
|
+
* Format: date-time.
|
|
263
|
+
*/
|
|
264
|
+
from_modified_date?: string;
|
|
265
|
+
/**
|
|
266
|
+
* `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.
|
|
267
|
+
*
|
|
268
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
269
|
+
*/
|
|
270
|
+
full_name?: string[];
|
|
271
|
+
include_ret_element?: Array<"AccountNumber" | "AdditionalContactRef" | "AdditionalNotesRet" | "AltContact" | "AltPhone" | "Balance" | "BillingRateRef" | "Cc" | "ClassRef" | "CompanyName" | "Contact" | "ContactsRet" | "CreditLimit" | "CurrencyRef" | "DataExtRet" | "EditSequence" | "Email" | "ExternalGUID" | "Fax" | "FirstName" | "IsActive" | "IsSalesTaxAgency" | "IsTaxAgency" | "IsTaxOnTax" | "IsTaxTrackedOnPurchases" | "IsTaxTrackedOnSales" | "IsVendorEligibleFor1099" | "JobTitle" | "LastName" | "ListID" | "MiddleName" | "Mobile" | "Name" | "NameOnCheck" | "Notes" | "Pager" | "Phone" | "PrefillAccountRef" | "ReportingPeriod" | "SalesTaxCodeRef" | "SalesTaxCountry" | "SalesTaxReturnRef" | "Salutation" | "ShipAddress" | "Suffix" | "TaxOnPurchasesAccountRef" | "TaxOnSalesAccountRef" | "TaxRegistrationNumber" | "TermsRef" | "TimeCreated" | "TimeModified" | "VendorAddress" | "VendorAddressBlock" | "VendorTaxIdent" | "VendorTypeRef">;
|
|
272
|
+
/**
|
|
273
|
+
* 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.
|
|
274
|
+
*/
|
|
275
|
+
iterator?: boolean;
|
|
276
|
+
/**
|
|
277
|
+
* `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`.
|
|
278
|
+
*
|
|
279
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
280
|
+
*/
|
|
281
|
+
list_id?: string[];
|
|
282
|
+
/**
|
|
283
|
+
* 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.
|
|
284
|
+
*
|
|
285
|
+
* 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.
|
|
286
|
+
*
|
|
287
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
288
|
+
*
|
|
289
|
+
* Minimum 1.
|
|
290
|
+
*/
|
|
291
|
+
max_returned?: number;
|
|
292
|
+
/**
|
|
293
|
+
* 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.
|
|
294
|
+
*/
|
|
295
|
+
meta_data?: "MetaDataAndResponseData" | "MetaDataOnly" | "NoMetaData";
|
|
296
|
+
/**
|
|
297
|
+
* Filters according to the object’s Name.
|
|
298
|
+
*
|
|
299
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
300
|
+
*/
|
|
301
|
+
name_filter?: NameFilter;
|
|
302
|
+
/**
|
|
303
|
+
* Filters according to the object’s Name.
|
|
304
|
+
*
|
|
305
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
306
|
+
*/
|
|
307
|
+
name_range_filter?: NameRangeFilter;
|
|
308
|
+
/**
|
|
309
|
+
* `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.
|
|
310
|
+
*/
|
|
311
|
+
owner_id?: string[];
|
|
312
|
+
/**
|
|
313
|
+
* 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`.
|
|
314
|
+
*/
|
|
315
|
+
request_id?: string;
|
|
316
|
+
/**
|
|
317
|
+
* 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).
|
|
318
|
+
*
|
|
319
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
320
|
+
*
|
|
321
|
+
* Format: date-time.
|
|
322
|
+
*/
|
|
323
|
+
to_modified_date?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Filters according to total balance. Total balance includes the balance for all subaccounts; for example, a customer’s TotalBalance would include all the jobs for that customer.
|
|
326
|
+
*
|
|
327
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `class_filter`, `currency_filter`, `from_modified_date`, `max_returned`, `name_filter`, `name_range_filter`, `to_modified_date`, `total_balance_filter`). Members of a set combine with each other, not with the other choices.
|
|
328
|
+
*/
|
|
329
|
+
total_balance_filter?: TotalBalanceFilter;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* The params of `vendor.update`: Update vendor.
|
|
334
|
+
*/
|
|
335
|
+
export interface VendorUpdateParams {
|
|
336
|
+
/**
|
|
337
|
+
* Account numbers appear in the QuickBooks chart of accounts, Account fields, and reports and graphs. If the IsUsingAccountNumber preference is false (that is, if the QuickBooks user has the account numbers Preference turned off), you can still set account numbers through the SDK, but the numbers won’t be visible in the user interface.
|
|
338
|
+
*/
|
|
339
|
+
account_number?: string;
|
|
340
|
+
additional_contact_ref?: AdditionalContactRef[];
|
|
341
|
+
additional_notes_mod?: AdditionalNotesModVendor[];
|
|
342
|
+
/**
|
|
343
|
+
* The name of an alternate contact person for a vendor, customer, or “other name” entry.
|
|
344
|
+
*/
|
|
345
|
+
alt_contact?: string;
|
|
346
|
+
/**
|
|
347
|
+
* A telephone number given as an alternative to Phone.
|
|
348
|
+
*/
|
|
349
|
+
alt_phone?: string;
|
|
350
|
+
/**
|
|
351
|
+
* Billing rates are used to override the service item rate in a time transaction (TimeTrackingAdd) based on the employee or vendor performing the work. Billing rates are assigned to an employee or a vendor to specify overrides to service items.
|
|
352
|
+
*/
|
|
353
|
+
billing_rate_ref?: CurrencyRef;
|
|
354
|
+
/**
|
|
355
|
+
* Email address that would be carbon copied or CC.
|
|
356
|
+
*/
|
|
357
|
+
cc?: string;
|
|
358
|
+
/**
|
|
359
|
+
* 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.
|
|
360
|
+
*/
|
|
361
|
+
class_ref?: CurrencyRef;
|
|
362
|
+
/**
|
|
363
|
+
* The name of the QuickBooks user’s business, as specified in QuickBooks. `company_name` and Address are used on invoices, checks, and other forms. (LegalCompanyName and LegalAddress, on the other hand, are used on a company’s tax forms and pay stubs.)
|
|
364
|
+
*/
|
|
365
|
+
company_name?: string;
|
|
366
|
+
/**
|
|
367
|
+
* The name of a contact person for a customer or vendor.
|
|
368
|
+
*/
|
|
369
|
+
contact?: string;
|
|
370
|
+
contacts_mod?: ContactsMod[];
|
|
371
|
+
/**
|
|
372
|
+
* Set and returned as a positive number that indicates a customer’s or vendor’s credit limit. If no value has been defined, there is no credit limit.
|
|
373
|
+
*/
|
|
374
|
+
credit_limit?: number;
|
|
375
|
+
/**
|
|
376
|
+
* A currency record defines how QuickBooks stores and displays a currency. Built-in currency name/code values are fixed; formatting and active status can vary by settings and workflow.
|
|
377
|
+
*/
|
|
378
|
+
currency_ref?: CurrencyRef;
|
|
379
|
+
/**
|
|
380
|
+
* `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.
|
|
381
|
+
*/
|
|
382
|
+
edit_sequence: string;
|
|
383
|
+
/**
|
|
384
|
+
* E-mail address.
|
|
385
|
+
*/
|
|
386
|
+
email?: string;
|
|
387
|
+
/**
|
|
388
|
+
* Fax number.
|
|
389
|
+
*/
|
|
390
|
+
fax?: string;
|
|
391
|
+
/**
|
|
392
|
+
* The first name of a customer, vendor, employee, or person on the “other names” list.
|
|
393
|
+
*/
|
|
394
|
+
first_name?: string;
|
|
395
|
+
include_ret_element?: Array<"AccountNumber" | "AdditionalContactRef" | "AdditionalNotesRet" | "AltContact" | "AltPhone" | "Balance" | "BillingRateRef" | "Cc" | "ClassRef" | "CompanyName" | "Contact" | "ContactsRet" | "CreditLimit" | "CurrencyRef" | "DataExtRet" | "EditSequence" | "Email" | "ExternalGUID" | "Fax" | "FirstName" | "IsActive" | "IsSalesTaxAgency" | "IsTaxAgency" | "IsTaxOnTax" | "IsTaxTrackedOnPurchases" | "IsTaxTrackedOnSales" | "IsVendorEligibleFor1099" | "JobTitle" | "LastName" | "ListID" | "MiddleName" | "Mobile" | "Name" | "NameOnCheck" | "Notes" | "OwnerID" | "Pager" | "Phone" | "PrefillAccountRef" | "ReportingPeriod" | "SalesTaxCodeRef" | "SalesTaxCountry" | "SalesTaxReturnRef" | "Salutation" | "ShipAddress" | "Suffix" | "TaxOnPurchasesAccountRef" | "TaxOnSalesAccountRef" | "TaxRegistrationNumber" | "TermsRef" | "TimeCreated" | "TimeModified" | "TxnID" | "TxnNumber" | "VendorAddress" | "VendorAddressBlock" | "VendorTaxIdent" | "VendorTypeRef">;
|
|
396
|
+
/**
|
|
397
|
+
* If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
|
|
398
|
+
*/
|
|
399
|
+
is_active?: boolean;
|
|
400
|
+
/**
|
|
401
|
+
* Indicates whether the entity is a sales tax agency.
|
|
402
|
+
*/
|
|
403
|
+
is_sales_tax_agency?: boolean;
|
|
404
|
+
/**
|
|
405
|
+
* For vendor in CA or UK, is there tax charged on top of tax.
|
|
406
|
+
*/
|
|
407
|
+
is_tax_on_tax?: boolean;
|
|
408
|
+
/**
|
|
409
|
+
* This flag is used for CA or UK and whether tax is tracked on purchases.
|
|
410
|
+
*/
|
|
411
|
+
is_tax_tracked_on_purchases?: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* This flag is used for CA or UK and whether tax is tracked on sales.
|
|
414
|
+
*/
|
|
415
|
+
is_tax_tracked_on_sales?: boolean;
|
|
416
|
+
/**
|
|
417
|
+
* If `is_vendor_eligible_for1099` is set to true, `vendor_tax_ident` and `vendor_address` are required in a vendor add request message. Otherwise, `vendor_tax_ident` and `vendor_address` are optional.
|
|
418
|
+
*/
|
|
419
|
+
is_vendor_eligible_for1099?: boolean;
|
|
420
|
+
/**
|
|
421
|
+
* The job title of a customer, vendor, employee, or person on the “other names” list.
|
|
422
|
+
*/
|
|
423
|
+
job_title?: string;
|
|
424
|
+
/**
|
|
425
|
+
* The last name of a customer, vendor, employee, or person on the “other names” list.
|
|
426
|
+
*/
|
|
427
|
+
last_name?: string;
|
|
428
|
+
/**
|
|
429
|
+
* `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`.
|
|
430
|
+
*/
|
|
431
|
+
list_id: string;
|
|
432
|
+
/**
|
|
433
|
+
* The middle name of a customer, vendor, employee, or person on the “other names” list.
|
|
434
|
+
*/
|
|
435
|
+
middle_name?: string;
|
|
436
|
+
mobile?: string;
|
|
437
|
+
/**
|
|
438
|
+
* 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.
|
|
439
|
+
*/
|
|
440
|
+
name?: string;
|
|
441
|
+
/**
|
|
442
|
+
* The vendor’s name as it will appear on checks sent to the vendor. (Corresponds in the QuickBooks user interface to the “Print on Check as” field of the Edit Vendor and New Vendor windows.)
|
|
443
|
+
*/
|
|
444
|
+
name_on_check?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Additional information about this vendor.
|
|
447
|
+
*/
|
|
448
|
+
notes?: string;
|
|
449
|
+
pager?: string;
|
|
450
|
+
/**
|
|
451
|
+
* The telephone number.
|
|
452
|
+
*/
|
|
453
|
+
phone?: string;
|
|
454
|
+
prefill_account_ref?: CurrencyRef[];
|
|
455
|
+
/**
|
|
456
|
+
* Vendor reporting period for CA or UK. This can be monthly or quarterly.
|
|
457
|
+
*/
|
|
458
|
+
reporting_period?: "Monthly" | "Quarterly";
|
|
459
|
+
/**
|
|
460
|
+
* 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`.
|
|
461
|
+
*/
|
|
462
|
+
request_id?: string;
|
|
463
|
+
/**
|
|
464
|
+
* `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.
|
|
465
|
+
*/
|
|
466
|
+
sales_tax_code_ref?: CurrencyRef;
|
|
467
|
+
/**
|
|
468
|
+
* The country that sales tax is collected for.
|
|
469
|
+
*/
|
|
470
|
+
sales_tax_country?: "Australia" | "Canada" | "UK" | "US";
|
|
471
|
+
/**
|
|
472
|
+
* Sales tax return information.
|
|
473
|
+
*/
|
|
474
|
+
sales_tax_return_ref?: CurrencyRef;
|
|
475
|
+
/**
|
|
476
|
+
* A formal reference, such as Mr. or Dr., that precedes a name.
|
|
477
|
+
*/
|
|
478
|
+
salutation?: string;
|
|
479
|
+
/**
|
|
480
|
+
* This aggregate supports at most five address lines. You can provide a structured address (Addr1-Addr3 plus City/State/`postal_code`/etc.) or use block mode (Addr1-Addr5 only). Do not mix block mode with other address fields. In block mode, each Addr line prints as its own line and is returned in ShipAddressBlock or BillAddressBlock.
|
|
481
|
+
*/
|
|
482
|
+
ship_address?: ShipAddress;
|
|
483
|
+
suffix?: string;
|
|
484
|
+
/**
|
|
485
|
+
* Account used for taxes on purchases in CA or UK.
|
|
486
|
+
*/
|
|
487
|
+
tax_on_purchases_account_ref?: CurrencyRef;
|
|
488
|
+
/**
|
|
489
|
+
* Account used for taxes on sales in CA or UK.
|
|
490
|
+
*/
|
|
491
|
+
tax_on_sales_account_ref?: CurrencyRef;
|
|
492
|
+
/**
|
|
493
|
+
* The tax registration number used in CA and UK.
|
|
494
|
+
*/
|
|
495
|
+
tax_registration_number?: string;
|
|
496
|
+
/**
|
|
497
|
+
* Refers to the payment terms associated with this entity. (This will be an item on the DateDrivenTerms or StandardTerms list.) If a `terms_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
498
|
+
*/
|
|
499
|
+
terms_ref?: CurrencyRef;
|
|
500
|
+
/**
|
|
501
|
+
* If an address request fails, some combination of address fields might be too long.
|
|
502
|
+
*/
|
|
503
|
+
vendor_address?: ShipAddress;
|
|
504
|
+
/**
|
|
505
|
+
* A character string that identifies a vendor.
|
|
506
|
+
*/
|
|
507
|
+
vendor_tax_ident?: string;
|
|
508
|
+
/**
|
|
509
|
+
* Vendor types allow business owners to categorize vendors in ways that are meaningful for their businesses. For example, a vendor type might indicate which industry a vendor represents, or which part of the country a vendor is in. A `vendor_type_ref` aggregate refers to one of the types on the VendorType list.
|
|
510
|
+
*/
|
|
511
|
+
vendor_type_ref?: CurrencyRef;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export interface AdditionalNotesModVendor {
|
|
515
|
+
/**
|
|
516
|
+
* In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.
|
|
517
|
+
*/
|
|
518
|
+
note: string;
|
|
519
|
+
/**
|
|
520
|
+
* The ID of the note.
|
|
521
|
+
*/
|
|
522
|
+
note_id: number;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export interface AdditionalNotesVendor {
|
|
526
|
+
/**
|
|
527
|
+
* In a BillAddress or `ship_address` aggregate, the Note field value is written at the bottom of the address in the form in which it appears, such as the invoice form.
|
|
528
|
+
*/
|
|
529
|
+
note: string;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export interface TotalBalanceFilter {
|
|
533
|
+
/**
|
|
534
|
+
* The monetary amount to which Operator refers.
|
|
535
|
+
*/
|
|
536
|
+
amount: number;
|
|
537
|
+
/**
|
|
538
|
+
* Indicates whether to filter for amounts that are less than, equal to or less than, exactly equal to, greater than, or equal to or greater than the given Amount.
|
|
539
|
+
*/
|
|
540
|
+
operator: "Equal" | "GreaterThan" | "GreaterThanEqual" | "LessThan" | "LessThanEqual";
|
|
541
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated from operations.json by scripts/generate-operations.js: don't edit.
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
/** QuickBooks vendor operations. Types: vendor.d.ts. */
|
|
5
|
+
class Vendor {
|
|
6
|
+
#client;
|
|
7
|
+
|
|
8
|
+
/** @param {import("../index").Client} client */
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.#client = client;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Create vendor.
|
|
15
|
+
* @param {string} connectionId
|
|
16
|
+
* @param {import("./vendor").VendorCreateParams} params
|
|
17
|
+
* @param {import("./types").OperationOptions} options
|
|
18
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
19
|
+
* @see https://docs.qubesync.com/api-reference/v2/vendors/create-vendor
|
|
20
|
+
*/
|
|
21
|
+
create(connectionId, params, options) {
|
|
22
|
+
return this.#client.queue("vendor.create", connectionId, params, options);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* List vendors (answers in pages, one webhook each).
|
|
27
|
+
* @param {string} connectionId
|
|
28
|
+
* @param {import("./vendor").VendorQueryParams} params
|
|
29
|
+
* @param {import("./types").OperationOptions} options
|
|
30
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
31
|
+
* @see https://docs.qubesync.com/api-reference/v2/vendors/list-vendors
|
|
32
|
+
*/
|
|
33
|
+
query(connectionId, params, options) {
|
|
34
|
+
return this.#client.queue("vendor.query", connectionId, params, options);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Update vendor.
|
|
39
|
+
* @param {string} connectionId
|
|
40
|
+
* @param {import("./vendor").VendorUpdateParams} params
|
|
41
|
+
* @param {import("./types").OperationOptions} options
|
|
42
|
+
* @returns {Promise<import("./types").QueuedRequest>}
|
|
43
|
+
* @see https://docs.qubesync.com/api-reference/v2/vendors/update-vendor
|
|
44
|
+
*/
|
|
45
|
+
update(connectionId, params, options) {
|
|
46
|
+
return this.#client.queue("vendor.update", connectionId, params, options);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
module.exports = { Vendor };
|