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,639 @@
|
|
|
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, AdditionalContactRef, BillAddress, Contacts, ContactsMod, CurrencyRef } from "./types";
|
|
5
|
+
|
|
6
|
+
/** QuickBooks customer operations: `qube.customer.<action>(connectionId, params, { webhookUrl })`. */
|
|
7
|
+
export declare class Customer {
|
|
8
|
+
constructor(client: Client);
|
|
9
|
+
/**
|
|
10
|
+
* Create customer: `POST /connections/{connection_id}/customers`, 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`, `bill_address`, `cc`, `class_ref`, `company_name`, `contact`, `contacts`, `credit_card_info`, `credit_limit`, `currency_ref`, `customer_type_ref`, `delivery_method`, `email`, `external_guid`, `fax`, `first_name`, `include_ret_element`, `is_active`, `is_statement_with_parent`, `item_sales_tax_ref`, `job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, `job_status`, `job_title`, `job_type_ref`, `last_name`, `middle_name`, `mobile`, `name` (required), `notes`, `open_balance`, `open_balance_date`, `pager`, `parent_ref`, `phone`, `preferred_delivery_method`, `preferred_payment_method_ref`, `price_level_ref`, `print_as`, `request_id`, `resale_number`, `sales_rep_ref`, `sales_tax_code_ref`, `sales_tax_country`, `salutation`, `ship_address`, `ship_to_address`, `suffix`, `tax_registration_number`, `terms_ref`.
|
|
16
|
+
*
|
|
17
|
+
* Resolves to the queued request.
|
|
18
|
+
* @see https://docs.qubesync.com/api-reference/v2/customers/create-customer
|
|
19
|
+
*/
|
|
20
|
+
create(connectionId: string, params: CustomerCreateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
21
|
+
/**
|
|
22
|
+
* List customers: `GET /connections/{connection_id}/customers`, 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`, `from_modified_date`, `full_name`, `include`, `iterator`, `list_id`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `owner_id`, `request_id`, `to_modified_date`.
|
|
28
|
+
*
|
|
29
|
+
* Resolves to the queued request.
|
|
30
|
+
* @see https://docs.qubesync.com/api-reference/v2/customers/list-customers
|
|
31
|
+
*/
|
|
32
|
+
query(connectionId: string, params: CustomerQueryParams | undefined, options: OperationOptions): Promise<QueuedRequest>;
|
|
33
|
+
/**
|
|
34
|
+
* Update customer: `PUT /connections/{connection_id}/customers`, 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`, `bill_address`, `cc`, `class_ref`, `company_name`, `contact`, `contacts_mod`, `credit_card_info`, `credit_limit`, `currency_ref`, `customer_type_ref`, `delivery_method`, `edit_sequence` (required), `email`, `fax`, `first_name`, `include_ret_element`, `is_active`, `is_statement_with_parent`, `item_sales_tax_ref`, `job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, `job_status`, `job_title`, `job_type_ref`, `last_name`, `list_id` (required), `middle_name`, `mobile`, `name`, `notes`, `pager`, `parent_ref`, `phone`, `preferred_delivery_method`, `preferred_payment_method_ref`, `price_level_ref`, `print_as`, `request_id`, `resale_number`, `sales_rep_ref`, `sales_tax_code_ref`, `sales_tax_country`, `salutation`, `ship_address`, `ship_to_address`, `suffix`, `tax_registration_number`, `terms_ref`.
|
|
40
|
+
*
|
|
41
|
+
* Resolves to the queued request.
|
|
42
|
+
* @see https://docs.qubesync.com/api-reference/v2/customers/update-customer
|
|
43
|
+
*/
|
|
44
|
+
update(connectionId: string, params: CustomerUpdateParams, options: OperationOptions): Promise<QueuedRequest>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The params of `customer.create`: Create customer.
|
|
49
|
+
*/
|
|
50
|
+
export interface CustomerCreateParams {
|
|
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?: AdditionalNotes[];
|
|
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
|
+
* 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 `ship_address_block` or `bill_address_block`.
|
|
67
|
+
*/
|
|
68
|
+
bill_address?: BillAddress;
|
|
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
|
+
* Customer’s credit-card information.
|
|
88
|
+
*/
|
|
89
|
+
credit_card_info?: CreditCardInfo;
|
|
90
|
+
/**
|
|
91
|
+
* 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.
|
|
92
|
+
*/
|
|
93
|
+
credit_limit?: number;
|
|
94
|
+
/**
|
|
95
|
+
* 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.
|
|
96
|
+
*/
|
|
97
|
+
currency_ref?: CurrencyRef;
|
|
98
|
+
/**
|
|
99
|
+
* Customer types allow business owners to categorize customers in ways that are meaningful for their businesses. For example, a customer type might indicate which industry a customer represents, or which part of the country a customer is in. A `customer_type_ref` aggregate refers to one of the types on the CustomerType list.
|
|
100
|
+
*/
|
|
101
|
+
customer_type_ref?: CurrencyRef;
|
|
102
|
+
delivery_method?: "Email" | "Fax" | "Print";
|
|
103
|
+
/**
|
|
104
|
+
* E-mail address.
|
|
105
|
+
*/
|
|
106
|
+
email?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Allows for the attachment of a user defined GUID value.
|
|
109
|
+
*/
|
|
110
|
+
external_guid?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Fax number.
|
|
113
|
+
*/
|
|
114
|
+
fax?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The first name of a customer, vendor, employee, or person on the “other names” list.
|
|
117
|
+
*/
|
|
118
|
+
first_name?: string;
|
|
119
|
+
include_ret_element?: Array<"AccountNumber" | "AdditionalContactRef" | "AdditionalNotesRet" | "AltContact" | "AltPhone" | "Balance" | "BillAddress" | "BillAddressBlock" | "Cc" | "ClassRef" | "CompanyName" | "Contact" | "ContactsRet" | "CreditCardInfo" | "CreditLimit" | "CurrencyRef" | "CustomerTypeRef" | "DataExtRet" | "DeliveryMethod" | "EditSequence" | "Email" | "ExternalGUID" | "Fax" | "FirstName" | "FullName" | "IsActive" | "IsStatementWithParent" | "ItemSalesTaxRef" | "JobDesc" | "JobEndDate" | "JobProjectedEndDate" | "JobStartDate" | "JobStatus" | "JobTitle" | "JobTypeRef" | "LastName" | "ListID" | "MiddleName" | "Mobile" | "Name" | "Notes" | "OwnerID" | "Pager" | "ParentRef" | "Phone" | "PreferredDeliveryMethod" | "PreferredPaymentMethodRef" | "PriceLevelRef" | "PrintAs" | "ResaleNumber" | "SalesRepRef" | "SalesTaxCodeRef" | "SalesTaxCountry" | "Salutation" | "ShipAddress" | "ShipAddressBlock" | "ShipToAddress" | "Sublevel" | "Suffix" | "TaxRegistrationNumber" | "TermsRef" | "TimeCreated" | "TimeModified" | "TotalBalance" | "TxnID" | "TxnNumber">;
|
|
120
|
+
/**
|
|
121
|
+
* If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
|
|
122
|
+
*/
|
|
123
|
+
is_active?: boolean;
|
|
124
|
+
is_statement_with_parent?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.
|
|
127
|
+
*/
|
|
128
|
+
item_sales_tax_ref?: CurrencyRef;
|
|
129
|
+
/**
|
|
130
|
+
* A short job description for a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
131
|
+
*/
|
|
132
|
+
job_desc?: string;
|
|
133
|
+
/**
|
|
134
|
+
* The date on which work for a sub-customer was completed; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
135
|
+
*
|
|
136
|
+
* Format: date.
|
|
137
|
+
*/
|
|
138
|
+
job_end_date?: string;
|
|
139
|
+
/**
|
|
140
|
+
* The date on which work for a sub-customer is expected to be complete; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
141
|
+
*
|
|
142
|
+
* Format: date.
|
|
143
|
+
*/
|
|
144
|
+
job_projected_end_date?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The date on which work for a sub-customer was started; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
147
|
+
*
|
|
148
|
+
* Format: date.
|
|
149
|
+
*/
|
|
150
|
+
job_start_date?: string;
|
|
151
|
+
/**
|
|
152
|
+
* `job_status` Status information about a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
153
|
+
*/
|
|
154
|
+
job_status?: "Awarded" | "Closed" | "InProgress" | "None" | "NotAwarded" | "Pending";
|
|
155
|
+
/**
|
|
156
|
+
* The job title of a customer, vendor, employee, or person on the “other names” list.
|
|
157
|
+
*/
|
|
158
|
+
job_title?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Job type can be used to separate jobs into any categories that are meaningful to the business. A `job_type_ref` aggregate refers to a job type on the JobType list. In a request, if a `job_type_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
161
|
+
*/
|
|
162
|
+
job_type_ref?: CurrencyRef;
|
|
163
|
+
/**
|
|
164
|
+
* The last name of a customer, vendor, employee, or person on the “other names” list.
|
|
165
|
+
*/
|
|
166
|
+
last_name?: string;
|
|
167
|
+
/**
|
|
168
|
+
* The middle name of a customer, vendor, employee, or person on the “other names” list.
|
|
169
|
+
*/
|
|
170
|
+
middle_name?: string;
|
|
171
|
+
mobile?: string;
|
|
172
|
+
/**
|
|
173
|
+
* 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.
|
|
174
|
+
*/
|
|
175
|
+
name: string;
|
|
176
|
+
/**
|
|
177
|
+
* Not supported.
|
|
178
|
+
*/
|
|
179
|
+
notes?: string;
|
|
180
|
+
/**
|
|
181
|
+
* The opening balance of this customer’s account. A positive number indicates money owed by the customer.
|
|
182
|
+
*/
|
|
183
|
+
open_balance?: number;
|
|
184
|
+
/**
|
|
185
|
+
* The date of the opening balance for this customer.
|
|
186
|
+
*
|
|
187
|
+
* Format: date.
|
|
188
|
+
*/
|
|
189
|
+
open_balance_date?: string;
|
|
190
|
+
pager?: string;
|
|
191
|
+
/**
|
|
192
|
+
* A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
193
|
+
*/
|
|
194
|
+
parent_ref?: CurrencyRef;
|
|
195
|
+
/**
|
|
196
|
+
* The telephone number.
|
|
197
|
+
*/
|
|
198
|
+
phone?: string;
|
|
199
|
+
/**
|
|
200
|
+
* Preference for how invoices are delivered.
|
|
201
|
+
*/
|
|
202
|
+
preferred_delivery_method?: "Email" | "Fax" | "None";
|
|
203
|
+
/**
|
|
204
|
+
* Refers to a PaymentMethod object. In a request, if a `preferred_payment_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
205
|
+
*/
|
|
206
|
+
preferred_payment_method_ref?: CurrencyRef;
|
|
207
|
+
/**
|
|
208
|
+
* Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.
|
|
209
|
+
*/
|
|
210
|
+
price_level_ref?: CurrencyRef;
|
|
211
|
+
print_as?: string;
|
|
212
|
+
/**
|
|
213
|
+
* 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`.
|
|
214
|
+
*/
|
|
215
|
+
request_id?: string;
|
|
216
|
+
/**
|
|
217
|
+
* The customer’s resale number, if they have one. This number won’t affect reports or sales tax calculations.
|
|
218
|
+
*/
|
|
219
|
+
resale_number?: string;
|
|
220
|
+
/**
|
|
221
|
+
* 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.
|
|
222
|
+
*/
|
|
223
|
+
sales_rep_ref?: CurrencyRef;
|
|
224
|
+
/**
|
|
225
|
+
* `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.
|
|
226
|
+
*/
|
|
227
|
+
sales_tax_code_ref?: CurrencyRef;
|
|
228
|
+
/**
|
|
229
|
+
* Country that sales tax is collected for.
|
|
230
|
+
*/
|
|
231
|
+
sales_tax_country?: "Australia" | "Canada" | "UK" | "US";
|
|
232
|
+
/**
|
|
233
|
+
* A formal reference, such as Mr. or Dr., that precedes a name.
|
|
234
|
+
*/
|
|
235
|
+
salutation?: string;
|
|
236
|
+
/**
|
|
237
|
+
* 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 `ship_address_block` or `bill_address_block`.
|
|
238
|
+
*/
|
|
239
|
+
ship_address?: BillAddress;
|
|
240
|
+
ship_to_address?: ShipToAddress[];
|
|
241
|
+
suffix?: string;
|
|
242
|
+
/**
|
|
243
|
+
* Tax registration number used in CA and UK.
|
|
244
|
+
*/
|
|
245
|
+
tax_registration_number?: string;
|
|
246
|
+
/**
|
|
247
|
+
* 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.
|
|
248
|
+
*/
|
|
249
|
+
terms_ref?: CurrencyRef;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The params of `customer.query`: List customers.
|
|
254
|
+
*/
|
|
255
|
+
export interface CustomerQueryParams {
|
|
256
|
+
/**
|
|
257
|
+
* 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.
|
|
258
|
+
*
|
|
259
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
260
|
+
*/
|
|
261
|
+
active_status?: "ActiveOnly" | "All" | "InactiveOnly";
|
|
262
|
+
/**
|
|
263
|
+
* 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.
|
|
264
|
+
*
|
|
265
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
266
|
+
*
|
|
267
|
+
* Format: date-time.
|
|
268
|
+
*/
|
|
269
|
+
from_modified_date?: string;
|
|
270
|
+
/**
|
|
271
|
+
* `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.
|
|
272
|
+
*
|
|
273
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
274
|
+
*/
|
|
275
|
+
full_name?: string[];
|
|
276
|
+
include?: Array<"AccountNumber" | "AdditionalContactRef" | "AdditionalNotesRet" | "AltContact" | "AltPhone" | "Balance" | "BillAddress" | "BillAddressBlock" | "Cc" | "ClassRef" | "CompanyName" | "Contact" | "ContactsRet" | "CreditCardInfo" | "CreditLimit" | "CurrencyRef" | "CustomerTypeRef" | "DataExtRet" | "DeliveryMethod" | "EditSequence" | "Email" | "ExternalGUID" | "Fax" | "FirstName" | "FullName" | "IsActive" | "IsStatementWithParent" | "ItemSalesTaxRef" | "JobDesc" | "JobEndDate" | "JobProjectedEndDate" | "JobStartDate" | "JobStatus" | "JobTitle" | "JobTypeRef" | "LastName" | "ListID" | "MiddleName" | "Mobile" | "Name" | "Notes" | "Pager" | "ParentRef" | "Phone" | "PreferredDeliveryMethod" | "PreferredPaymentMethodRef" | "PriceLevelRef" | "PrintAs" | "ResaleNumber" | "SalesRepRef" | "SalesTaxCodeRef" | "SalesTaxCountry" | "Salutation" | "ShipAddress" | "ShipAddressBlock" | "ShipToAddress" | "Sublevel" | "Suffix" | "TaxRegistrationNumber" | "TermsRef" | "TimeCreated" | "TimeModified" | "TotalBalance">;
|
|
277
|
+
/**
|
|
278
|
+
* 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.
|
|
279
|
+
*/
|
|
280
|
+
iterator?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* `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`.
|
|
283
|
+
*
|
|
284
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
285
|
+
*/
|
|
286
|
+
list_id?: string[];
|
|
287
|
+
/**
|
|
288
|
+
* Limits the number of objects that a query returns. (To get a count of how many objects could possibly be returned, use the metaData query attribute.) If you include a `max_returned` value, it must be at least 1.
|
|
289
|
+
*
|
|
290
|
+
* 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.
|
|
291
|
+
*
|
|
292
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
293
|
+
*
|
|
294
|
+
* Minimum 1.
|
|
295
|
+
*/
|
|
296
|
+
max_returned?: number;
|
|
297
|
+
/**
|
|
298
|
+
* Filters according to the object’s Name.
|
|
299
|
+
*
|
|
300
|
+
* Choose at most one of: the set (`name_contains`, `name_ends_with`, `name_starts_with`), or `name_range`. Members of a set combine with each other, not with the other choices.
|
|
301
|
+
*/
|
|
302
|
+
name_contains?: string;
|
|
303
|
+
/**
|
|
304
|
+
* Filters according to the object’s Name.
|
|
305
|
+
*
|
|
306
|
+
* Choose at most one of: the set (`name_contains`, `name_ends_with`, `name_starts_with`), or `name_range`. Members of a set combine with each other, not with the other choices.
|
|
307
|
+
*/
|
|
308
|
+
name_ends_with?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Filters according to the object’s Name.
|
|
311
|
+
*
|
|
312
|
+
* Choose at most one of: the set (`name_contains`, `name_ends_with`, `name_starts_with`), or `name_range`. Members of a set combine with each other, not with the other choices.
|
|
313
|
+
*/
|
|
314
|
+
name_range?: NameRange;
|
|
315
|
+
/**
|
|
316
|
+
* Filters according to the object’s Name.
|
|
317
|
+
*
|
|
318
|
+
* Choose at most one of: the set (`name_contains`, `name_ends_with`, `name_starts_with`), or `name_range`. Members of a set combine with each other, not with the other choices.
|
|
319
|
+
*/
|
|
320
|
+
name_starts_with?: string;
|
|
321
|
+
/**
|
|
322
|
+
* `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.
|
|
323
|
+
*/
|
|
324
|
+
owner_id?: string[];
|
|
325
|
+
/**
|
|
326
|
+
* 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`.
|
|
327
|
+
*/
|
|
328
|
+
request_id?: string;
|
|
329
|
+
/**
|
|
330
|
+
* 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).
|
|
331
|
+
*
|
|
332
|
+
* Choose at most one of: `list_id`, or `full_name`, or the set (`active_status`, `from_modified_date`, `max_returned`, `name_contains`, `name_ends_with`, `name_range`, `name_starts_with`, `to_modified_date`). Members of a set combine with each other, not with the other choices.
|
|
333
|
+
*
|
|
334
|
+
* Format: date-time.
|
|
335
|
+
*/
|
|
336
|
+
to_modified_date?: string;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* The params of `customer.update`: Update customer.
|
|
341
|
+
*/
|
|
342
|
+
export interface CustomerUpdateParams {
|
|
343
|
+
/**
|
|
344
|
+
* 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.
|
|
345
|
+
*/
|
|
346
|
+
account_number?: string;
|
|
347
|
+
additional_contact_ref?: AdditionalContactRef[];
|
|
348
|
+
additional_notes_mod?: AdditionalNotesMod[];
|
|
349
|
+
/**
|
|
350
|
+
* The name of an alternate contact person for a vendor, customer, or “other name” entry.
|
|
351
|
+
*/
|
|
352
|
+
alt_contact?: string;
|
|
353
|
+
/**
|
|
354
|
+
* A telephone number given as an alternative to Phone.
|
|
355
|
+
*/
|
|
356
|
+
alt_phone?: string;
|
|
357
|
+
/**
|
|
358
|
+
* 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 `ship_address_block` or `bill_address_block`.
|
|
359
|
+
*/
|
|
360
|
+
bill_address?: BillAddress;
|
|
361
|
+
/**
|
|
362
|
+
* Email address that would be carbon copied or CC.
|
|
363
|
+
*/
|
|
364
|
+
cc?: string;
|
|
365
|
+
/**
|
|
366
|
+
* 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.
|
|
367
|
+
*/
|
|
368
|
+
class_ref?: CurrencyRef;
|
|
369
|
+
/**
|
|
370
|
+
* 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.)
|
|
371
|
+
*/
|
|
372
|
+
company_name?: string;
|
|
373
|
+
/**
|
|
374
|
+
* The name of a contact person for a customer or vendor.
|
|
375
|
+
*/
|
|
376
|
+
contact?: string;
|
|
377
|
+
contacts_mod?: ContactsMod[];
|
|
378
|
+
/**
|
|
379
|
+
* Customer’s credit-card information.
|
|
380
|
+
*/
|
|
381
|
+
credit_card_info?: CreditCardInfo;
|
|
382
|
+
/**
|
|
383
|
+
* 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.
|
|
384
|
+
*/
|
|
385
|
+
credit_limit?: number;
|
|
386
|
+
/**
|
|
387
|
+
* 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.
|
|
388
|
+
*/
|
|
389
|
+
currency_ref?: CurrencyRef;
|
|
390
|
+
/**
|
|
391
|
+
* Customer types allow business owners to categorize customers in ways that are meaningful for their businesses. For example, a customer type might indicate which industry a customer represents, or which part of the country a customer is in. A `customer_type_ref` aggregate refers to one of the types on the CustomerType list.
|
|
392
|
+
*/
|
|
393
|
+
customer_type_ref?: CurrencyRef;
|
|
394
|
+
delivery_method?: "Email" | "Fax" | "Print";
|
|
395
|
+
/**
|
|
396
|
+
* `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.
|
|
397
|
+
*/
|
|
398
|
+
edit_sequence: string;
|
|
399
|
+
/**
|
|
400
|
+
* E-mail address.
|
|
401
|
+
*/
|
|
402
|
+
email?: string;
|
|
403
|
+
/**
|
|
404
|
+
* Fax number.
|
|
405
|
+
*/
|
|
406
|
+
fax?: string;
|
|
407
|
+
/**
|
|
408
|
+
* The first name of a customer, vendor, employee, or person on the “other names” list.
|
|
409
|
+
*/
|
|
410
|
+
first_name?: string;
|
|
411
|
+
include_ret_element?: Array<"AccountNumber" | "AdditionalContactRef" | "AdditionalNotesRet" | "AltContact" | "AltPhone" | "Balance" | "BillAddress" | "BillAddressBlock" | "Cc" | "ClassRef" | "CompanyName" | "Contact" | "ContactsRet" | "CreditCardInfo" | "CreditLimit" | "CurrencyRef" | "CustomerTypeRef" | "DataExtRet" | "DeliveryMethod" | "EditSequence" | "Email" | "ExternalGUID" | "Fax" | "FirstName" | "FullName" | "IsActive" | "IsStatementWithParent" | "ItemSalesTaxRef" | "JobDesc" | "JobEndDate" | "JobProjectedEndDate" | "JobStartDate" | "JobStatus" | "JobTitle" | "JobTypeRef" | "LastName" | "ListID" | "MiddleName" | "Mobile" | "Name" | "Notes" | "OwnerID" | "Pager" | "ParentRef" | "Phone" | "PreferredDeliveryMethod" | "PreferredPaymentMethodRef" | "PriceLevelRef" | "PrintAs" | "ResaleNumber" | "SalesRepRef" | "SalesTaxCodeRef" | "SalesTaxCountry" | "Salutation" | "ShipAddress" | "ShipAddressBlock" | "ShipToAddress" | "Sublevel" | "Suffix" | "TaxRegistrationNumber" | "TermsRef" | "TimeCreated" | "TimeModified" | "TotalBalance" | "TxnID" | "TxnNumber">;
|
|
412
|
+
/**
|
|
413
|
+
* If `is_active` is true, this object is currently enabled for use by QuickBooks. The default value is true.
|
|
414
|
+
*/
|
|
415
|
+
is_active?: boolean;
|
|
416
|
+
is_statement_with_parent?: boolean;
|
|
417
|
+
/**
|
|
418
|
+
* An ItemSalesTax entry represents one tax rate paid to one tax agency. Use it when a transaction needs a single tax calculation. For multi-rate scenarios, use a sales-tax group instead. If both `full_name` and `list_id` are provided for `item_sales_tax_ref`, `list_id` is used.
|
|
419
|
+
*/
|
|
420
|
+
item_sales_tax_ref?: CurrencyRef;
|
|
421
|
+
/**
|
|
422
|
+
* A short job description for a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
423
|
+
*/
|
|
424
|
+
job_desc?: string;
|
|
425
|
+
/**
|
|
426
|
+
* The date on which work for a sub-customer was completed; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
427
|
+
*
|
|
428
|
+
* Format: date.
|
|
429
|
+
*/
|
|
430
|
+
job_end_date?: string;
|
|
431
|
+
/**
|
|
432
|
+
* The date on which work for a sub-customer is expected to be complete; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
433
|
+
*
|
|
434
|
+
* Format: date.
|
|
435
|
+
*/
|
|
436
|
+
job_projected_end_date?: string;
|
|
437
|
+
/**
|
|
438
|
+
* The date on which work for a sub-customer was started; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
439
|
+
*
|
|
440
|
+
* Format: date.
|
|
441
|
+
*/
|
|
442
|
+
job_start_date?: string;
|
|
443
|
+
/**
|
|
444
|
+
* `job_status` Status information about a sub-customer; used in reports. The Job- elements (`job_desc`, `job_end_date`, `job_projected_end_date`, `job_start_date`, and `job_status`) correspond to the fields in the Job Info tab of the Edit Job window in QuickBooks.
|
|
445
|
+
*/
|
|
446
|
+
job_status?: "Awarded" | "Closed" | "InProgress" | "None" | "NotAwarded" | "Pending";
|
|
447
|
+
/**
|
|
448
|
+
* The job title of a customer, vendor, employee, or person on the “other names” list.
|
|
449
|
+
*/
|
|
450
|
+
job_title?: string;
|
|
451
|
+
/**
|
|
452
|
+
* Job type can be used to separate jobs into any categories that are meaningful to the business. A `job_type_ref` aggregate refers to a job type on the JobType list. In a request, if a `job_type_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
453
|
+
*/
|
|
454
|
+
job_type_ref?: CurrencyRef;
|
|
455
|
+
/**
|
|
456
|
+
* The last name of a customer, vendor, employee, or person on the “other names” list.
|
|
457
|
+
*/
|
|
458
|
+
last_name?: string;
|
|
459
|
+
/**
|
|
460
|
+
* `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`.
|
|
461
|
+
*/
|
|
462
|
+
list_id: string;
|
|
463
|
+
/**
|
|
464
|
+
* The middle name of a customer, vendor, employee, or person on the “other names” list.
|
|
465
|
+
*/
|
|
466
|
+
middle_name?: string;
|
|
467
|
+
mobile?: string;
|
|
468
|
+
/**
|
|
469
|
+
* 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.
|
|
470
|
+
*/
|
|
471
|
+
name?: string;
|
|
472
|
+
/**
|
|
473
|
+
* Not supported.
|
|
474
|
+
*/
|
|
475
|
+
notes?: string;
|
|
476
|
+
pager?: string;
|
|
477
|
+
/**
|
|
478
|
+
* A reference to the list object that is one level above this one. For example, an inventory item with the `full_name` of GermanCars:Mercedes-Benz:CL500I99AA might have a parent object with the `full_name` of GermanCars:Mercedes-Benz. In a request, if a `parent_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
479
|
+
*/
|
|
480
|
+
parent_ref?: CurrencyRef;
|
|
481
|
+
/**
|
|
482
|
+
* The telephone number.
|
|
483
|
+
*/
|
|
484
|
+
phone?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Preference for how invoices are delivered.
|
|
487
|
+
*/
|
|
488
|
+
preferred_delivery_method?: "Email" | "Fax" | "None";
|
|
489
|
+
/**
|
|
490
|
+
* Refers to a PaymentMethod object. In a request, if a `preferred_payment_method_ref` aggregate includes both `full_name` and `list_id`, `full_name` will be ignored.
|
|
491
|
+
*/
|
|
492
|
+
preferred_payment_method_ref?: CurrencyRef;
|
|
493
|
+
/**
|
|
494
|
+
* Price levels let you apply custom pricing rules for selected customers. Once assigned, QuickBooks uses those prices automatically on supported sales forms unless explicitly overridden.
|
|
495
|
+
*/
|
|
496
|
+
price_level_ref?: CurrencyRef;
|
|
497
|
+
print_as?: string;
|
|
498
|
+
/**
|
|
499
|
+
* 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`.
|
|
500
|
+
*/
|
|
501
|
+
request_id?: string;
|
|
502
|
+
/**
|
|
503
|
+
* The customer’s resale number, if they have one. This number won’t affect reports or sales tax calculations.
|
|
504
|
+
*/
|
|
505
|
+
resale_number?: string;
|
|
506
|
+
/**
|
|
507
|
+
* 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.
|
|
508
|
+
*/
|
|
509
|
+
sales_rep_ref?: CurrencyRef;
|
|
510
|
+
/**
|
|
511
|
+
* `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.
|
|
512
|
+
*/
|
|
513
|
+
sales_tax_code_ref?: CurrencyRef;
|
|
514
|
+
/**
|
|
515
|
+
* The country that sales tax is collected for.
|
|
516
|
+
*/
|
|
517
|
+
sales_tax_country?: "Australia" | "Canada" | "UK" | "US";
|
|
518
|
+
/**
|
|
519
|
+
* A formal reference, such as Mr. or Dr., that precedes a name.
|
|
520
|
+
*/
|
|
521
|
+
salutation?: string;
|
|
522
|
+
/**
|
|
523
|
+
* 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 `ship_address_block` or `bill_address_block`.
|
|
524
|
+
*/
|
|
525
|
+
ship_address?: BillAddress;
|
|
526
|
+
ship_to_address?: ShipToAddress[];
|
|
527
|
+
suffix?: string;
|
|
528
|
+
/**
|
|
529
|
+
* The tax registration number used in CA and UK.
|
|
530
|
+
*/
|
|
531
|
+
tax_registration_number?: string;
|
|
532
|
+
/**
|
|
533
|
+
* 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.
|
|
534
|
+
*/
|
|
535
|
+
terms_ref?: CurrencyRef;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export interface AdditionalNotes {
|
|
539
|
+
/**
|
|
540
|
+
* In a `bill_address` 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.
|
|
541
|
+
*/
|
|
542
|
+
note: string;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
export interface AdditionalNotesMod {
|
|
546
|
+
/**
|
|
547
|
+
* In a `bill_address` 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.
|
|
548
|
+
*/
|
|
549
|
+
note: string;
|
|
550
|
+
/**
|
|
551
|
+
* The ID of the note.
|
|
552
|
+
*/
|
|
553
|
+
note_id: number;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
export interface CreditCardInfo {
|
|
557
|
+
/**
|
|
558
|
+
* The address associated with this credit card.
|
|
559
|
+
*/
|
|
560
|
+
credit_card_address?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Credit-card number for this customer or this payment. Beginning with qbXML spec 6.0 and QuickBooks 2007, you must mask the credit card number with lower case “x” and no dashes. For example, xxxxxxxxxxxx1234.
|
|
563
|
+
*/
|
|
564
|
+
credit_card_number?: string;
|
|
565
|
+
/**
|
|
566
|
+
* The postal code associated with the address for this credit card.
|
|
567
|
+
*/
|
|
568
|
+
credit_card_postal_code?: string;
|
|
569
|
+
/**
|
|
570
|
+
* The month when the credit card expires.
|
|
571
|
+
*
|
|
572
|
+
* Minimum 1. Maximum 12.
|
|
573
|
+
*/
|
|
574
|
+
expiration_month?: number;
|
|
575
|
+
/**
|
|
576
|
+
* The year when the credit card expires.
|
|
577
|
+
*/
|
|
578
|
+
expiration_year?: number;
|
|
579
|
+
/**
|
|
580
|
+
* The name on the customer’s credit card.
|
|
581
|
+
*/
|
|
582
|
+
name_on_card?: string;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export interface NameRange {
|
|
586
|
+
from?: string;
|
|
587
|
+
to?: string;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
export interface ShipToAddress {
|
|
591
|
+
/**
|
|
592
|
+
* The first line of an address.
|
|
593
|
+
*/
|
|
594
|
+
addr1?: string;
|
|
595
|
+
/**
|
|
596
|
+
* The second line of an address (if a second line is needed).
|
|
597
|
+
*/
|
|
598
|
+
addr2?: string;
|
|
599
|
+
/**
|
|
600
|
+
* The third line of an address (if a third line is needed).
|
|
601
|
+
*/
|
|
602
|
+
addr3?: string;
|
|
603
|
+
/**
|
|
604
|
+
* The fourth line of an address (if a fourth line is needed).
|
|
605
|
+
*/
|
|
606
|
+
addr4?: string;
|
|
607
|
+
/**
|
|
608
|
+
* The fifth line of an address (if a fifth line is needed).
|
|
609
|
+
*/
|
|
610
|
+
addr5?: string;
|
|
611
|
+
/**
|
|
612
|
+
* The city name in an address.
|
|
613
|
+
*/
|
|
614
|
+
city?: string;
|
|
615
|
+
/**
|
|
616
|
+
* The country name in an address, or, in returned Host information (HostRet or HostInfo), the country for which this edition of QuickBooks was designed. (Possible values are US, CA, UK, and AU.)
|
|
617
|
+
*/
|
|
618
|
+
country?: string;
|
|
619
|
+
/**
|
|
620
|
+
* Flag that address is the default ship to address.
|
|
621
|
+
*/
|
|
622
|
+
default_ship_to?: boolean;
|
|
623
|
+
/**
|
|
624
|
+
* 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.
|
|
625
|
+
*/
|
|
626
|
+
name: string;
|
|
627
|
+
/**
|
|
628
|
+
* In a `bill_address` 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.
|
|
629
|
+
*/
|
|
630
|
+
note?: string;
|
|
631
|
+
/**
|
|
632
|
+
* The postal code in an address.
|
|
633
|
+
*/
|
|
634
|
+
postal_code?: string;
|
|
635
|
+
/**
|
|
636
|
+
* The state name in an address.
|
|
637
|
+
*/
|
|
638
|
+
state?: string;
|
|
639
|
+
}
|