conductor-node 12.4.0 → 12.5.1
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 +21 -0
- package/package.json +1 -1
- package/resources/auth-sessions.d.ts +8 -0
- package/resources/auth-sessions.d.ts.map +1 -1
- package/resources/auth-sessions.js +8 -0
- package/resources/auth-sessions.js.map +1 -1
- package/resources/auth-sessions.mjs +8 -0
- package/resources/auth-sessions.mjs.map +1 -1
- package/resources/end-users.d.ts +37 -0
- package/resources/end-users.d.ts.map +1 -1
- package/resources/end-users.js +28 -0
- package/resources/end-users.js.map +1 -1
- package/resources/end-users.mjs +28 -0
- package/resources/end-users.mjs.map +1 -1
- package/resources/qbd/account-tax-lines.d.ts +8 -0
- package/resources/qbd/account-tax-lines.d.ts.map +1 -1
- package/resources/qbd/account-tax-lines.js +8 -0
- package/resources/qbd/account-tax-lines.js.map +1 -1
- package/resources/qbd/account-tax-lines.mjs +8 -0
- package/resources/qbd/account-tax-lines.mjs.map +1 -1
- package/resources/qbd/accounts.d.ts +35 -0
- package/resources/qbd/accounts.d.ts.map +1 -1
- package/resources/qbd/accounts.js +35 -0
- package/resources/qbd/accounts.js.map +1 -1
- package/resources/qbd/accounts.mjs +35 -0
- package/resources/qbd/accounts.mjs.map +1 -1
- package/resources/qbd/bill-check-payments.d.ts +54 -0
- package/resources/qbd/bill-check-payments.d.ts.map +1 -1
- package/resources/qbd/bill-check-payments.js +54 -0
- package/resources/qbd/bill-check-payments.js.map +1 -1
- package/resources/qbd/bill-check-payments.mjs +54 -0
- package/resources/qbd/bill-check-payments.mjs.map +1 -1
- package/resources/qbd/bill-credit-card-payments.d.ts +42 -0
- package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
- package/resources/qbd/bill-credit-card-payments.js +42 -0
- package/resources/qbd/bill-credit-card-payments.js.map +1 -1
- package/resources/qbd/bill-credit-card-payments.mjs +42 -0
- package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
- package/resources/qbd/bills.d.ts +46 -0
- package/resources/qbd/bills.d.ts.map +1 -1
- package/resources/qbd/bills.js +46 -0
- package/resources/qbd/bills.js.map +1 -1
- package/resources/qbd/bills.mjs +46 -0
- package/resources/qbd/bills.mjs.map +1 -1
- package/resources/qbd/checks.d.ts +46 -0
- package/resources/qbd/checks.d.ts.map +1 -1
- package/resources/qbd/checks.js +46 -0
- package/resources/qbd/checks.js.map +1 -1
- package/resources/qbd/checks.mjs +46 -0
- package/resources/qbd/checks.mjs.map +1 -1
- package/resources/qbd/classes.d.ts +34 -0
- package/resources/qbd/classes.d.ts.map +1 -1
- package/resources/qbd/classes.js +34 -0
- package/resources/qbd/classes.js.map +1 -1
- package/resources/qbd/classes.mjs +34 -0
- package/resources/qbd/classes.mjs.map +1 -1
- package/resources/qbd/company.d.ts +7 -0
- package/resources/qbd/company.d.ts.map +1 -1
- package/resources/qbd/company.js +7 -0
- package/resources/qbd/company.js.map +1 -1
- package/resources/qbd/company.mjs +7 -0
- package/resources/qbd/company.mjs.map +1 -1
- package/resources/qbd/credit-card-charges.d.ts +50 -0
- package/resources/qbd/credit-card-charges.d.ts.map +1 -1
- package/resources/qbd/credit-card-charges.js +50 -0
- package/resources/qbd/credit-card-charges.js.map +1 -1
- package/resources/qbd/credit-card-charges.mjs +50 -0
- package/resources/qbd/credit-card-charges.mjs.map +1 -1
- package/resources/qbd/credit-card-credits.d.ts +50 -0
- package/resources/qbd/credit-card-credits.d.ts.map +1 -1
- package/resources/qbd/credit-card-credits.js +50 -0
- package/resources/qbd/credit-card-credits.js.map +1 -1
- package/resources/qbd/credit-card-credits.mjs +50 -0
- package/resources/qbd/credit-card-credits.mjs.map +1 -1
- package/resources/qbd/credit-memos.d.ts +46 -0
- package/resources/qbd/credit-memos.d.ts.map +1 -1
- package/resources/qbd/credit-memos.js +46 -0
- package/resources/qbd/credit-memos.js.map +1 -1
- package/resources/qbd/credit-memos.mjs +46 -0
- package/resources/qbd/credit-memos.mjs.map +1 -1
- package/resources/qbd/customers.d.ts +37 -0
- package/resources/qbd/customers.d.ts.map +1 -1
- package/resources/qbd/customers.js +37 -0
- package/resources/qbd/customers.js.map +1 -1
- package/resources/qbd/customers.mjs +37 -0
- package/resources/qbd/customers.mjs.map +1 -1
- package/resources/qbd/date-driven-terms.d.ts +27 -0
- package/resources/qbd/date-driven-terms.d.ts.map +1 -1
- package/resources/qbd/date-driven-terms.js +27 -0
- package/resources/qbd/date-driven-terms.js.map +1 -1
- package/resources/qbd/date-driven-terms.mjs +27 -0
- package/resources/qbd/date-driven-terms.mjs.map +1 -1
- package/resources/qbd/discount-items.d.ts +39 -0
- package/resources/qbd/discount-items.d.ts.map +1 -1
- package/resources/qbd/discount-items.js +39 -0
- package/resources/qbd/discount-items.js.map +1 -1
- package/resources/qbd/discount-items.mjs +39 -0
- package/resources/qbd/discount-items.mjs.map +1 -1
- package/resources/qbd/employees.d.ts +36 -0
- package/resources/qbd/employees.d.ts.map +1 -1
- package/resources/qbd/employees.js +36 -0
- package/resources/qbd/employees.js.map +1 -1
- package/resources/qbd/employees.mjs +36 -0
- package/resources/qbd/employees.mjs.map +1 -1
- package/resources/qbd/estimates.d.ts +46 -0
- package/resources/qbd/estimates.d.ts.map +1 -1
- package/resources/qbd/estimates.js +46 -0
- package/resources/qbd/estimates.js.map +1 -1
- package/resources/qbd/estimates.mjs +46 -0
- package/resources/qbd/estimates.mjs.map +1 -1
- package/resources/qbd/inventory-adjustments.d.ts +48 -0
- package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
- package/resources/qbd/inventory-adjustments.js +48 -0
- package/resources/qbd/inventory-adjustments.js.map +1 -1
- package/resources/qbd/inventory-adjustments.mjs +48 -0
- package/resources/qbd/inventory-adjustments.mjs.map +1 -1
- package/resources/qbd/inventory-assembly-items.d.ts +43 -0
- package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
- package/resources/qbd/inventory-assembly-items.js +43 -0
- package/resources/qbd/inventory-assembly-items.js.map +1 -1
- package/resources/qbd/inventory-assembly-items.mjs +43 -0
- package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
- package/resources/qbd/inventory-items.d.ts +43 -0
- package/resources/qbd/inventory-items.d.ts.map +1 -1
- package/resources/qbd/inventory-items.js +43 -0
- package/resources/qbd/inventory-items.js.map +1 -1
- package/resources/qbd/inventory-items.mjs +43 -0
- package/resources/qbd/inventory-items.mjs.map +1 -1
- package/resources/qbd/inventory-sites.d.ts +37 -0
- package/resources/qbd/inventory-sites.d.ts.map +1 -1
- package/resources/qbd/inventory-sites.js +37 -0
- package/resources/qbd/inventory-sites.js.map +1 -1
- package/resources/qbd/inventory-sites.mjs +37 -0
- package/resources/qbd/inventory-sites.mjs.map +1 -1
- package/resources/qbd/invoices.d.ts +46 -0
- package/resources/qbd/invoices.d.ts.map +1 -1
- package/resources/qbd/invoices.js +46 -0
- package/resources/qbd/invoices.js.map +1 -1
- package/resources/qbd/invoices.mjs +46 -0
- package/resources/qbd/invoices.mjs.map +1 -1
- package/resources/qbd/item-groups.d.ts +38 -0
- package/resources/qbd/item-groups.d.ts.map +1 -1
- package/resources/qbd/item-groups.js +38 -0
- package/resources/qbd/item-groups.js.map +1 -1
- package/resources/qbd/item-groups.mjs +38 -0
- package/resources/qbd/item-groups.mjs.map +1 -1
- package/resources/qbd/item-receipts.d.ts +46 -0
- package/resources/qbd/item-receipts.d.ts.map +1 -1
- package/resources/qbd/item-receipts.js +46 -0
- package/resources/qbd/item-receipts.js.map +1 -1
- package/resources/qbd/item-receipts.mjs +46 -0
- package/resources/qbd/item-receipts.mjs.map +1 -1
- package/resources/qbd/item-sites.d.ts +18 -0
- package/resources/qbd/item-sites.d.ts.map +1 -1
- package/resources/qbd/item-sites.js +18 -0
- package/resources/qbd/item-sites.js.map +1 -1
- package/resources/qbd/item-sites.mjs +18 -0
- package/resources/qbd/item-sites.mjs.map +1 -1
- package/resources/qbd/journal-entries.d.ts +48 -0
- package/resources/qbd/journal-entries.d.ts.map +1 -1
- package/resources/qbd/journal-entries.js +48 -0
- package/resources/qbd/journal-entries.js.map +1 -1
- package/resources/qbd/journal-entries.mjs +48 -0
- package/resources/qbd/journal-entries.mjs.map +1 -1
- package/resources/qbd/non-inventory-items.d.ts +40 -0
- package/resources/qbd/non-inventory-items.d.ts.map +1 -1
- package/resources/qbd/non-inventory-items.js +40 -0
- package/resources/qbd/non-inventory-items.js.map +1 -1
- package/resources/qbd/non-inventory-items.mjs +40 -0
- package/resources/qbd/non-inventory-items.mjs.map +1 -1
- package/resources/qbd/payroll-wage-items.d.ts +31 -1
- package/resources/qbd/payroll-wage-items.d.ts.map +1 -1
- package/resources/qbd/payroll-wage-items.js +30 -0
- package/resources/qbd/payroll-wage-items.js.map +1 -1
- package/resources/qbd/payroll-wage-items.mjs +30 -0
- package/resources/qbd/payroll-wage-items.mjs.map +1 -1
- package/resources/qbd/preferences.d.ts +7 -0
- package/resources/qbd/preferences.d.ts.map +1 -1
- package/resources/qbd/preferences.js +7 -0
- package/resources/qbd/preferences.js.map +1 -1
- package/resources/qbd/preferences.mjs +7 -0
- package/resources/qbd/preferences.mjs.map +1 -1
- package/resources/qbd/price-levels.d.ts +34 -0
- package/resources/qbd/price-levels.d.ts.map +1 -1
- package/resources/qbd/price-levels.js +34 -0
- package/resources/qbd/price-levels.js.map +1 -1
- package/resources/qbd/price-levels.mjs +34 -0
- package/resources/qbd/price-levels.mjs.map +1 -1
- package/resources/qbd/purchase-orders.d.ts +49 -0
- package/resources/qbd/purchase-orders.d.ts.map +1 -1
- package/resources/qbd/purchase-orders.js +49 -0
- package/resources/qbd/purchase-orders.js.map +1 -1
- package/resources/qbd/purchase-orders.mjs +49 -0
- package/resources/qbd/purchase-orders.mjs.map +1 -1
- package/resources/qbd/qbd.d.ts +7 -0
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +7 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +7 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/receive-payments.d.ts +51 -0
- package/resources/qbd/receive-payments.d.ts.map +1 -1
- package/resources/qbd/receive-payments.js +51 -0
- package/resources/qbd/receive-payments.js.map +1 -1
- package/resources/qbd/receive-payments.mjs +51 -0
- package/resources/qbd/receive-payments.mjs.map +1 -1
- package/resources/qbd/sales-orders.d.ts +46 -0
- package/resources/qbd/sales-orders.d.ts.map +1 -1
- package/resources/qbd/sales-orders.js +46 -0
- package/resources/qbd/sales-orders.js.map +1 -1
- package/resources/qbd/sales-orders.mjs +46 -0
- package/resources/qbd/sales-orders.mjs.map +1 -1
- package/resources/qbd/sales-receipts.d.ts +47 -0
- package/resources/qbd/sales-receipts.d.ts.map +1 -1
- package/resources/qbd/sales-receipts.js +47 -0
- package/resources/qbd/sales-receipts.js.map +1 -1
- package/resources/qbd/sales-receipts.mjs +47 -0
- package/resources/qbd/sales-receipts.mjs.map +1 -1
- package/resources/qbd/sales-representatives.d.ts +39 -0
- package/resources/qbd/sales-representatives.d.ts.map +1 -1
- package/resources/qbd/sales-representatives.js +39 -0
- package/resources/qbd/sales-representatives.js.map +1 -1
- package/resources/qbd/sales-representatives.mjs +39 -0
- package/resources/qbd/sales-representatives.mjs.map +1 -1
- package/resources/qbd/sales-tax-codes.d.ts +36 -0
- package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
- package/resources/qbd/sales-tax-codes.js +36 -0
- package/resources/qbd/sales-tax-codes.js.map +1 -1
- package/resources/qbd/sales-tax-codes.mjs +36 -0
- package/resources/qbd/sales-tax-codes.mjs.map +1 -1
- package/resources/qbd/sales-tax-items.d.ts +38 -0
- package/resources/qbd/sales-tax-items.d.ts.map +1 -1
- package/resources/qbd/sales-tax-items.js +38 -0
- package/resources/qbd/sales-tax-items.js.map +1 -1
- package/resources/qbd/sales-tax-items.mjs +38 -0
- package/resources/qbd/sales-tax-items.mjs.map +1 -1
- package/resources/qbd/service-items.d.ts +37 -0
- package/resources/qbd/service-items.d.ts.map +1 -1
- package/resources/qbd/service-items.js +37 -0
- package/resources/qbd/service-items.js.map +1 -1
- package/resources/qbd/service-items.mjs +37 -0
- package/resources/qbd/service-items.mjs.map +1 -1
- package/resources/qbd/standard-terms.d.ts +24 -0
- package/resources/qbd/standard-terms.d.ts.map +1 -1
- package/resources/qbd/standard-terms.js +24 -0
- package/resources/qbd/standard-terms.js.map +1 -1
- package/resources/qbd/standard-terms.mjs +24 -0
- package/resources/qbd/standard-terms.mjs.map +1 -1
- package/resources/qbd/subtotal-items.d.ts +38 -0
- package/resources/qbd/subtotal-items.d.ts.map +1 -1
- package/resources/qbd/subtotal-items.js +38 -0
- package/resources/qbd/subtotal-items.js.map +1 -1
- package/resources/qbd/subtotal-items.mjs +38 -0
- package/resources/qbd/subtotal-items.mjs.map +1 -1
- package/resources/qbd/time-tracking-activities.d.ts +53 -0
- package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
- package/resources/qbd/time-tracking-activities.js +53 -0
- package/resources/qbd/time-tracking-activities.js.map +1 -1
- package/resources/qbd/time-tracking-activities.mjs +53 -0
- package/resources/qbd/time-tracking-activities.mjs.map +1 -1
- package/resources/qbd/transactions.d.ts +18 -0
- package/resources/qbd/transactions.d.ts.map +1 -1
- package/resources/qbd/transactions.js +18 -0
- package/resources/qbd/transactions.js.map +1 -1
- package/resources/qbd/transactions.mjs +18 -0
- package/resources/qbd/transactions.mjs.map +1 -1
- package/resources/qbd/transfers.d.ts +40 -0
- package/resources/qbd/transfers.d.ts.map +1 -1
- package/resources/qbd/transfers.js +40 -0
- package/resources/qbd/transfers.js.map +1 -1
- package/resources/qbd/transfers.mjs +40 -0
- package/resources/qbd/transfers.mjs.map +1 -1
- package/resources/qbd/vendor-credits.d.ts +47 -0
- package/resources/qbd/vendor-credits.d.ts.map +1 -1
- package/resources/qbd/vendor-credits.js +47 -0
- package/resources/qbd/vendor-credits.js.map +1 -1
- package/resources/qbd/vendor-credits.mjs +47 -0
- package/resources/qbd/vendor-credits.mjs.map +1 -1
- package/resources/qbd/vendors.d.ts +37 -0
- package/resources/qbd/vendors.d.ts.map +1 -1
- package/resources/qbd/vendors.js +37 -0
- package/resources/qbd/vendors.js.map +1 -1
- package/resources/qbd/vendors.mjs +37 -0
- package/resources/qbd/vendors.mjs.map +1 -1
- package/src/resources/auth-sessions.ts +8 -0
- package/src/resources/end-users.ts +37 -0
- package/src/resources/qbd/account-tax-lines.ts +8 -0
- package/src/resources/qbd/accounts.ts +35 -0
- package/src/resources/qbd/bill-check-payments.ts +54 -0
- package/src/resources/qbd/bill-credit-card-payments.ts +42 -0
- package/src/resources/qbd/bills.ts +46 -0
- package/src/resources/qbd/checks.ts +46 -0
- package/src/resources/qbd/classes.ts +34 -0
- package/src/resources/qbd/company.ts +7 -0
- package/src/resources/qbd/credit-card-charges.ts +50 -0
- package/src/resources/qbd/credit-card-credits.ts +50 -0
- package/src/resources/qbd/credit-memos.ts +46 -0
- package/src/resources/qbd/customers.ts +37 -0
- package/src/resources/qbd/date-driven-terms.ts +27 -0
- package/src/resources/qbd/discount-items.ts +39 -0
- package/src/resources/qbd/employees.ts +36 -0
- package/src/resources/qbd/estimates.ts +46 -0
- package/src/resources/qbd/inventory-adjustments.ts +48 -0
- package/src/resources/qbd/inventory-assembly-items.ts +43 -0
- package/src/resources/qbd/inventory-items.ts +43 -0
- package/src/resources/qbd/inventory-sites.ts +37 -0
- package/src/resources/qbd/invoices.ts +46 -0
- package/src/resources/qbd/item-groups.ts +38 -0
- package/src/resources/qbd/item-receipts.ts +46 -0
- package/src/resources/qbd/item-sites.ts +18 -0
- package/src/resources/qbd/journal-entries.ts +48 -0
- package/src/resources/qbd/non-inventory-items.ts +40 -0
- package/src/resources/qbd/payroll-wage-items.ts +31 -1
- package/src/resources/qbd/preferences.ts +7 -0
- package/src/resources/qbd/price-levels.ts +34 -0
- package/src/resources/qbd/purchase-orders.ts +49 -0
- package/src/resources/qbd/qbd.ts +7 -0
- package/src/resources/qbd/receive-payments.ts +51 -0
- package/src/resources/qbd/sales-orders.ts +46 -0
- package/src/resources/qbd/sales-receipts.ts +47 -0
- package/src/resources/qbd/sales-representatives.ts +39 -0
- package/src/resources/qbd/sales-tax-codes.ts +36 -0
- package/src/resources/qbd/sales-tax-items.ts +38 -0
- package/src/resources/qbd/service-items.ts +37 -0
- package/src/resources/qbd/standard-terms.ts +24 -0
- package/src/resources/qbd/subtotal-items.ts +38 -0
- package/src/resources/qbd/time-tracking-activities.ts +53 -0
- package/src/resources/qbd/transactions.ts +18 -0
- package/src/resources/qbd/transfers.ts +40 -0
- package/src/resources/qbd/vendor-credits.ts +47 -0
- package/src/resources/qbd/vendors.ts +37 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -9,6 +9,13 @@ export class CompanyResource extends APIResource {
|
|
|
9
9
|
* including company address, legal name, preferences, and subscribed services.
|
|
10
10
|
* Note that company information cannot be modified through the API, only through
|
|
11
11
|
* the QuickBooks Desktop user interface.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const company = await client.qbd.company.retrieve({
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
12
19
|
*/
|
|
13
20
|
retrieve(params: CompanyRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Company> {
|
|
14
21
|
const { conductorEndUserId } = params;
|
|
@@ -7,6 +7,16 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class CreditCardCharges extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new credit card charge for the specified account.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const creditCardCharge =
|
|
14
|
+
* await client.qbd.creditCardCharges.create({
|
|
15
|
+
* accountId: '80000001-1234567890',
|
|
16
|
+
* transactionDate: '2021-10-01',
|
|
17
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
create(
|
|
12
22
|
params: CreditCardChargeCreateParams,
|
|
@@ -22,6 +32,15 @@ export class CreditCardCharges extends APIResource {
|
|
|
22
32
|
|
|
23
33
|
/**
|
|
24
34
|
* Retrieves a credit card charge by ID.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const creditCardCharge =
|
|
39
|
+
* await client.qbd.creditCardCharges.retrieve(
|
|
40
|
+
* '123ABC-1234567890',
|
|
41
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
25
44
|
*/
|
|
26
45
|
retrieve(
|
|
27
46
|
id: string,
|
|
@@ -37,6 +56,18 @@ export class CreditCardCharges extends APIResource {
|
|
|
37
56
|
|
|
38
57
|
/**
|
|
39
58
|
* Updates an existing credit card charge.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const creditCardCharge =
|
|
63
|
+
* await client.qbd.creditCardCharges.update(
|
|
64
|
+
* '123ABC-1234567890',
|
|
65
|
+
* {
|
|
66
|
+
* revisionNumber: '1721172183',
|
|
67
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
68
|
+
* },
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
40
71
|
*/
|
|
41
72
|
update(
|
|
42
73
|
id: string,
|
|
@@ -54,6 +85,16 @@ export class CreditCardCharges extends APIResource {
|
|
|
54
85
|
/**
|
|
55
86
|
* Returns a list of credit card charges. Use the `cursor` parameter to paginate
|
|
56
87
|
* through the results.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* // Automatically fetches more pages as needed.
|
|
92
|
+
* for await (const creditCardCharge of client.qbd.creditCardCharges.list(
|
|
93
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
94
|
+
* )) {
|
|
95
|
+
* // ...
|
|
96
|
+
* }
|
|
97
|
+
* ```
|
|
57
98
|
*/
|
|
58
99
|
list(
|
|
59
100
|
params: CreditCardChargeListParams,
|
|
@@ -70,6 +111,15 @@ export class CreditCardCharges extends APIResource {
|
|
|
70
111
|
/**
|
|
71
112
|
* Permanently deletes a a credit card charge. The deletion will fail if the credit
|
|
72
113
|
* card charge is currently in use or has any linked transactions that are in use.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* const creditCardCharge =
|
|
118
|
+
* await client.qbd.creditCardCharges.delete(
|
|
119
|
+
* '123ABC-1234567890',
|
|
120
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
121
|
+
* );
|
|
122
|
+
* ```
|
|
73
123
|
*/
|
|
74
124
|
delete(
|
|
75
125
|
id: string,
|
|
@@ -7,6 +7,16 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class CreditCardCredits extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new credit card credit for the specified account.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const creditCardCredit =
|
|
14
|
+
* await client.qbd.creditCardCredits.create({
|
|
15
|
+
* accountId: '80000001-1234567890',
|
|
16
|
+
* transactionDate: '2021-10-01',
|
|
17
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
10
20
|
*/
|
|
11
21
|
create(
|
|
12
22
|
params: CreditCardCreditCreateParams,
|
|
@@ -22,6 +32,15 @@ export class CreditCardCredits extends APIResource {
|
|
|
22
32
|
|
|
23
33
|
/**
|
|
24
34
|
* Retrieves a credit card credit by ID.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const creditCardCredit =
|
|
39
|
+
* await client.qbd.creditCardCredits.retrieve(
|
|
40
|
+
* '123ABC-1234567890',
|
|
41
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
25
44
|
*/
|
|
26
45
|
retrieve(
|
|
27
46
|
id: string,
|
|
@@ -37,6 +56,18 @@ export class CreditCardCredits extends APIResource {
|
|
|
37
56
|
|
|
38
57
|
/**
|
|
39
58
|
* Updates an existing credit card credit.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* const creditCardCredit =
|
|
63
|
+
* await client.qbd.creditCardCredits.update(
|
|
64
|
+
* '123ABC-1234567890',
|
|
65
|
+
* {
|
|
66
|
+
* revisionNumber: '1721172183',
|
|
67
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
68
|
+
* },
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
40
71
|
*/
|
|
41
72
|
update(
|
|
42
73
|
id: string,
|
|
@@ -54,6 +85,16 @@ export class CreditCardCredits extends APIResource {
|
|
|
54
85
|
/**
|
|
55
86
|
* Returns a list of credit card credits. Use the `cursor` parameter to paginate
|
|
56
87
|
* through the results.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* // Automatically fetches more pages as needed.
|
|
92
|
+
* for await (const creditCardCredit of client.qbd.creditCardCredits.list(
|
|
93
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
94
|
+
* )) {
|
|
95
|
+
* // ...
|
|
96
|
+
* }
|
|
97
|
+
* ```
|
|
57
98
|
*/
|
|
58
99
|
list(
|
|
59
100
|
params: CreditCardCreditListParams,
|
|
@@ -70,6 +111,15 @@ export class CreditCardCredits extends APIResource {
|
|
|
70
111
|
/**
|
|
71
112
|
* Permanently deletes a a credit card credit. The deletion will fail if the credit
|
|
72
113
|
* card credit is currently in use or has any linked transactions that are in use.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* const creditCardCredit =
|
|
118
|
+
* await client.qbd.creditCardCredits.delete(
|
|
119
|
+
* '123ABC-1234567890',
|
|
120
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
121
|
+
* );
|
|
122
|
+
* ```
|
|
73
123
|
*/
|
|
74
124
|
delete(
|
|
75
125
|
id: string,
|
|
@@ -7,6 +7,15 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class CreditMemos extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new credit memo.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const creditMemo = await client.qbd.creditMemos.create({
|
|
14
|
+
* customerId: '80000001-1234567890',
|
|
15
|
+
* transactionDate: '2021-10-01',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(params: CreditMemoCreateParams, options?: Core.RequestOptions): Core.APIPromise<CreditMemo> {
|
|
12
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +28,14 @@ export class CreditMemos extends APIResource {
|
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
30
|
* Retrieves a credit memo by ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const creditMemo = await client.qbd.creditMemos.retrieve(
|
|
35
|
+
* '123ABC-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
22
39
|
*/
|
|
23
40
|
retrieve(
|
|
24
41
|
id: string,
|
|
@@ -34,6 +51,17 @@ export class CreditMemos extends APIResource {
|
|
|
34
51
|
|
|
35
52
|
/**
|
|
36
53
|
* Updates an existing credit memo.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const creditMemo = await client.qbd.creditMemos.update(
|
|
58
|
+
* '123ABC-1234567890',
|
|
59
|
+
* {
|
|
60
|
+
* revisionNumber: '1721172183',
|
|
61
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
62
|
+
* },
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
37
65
|
*/
|
|
38
66
|
update(
|
|
39
67
|
id: string,
|
|
@@ -51,6 +79,16 @@ export class CreditMemos extends APIResource {
|
|
|
51
79
|
/**
|
|
52
80
|
* Returns a list of credit memos. Use the `cursor` parameter to paginate through
|
|
53
81
|
* the results.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* // Automatically fetches more pages as needed.
|
|
86
|
+
* for await (const creditMemo of client.qbd.creditMemos.list({
|
|
87
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
88
|
+
* })) {
|
|
89
|
+
* // ...
|
|
90
|
+
* }
|
|
91
|
+
* ```
|
|
54
92
|
*/
|
|
55
93
|
list(
|
|
56
94
|
params: CreditMemoListParams,
|
|
@@ -67,6 +105,14 @@ export class CreditMemos extends APIResource {
|
|
|
67
105
|
/**
|
|
68
106
|
* Permanently deletes a a credit memo. The deletion will fail if the credit memo
|
|
69
107
|
* is currently in use or has any linked transactions that are in use.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* const creditMemo = await client.qbd.creditMemos.delete(
|
|
112
|
+
* '123ABC-1234567890',
|
|
113
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
114
|
+
* );
|
|
115
|
+
* ```
|
|
70
116
|
*/
|
|
71
117
|
delete(
|
|
72
118
|
id: string,
|
|
@@ -7,6 +7,14 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class Customers extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new customer.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const customer = await client.qbd.customers.create({
|
|
14
|
+
* name: 'Website Redesign Project',
|
|
15
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
10
18
|
*/
|
|
11
19
|
create(params: CustomerCreateParams, options?: Core.RequestOptions): Core.APIPromise<Customer> {
|
|
12
20
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +27,14 @@ export class Customers extends APIResource {
|
|
|
19
27
|
|
|
20
28
|
/**
|
|
21
29
|
* Retrieves a customer by ID.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const customer = await client.qbd.customers.retrieve(
|
|
34
|
+
* '80000001-1234567890',
|
|
35
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
22
38
|
*/
|
|
23
39
|
retrieve(
|
|
24
40
|
id: string,
|
|
@@ -34,6 +50,17 @@ export class Customers extends APIResource {
|
|
|
34
50
|
|
|
35
51
|
/**
|
|
36
52
|
* Updates an existing customer.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const customer = await client.qbd.customers.update(
|
|
57
|
+
* '80000001-1234567890',
|
|
58
|
+
* {
|
|
59
|
+
* revisionNumber: '1721172183',
|
|
60
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
61
|
+
* },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
37
64
|
*/
|
|
38
65
|
update(id: string, params: CustomerUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Customer> {
|
|
39
66
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -47,6 +74,16 @@ export class Customers extends APIResource {
|
|
|
47
74
|
/**
|
|
48
75
|
* Returns a list of customers. Use the `cursor` parameter to paginate through the
|
|
49
76
|
* results.
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* ```ts
|
|
80
|
+
* // Automatically fetches more pages as needed.
|
|
81
|
+
* for await (const customer of client.qbd.customers.list({
|
|
82
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
83
|
+
* })) {
|
|
84
|
+
* // ...
|
|
85
|
+
* }
|
|
86
|
+
* ```
|
|
50
87
|
*/
|
|
51
88
|
list(
|
|
52
89
|
params: CustomerListParams,
|
|
@@ -6,6 +6,16 @@ import * as Core from '../../core';
|
|
|
6
6
|
export class DateDrivenTerms extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new date-driven term.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const dateDrivenTerm =
|
|
13
|
+
* await client.qbd.dateDrivenTerms.create({
|
|
14
|
+
* dueDayOfMonth: 15,
|
|
15
|
+
* name: '2% 5th Net 25th',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
9
19
|
*/
|
|
10
20
|
create(params: DateDrivenTermCreateParams, options?: Core.RequestOptions): Core.APIPromise<DateDrivenTerm> {
|
|
11
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -18,6 +28,15 @@ export class DateDrivenTerms extends APIResource {
|
|
|
18
28
|
|
|
19
29
|
/**
|
|
20
30
|
* Retrieves a date-driven term by ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const dateDrivenTerm =
|
|
35
|
+
* await client.qbd.dateDrivenTerms.retrieve(
|
|
36
|
+
* '80000001-1234567890',
|
|
37
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
21
40
|
*/
|
|
22
41
|
retrieve(
|
|
23
42
|
id: string,
|
|
@@ -35,6 +54,14 @@ export class DateDrivenTerms extends APIResource {
|
|
|
35
54
|
* Returns a list of date-driven terms. NOTE: QuickBooks Desktop does not support
|
|
36
55
|
* pagination for date-driven terms; hence, there is no `cursor` parameter. Users
|
|
37
56
|
* typically have few date-driven terms.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const dateDrivenTerms =
|
|
61
|
+
* await client.qbd.dateDrivenTerms.list({
|
|
62
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
38
65
|
*/
|
|
39
66
|
list(
|
|
40
67
|
params: DateDrivenTermListParams,
|
|
@@ -7,6 +7,15 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class DiscountItems extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new discount item.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const discountItem = await client.qbd.discountItems.create({
|
|
14
|
+
* accountId: '80000001-1234567890',
|
|
15
|
+
* name: '10% labor discount',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(params: DiscountItemCreateParams, options?: Core.RequestOptions): Core.APIPromise<DiscountItem> {
|
|
12
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +28,15 @@ export class DiscountItems extends APIResource {
|
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
30
|
* Retrieves a discount item by ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const discountItem =
|
|
35
|
+
* await client.qbd.discountItems.retrieve(
|
|
36
|
+
* '80000001-1234567890',
|
|
37
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
38
|
+
* );
|
|
39
|
+
* ```
|
|
22
40
|
*/
|
|
23
41
|
retrieve(
|
|
24
42
|
id: string,
|
|
@@ -34,6 +52,17 @@ export class DiscountItems extends APIResource {
|
|
|
34
52
|
|
|
35
53
|
/**
|
|
36
54
|
* Updates an existing discount item.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const discountItem = await client.qbd.discountItems.update(
|
|
59
|
+
* '80000001-1234567890',
|
|
60
|
+
* {
|
|
61
|
+
* revisionNumber: '1721172183',
|
|
62
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
63
|
+
* },
|
|
64
|
+
* );
|
|
65
|
+
* ```
|
|
37
66
|
*/
|
|
38
67
|
update(
|
|
39
68
|
id: string,
|
|
@@ -51,6 +80,16 @@ export class DiscountItems extends APIResource {
|
|
|
51
80
|
/**
|
|
52
81
|
* Returns a list of discount items. Use the `cursor` parameter to paginate through
|
|
53
82
|
* the results.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* // Automatically fetches more pages as needed.
|
|
87
|
+
* for await (const discountItem of client.qbd.discountItems.list(
|
|
88
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
89
|
+
* )) {
|
|
90
|
+
* // ...
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
54
93
|
*/
|
|
55
94
|
list(
|
|
56
95
|
params: DiscountItemListParams,
|
|
@@ -7,6 +7,13 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class Employees extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new employee.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const employee = await client.qbd.employees.create({
|
|
14
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
10
17
|
*/
|
|
11
18
|
create(params: EmployeeCreateParams, options?: Core.RequestOptions): Core.APIPromise<Employee> {
|
|
12
19
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +26,14 @@ export class Employees extends APIResource {
|
|
|
19
26
|
|
|
20
27
|
/**
|
|
21
28
|
* Retrieves an employee by ID.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const employee = await client.qbd.employees.retrieve(
|
|
33
|
+
* '80000001-1234567890',
|
|
34
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
22
37
|
*/
|
|
23
38
|
retrieve(
|
|
24
39
|
id: string,
|
|
@@ -34,6 +49,17 @@ export class Employees extends APIResource {
|
|
|
34
49
|
|
|
35
50
|
/**
|
|
36
51
|
* Updates an existing employee.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const employee = await client.qbd.employees.update(
|
|
56
|
+
* '80000001-1234567890',
|
|
57
|
+
* {
|
|
58
|
+
* revisionNumber: '1721172183',
|
|
59
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
60
|
+
* },
|
|
61
|
+
* );
|
|
62
|
+
* ```
|
|
37
63
|
*/
|
|
38
64
|
update(id: string, params: EmployeeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Employee> {
|
|
39
65
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -47,6 +73,16 @@ export class Employees extends APIResource {
|
|
|
47
73
|
/**
|
|
48
74
|
* Returns a list of employees. Use the `cursor` parameter to paginate through the
|
|
49
75
|
* results.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* // Automatically fetches more pages as needed.
|
|
80
|
+
* for await (const employee of client.qbd.employees.list({
|
|
81
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
82
|
+
* })) {
|
|
83
|
+
* // ...
|
|
84
|
+
* }
|
|
85
|
+
* ```
|
|
50
86
|
*/
|
|
51
87
|
list(
|
|
52
88
|
params: EmployeeListParams,
|
|
@@ -7,6 +7,15 @@ import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
|
7
7
|
export class Estimates extends APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new estimate.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const estimate = await client.qbd.estimates.create({
|
|
14
|
+
* customerId: '80000001-1234567890',
|
|
15
|
+
* transactionDate: '2021-10-01',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
10
19
|
*/
|
|
11
20
|
create(params: EstimateCreateParams, options?: Core.RequestOptions): Core.APIPromise<Estimate> {
|
|
12
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -19,6 +28,14 @@ export class Estimates extends APIResource {
|
|
|
19
28
|
|
|
20
29
|
/**
|
|
21
30
|
* Retrieves an estimate by ID.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const estimate = await client.qbd.estimates.retrieve(
|
|
35
|
+
* '123ABC-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
22
39
|
*/
|
|
23
40
|
retrieve(
|
|
24
41
|
id: string,
|
|
@@ -34,6 +51,17 @@ export class Estimates extends APIResource {
|
|
|
34
51
|
|
|
35
52
|
/**
|
|
36
53
|
* Updates an existing estimate.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const estimate = await client.qbd.estimates.update(
|
|
58
|
+
* '123ABC-1234567890',
|
|
59
|
+
* {
|
|
60
|
+
* revisionNumber: '1721172183',
|
|
61
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
62
|
+
* },
|
|
63
|
+
* );
|
|
64
|
+
* ```
|
|
37
65
|
*/
|
|
38
66
|
update(id: string, params: EstimateUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Estimate> {
|
|
39
67
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -47,6 +75,16 @@ export class Estimates extends APIResource {
|
|
|
47
75
|
/**
|
|
48
76
|
* Returns a list of estimates. Use the `cursor` parameter to paginate through the
|
|
49
77
|
* results.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* // Automatically fetches more pages as needed.
|
|
82
|
+
* for await (const estimate of client.qbd.estimates.list({
|
|
83
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
84
|
+
* })) {
|
|
85
|
+
* // ...
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
50
88
|
*/
|
|
51
89
|
list(
|
|
52
90
|
params: EstimateListParams,
|
|
@@ -63,6 +101,14 @@ export class Estimates extends APIResource {
|
|
|
63
101
|
/**
|
|
64
102
|
* Permanently deletes a an estimate. The deletion will fail if the estimate is
|
|
65
103
|
* currently in use or has any linked transactions that are in use.
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* ```ts
|
|
107
|
+
* const estimate = await client.qbd.estimates.delete(
|
|
108
|
+
* '123ABC-1234567890',
|
|
109
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
110
|
+
* );
|
|
111
|
+
* ```
|
|
66
112
|
*/
|
|
67
113
|
delete(
|
|
68
114
|
id: string,
|
|
@@ -6,6 +6,16 @@ import * as Core from '../../core';
|
|
|
6
6
|
export class InventoryAdjustments extends APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new inventory adjustment.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const inventoryAdjustment =
|
|
13
|
+
* await client.qbd.inventoryAdjustments.create({
|
|
14
|
+
* accountId: '80000001-1234567890',
|
|
15
|
+
* transactionDate: '2021-10-01',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
9
19
|
*/
|
|
10
20
|
create(
|
|
11
21
|
params: InventoryAdjustmentCreateParams,
|
|
@@ -21,6 +31,15 @@ export class InventoryAdjustments extends APIResource {
|
|
|
21
31
|
|
|
22
32
|
/**
|
|
23
33
|
* Retrieves an inventory adjustment by ID.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const inventoryAdjustment =
|
|
38
|
+
* await client.qbd.inventoryAdjustments.retrieve(
|
|
39
|
+
* '123ABC-1234567890',
|
|
40
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
24
43
|
*/
|
|
25
44
|
retrieve(
|
|
26
45
|
id: string,
|
|
@@ -36,6 +55,18 @@ export class InventoryAdjustments extends APIResource {
|
|
|
36
55
|
|
|
37
56
|
/**
|
|
38
57
|
* Updates an existing inventory adjustment.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const inventoryAdjustment =
|
|
62
|
+
* await client.qbd.inventoryAdjustments.update(
|
|
63
|
+
* '123ABC-1234567890',
|
|
64
|
+
* {
|
|
65
|
+
* revisionNumber: '1721172183',
|
|
66
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
67
|
+
* },
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
39
70
|
*/
|
|
40
71
|
update(
|
|
41
72
|
id: string,
|
|
@@ -54,6 +85,14 @@ export class InventoryAdjustments extends APIResource {
|
|
|
54
85
|
* Returns a list of inventory adjustments. NOTE: QuickBooks Desktop does not
|
|
55
86
|
* support pagination for inventory adjustments; hence, there is no `cursor`
|
|
56
87
|
* parameter. Users typically have few inventory adjustments.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* const inventoryAdjustments =
|
|
92
|
+
* await client.qbd.inventoryAdjustments.list({
|
|
93
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
94
|
+
* });
|
|
95
|
+
* ```
|
|
57
96
|
*/
|
|
58
97
|
list(
|
|
59
98
|
params: InventoryAdjustmentListParams,
|
|
@@ -71,6 +110,15 @@ export class InventoryAdjustments extends APIResource {
|
|
|
71
110
|
* Permanently deletes a an inventory adjustment. The deletion will fail if the
|
|
72
111
|
* inventory adjustment is currently in use or has any linked transactions that are
|
|
73
112
|
* in use.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const inventoryAdjustment =
|
|
117
|
+
* await client.qbd.inventoryAdjustments.delete(
|
|
118
|
+
* '123ABC-1234567890',
|
|
119
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
120
|
+
* );
|
|
121
|
+
* ```
|
|
74
122
|
*/
|
|
75
123
|
delete(
|
|
76
124
|
id: string,
|