conductor-node 12.5.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 +13 -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 +30 -0
- 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 +30 -0
- 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
|
@@ -4,6 +4,15 @@ import { CursorPage } from "../../pagination.mjs";
|
|
|
4
4
|
export class SalesReceipts extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Creates a new sales receipt.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const salesReceipt = await client.qbd.salesReceipts.create({
|
|
11
|
+
* customerId: '80000001-1234567890',
|
|
12
|
+
* transactionDate: '2021-10-01',
|
|
13
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(params, options) {
|
|
9
18
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -15,6 +24,15 @@ export class SalesReceipts extends APIResource {
|
|
|
15
24
|
}
|
|
16
25
|
/**
|
|
17
26
|
* Retrieves a sales receipt by ID.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const salesReceipt =
|
|
31
|
+
* await client.qbd.salesReceipts.retrieve(
|
|
32
|
+
* '123ABC-1234567890',
|
|
33
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
18
36
|
*/
|
|
19
37
|
retrieve(id, params, options) {
|
|
20
38
|
const { conductorEndUserId } = params;
|
|
@@ -25,6 +43,17 @@ export class SalesReceipts extends APIResource {
|
|
|
25
43
|
}
|
|
26
44
|
/**
|
|
27
45
|
* Updates an existing sales receipt.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const salesReceipt = await client.qbd.salesReceipts.update(
|
|
50
|
+
* '123ABC-1234567890',
|
|
51
|
+
* {
|
|
52
|
+
* revisionNumber: '1721172183',
|
|
53
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
54
|
+
* },
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
28
57
|
*/
|
|
29
58
|
update(id, params, options) {
|
|
30
59
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -37,6 +66,16 @@ export class SalesReceipts extends APIResource {
|
|
|
37
66
|
/**
|
|
38
67
|
* Returns a list of sales receipts. Use the `cursor` parameter to paginate through
|
|
39
68
|
* the results.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* // Automatically fetches more pages as needed.
|
|
73
|
+
* for await (const salesReceipt of client.qbd.salesReceipts.list(
|
|
74
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
75
|
+
* )) {
|
|
76
|
+
* // ...
|
|
77
|
+
* }
|
|
78
|
+
* ```
|
|
40
79
|
*/
|
|
41
80
|
list(params, options) {
|
|
42
81
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -49,6 +88,14 @@ export class SalesReceipts extends APIResource {
|
|
|
49
88
|
/**
|
|
50
89
|
* Permanently deletes a a sales receipt. The deletion will fail if the sales
|
|
51
90
|
* receipt is currently in use or has any linked transactions that are in use.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```ts
|
|
94
|
+
* const salesReceipt = await client.qbd.salesReceipts.delete(
|
|
95
|
+
* '123ABC-1234567890',
|
|
96
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
97
|
+
* );
|
|
98
|
+
* ```
|
|
52
99
|
*/
|
|
53
100
|
delete(id, params, options) {
|
|
54
101
|
const { conductorEndUserId } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales-receipts.mjs","sourceRoot":"","sources":["../../src/resources/qbd/sales-receipts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"sales-receipts.mjs","sourceRoot":"","sources":["../../src/resources/qbd/sales-receipts.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAgC,EAAE,OAA6B;QACpE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oCAAoC,EAAE;YAC7D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,MAAkC,EAClC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,EAAE,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;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
5
|
* Creates a new sales representative.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const salesRepresentative =
|
|
10
|
+
* await client.qbd.salesRepresentatives.create({
|
|
11
|
+
* entityId: '80000001-1234567890',
|
|
12
|
+
* initial: 'JD',
|
|
13
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
6
16
|
*/
|
|
7
17
|
create(params: SalesRepresentativeCreateParams, options?: Core.RequestOptions): Core.APIPromise<SalesRepresentative>;
|
|
8
18
|
/**
|
|
9
19
|
* Retrieves a sales representative by ID.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const salesRepresentative =
|
|
24
|
+
* await client.qbd.salesRepresentatives.retrieve(
|
|
25
|
+
* '80000001-1234567890',
|
|
26
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
27
|
+
* );
|
|
28
|
+
* ```
|
|
10
29
|
*/
|
|
11
30
|
retrieve(id: string, params: SalesRepresentativeRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<SalesRepresentative>;
|
|
12
31
|
/**
|
|
13
32
|
* Updates an existing sales representative.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const salesRepresentative =
|
|
37
|
+
* await client.qbd.salesRepresentatives.update(
|
|
38
|
+
* '80000001-1234567890',
|
|
39
|
+
* {
|
|
40
|
+
* revisionNumber: '1721172183',
|
|
41
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
42
|
+
* },
|
|
43
|
+
* );
|
|
44
|
+
* ```
|
|
14
45
|
*/
|
|
15
46
|
update(id: string, params: SalesRepresentativeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<SalesRepresentative>;
|
|
16
47
|
/**
|
|
17
48
|
* Returns a list of sales representatives. NOTE: QuickBooks Desktop does not
|
|
18
49
|
* support pagination for sales representatives; hence, there is no `cursor`
|
|
19
50
|
* parameter. Users typically have few sales representatives.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const salesRepresentatives =
|
|
55
|
+
* await client.qbd.salesRepresentatives.list({
|
|
56
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
57
|
+
* });
|
|
58
|
+
* ```
|
|
20
59
|
*/
|
|
21
60
|
list(params: SalesRepresentativeListParams, options?: Core.RequestOptions): Core.APIPromise<SalesRepresentativeListResponse>;
|
|
22
61
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales-representatives.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/sales-representatives.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,oBAAqB,SAAQ,WAAW;IACnD
|
|
1
|
+
{"version":3,"file":"sales-representatives.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/sales-representatives.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,MAAM,EAAE,+BAA+B,EACvC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IASvC;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,iCAAiC,EACzC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC;IAQvC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,+BAA+B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B,IAAI,+BAA+B,EACvE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;CACH"}
|
|
@@ -6,6 +6,16 @@ const resource_1 = require("../../resource.js");
|
|
|
6
6
|
class SalesRepresentatives extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new sales representative.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const salesRepresentative =
|
|
13
|
+
* await client.qbd.salesRepresentatives.create({
|
|
14
|
+
* entityId: '80000001-1234567890',
|
|
15
|
+
* initial: 'JD',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
9
19
|
*/
|
|
10
20
|
create(params, options) {
|
|
11
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -17,6 +27,15 @@ class SalesRepresentatives extends resource_1.APIResource {
|
|
|
17
27
|
}
|
|
18
28
|
/**
|
|
19
29
|
* Retrieves a sales representative by ID.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const salesRepresentative =
|
|
34
|
+
* await client.qbd.salesRepresentatives.retrieve(
|
|
35
|
+
* '80000001-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
20
39
|
*/
|
|
21
40
|
retrieve(id, params, options) {
|
|
22
41
|
const { conductorEndUserId } = params;
|
|
@@ -27,6 +46,18 @@ class SalesRepresentatives extends resource_1.APIResource {
|
|
|
27
46
|
}
|
|
28
47
|
/**
|
|
29
48
|
* Updates an existing sales representative.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const salesRepresentative =
|
|
53
|
+
* await client.qbd.salesRepresentatives.update(
|
|
54
|
+
* '80000001-1234567890',
|
|
55
|
+
* {
|
|
56
|
+
* revisionNumber: '1721172183',
|
|
57
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
58
|
+
* },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
30
61
|
*/
|
|
31
62
|
update(id, params, options) {
|
|
32
63
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -40,6 +71,14 @@ class SalesRepresentatives extends resource_1.APIResource {
|
|
|
40
71
|
* Returns a list of sales representatives. NOTE: QuickBooks Desktop does not
|
|
41
72
|
* support pagination for sales representatives; hence, there is no `cursor`
|
|
42
73
|
* parameter. Users typically have few sales representatives.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const salesRepresentatives =
|
|
78
|
+
* await client.qbd.salesRepresentatives.list({
|
|
79
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
80
|
+
* });
|
|
81
|
+
* ```
|
|
43
82
|
*/
|
|
44
83
|
list(params, options) {
|
|
45
84
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales-representatives.js","sourceRoot":"","sources":["../../src/resources/qbd/sales-representatives.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,oBAAqB,SAAQ,sBAAW;IACnD
|
|
1
|
+
{"version":3,"file":"sales-representatives.js","sourceRoot":"","sources":["../../src/resources/qbd/sales-representatives.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,oBAAqB,SAAQ,sBAAW;IACnD;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,MAAuC,EACvC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2CAA2C,EAAE;YACpE,IAAI;YACJ,GAA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alesRepresentatives extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new sales representative.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const salesRepresentative =
|
|
10
|
+
* await client.qbd.salesRepresentatives.create({
|
|
11
|
+
* entityId: '80000001-1234567890',
|
|
12
|
+
* initial: 'JD',
|
|
13
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
6
16
|
*/
|
|
7
17
|
create(params, options) {
|
|
8
18
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -14,6 +24,15 @@ export class SalesRepresentatives extends APIResource {
|
|
|
14
24
|
}
|
|
15
25
|
/**
|
|
16
26
|
* Retrieves a sales representative by ID.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const salesRepresentative =
|
|
31
|
+
* await client.qbd.salesRepresentatives.retrieve(
|
|
32
|
+
* '80000001-1234567890',
|
|
33
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
17
36
|
*/
|
|
18
37
|
retrieve(id, params, options) {
|
|
19
38
|
const { conductorEndUserId } = params;
|
|
@@ -24,6 +43,18 @@ export class SalesRepresentatives extends APIResource {
|
|
|
24
43
|
}
|
|
25
44
|
/**
|
|
26
45
|
* Updates an existing sales representative.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const salesRepresentative =
|
|
50
|
+
* await client.qbd.salesRepresentatives.update(
|
|
51
|
+
* '80000001-1234567890',
|
|
52
|
+
* {
|
|
53
|
+
* revisionNumber: '1721172183',
|
|
54
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
55
|
+
* },
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
27
58
|
*/
|
|
28
59
|
update(id, params, options) {
|
|
29
60
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -37,6 +68,14 @@ export class SalesRepresentatives extends APIResource {
|
|
|
37
68
|
* Returns a list of sales representatives. NOTE: QuickBooks Desktop does not
|
|
38
69
|
* support pagination for sales representatives; hence, there is no `cursor`
|
|
39
70
|
* parameter. Users typically have few sales representatives.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const salesRepresentatives =
|
|
75
|
+
* await client.qbd.salesRepresentatives.list({
|
|
76
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
40
79
|
*/
|
|
41
80
|
list(params, options) {
|
|
42
81
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales-representatives.mjs","sourceRoot":"","sources":["../../src/resources/qbd/sales-representatives.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD
|
|
1
|
+
{"version":3,"file":"sales-representatives.mjs","sourceRoot":"","sources":["../../src/resources/qbd/sales-representatives.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,oBAAqB,SAAQ,WAAW;IACnD;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,MAAuC,EACvC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,2CAA2C,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,MAAyC,EACzC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6CAA6C,EAAE,EAAE,EAAE;YACzE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAU,EACV,MAAuC,EACvC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,6CAA6C,EAAE,EAAE,EAAE;YAC1E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,MAAqC,EACrC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,2CAA2C,EAAE;YACnE,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -3,20 +3,56 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
export declare class SalesTaxCodes extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new sales-tax code.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const salesTaxCode = await client.qbd.salesTaxCodes.create({
|
|
10
|
+
* isTaxable: true,
|
|
11
|
+
* name: 'Tax',
|
|
12
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
6
15
|
*/
|
|
7
16
|
create(params: SalesTaxCodeCreateParams, options?: Core.RequestOptions): Core.APIPromise<SalesTaxCode>;
|
|
8
17
|
/**
|
|
9
18
|
* Retrieves a sales-tax code by ID.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const salesTaxCode =
|
|
23
|
+
* await client.qbd.salesTaxCodes.retrieve(
|
|
24
|
+
* '80000001-1234567890',
|
|
25
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
10
28
|
*/
|
|
11
29
|
retrieve(id: string, params: SalesTaxCodeRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<SalesTaxCode>;
|
|
12
30
|
/**
|
|
13
31
|
* Updates an existing sales-tax code.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const salesTaxCode = await client.qbd.salesTaxCodes.update(
|
|
36
|
+
* '80000001-1234567890',
|
|
37
|
+
* {
|
|
38
|
+
* revisionNumber: '1721172183',
|
|
39
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
40
|
+
* },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
14
43
|
*/
|
|
15
44
|
update(id: string, params: SalesTaxCodeUpdateParams, options?: Core.RequestOptions): Core.APIPromise<SalesTaxCode>;
|
|
16
45
|
/**
|
|
17
46
|
* Returns a list of sales-tax codes. NOTE: QuickBooks Desktop does not support
|
|
18
47
|
* pagination for sales-tax codes; hence, there is no `cursor` parameter. Users
|
|
19
48
|
* typically have few sales-tax codes.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const salesTaxCodes = await client.qbd.salesTaxCodes.list({
|
|
53
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
20
56
|
*/
|
|
21
57
|
list(params: SalesTaxCodeListParams, options?: Core.RequestOptions): Core.APIPromise<SalesTaxCodeListResponse>;
|
|
22
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales-tax-codes.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-codes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"sales-tax-codes.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-codes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;IAStG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;IAQhC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;IAShC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,U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CAAC;IACrC,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
@@ -6,6 +6,15 @@ const resource_1 = require("../../resource.js");
|
|
|
6
6
|
class SalesTaxCodes extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new sales-tax code.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const salesTaxCode = await client.qbd.salesTaxCodes.create({
|
|
13
|
+
* isTaxable: true,
|
|
14
|
+
* name: 'Tax',
|
|
15
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
9
18
|
*/
|
|
10
19
|
create(params, options) {
|
|
11
20
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -17,6 +26,15 @@ class SalesTaxCodes extends resource_1.APIResource {
|
|
|
17
26
|
}
|
|
18
27
|
/**
|
|
19
28
|
* Retrieves a sales-tax code by ID.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const salesTaxCode =
|
|
33
|
+
* await client.qbd.salesTaxCodes.retrieve(
|
|
34
|
+
* '80000001-1234567890',
|
|
35
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
20
38
|
*/
|
|
21
39
|
retrieve(id, params, options) {
|
|
22
40
|
const { conductorEndUserId } = params;
|
|
@@ -27,6 +45,17 @@ class SalesTaxCodes extends resource_1.APIResource {
|
|
|
27
45
|
}
|
|
28
46
|
/**
|
|
29
47
|
* Updates an existing sales-tax code.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const salesTaxCode = await client.qbd.salesTaxCodes.update(
|
|
52
|
+
* '80000001-1234567890',
|
|
53
|
+
* {
|
|
54
|
+
* revisionNumber: '1721172183',
|
|
55
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
56
|
+
* },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
30
59
|
*/
|
|
31
60
|
update(id, params, options) {
|
|
32
61
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -40,6 +69,13 @@ class SalesTaxCodes extends resource_1.APIResource {
|
|
|
40
69
|
* Returns a list of sales-tax codes. NOTE: QuickBooks Desktop does not support
|
|
41
70
|
* pagination for sales-tax codes; hence, there is no `cursor` parameter. Users
|
|
42
71
|
* typically have few sales-tax codes.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const salesTaxCodes = await client.qbd.salesTaxCodes.list({
|
|
76
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
43
79
|
*/
|
|
44
80
|
list(params, options) {
|
|
45
81
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales-tax-codes.js","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-codes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,aAAc,SAAQ,sBAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"sales-tax-codes.js","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-codes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,aAAc,SAAQ,sBAAW;IAC5C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAgC,EAAE,OAA6B;QACpE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAA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"}
|
|
@@ -3,6 +3,15 @@ import { APIResource } from "../../resource.mjs";
|
|
|
3
3
|
export class SalesTaxCodes extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new sales-tax code.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const salesTaxCode = await client.qbd.salesTaxCodes.create({
|
|
10
|
+
* isTaxable: true,
|
|
11
|
+
* name: 'Tax',
|
|
12
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
6
15
|
*/
|
|
7
16
|
create(params, options) {
|
|
8
17
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -14,6 +23,15 @@ export class SalesTaxCodes extends APIResource {
|
|
|
14
23
|
}
|
|
15
24
|
/**
|
|
16
25
|
* Retrieves a sales-tax code by ID.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const salesTaxCode =
|
|
30
|
+
* await client.qbd.salesTaxCodes.retrieve(
|
|
31
|
+
* '80000001-1234567890',
|
|
32
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
33
|
+
* );
|
|
34
|
+
* ```
|
|
17
35
|
*/
|
|
18
36
|
retrieve(id, params, options) {
|
|
19
37
|
const { conductorEndUserId } = params;
|
|
@@ -24,6 +42,17 @@ export class SalesTaxCodes extends APIResource {
|
|
|
24
42
|
}
|
|
25
43
|
/**
|
|
26
44
|
* Updates an existing sales-tax code.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const salesTaxCode = await client.qbd.salesTaxCodes.update(
|
|
49
|
+
* '80000001-1234567890',
|
|
50
|
+
* {
|
|
51
|
+
* revisionNumber: '1721172183',
|
|
52
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
53
|
+
* },
|
|
54
|
+
* );
|
|
55
|
+
* ```
|
|
27
56
|
*/
|
|
28
57
|
update(id, params, options) {
|
|
29
58
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -37,6 +66,13 @@ export class SalesTaxCodes extends APIResource {
|
|
|
37
66
|
* Returns a list of sales-tax codes. NOTE: QuickBooks Desktop does not support
|
|
38
67
|
* pagination for sales-tax codes; hence, there is no `cursor` parameter. Users
|
|
39
68
|
* typically have few sales-tax codes.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const salesTaxCodes = await client.qbd.salesTaxCodes.list({
|
|
73
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
74
|
+
* });
|
|
75
|
+
* ```
|
|
40
76
|
*/
|
|
41
77
|
list(params, options) {
|
|
42
78
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales-tax-codes.mjs","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-codes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"sales-tax-codes.mjs","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-codes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAgC,EAAE,OAA6B;QACpE,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE;YAC9D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAU,EACV,MAAkC,EAClC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAU,EACV,MAAgC,EAChC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uCAAuC,EAAE,EAAE,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAA8B,EAC9B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE;YAC7D,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -4,19 +4,57 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
|
|
|
4
4
|
export declare class SalesTaxItems extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Creates a new sales-tax item.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const salesTaxItem = await client.qbd.salesTaxItems.create({
|
|
11
|
+
* name: 'Standard Tax',
|
|
12
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
7
15
|
*/
|
|
8
16
|
create(params: SalesTaxItemCreateParams, options?: Core.RequestOptions): Core.APIPromise<SalesTaxItem>;
|
|
9
17
|
/**
|
|
10
18
|
* Retrieves a sales-tax item by ID.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const salesTaxItem =
|
|
23
|
+
* await client.qbd.salesTaxItems.retrieve(
|
|
24
|
+
* '80000001-1234567890',
|
|
25
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
11
28
|
*/
|
|
12
29
|
retrieve(id: string, params: SalesTaxItemRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<SalesTaxItem>;
|
|
13
30
|
/**
|
|
14
31
|
* Updates an existing sales-tax item.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const salesTaxItem = await client.qbd.salesTaxItems.update(
|
|
36
|
+
* '80000001-1234567890',
|
|
37
|
+
* {
|
|
38
|
+
* revisionNumber: '1721172183',
|
|
39
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
40
|
+
* },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
15
43
|
*/
|
|
16
44
|
update(id: string, params: SalesTaxItemUpdateParams, options?: Core.RequestOptions): Core.APIPromise<SalesTaxItem>;
|
|
17
45
|
/**
|
|
18
46
|
* Returns a list of sales-tax items. Use the `cursor` parameter to paginate
|
|
19
47
|
* through the results.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* // Automatically fetches more pages as needed.
|
|
52
|
+
* for await (const salesTaxItem of client.qbd.salesTaxItems.list(
|
|
53
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
54
|
+
* )) {
|
|
55
|
+
* // ...
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
20
58
|
*/
|
|
21
59
|
list(params: SalesTaxItemListParams, options?: Core.RequestOptions): Core.PagePromise<SalesTaxItemsCursorPage, SalesTaxItem>;
|
|
22
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sales-tax-items.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAErE,qBAAa,aAAc,SAAQ,WAAW;IAC5C
|
|
1
|
+
{"version":3,"file":"sales-tax-items.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/sales-tax-items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAErE,qBAAa,aAAc,SAAQ,WAAW;IAC5C;;;;;;;;;;OAUG;IACH,MAAM,CAAC,MAAM,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;IAStG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,YAAY,CAAC;IAQhC;;;;;;;;;;;;;OAaG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,IAAI,CA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