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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-assembly-items.js","sourceRoot":"","sources":["../../src/resources/qbd/inventory-assembly-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,oDAAqE;AAErE,MAAa,sBAAuB,SAAQ,sBAAW;IACrD
|
|
1
|
+
{"version":3,"file":"inventory-assembly-items.js","sourceRoot":"","sources":["../../src/resources/qbd/inventory-assembly-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,oDAAqE;AAErE,MAAa,sBAAuB,SAAQ,sBAAW;IACrD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,MAAyC,EACzC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8CAA8C,EAAE;YACvE,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,EAC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/**
|
|
6
6
|
* Creates a new inventory assembly item.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const inventoryAssemblyItem =
|
|
11
|
+
* await client.qbd.inventoryAssemblyItems.create({
|
|
12
|
+
* assetAccountId: '80000001-1234567890',
|
|
13
|
+
* cogsAccountId: '80000001-1234567890',
|
|
14
|
+
* incomeAccountId: '80000001-1234567890',
|
|
15
|
+
* name: 'Deluxe Kit',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
7
19
|
*/
|
|
8
20
|
create(params, options) {
|
|
9
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -15,6 +27,15 @@ export class InventoryAssemblyItems extends APIResource {
|
|
|
15
27
|
}
|
|
16
28
|
/**
|
|
17
29
|
* Retrieves an inventory assembly item by ID.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const inventoryAssemblyItem =
|
|
34
|
+
* await client.qbd.inventoryAssemblyItems.retrieve(
|
|
35
|
+
* '80000001-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
18
39
|
*/
|
|
19
40
|
retrieve(id, params, options) {
|
|
20
41
|
const { conductorEndUserId } = params;
|
|
@@ -25,6 +46,18 @@ export class InventoryAssemblyItems extends APIResource {
|
|
|
25
46
|
}
|
|
26
47
|
/**
|
|
27
48
|
* Updates an existing inventory assembly item.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const inventoryAssemblyItem =
|
|
53
|
+
* await client.qbd.inventoryAssemblyItems.update(
|
|
54
|
+
* '80000001-1234567890',
|
|
55
|
+
* {
|
|
56
|
+
* revisionNumber: '1721172183',
|
|
57
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
58
|
+
* },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
28
61
|
*/
|
|
29
62
|
update(id, params, options) {
|
|
30
63
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -37,6 +70,16 @@ export class InventoryAssemblyItems extends APIResource {
|
|
|
37
70
|
/**
|
|
38
71
|
* Returns a list of inventory assembly items. Use the `cursor` parameter to
|
|
39
72
|
* paginate through the results.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* // Automatically fetches more pages as needed.
|
|
77
|
+
* for await (const inventoryAssemblyItem of client.qbd.inventoryAssemblyItems.list(
|
|
78
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
79
|
+
* )) {
|
|
80
|
+
* // ...
|
|
81
|
+
* }
|
|
82
|
+
* ```
|
|
40
83
|
*/
|
|
41
84
|
list(params, options) {
|
|
42
85
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-assembly-items.mjs","sourceRoot":"","sources":["../../src/resources/qbd/inventory-assembly-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD
|
|
1
|
+
{"version":3,"file":"inventory-assembly-items.mjs","sourceRoot":"","sources":["../../src/resources/qbd/inventory-assembly-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,sBAAuB,SAAQ,WAAW;IACrD;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,MAAyC,EACzC,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8CAA8C,EAAE;YACvE,IAAI;YACJ,GAAG,OAAO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C,gCAAgC,GAAG,gCAAgC,CAAC"}
|
|
@@ -4,19 +4,62 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
|
|
|
4
4
|
export declare class InventoryItems extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Creates a new inventory item.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const inventoryItem =
|
|
11
|
+
* await client.qbd.inventoryItems.create({
|
|
12
|
+
* assetAccountId: '80000001-1234567890',
|
|
13
|
+
* cogsAccountId: '80000001-1234567890',
|
|
14
|
+
* incomeAccountId: '80000001-1234567890',
|
|
15
|
+
* name: 'Cabinet',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
7
19
|
*/
|
|
8
20
|
create(params: InventoryItemCreateParams, options?: Core.RequestOptions): Core.APIPromise<InventoryItem>;
|
|
9
21
|
/**
|
|
10
22
|
* Retrieves an inventory item by ID.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const inventoryItem =
|
|
27
|
+
* await client.qbd.inventoryItems.retrieve(
|
|
28
|
+
* '80000001-1234567890',
|
|
29
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
11
32
|
*/
|
|
12
33
|
retrieve(id: string, params: InventoryItemRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<InventoryItem>;
|
|
13
34
|
/**
|
|
14
35
|
* Updates an existing inventory item.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const inventoryItem =
|
|
40
|
+
* await client.qbd.inventoryItems.update(
|
|
41
|
+
* '80000001-1234567890',
|
|
42
|
+
* {
|
|
43
|
+
* revisionNumber: '1721172183',
|
|
44
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
45
|
+
* },
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
15
48
|
*/
|
|
16
49
|
update(id: string, params: InventoryItemUpdateParams, options?: Core.RequestOptions): Core.APIPromise<InventoryItem>;
|
|
17
50
|
/**
|
|
18
51
|
* Returns a list of inventory items. Use the `cursor` parameter to paginate
|
|
19
52
|
* through the results.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* // Automatically fetches more pages as needed.
|
|
57
|
+
* for await (const inventoryItem of client.qbd.inventoryItems.list(
|
|
58
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
59
|
+
* )) {
|
|
60
|
+
* // ...
|
|
61
|
+
* }
|
|
62
|
+
* ```
|
|
20
63
|
*/
|
|
21
64
|
list(params: InventoryItemListParams, options?: Core.RequestOptions): Core.PagePromise<InventoryItemsCursorPage, InventoryItem>;
|
|
22
65
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-items.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/inventory-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,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"inventory-items.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/inventory-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,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAA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;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEzB;;;;;;;;;;;;;OAaG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE1B;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,UAAU,CAAC;IAEvC;;;;;;;;;;OAUG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;;;;;;;OAUG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAID,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,wBAAwB,IAAI,wBAAwB,EACpD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -7,6 +7,18 @@ const pagination_1 = require("../../pagination.js");
|
|
|
7
7
|
class InventoryItems extends resource_1.APIResource {
|
|
8
8
|
/**
|
|
9
9
|
* Creates a new inventory item.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const inventoryItem =
|
|
14
|
+
* await client.qbd.inventoryItems.create({
|
|
15
|
+
* assetAccountId: '80000001-1234567890',
|
|
16
|
+
* cogsAccountId: '80000001-1234567890',
|
|
17
|
+
* incomeAccountId: '80000001-1234567890',
|
|
18
|
+
* name: 'Cabinet',
|
|
19
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
10
22
|
*/
|
|
11
23
|
create(params, options) {
|
|
12
24
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -18,6 +30,15 @@ class InventoryItems extends resource_1.APIResource {
|
|
|
18
30
|
}
|
|
19
31
|
/**
|
|
20
32
|
* Retrieves an inventory item by ID.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```ts
|
|
36
|
+
* const inventoryItem =
|
|
37
|
+
* await client.qbd.inventoryItems.retrieve(
|
|
38
|
+
* '80000001-1234567890',
|
|
39
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
21
42
|
*/
|
|
22
43
|
retrieve(id, params, options) {
|
|
23
44
|
const { conductorEndUserId } = params;
|
|
@@ -28,6 +49,18 @@ class InventoryItems extends resource_1.APIResource {
|
|
|
28
49
|
}
|
|
29
50
|
/**
|
|
30
51
|
* Updates an existing inventory item.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const inventoryItem =
|
|
56
|
+
* await client.qbd.inventoryItems.update(
|
|
57
|
+
* '80000001-1234567890',
|
|
58
|
+
* {
|
|
59
|
+
* revisionNumber: '1721172183',
|
|
60
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
61
|
+
* },
|
|
62
|
+
* );
|
|
63
|
+
* ```
|
|
31
64
|
*/
|
|
32
65
|
update(id, params, options) {
|
|
33
66
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -40,6 +73,16 @@ class InventoryItems extends resource_1.APIResource {
|
|
|
40
73
|
/**
|
|
41
74
|
* Returns a list of inventory items. Use the `cursor` parameter to paginate
|
|
42
75
|
* through the results.
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* // Automatically fetches more pages as needed.
|
|
80
|
+
* for await (const inventoryItem of client.qbd.inventoryItems.list(
|
|
81
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
82
|
+
* )) {
|
|
83
|
+
* // ...
|
|
84
|
+
* }
|
|
85
|
+
* ```
|
|
43
86
|
*/
|
|
44
87
|
list(params, options) {
|
|
45
88
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-items.js","sourceRoot":"","sources":["../../src/resources/qbd/inventory-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,oDAAqE;AAErE,MAAa,cAAe,SAAQ,sBAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"inventory-items.js","sourceRoot":"","sources":["../../src/resources/qbd/inventory-items.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAE7C,oDAAqE;AAErE,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA6B;QACrE,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,MAAmC,EACnC,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;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAU,EACV,MAAiC,EACjC,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;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAA+B,EAC/B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qCAAqC,EAAE,wBAAwB,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AAtGD,wCAsGC;AAED,MAAa,wBAAyB,SAAQ,uBAAyB;CAAG;AAA1E,4DAA0E;AAq7B1E,cAAc,CAAC,wBAAwB,GAAG,wBAAwB,CAAC"}
|
|
@@ -4,6 +4,18 @@ import { CursorPage } from "../../pagination.mjs";
|
|
|
4
4
|
export class InventoryItems extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Creates a new inventory item.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const inventoryItem =
|
|
11
|
+
* await client.qbd.inventoryItems.create({
|
|
12
|
+
* assetAccountId: '80000001-1234567890',
|
|
13
|
+
* cogsAccountId: '80000001-1234567890',
|
|
14
|
+
* incomeAccountId: '80000001-1234567890',
|
|
15
|
+
* name: 'Cabinet',
|
|
16
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
7
19
|
*/
|
|
8
20
|
create(params, options) {
|
|
9
21
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -15,6 +27,15 @@ export class InventoryItems extends APIResource {
|
|
|
15
27
|
}
|
|
16
28
|
/**
|
|
17
29
|
* Retrieves an inventory item by ID.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const inventoryItem =
|
|
34
|
+
* await client.qbd.inventoryItems.retrieve(
|
|
35
|
+
* '80000001-1234567890',
|
|
36
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
18
39
|
*/
|
|
19
40
|
retrieve(id, params, options) {
|
|
20
41
|
const { conductorEndUserId } = params;
|
|
@@ -25,6 +46,18 @@ export class InventoryItems extends APIResource {
|
|
|
25
46
|
}
|
|
26
47
|
/**
|
|
27
48
|
* Updates an existing inventory item.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const inventoryItem =
|
|
53
|
+
* await client.qbd.inventoryItems.update(
|
|
54
|
+
* '80000001-1234567890',
|
|
55
|
+
* {
|
|
56
|
+
* revisionNumber: '1721172183',
|
|
57
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
58
|
+
* },
|
|
59
|
+
* );
|
|
60
|
+
* ```
|
|
28
61
|
*/
|
|
29
62
|
update(id, params, options) {
|
|
30
63
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -37,6 +70,16 @@ export class InventoryItems extends APIResource {
|
|
|
37
70
|
/**
|
|
38
71
|
* Returns a list of inventory items. Use the `cursor` parameter to paginate
|
|
39
72
|
* through the results.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* // Automatically fetches more pages as needed.
|
|
77
|
+
* for await (const inventoryItem of client.qbd.inventoryItems.list(
|
|
78
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
79
|
+
* )) {
|
|
80
|
+
* // ...
|
|
81
|
+
* }
|
|
82
|
+
* ```
|
|
40
83
|
*/
|
|
41
84
|
list(params, options) {
|
|
42
85
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-items.mjs","sourceRoot":"","sources":["../../src/resources/qbd/inventory-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"inventory-items.mjs","sourceRoot":"","sources":["../../src/resources/qbd/inventory-items.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,UAAU,EAAyB;AAE5C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA6B;QACrE,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,MAAmC,EACnC,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;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAU,EACV,MAAiC,EACjC,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;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAA+B,EAC/B,OAA6B;QAE7B,MAAM,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,qCAAqC,EAAE,wBAAwB,EAAE;YAC9F,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,uBAAuB,EAAE,kBAAkB,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAC9E,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,wBAAyB,SAAQ,UAAyB;CAAG;AAq7B1E,cAAc,CAAC,wBAAwB,GAAG,wBAAwB,CAAC"}
|
|
@@ -3,20 +3,57 @@ import * as Core from "../../core.js";
|
|
|
3
3
|
export declare class InventorySites extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new inventory site.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const inventorySite =
|
|
10
|
+
* await client.qbd.inventorySites.create({
|
|
11
|
+
* name: 'Stockroom',
|
|
12
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
13
|
+
* });
|
|
14
|
+
* ```
|
|
6
15
|
*/
|
|
7
16
|
create(params: InventorySiteCreateParams, options?: Core.RequestOptions): Core.APIPromise<InventorySite>;
|
|
8
17
|
/**
|
|
9
18
|
* Retrieves an inventory site by ID.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* const inventorySite =
|
|
23
|
+
* await client.qbd.inventorySites.retrieve(
|
|
24
|
+
* '80000001-1234567890',
|
|
25
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
10
28
|
*/
|
|
11
29
|
retrieve(id: string, params: InventorySiteRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<InventorySite>;
|
|
12
30
|
/**
|
|
13
31
|
* Updates an existing inventory site.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const inventorySite =
|
|
36
|
+
* await client.qbd.inventorySites.update(
|
|
37
|
+
* '80000001-1234567890',
|
|
38
|
+
* {
|
|
39
|
+
* revisionNumber: '1721172183',
|
|
40
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
41
|
+
* },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
14
44
|
*/
|
|
15
45
|
update(id: string, params: InventorySiteUpdateParams, options?: Core.RequestOptions): Core.APIPromise<InventorySite>;
|
|
16
46
|
/**
|
|
17
47
|
* Returns a list of inventory sites. NOTE: QuickBooks Desktop does not support
|
|
18
48
|
* pagination for inventory sites; hence, there is no `cursor` parameter. Users
|
|
19
49
|
* typically have few inventory sites.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const inventorySites = await client.qbd.inventorySites.list(
|
|
54
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
20
57
|
*/
|
|
21
58
|
list(params: InventorySiteListParams, options?: Core.RequestOptions): Core.APIPromise<InventorySiteListResponse>;
|
|
22
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-sites.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/inventory-sites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"inventory-sites.d.ts","sourceRoot":"","sources":["../../src/resources/qbd/inventory-sites.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAM,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IASxG;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,2BAA2B,EACnC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IAQjC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;IASjC;;;;;;;;;;;OAWG;IACH,IAAI,CACF,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAQ9C;AAED,MAAM,WAAW,aAAa;IAC5B;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C,EAAE,MAAM,CAAC;QAEpB;;;;WAIG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;;;;;;OASG;IACH,GAAG,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEpB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;;OAUG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,UAAU,CAAC;IAEvC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -6,6 +6,15 @@ const resource_1 = require("../../resource.js");
|
|
|
6
6
|
class InventorySites extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
8
|
* Creates a new inventory site.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const inventorySite =
|
|
13
|
+
* await client.qbd.inventorySites.create({
|
|
14
|
+
* name: 'Stockroom',
|
|
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 InventorySites extends resource_1.APIResource {
|
|
|
17
26
|
}
|
|
18
27
|
/**
|
|
19
28
|
* Retrieves an inventory site by ID.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const inventorySite =
|
|
33
|
+
* await client.qbd.inventorySites.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,18 @@ class InventorySites extends resource_1.APIResource {
|
|
|
27
45
|
}
|
|
28
46
|
/**
|
|
29
47
|
* Updates an existing inventory site.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* const inventorySite =
|
|
52
|
+
* await client.qbd.inventorySites.update(
|
|
53
|
+
* '80000001-1234567890',
|
|
54
|
+
* {
|
|
55
|
+
* revisionNumber: '1721172183',
|
|
56
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
57
|
+
* },
|
|
58
|
+
* );
|
|
59
|
+
* ```
|
|
30
60
|
*/
|
|
31
61
|
update(id, params, options) {
|
|
32
62
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -40,6 +70,13 @@ class InventorySites extends resource_1.APIResource {
|
|
|
40
70
|
* Returns a list of inventory sites. NOTE: QuickBooks Desktop does not support
|
|
41
71
|
* pagination for inventory sites; hence, there is no `cursor` parameter. Users
|
|
42
72
|
* typically have few inventory sites.
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```ts
|
|
76
|
+
* const inventorySites = await client.qbd.inventorySites.list(
|
|
77
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
78
|
+
* );
|
|
79
|
+
* ```
|
|
43
80
|
*/
|
|
44
81
|
list(params, options) {
|
|
45
82
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-sites.js","sourceRoot":"","sources":["../../src/resources/qbd/inventory-sites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,cAAe,SAAQ,sBAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"inventory-sites.js","sourceRoot":"","sources":["../../src/resources/qbd/inventory-sites.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA6B;QACrE,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,MAAmC,EACnC,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;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAU,EACV,MAAiC,EACjC,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,MAA+B,EAC/B,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;AAjGD,wCAiGC"}
|
|
@@ -3,6 +3,15 @@ import { APIResource } from "../../resource.mjs";
|
|
|
3
3
|
export class InventorySites extends APIResource {
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new inventory site.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const inventorySite =
|
|
10
|
+
* await client.qbd.inventorySites.create({
|
|
11
|
+
* name: 'Stockroom',
|
|
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 InventorySites extends APIResource {
|
|
|
14
23
|
}
|
|
15
24
|
/**
|
|
16
25
|
* Retrieves an inventory site by ID.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const inventorySite =
|
|
30
|
+
* await client.qbd.inventorySites.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,18 @@ export class InventorySites extends APIResource {
|
|
|
24
42
|
}
|
|
25
43
|
/**
|
|
26
44
|
* Updates an existing inventory site.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const inventorySite =
|
|
49
|
+
* await client.qbd.inventorySites.update(
|
|
50
|
+
* '80000001-1234567890',
|
|
51
|
+
* {
|
|
52
|
+
* revisionNumber: '1721172183',
|
|
53
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
54
|
+
* },
|
|
55
|
+
* );
|
|
56
|
+
* ```
|
|
27
57
|
*/
|
|
28
58
|
update(id, params, options) {
|
|
29
59
|
const { conductorEndUserId, ...body } = params;
|
|
@@ -37,6 +67,13 @@ export class InventorySites extends APIResource {
|
|
|
37
67
|
* Returns a list of inventory sites. NOTE: QuickBooks Desktop does not support
|
|
38
68
|
* pagination for inventory sites; hence, there is no `cursor` parameter. Users
|
|
39
69
|
* typically have few inventory sites.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const inventorySites = await client.qbd.inventorySites.list(
|
|
74
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
75
|
+
* );
|
|
76
|
+
* ```
|
|
40
77
|
*/
|
|
41
78
|
list(params, options) {
|
|
42
79
|
const { conductorEndUserId, ...query } = params;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-sites.mjs","sourceRoot":"","sources":["../../src/resources/qbd/inventory-sites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C
|
|
1
|
+
{"version":3,"file":"inventory-sites.mjs","sourceRoot":"","sources":["../../src/resources/qbd/inventory-sites.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,MAAiC,EAAE,OAA6B;QACrE,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,MAAmC,EACnC,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;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,EAAU,EACV,MAAiC,EACjC,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,MAA+B,EAC/B,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,24 +4,70 @@ import { CursorPage, type CursorPageParams } from "../../pagination.js";
|
|
|
4
4
|
export declare class Invoices extends APIResource {
|
|
5
5
|
/**
|
|
6
6
|
* Creates a new invoice.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const invoice = await client.qbd.invoices.create({
|
|
11
|
+
* customerId: '80000001-1234567890',
|
|
12
|
+
* transactionDate: '2021-10-01',
|
|
13
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
7
16
|
*/
|
|
8
17
|
create(params: InvoiceCreateParams, options?: Core.RequestOptions): Core.APIPromise<Invoice>;
|
|
9
18
|
/**
|
|
10
19
|
* Retrieves an invoice by ID.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* const invoice = await client.qbd.invoices.retrieve(
|
|
24
|
+
* '123ABC-1234567890',
|
|
25
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
26
|
+
* );
|
|
27
|
+
* ```
|
|
11
28
|
*/
|
|
12
29
|
retrieve(id: string, params: InvoiceRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<Invoice>;
|
|
13
30
|
/**
|
|
14
31
|
* Updates an existing invoice.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```ts
|
|
35
|
+
* const invoice = await client.qbd.invoices.update(
|
|
36
|
+
* '123ABC-1234567890',
|
|
37
|
+
* {
|
|
38
|
+
* revisionNumber: '1721172183',
|
|
39
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
40
|
+
* },
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
15
43
|
*/
|
|
16
44
|
update(id: string, params: InvoiceUpdateParams, options?: Core.RequestOptions): Core.APIPromise<Invoice>;
|
|
17
45
|
/**
|
|
18
46
|
* Returns a list of invoices. Use the `cursor` parameter to paginate through the
|
|
19
47
|
* results.
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* // Automatically fetches more pages as needed.
|
|
52
|
+
* for await (const invoice of client.qbd.invoices.list({
|
|
53
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
54
|
+
* })) {
|
|
55
|
+
* // ...
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
20
58
|
*/
|
|
21
59
|
list(params: InvoiceListParams, options?: Core.RequestOptions): Core.PagePromise<InvoicesCursorPage, Invoice>;
|
|
22
60
|
/**
|
|
23
61
|
* Permanently deletes a an invoice. The deletion will fail if the invoice is
|
|
24
62
|
* currently in use or has any linked transactions that are in use.
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const invoice = await client.qbd.invoices.delete(
|
|
67
|
+
* '123ABC-1234567890',
|
|
68
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
69
|
+
* );
|
|
70
|
+
* ```
|
|
25
71
|
*/
|
|
26
72
|
delete(id: string, params: InvoiceDeleteParams, options?: Core.RequestOptions): Core.APIPromise<InvoiceDeleteResponse>;
|
|
27
73
|
}
|