conductor-node 11.10.1 → 12.0.0-beta.2
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 +54 -0
- package/LICENSE +201 -21
- package/README.md +336 -64
- package/_shims/MultipartBody.d.ts +9 -0
- package/_shims/MultipartBody.d.ts.map +1 -0
- package/_shims/MultipartBody.js +16 -0
- package/_shims/MultipartBody.js.map +1 -0
- package/_shims/MultipartBody.mjs +12 -0
- package/_shims/MultipartBody.mjs.map +1 -0
- package/_shims/README.md +46 -0
- package/_shims/auto/runtime-bun.d.ts +5 -0
- package/_shims/auto/runtime-bun.d.ts.map +1 -0
- package/_shims/auto/runtime-bun.js +21 -0
- package/_shims/auto/runtime-bun.js.map +1 -0
- package/_shims/auto/runtime-bun.mjs +2 -0
- package/_shims/auto/runtime-bun.mjs.map +1 -0
- package/_shims/auto/runtime-node.d.ts +5 -0
- package/_shims/auto/runtime-node.d.ts.map +1 -0
- package/_shims/auto/runtime-node.js +21 -0
- package/_shims/auto/runtime-node.js.map +1 -0
- package/_shims/auto/runtime-node.mjs +2 -0
- package/_shims/auto/runtime-node.mjs.map +1 -0
- package/_shims/auto/runtime.d.ts +5 -0
- package/_shims/auto/runtime.d.ts.map +1 -0
- package/_shims/auto/runtime.js +21 -0
- package/_shims/auto/runtime.js.map +1 -0
- package/_shims/auto/runtime.mjs +2 -0
- package/_shims/auto/runtime.mjs.map +1 -0
- package/_shims/auto/types-node.d.ts +5 -0
- package/_shims/auto/types-node.d.ts.map +1 -0
- package/_shims/auto/types-node.js +21 -0
- package/_shims/auto/types-node.js.map +1 -0
- package/_shims/auto/types-node.mjs +2 -0
- package/_shims/auto/types-node.mjs.map +1 -0
- package/_shims/auto/types.d.ts +101 -0
- package/_shims/auto/types.js +3 -0
- package/_shims/auto/types.mjs +3 -0
- package/_shims/bun-runtime.d.ts +6 -0
- package/_shims/bun-runtime.d.ts.map +1 -0
- package/_shims/bun-runtime.js +14 -0
- package/_shims/bun-runtime.js.map +1 -0
- package/_shims/bun-runtime.mjs +10 -0
- package/_shims/bun-runtime.mjs.map +1 -0
- package/_shims/index.d.ts +81 -0
- package/_shims/index.js +13 -0
- package/_shims/index.mjs +7 -0
- package/_shims/manual-types.d.ts +12 -0
- package/_shims/manual-types.js +3 -0
- package/_shims/manual-types.mjs +3 -0
- package/_shims/node-runtime.d.ts +3 -0
- package/_shims/node-runtime.d.ts.map +1 -0
- package/_shims/node-runtime.js +89 -0
- package/_shims/node-runtime.js.map +1 -0
- package/_shims/node-runtime.mjs +56 -0
- package/_shims/node-runtime.mjs.map +1 -0
- package/_shims/node-types.d.ts +42 -0
- package/_shims/node-types.js +3 -0
- package/_shims/node-types.mjs +3 -0
- package/_shims/registry.d.ts +37 -0
- package/_shims/registry.d.ts.map +1 -0
- package/_shims/registry.js +41 -0
- package/_shims/registry.js.map +1 -0
- package/_shims/registry.mjs +37 -0
- package/_shims/registry.mjs.map +1 -0
- package/_shims/web-runtime.d.ts +5 -0
- package/_shims/web-runtime.d.ts.map +1 -0
- package/_shims/web-runtime.js +78 -0
- package/_shims/web-runtime.js.map +1 -0
- package/_shims/web-runtime.mjs +71 -0
- package/_shims/web-runtime.mjs.map +1 -0
- package/_shims/web-types.d.ts +83 -0
- package/_shims/web-types.js +3 -0
- package/_shims/web-types.mjs +3 -0
- package/core.d.ts +241 -0
- package/core.d.ts.map +1 -0
- package/core.js +914 -0
- package/core.js.map +1 -0
- package/core.mjs +882 -0
- package/core.mjs.map +1 -0
- package/error.d.ts +47 -0
- package/error.d.ts.map +1 -0
- package/error.js +113 -0
- package/error.js.map +1 -0
- package/error.mjs +97 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +121 -0
- package/index.d.ts +121 -0
- package/index.d.ts.map +1 -0
- package/index.js +133 -0
- package/index.js.map +1 -0
- package/index.mjs +90 -0
- package/index.mjs.map +1 -0
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +280 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/{dist/src/resources → internal/qs}/types.js +1 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +111 -35
- package/pagination.d.ts +18 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +40 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +36 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.ts +6 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +11 -0
- package/resource.js.map +1 -0
- package/resource.mjs +7 -0
- package/resource.mjs.map +1 -0
- package/resources/auth-sessions.d.ts +79 -0
- package/resources/auth-sessions.d.ts.map +1 -0
- package/resources/auth-sessions.js +23 -0
- package/resources/auth-sessions.js.map +1 -0
- package/resources/auth-sessions.mjs +19 -0
- package/resources/auth-sessions.mjs.map +1 -0
- package/resources/end-users.d.ts +154 -0
- package/resources/end-users.d.ts.map +1 -0
- package/resources/end-users.js +48 -0
- package/resources/end-users.js.map +1 -0
- package/resources/end-users.mjs +44 -0
- package/resources/end-users.mjs.map +1 -0
- package/resources/index.d.ts +4 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +11 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +5 -0
- package/resources/index.mjs.map +1 -0
- package/resources/qbd/accounts.d.ts +579 -0
- package/resources/qbd/accounts.d.ts.map +1 -0
- package/resources/qbd/accounts.js +54 -0
- package/resources/qbd/accounts.js.map +1 -0
- package/resources/qbd/accounts.mjs +50 -0
- package/resources/qbd/accounts.mjs.map +1 -0
- package/resources/qbd/bill-check-payments.d.ts +831 -0
- package/resources/qbd/bill-check-payments.d.ts.map +1 -0
- package/resources/qbd/bill-check-payments.js +70 -0
- package/resources/qbd/bill-check-payments.js.map +1 -0
- package/resources/qbd/bill-check-payments.mjs +65 -0
- package/resources/qbd/bill-check-payments.mjs.map +1 -0
- package/resources/qbd/bill-credit-card-payments.d.ts +641 -0
- package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -0
- package/resources/qbd/bill-credit-card-payments.js +55 -0
- package/resources/qbd/bill-credit-card-payments.js.map +1 -0
- package/resources/qbd/bill-credit-card-payments.mjs +50 -0
- package/resources/qbd/bill-credit-card-payments.mjs.map +1 -0
- package/resources/qbd/bills.d.ts +2561 -0
- package/resources/qbd/bills.d.ts.map +1 -0
- package/resources/qbd/bills.js +69 -0
- package/resources/qbd/bills.js.map +1 -0
- package/resources/qbd/bills.mjs +64 -0
- package/resources/qbd/bills.mjs.map +1 -0
- package/resources/qbd/checks.d.ts +2528 -0
- package/resources/qbd/checks.d.ts.map +1 -0
- package/resources/qbd/checks.js +69 -0
- package/resources/qbd/checks.js.map +1 -0
- package/resources/qbd/checks.mjs +64 -0
- package/resources/qbd/checks.mjs.map +1 -0
- package/resources/qbd/classes.d.ts +289 -0
- package/resources/qbd/classes.d.ts.map +1 -0
- package/resources/qbd/classes.js +54 -0
- package/resources/qbd/classes.js.map +1 -0
- package/resources/qbd/classes.mjs +50 -0
- package/resources/qbd/classes.mjs.map +1 -0
- package/resources/qbd/credit-card-charges.d.ts +2236 -0
- package/resources/qbd/credit-card-charges.d.ts.map +1 -0
- package/resources/qbd/credit-card-charges.js +69 -0
- package/resources/qbd/credit-card-charges.js.map +1 -0
- package/resources/qbd/credit-card-charges.mjs +64 -0
- package/resources/qbd/credit-card-charges.mjs.map +1 -0
- package/resources/qbd/credit-card-credits.d.ts +2233 -0
- package/resources/qbd/credit-card-credits.d.ts.map +1 -0
- package/resources/qbd/credit-card-credits.js +69 -0
- package/resources/qbd/credit-card-credits.js.map +1 -0
- package/resources/qbd/credit-card-credits.mjs +64 -0
- package/resources/qbd/credit-card-credits.mjs.map +1 -0
- package/resources/qbd/credit-memos.d.ts +2649 -0
- package/resources/qbd/credit-memos.d.ts.map +1 -0
- package/resources/qbd/credit-memos.js +69 -0
- package/resources/qbd/credit-memos.js.map +1 -0
- package/resources/qbd/credit-memos.mjs +64 -0
- package/resources/qbd/credit-memos.mjs.map +1 -0
- package/resources/qbd/customers.d.ts +2106 -0
- package/resources/qbd/customers.d.ts.map +1 -0
- package/resources/qbd/customers.js +58 -0
- package/resources/qbd/customers.js.map +1 -0
- package/resources/qbd/customers.mjs +53 -0
- package/resources/qbd/customers.mjs.map +1 -0
- package/resources/qbd/date-driven-terms.d.ts +242 -0
- package/resources/qbd/date-driven-terms.d.ts.map +1 -0
- package/resources/qbd/date-driven-terms.js +43 -0
- package/resources/qbd/date-driven-terms.js.map +1 -0
- package/resources/qbd/date-driven-terms.mjs +39 -0
- package/resources/qbd/date-driven-terms.mjs.map +1 -0
- package/resources/qbd/discount-items.d.ts +576 -0
- package/resources/qbd/discount-items.d.ts.map +1 -0
- package/resources/qbd/discount-items.js +58 -0
- package/resources/qbd/discount-items.js.map +1 -0
- package/resources/qbd/discount-items.mjs +53 -0
- package/resources/qbd/discount-items.mjs.map +1 -0
- package/resources/qbd/employees.d.ts +1669 -0
- package/resources/qbd/employees.d.ts.map +1 -0
- package/resources/qbd/employees.js +58 -0
- package/resources/qbd/employees.js.map +1 -0
- package/resources/qbd/employees.mjs +53 -0
- package/resources/qbd/employees.mjs.map +1 -0
- package/resources/qbd/estimates.d.ts +2493 -0
- package/resources/qbd/estimates.d.ts.map +1 -0
- package/resources/qbd/estimates.js +69 -0
- package/resources/qbd/estimates.js.map +1 -0
- package/resources/qbd/estimates.mjs +64 -0
- package/resources/qbd/estimates.mjs.map +1 -0
- package/resources/qbd/index.d.ts +37 -0
- package/resources/qbd/index.d.ts.map +1 -0
- package/resources/qbd/index.js +105 -0
- package/resources/qbd/index.js.map +1 -0
- package/resources/qbd/index.mjs +38 -0
- package/resources/qbd/index.mjs.map +1 -0
- package/resources/qbd/inventory-adjustments.d.ts +814 -0
- package/resources/qbd/inventory-adjustments.d.ts.map +1 -0
- package/resources/qbd/inventory-adjustments.js +66 -0
- package/resources/qbd/inventory-adjustments.js.map +1 -0
- package/resources/qbd/inventory-adjustments.mjs +62 -0
- package/resources/qbd/inventory-adjustments.mjs.map +1 -0
- package/resources/qbd/inventory-assembly-items.d.ts +931 -0
- package/resources/qbd/inventory-assembly-items.d.ts.map +1 -0
- package/resources/qbd/inventory-assembly-items.js +54 -0
- package/resources/qbd/inventory-assembly-items.js.map +1 -0
- package/resources/qbd/inventory-assembly-items.mjs +49 -0
- package/resources/qbd/inventory-assembly-items.mjs.map +1 -0
- package/resources/qbd/inventory-items.d.ts +844 -0
- package/resources/qbd/inventory-items.d.ts.map +1 -0
- package/resources/qbd/inventory-items.js +58 -0
- package/resources/qbd/inventory-items.js.map +1 -0
- package/resources/qbd/inventory-items.mjs +53 -0
- package/resources/qbd/inventory-items.mjs.map +1 -0
- package/resources/qbd/inventory-sites.d.ts +477 -0
- package/resources/qbd/inventory-sites.d.ts.map +1 -0
- package/resources/qbd/inventory-sites.js +54 -0
- package/resources/qbd/inventory-sites.js.map +1 -0
- package/resources/qbd/inventory-sites.mjs +50 -0
- package/resources/qbd/inventory-sites.mjs.map +1 -0
- package/resources/qbd/invoices.d.ts +2873 -0
- package/resources/qbd/invoices.d.ts.map +1 -0
- package/resources/qbd/invoices.js +69 -0
- package/resources/qbd/invoices.js.map +1 -0
- package/resources/qbd/invoices.mjs +64 -0
- package/resources/qbd/invoices.mjs.map +1 -0
- package/resources/qbd/journal-entries.d.ts +856 -0
- package/resources/qbd/journal-entries.d.ts.map +1 -0
- package/resources/qbd/journal-entries.js +69 -0
- package/resources/qbd/journal-entries.js.map +1 -0
- package/resources/qbd/journal-entries.mjs +64 -0
- package/resources/qbd/journal-entries.mjs.map +1 -0
- package/resources/qbd/non-inventory-items.d.ts +950 -0
- package/resources/qbd/non-inventory-items.d.ts.map +1 -0
- package/resources/qbd/non-inventory-items.js +58 -0
- package/resources/qbd/non-inventory-items.js.map +1 -0
- package/resources/qbd/non-inventory-items.mjs +53 -0
- package/resources/qbd/non-inventory-items.mjs.map +1 -0
- package/resources/qbd/payroll-wage-items.d.ts +215 -0
- package/resources/qbd/payroll-wage-items.d.ts.map +1 -0
- package/resources/qbd/payroll-wage-items.js +47 -0
- package/resources/qbd/payroll-wage-items.js.map +1 -0
- package/resources/qbd/payroll-wage-items.mjs +42 -0
- package/resources/qbd/payroll-wage-items.mjs.map +1 -0
- package/resources/qbd/purchase-orders.d.ts +2554 -0
- package/resources/qbd/purchase-orders.d.ts.map +1 -0
- package/resources/qbd/purchase-orders.js +69 -0
- package/resources/qbd/purchase-orders.js.map +1 -0
- package/resources/qbd/purchase-orders.mjs +64 -0
- package/resources/qbd/purchase-orders.mjs.map +1 -0
- package/resources/qbd/qbd.d.ts +146 -0
- package/resources/qbd/qbd.d.ts.map +1 -0
- package/resources/qbd/qbd.js +202 -0
- package/resources/qbd/qbd.js.map +1 -0
- package/resources/qbd/qbd.mjs +175 -0
- package/resources/qbd/qbd.mjs.map +1 -0
- package/resources/qbd/receive-payments.d.ts +1282 -0
- package/resources/qbd/receive-payments.d.ts.map +1 -0
- package/resources/qbd/receive-payments.js +70 -0
- package/resources/qbd/receive-payments.js.map +1 -0
- package/resources/qbd/receive-payments.mjs +65 -0
- package/resources/qbd/receive-payments.mjs.map +1 -0
- package/resources/qbd/sales-orders.d.ts +2628 -0
- package/resources/qbd/sales-orders.d.ts.map +1 -0
- package/resources/qbd/sales-orders.js +69 -0
- package/resources/qbd/sales-orders.js.map +1 -0
- package/resources/qbd/sales-orders.mjs +64 -0
- package/resources/qbd/sales-orders.mjs.map +1 -0
- package/resources/qbd/sales-receipts.d.ts +3373 -0
- package/resources/qbd/sales-receipts.d.ts.map +1 -0
- package/resources/qbd/sales-receipts.js +69 -0
- package/resources/qbd/sales-receipts.js.map +1 -0
- package/resources/qbd/sales-receipts.mjs +64 -0
- package/resources/qbd/sales-receipts.mjs.map +1 -0
- package/resources/qbd/sales-representatives.d.ts +251 -0
- package/resources/qbd/sales-representatives.d.ts.map +1 -0
- package/resources/qbd/sales-representatives.js +54 -0
- package/resources/qbd/sales-representatives.js.map +1 -0
- package/resources/qbd/sales-representatives.mjs +50 -0
- package/resources/qbd/sales-representatives.mjs.map +1 -0
- package/resources/qbd/sales-tax-codes.d.ts +306 -0
- package/resources/qbd/sales-tax-codes.d.ts.map +1 -0
- package/resources/qbd/sales-tax-codes.js +54 -0
- package/resources/qbd/sales-tax-codes.js.map +1 -0
- package/resources/qbd/sales-tax-codes.mjs +50 -0
- package/resources/qbd/sales-tax-codes.mjs.map +1 -0
- package/resources/qbd/sales-tax-items.d.ts +458 -0
- package/resources/qbd/sales-tax-items.d.ts.map +1 -0
- package/resources/qbd/sales-tax-items.js +58 -0
- package/resources/qbd/sales-tax-items.js.map +1 -0
- package/resources/qbd/sales-tax-items.mjs +53 -0
- package/resources/qbd/sales-tax-items.mjs.map +1 -0
- package/resources/qbd/service-items.d.ts +923 -0
- package/resources/qbd/service-items.d.ts.map +1 -0
- package/resources/qbd/service-items.js +58 -0
- package/resources/qbd/service-items.js.map +1 -0
- package/resources/qbd/service-items.mjs +53 -0
- package/resources/qbd/service-items.mjs.map +1 -0
- package/resources/qbd/standard-terms.d.ts +225 -0
- package/resources/qbd/standard-terms.d.ts.map +1 -0
- package/resources/qbd/standard-terms.js +43 -0
- package/resources/qbd/standard-terms.js.map +1 -0
- package/resources/qbd/standard-terms.mjs +39 -0
- package/resources/qbd/standard-terms.mjs.map +1 -0
- package/resources/qbd/subtotal-items.d.ts +323 -0
- package/resources/qbd/subtotal-items.d.ts.map +1 -0
- package/resources/qbd/subtotal-items.js +58 -0
- package/resources/qbd/subtotal-items.js.map +1 -0
- package/resources/qbd/subtotal-items.mjs +53 -0
- package/resources/qbd/subtotal-items.mjs.map +1 -0
- package/resources/qbd/transfers.d.ts +269 -0
- package/resources/qbd/transfers.d.ts.map +1 -0
- package/resources/qbd/transfers.js +58 -0
- package/resources/qbd/transfers.js.map +1 -0
- package/resources/qbd/transfers.mjs +53 -0
- package/resources/qbd/transfers.mjs.map +1 -0
- package/resources/qbd/vendor-credits.d.ts +2298 -0
- package/resources/qbd/vendor-credits.d.ts.map +1 -0
- package/resources/qbd/vendor-credits.js +69 -0
- package/resources/qbd/vendor-credits.js.map +1 -0
- package/resources/qbd/vendor-credits.mjs +64 -0
- package/resources/qbd/vendor-credits.mjs.map +1 -0
- package/resources/qbd/vendors.d.ts +1677 -0
- package/resources/qbd/vendors.d.ts.map +1 -0
- package/resources/qbd/vendors.js +58 -0
- package/resources/qbd/vendors.js.map +1 -0
- package/resources/qbd/vendors.mjs +53 -0
- package/resources/qbd/vendors.mjs.map +1 -0
- package/shims/node.d.ts +30 -0
- package/shims/node.d.ts.map +1 -0
- package/shims/node.js +31 -0
- package/shims/node.js.map +1 -0
- package/shims/node.mjs +5 -0
- package/shims/node.mjs.map +1 -0
- package/shims/web.d.ts +26 -0
- package/shims/web.d.ts.map +1 -0
- package/shims/web.js +31 -0
- package/shims/web.js.map +1 -0
- package/shims/web.mjs +5 -0
- package/shims/web.mjs.map +1 -0
- package/src/_shims/MultipartBody.ts +9 -0
- package/src/_shims/README.md +46 -0
- package/src/_shims/auto/runtime-bun.ts +4 -0
- package/src/_shims/auto/runtime-node.ts +4 -0
- package/src/_shims/auto/runtime.ts +4 -0
- package/src/_shims/auto/types-node.ts +4 -0
- package/src/_shims/auto/types.d.ts +101 -0
- package/src/_shims/auto/types.js +3 -0
- package/src/_shims/auto/types.mjs +3 -0
- package/src/_shims/bun-runtime.ts +14 -0
- package/src/_shims/index.d.ts +81 -0
- package/src/_shims/index.js +13 -0
- package/src/_shims/index.mjs +7 -0
- package/src/_shims/manual-types.d.ts +12 -0
- package/src/_shims/manual-types.js +3 -0
- package/src/_shims/manual-types.mjs +3 -0
- package/src/_shims/node-runtime.ts +81 -0
- package/src/_shims/node-types.d.ts +42 -0
- package/src/_shims/node-types.js +3 -0
- package/src/_shims/node-types.mjs +3 -0
- package/src/_shims/registry.ts +67 -0
- package/src/_shims/web-runtime.ts +103 -0
- package/src/_shims/web-types.d.ts +83 -0
- package/src/_shims/web-types.js +3 -0
- package/src/_shims/web-types.mjs +3 -0
- package/src/core.ts +1208 -0
- package/src/error.ts +130 -0
- package/src/index.ts +227 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/lib/.keep +4 -0
- package/src/pagination.ts +60 -0
- package/src/resource.ts +11 -0
- package/src/resources/auth-sessions.ts +99 -0
- package/src/resources/end-users.ts +216 -0
- package/src/resources/index.ts +14 -0
- package/src/resources/qbd/accounts.ts +797 -0
- package/src/resources/qbd/bill-check-payments.ts +1086 -0
- package/src/resources/qbd/bill-credit-card-payments.ts +851 -0
- package/src/resources/qbd/bills.ts +3039 -0
- package/src/resources/qbd/checks.ts +3003 -0
- package/src/resources/qbd/classes.ts +366 -0
- package/src/resources/qbd/credit-card-charges.ts +2646 -0
- package/src/resources/qbd/credit-card-credits.ts +2643 -0
- package/src/resources/qbd/credit-memos.ts +3157 -0
- package/src/resources/qbd/customers.ts +2518 -0
- package/src/resources/qbd/date-driven-terms.ts +314 -0
- package/src/resources/qbd/discount-items.ts +712 -0
- package/src/resources/qbd/employees.ts +2266 -0
- package/src/resources/qbd/estimates.ts +2975 -0
- package/src/resources/qbd/index.ts +346 -0
- package/src/resources/qbd/inventory-adjustments.ts +1008 -0
- package/src/resources/qbd/inventory-assembly-items.ts +1126 -0
- package/src/resources/qbd/inventory-items.ts +1026 -0
- package/src/resources/qbd/inventory-sites.ts +605 -0
- package/src/resources/qbd/invoices.ts +3398 -0
- package/src/resources/qbd/journal-entries.ts +1051 -0
- package/src/resources/qbd/non-inventory-items.ts +1138 -0
- package/src/resources/qbd/payroll-wage-items.ts +304 -0
- package/src/resources/qbd/purchase-orders.ts +3045 -0
- package/src/resources/qbd/qbd.ts +876 -0
- package/src/resources/qbd/receive-payments.ts +1609 -0
- package/src/resources/qbd/sales-orders.ts +3141 -0
- package/src/resources/qbd/sales-receipts.ts +3977 -0
- package/src/resources/qbd/sales-representatives.ts +340 -0
- package/src/resources/qbd/sales-tax-codes.ts +398 -0
- package/src/resources/qbd/sales-tax-items.ts +583 -0
- package/src/resources/qbd/service-items.ts +1105 -0
- package/src/resources/qbd/standard-terms.ts +295 -0
- package/src/resources/qbd/subtotal-items.ts +430 -0
- package/src/resources/qbd/transfers.ts +359 -0
- package/src/resources/qbd/vendor-credits.ts +2742 -0
- package/src/resources/qbd/vendors.ts +2017 -0
- package/src/shims/node.ts +50 -0
- package/src/shims/web.ts +50 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +255 -0
- package/src/version.ts +1 -0
- package/uploads.d.ts +75 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +171 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +158 -0
- package/uploads.mjs.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
- package/dist/package.json +0 -48
- package/dist/src/Client.d.ts +0 -21
- package/dist/src/Client.js +0 -54
- package/dist/src/index.d.ts +0 -11
- package/dist/src/index.js +0 -59
- package/dist/src/integrations/BaseIntegration.d.ts +0 -9
- package/dist/src/integrations/BaseIntegration.js +0 -14
- package/dist/src/integrations/qbd/QbdIntegration.d.ts +0 -3120
- package/dist/src/integrations/qbd/QbdIntegration.js +0 -3147
- package/dist/src/integrations/qbd/qbdTypes.d.ts +0 -14076
- package/dist/src/integrations/qbd/qbdTypes.js +0 -2
- package/dist/src/interceptors/errorHandling.d.ts +0 -2
- package/dist/src/interceptors/errorHandling.js +0 -53
- package/dist/src/interceptors/logging.d.ts +0 -18
- package/dist/src/interceptors/logging.js +0 -70
- package/dist/src/resources/AuthSessionsResource.d.ts +0 -77
- package/dist/src/resources/AuthSessionsResource.js +0 -26
- package/dist/src/resources/BaseResource.d.ts +0 -6
- package/dist/src/resources/BaseResource.js +0 -9
- package/dist/src/resources/EndUsersResource.d.ts +0 -84
- package/dist/src/resources/EndUsersResource.js +0 -57
- package/dist/src/resources/types.d.ts +0 -40
- package/dist/src/utils/checkForUpdates.d.ts +0 -2
- package/dist/src/utils/checkForUpdates.js +0 -65
- package/dist/src/utils/env.d.ts +0 -1
- package/dist/src/utils/env.js +0 -15
- package/dist/src/utils/error.d.ts +0 -184
- package/dist/src/utils/error.js +0 -254
|
@@ -0,0 +1,712 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import { CursorPage, type CursorPageParams } from '../../pagination';
|
|
6
|
+
|
|
7
|
+
export class DiscountItems extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates a new discount item.
|
|
10
|
+
*/
|
|
11
|
+
create(params: DiscountItemCreateParams, options?: Core.RequestOptions): Core.APIPromise<DiscountItem> {
|
|
12
|
+
const { conductorEndUserId, ...body } = params;
|
|
13
|
+
return this._client.post('/quickbooks-desktop/discount-items', {
|
|
14
|
+
body,
|
|
15
|
+
...options,
|
|
16
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a discount item by ID.
|
|
22
|
+
*/
|
|
23
|
+
retrieve(
|
|
24
|
+
id: string,
|
|
25
|
+
params: DiscountItemRetrieveParams,
|
|
26
|
+
options?: Core.RequestOptions,
|
|
27
|
+
): Core.APIPromise<DiscountItem> {
|
|
28
|
+
const { conductorEndUserId } = params;
|
|
29
|
+
return this._client.get(`/quickbooks-desktop/discount-items/${id}`, {
|
|
30
|
+
...options,
|
|
31
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Updates an existing discount item.
|
|
37
|
+
*/
|
|
38
|
+
update(
|
|
39
|
+
id: string,
|
|
40
|
+
params: DiscountItemUpdateParams,
|
|
41
|
+
options?: Core.RequestOptions,
|
|
42
|
+
): Core.APIPromise<DiscountItem> {
|
|
43
|
+
const { conductorEndUserId, ...body } = params;
|
|
44
|
+
return this._client.post(`/quickbooks-desktop/discount-items/${id}`, {
|
|
45
|
+
body,
|
|
46
|
+
...options,
|
|
47
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Returns a list of discount items. Use the `cursor` parameter to paginate through
|
|
53
|
+
* the results.
|
|
54
|
+
*/
|
|
55
|
+
list(
|
|
56
|
+
params: DiscountItemListParams,
|
|
57
|
+
options?: Core.RequestOptions,
|
|
58
|
+
): Core.PagePromise<DiscountItemsCursorPage, DiscountItem> {
|
|
59
|
+
const { conductorEndUserId, ...query } = params;
|
|
60
|
+
return this._client.getAPIList('/quickbooks-desktop/discount-items', DiscountItemsCursorPage, {
|
|
61
|
+
query,
|
|
62
|
+
...options,
|
|
63
|
+
headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class DiscountItemsCursorPage extends CursorPage<DiscountItem> {}
|
|
69
|
+
|
|
70
|
+
export interface DiscountItem {
|
|
71
|
+
/**
|
|
72
|
+
* The unique identifier assigned by QuickBooks to this discount item. This ID is
|
|
73
|
+
* unique across all discount items but not across different QuickBooks object
|
|
74
|
+
* types.
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The posting account to which transactions involving this discount item are
|
|
80
|
+
* posted for tracking discounts.
|
|
81
|
+
*/
|
|
82
|
+
account: DiscountItem.Account;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The discount item's barcode.
|
|
86
|
+
*/
|
|
87
|
+
barcode: string | null;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* The discount item's class. Classes can be used to categorize objects into
|
|
91
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
92
|
+
* QuickBooks, class tracking is off by default.
|
|
93
|
+
*/
|
|
94
|
+
class: DiscountItem.Class | null;
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* The date and time when this discount item was created, in ISO 8601 format
|
|
98
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
99
|
+
* in QuickBooks.
|
|
100
|
+
*/
|
|
101
|
+
createdAt: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The custom fields for the discount item object, added as user-defined data
|
|
105
|
+
* extensions, not included in the standard QuickBooks object.
|
|
106
|
+
*/
|
|
107
|
+
customFields: Array<DiscountItem.CustomField>;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The discount item's description that will appear on sales forms that include
|
|
111
|
+
* this item.
|
|
112
|
+
*/
|
|
113
|
+
description: string | null;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The monetary amount to subtract from the total or subtotal when applying this
|
|
117
|
+
* discount item to a transaction.
|
|
118
|
+
*
|
|
119
|
+
* **NOTE**: A flat rate discount applies to ALL lines recorded above it and
|
|
120
|
+
* distributes the discount amount equally across those lines, which affects tax
|
|
121
|
+
* calculations. For example, a $10 discount applied to a $100 taxable item and
|
|
122
|
+
* $100 non-taxable item would result in a $5 taxable discount and $5 non-taxable
|
|
123
|
+
* discount.
|
|
124
|
+
*/
|
|
125
|
+
discountRate: string | null;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The percentage amount to subtract from the total or subtotal when applying this
|
|
129
|
+
* discount item to a transaction.
|
|
130
|
+
*
|
|
131
|
+
* **NOTE**: A percentage discount only applies to the line immediately above it,
|
|
132
|
+
* so tax implications only affect that specific line.
|
|
133
|
+
*/
|
|
134
|
+
discountRatePercent: string | null;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* A globally unique identifier (GUID) you, the developer, can provide for tracking
|
|
138
|
+
* this object in your external system. This field is immutable and can only be set
|
|
139
|
+
* during object creation.
|
|
140
|
+
*/
|
|
141
|
+
externalId: string | null;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* The case-insensitive fully-qualified unique name of this discount item, formed
|
|
145
|
+
* by combining the names of its hierarchical parent objects with its own `name`,
|
|
146
|
+
* separated by colons. For example, if a discount item is under "Discounts" and
|
|
147
|
+
* has the `name` "10% labor discount", its `fullName` would be "Discounts:10%
|
|
148
|
+
* labor discount".
|
|
149
|
+
*
|
|
150
|
+
* **NOTE**: Unlike `name`, `fullName` is guaranteed to be unique across all
|
|
151
|
+
* discount item objects. However, `fullName` can still be arbitrarily changed by
|
|
152
|
+
* the QuickBooks user when they modify the underlying `name` field.
|
|
153
|
+
*/
|
|
154
|
+
fullName: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Indicates whether this discount item is active. Inactive objects are typically
|
|
158
|
+
* hidden from views and reports in QuickBooks. Defaults to `true`.
|
|
159
|
+
*/
|
|
160
|
+
isActive: boolean;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The case-insensitive name of this discount item. Not guaranteed to be unique
|
|
164
|
+
* because it does not include the names of its hierarchical parent objects like
|
|
165
|
+
* `fullName` does. For example, two discount items could both have the `name` "10%
|
|
166
|
+
* labor discount", but they could have unique `fullName` values, such as
|
|
167
|
+
* "Discounts:10% labor discount" and "Promotions:10% labor discount".
|
|
168
|
+
*/
|
|
169
|
+
name: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* The type of object. This value is always `"qbd_discount_item"`.
|
|
173
|
+
*/
|
|
174
|
+
objectType: 'qbd_discount_item';
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The parent discount item one level above this one in the hierarchy. For example,
|
|
178
|
+
* if this discount item has a `fullName` of "Discounts:10% labor discount", its
|
|
179
|
+
* parent has a `fullName` of "Discounts". If this discount item is at the top
|
|
180
|
+
* level, this field will be `null`.
|
|
181
|
+
*/
|
|
182
|
+
parent: DiscountItem.Parent | null;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* The current QuickBooks-assigned revision number of this discount item object,
|
|
186
|
+
* which changes each time the object is modified. When updating this object, you
|
|
187
|
+
* must provide the most recent `revisionNumber` to ensure you're working with the
|
|
188
|
+
* latest data; otherwise, the update will return an error.
|
|
189
|
+
*/
|
|
190
|
+
revisionNumber: string;
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* The default sales-tax code for this discount item, determining whether it is
|
|
194
|
+
* taxable or non-taxable. This can be overridden at the transaction-line level.
|
|
195
|
+
*
|
|
196
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
197
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
198
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
199
|
+
* non-taxable code to all sales.
|
|
200
|
+
*/
|
|
201
|
+
salesTaxCode: DiscountItem.SalesTaxCode | null;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* The depth level of this discount item in the hierarchy. A top-level discount
|
|
205
|
+
* item has a `sublevel` of 0; each subsequent sublevel increases this number by 1.
|
|
206
|
+
* For example, a discount item with a `fullName` of "Discounts:10% labor discount"
|
|
207
|
+
* would have a `sublevel` of 1.
|
|
208
|
+
*/
|
|
209
|
+
sublevel: number;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The date and time when this discount item was last updated, in ISO 8601 format
|
|
213
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
|
|
214
|
+
* in QuickBooks.
|
|
215
|
+
*/
|
|
216
|
+
updatedAt: string;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export namespace DiscountItem {
|
|
220
|
+
/**
|
|
221
|
+
* The posting account to which transactions involving this discount item are
|
|
222
|
+
* posted for tracking discounts.
|
|
223
|
+
*/
|
|
224
|
+
export interface Account {
|
|
225
|
+
/**
|
|
226
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
227
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
228
|
+
* types.
|
|
229
|
+
*/
|
|
230
|
+
id: string | null;
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
234
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
235
|
+
* case-sensitive.
|
|
236
|
+
*/
|
|
237
|
+
fullName: string | null;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The discount item's class. Classes can be used to categorize objects into
|
|
242
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
243
|
+
* QuickBooks, class tracking is off by default.
|
|
244
|
+
*/
|
|
245
|
+
export interface Class {
|
|
246
|
+
/**
|
|
247
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
248
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
249
|
+
* types.
|
|
250
|
+
*/
|
|
251
|
+
id: string | null;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
255
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
256
|
+
* case-sensitive.
|
|
257
|
+
*/
|
|
258
|
+
fullName: string | null;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface CustomField {
|
|
262
|
+
/**
|
|
263
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
264
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
265
|
+
*/
|
|
266
|
+
name: string;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
270
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
271
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
272
|
+
* fields that are only visible to the application that created them, this is a
|
|
273
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
274
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
275
|
+
* objects.
|
|
276
|
+
*/
|
|
277
|
+
ownerId: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* The data type of this custom field.
|
|
281
|
+
*/
|
|
282
|
+
type:
|
|
283
|
+
| 'amount_type'
|
|
284
|
+
| 'date_time_type'
|
|
285
|
+
| 'integer_type'
|
|
286
|
+
| 'percent_type'
|
|
287
|
+
| 'price_type'
|
|
288
|
+
| 'quantity_type'
|
|
289
|
+
| 'string_1024_type'
|
|
290
|
+
| 'string_255_type';
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
294
|
+
* type.
|
|
295
|
+
*/
|
|
296
|
+
value: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* The parent discount item one level above this one in the hierarchy. For example,
|
|
301
|
+
* if this discount item has a `fullName` of "Discounts:10% labor discount", its
|
|
302
|
+
* parent has a `fullName` of "Discounts". If this discount item is at the top
|
|
303
|
+
* level, this field will be `null`.
|
|
304
|
+
*/
|
|
305
|
+
export interface Parent {
|
|
306
|
+
/**
|
|
307
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
308
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
309
|
+
* types.
|
|
310
|
+
*/
|
|
311
|
+
id: string | null;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
315
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
316
|
+
* case-sensitive.
|
|
317
|
+
*/
|
|
318
|
+
fullName: string | null;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* The default sales-tax code for this discount item, determining whether it is
|
|
323
|
+
* taxable or non-taxable. This can be overridden at the transaction-line level.
|
|
324
|
+
*
|
|
325
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
326
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
327
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
328
|
+
* non-taxable code to all sales.
|
|
329
|
+
*/
|
|
330
|
+
export interface SalesTaxCode {
|
|
331
|
+
/**
|
|
332
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
333
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
334
|
+
* types.
|
|
335
|
+
*/
|
|
336
|
+
id: string | null;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
340
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
341
|
+
* case-sensitive.
|
|
342
|
+
*/
|
|
343
|
+
fullName: string | null;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
export interface DiscountItemCreateParams {
|
|
348
|
+
/**
|
|
349
|
+
* Body param: The posting account to which transactions involving this discount
|
|
350
|
+
* item are posted for tracking discounts.
|
|
351
|
+
*/
|
|
352
|
+
accountId: string;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Body param: The case-insensitive name of this discount item. Not guaranteed to
|
|
356
|
+
* be unique because it does not include the names of its hierarchical parent
|
|
357
|
+
* objects like `fullName` does. For example, two discount items could both have
|
|
358
|
+
* the `name` "10% labor discount", but they could have unique `fullName` values,
|
|
359
|
+
* such as "Discounts:10% labor discount" and "Promotions:10% labor discount".
|
|
360
|
+
*
|
|
361
|
+
* Maximum length: 31 characters.
|
|
362
|
+
*/
|
|
363
|
+
name: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
367
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
368
|
+
*/
|
|
369
|
+
conductorEndUserId: string;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Body param: The discount item's barcode.
|
|
373
|
+
*/
|
|
374
|
+
barcode?: DiscountItemCreateParams.Barcode;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Body param: The discount item's class. Classes can be used to categorize objects
|
|
378
|
+
* into meaningful segments, such as department, location, or type of work. In
|
|
379
|
+
* QuickBooks, class tracking is off by default.
|
|
380
|
+
*/
|
|
381
|
+
classId?: string;
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Body param: The discount item's description that will appear on sales forms that
|
|
385
|
+
* include this item.
|
|
386
|
+
*/
|
|
387
|
+
description?: string;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Body param: The monetary amount to subtract from the total or subtotal when
|
|
391
|
+
* applying this discount item to a transaction.
|
|
392
|
+
*
|
|
393
|
+
* **NOTE**: A flat rate discount applies to ALL lines recorded above it and
|
|
394
|
+
* distributes the discount amount equally across those lines, which affects tax
|
|
395
|
+
* calculations. For example, a $10 discount applied to a $100 taxable item and
|
|
396
|
+
* $100 non-taxable item would result in a $5 taxable discount and $5 non-taxable
|
|
397
|
+
* discount.
|
|
398
|
+
*/
|
|
399
|
+
discountRate?: string;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Body param: The percentage amount to subtract from the total or subtotal when
|
|
403
|
+
* applying this discount item to a transaction.
|
|
404
|
+
*
|
|
405
|
+
* **NOTE**: A percentage discount only applies to the line immediately above it,
|
|
406
|
+
* so tax implications only affect that specific line.
|
|
407
|
+
*/
|
|
408
|
+
discountRatePercent?: string;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Body param: A globally unique identifier (GUID) you, the developer, can provide
|
|
412
|
+
* for tracking this object in your external system. This field is immutable and
|
|
413
|
+
* can only be set during object creation.
|
|
414
|
+
*
|
|
415
|
+
* **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
|
|
416
|
+
* QuickBooks will return an error.
|
|
417
|
+
*/
|
|
418
|
+
externalId?: string;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Body param: Indicates whether this discount item is active. Inactive objects are
|
|
422
|
+
* typically hidden from views and reports in QuickBooks. Defaults to `true`.
|
|
423
|
+
*/
|
|
424
|
+
isActive?: boolean;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* Body param: The parent discount item one level above this one in the hierarchy.
|
|
428
|
+
* For example, if this discount item has a `fullName` of "Discounts:10% labor
|
|
429
|
+
* discount", its parent has a `fullName` of "Discounts". If this discount item is
|
|
430
|
+
* at the top level, this field will be `null`.
|
|
431
|
+
*/
|
|
432
|
+
parentId?: string;
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Body param: The default sales-tax code for this discount item, determining
|
|
436
|
+
* whether it is taxable or non-taxable. This can be overridden at the
|
|
437
|
+
* transaction-line level.
|
|
438
|
+
*
|
|
439
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
440
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
441
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
442
|
+
* non-taxable code to all sales.
|
|
443
|
+
*/
|
|
444
|
+
salesTaxCodeId?: string;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export namespace DiscountItemCreateParams {
|
|
448
|
+
/**
|
|
449
|
+
* The discount item's barcode.
|
|
450
|
+
*/
|
|
451
|
+
export interface Barcode {
|
|
452
|
+
/**
|
|
453
|
+
* Indicates whether to allow the barcode to be overridden.
|
|
454
|
+
*/
|
|
455
|
+
allowOverride?: boolean;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* Indicates whether to assign the barcode even if it is already used.
|
|
459
|
+
*/
|
|
460
|
+
assignEvenIfUsed?: boolean;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* The item's barcode value.
|
|
464
|
+
*/
|
|
465
|
+
value?: string;
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
export interface DiscountItemRetrieveParams {
|
|
470
|
+
/**
|
|
471
|
+
* The ID of the EndUser to receive this request (e.g.,
|
|
472
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
473
|
+
*/
|
|
474
|
+
conductorEndUserId: string;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export interface DiscountItemUpdateParams {
|
|
478
|
+
/**
|
|
479
|
+
* Body param: The current QuickBooks-assigned revision number of the discount item
|
|
480
|
+
* object you are updating, which you can get by fetching the object first. Provide
|
|
481
|
+
* the most recent `revisionNumber` to ensure you're working with the latest data;
|
|
482
|
+
* otherwise, the update will return an error.
|
|
483
|
+
*/
|
|
484
|
+
revisionNumber: string;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
488
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
489
|
+
*/
|
|
490
|
+
conductorEndUserId: string;
|
|
491
|
+
|
|
492
|
+
/**
|
|
493
|
+
* Body param: The posting account to which transactions involving this discount
|
|
494
|
+
* item are posted for tracking discounts.
|
|
495
|
+
*/
|
|
496
|
+
accountId?: string;
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Body param: The discount item's barcode.
|
|
500
|
+
*/
|
|
501
|
+
barcode?: DiscountItemUpdateParams.Barcode;
|
|
502
|
+
|
|
503
|
+
/**
|
|
504
|
+
* Body param: The discount item's class. Classes can be used to categorize objects
|
|
505
|
+
* into meaningful segments, such as department, location, or type of work. In
|
|
506
|
+
* QuickBooks, class tracking is off by default.
|
|
507
|
+
*/
|
|
508
|
+
classId?: string;
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Body param: The discount item's description that will appear on sales forms that
|
|
512
|
+
* include this item.
|
|
513
|
+
*/
|
|
514
|
+
description?: string;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Body param: The monetary amount to subtract from the total or subtotal when
|
|
518
|
+
* applying this discount item to a transaction.
|
|
519
|
+
*
|
|
520
|
+
* **NOTE**: A flat rate discount applies to ALL lines recorded above it and
|
|
521
|
+
* distributes the discount amount equally across those lines, which affects tax
|
|
522
|
+
* calculations. For example, a $10 discount applied to a $100 taxable item and
|
|
523
|
+
* $100 non-taxable item would result in a $5 taxable discount and $5 non-taxable
|
|
524
|
+
* discount.
|
|
525
|
+
*/
|
|
526
|
+
discountRate?: string;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Body param: The percentage amount to subtract from the total or subtotal when
|
|
530
|
+
* applying this discount item to a transaction.
|
|
531
|
+
*
|
|
532
|
+
* **NOTE**: A percentage discount only applies to the line immediately above it,
|
|
533
|
+
* so tax implications only affect that specific line.
|
|
534
|
+
*/
|
|
535
|
+
discountRatePercent?: string;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Body param: Indicates whether this discount item is active. Inactive objects are
|
|
539
|
+
* typically hidden from views and reports in QuickBooks. Defaults to `true`.
|
|
540
|
+
*/
|
|
541
|
+
isActive?: boolean;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Body param: The case-insensitive name of this discount item. Not guaranteed to
|
|
545
|
+
* be unique because it does not include the names of its hierarchical parent
|
|
546
|
+
* objects like `fullName` does. For example, two discount items could both have
|
|
547
|
+
* the `name` "10% labor discount", but they could have unique `fullName` values,
|
|
548
|
+
* such as "Discounts:10% labor discount" and "Promotions:10% labor discount".
|
|
549
|
+
*
|
|
550
|
+
* Maximum length: 31 characters.
|
|
551
|
+
*/
|
|
552
|
+
name?: string;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Body param: The parent discount item one level above this one in the hierarchy.
|
|
556
|
+
* For example, if this discount item has a `fullName` of "Discounts:10% labor
|
|
557
|
+
* discount", its parent has a `fullName` of "Discounts". If this discount item is
|
|
558
|
+
* at the top level, this field will be `null`.
|
|
559
|
+
*/
|
|
560
|
+
parentId?: string;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Body param: The default sales-tax code for this discount item, determining
|
|
564
|
+
* whether it is taxable or non-taxable. This can be overridden at the
|
|
565
|
+
* transaction-line level.
|
|
566
|
+
*
|
|
567
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
568
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
569
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
570
|
+
* non-taxable code to all sales.
|
|
571
|
+
*/
|
|
572
|
+
salesTaxCodeId?: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Body param: When `true`, applies the new account (specified by the `accountId`
|
|
576
|
+
* field) to all existing transactions associated with this discount item. This
|
|
577
|
+
* updates historical data and should be used with caution. The update will fail if
|
|
578
|
+
* any affected transaction falls within a closed accounting period. If this
|
|
579
|
+
* parameter is not specified, QuickBooks will prompt the user before making any
|
|
580
|
+
* changes.
|
|
581
|
+
*/
|
|
582
|
+
updateExistingTransactionsAccount?: boolean;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
export namespace DiscountItemUpdateParams {
|
|
586
|
+
/**
|
|
587
|
+
* The discount item's barcode.
|
|
588
|
+
*/
|
|
589
|
+
export interface Barcode {
|
|
590
|
+
/**
|
|
591
|
+
* Indicates whether to allow the barcode to be overridden.
|
|
592
|
+
*/
|
|
593
|
+
allowOverride?: boolean;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Indicates whether to assign the barcode even if it is already used.
|
|
597
|
+
*/
|
|
598
|
+
assignEvenIfUsed?: boolean;
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* The item's barcode value.
|
|
602
|
+
*/
|
|
603
|
+
value?: string;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export interface DiscountItemListParams extends CursorPageParams {
|
|
608
|
+
/**
|
|
609
|
+
* Header param: The ID of the EndUser to receive this request (e.g.,
|
|
610
|
+
* `"Conductor-End-User-Id: {{END_USER_ID}}"`).
|
|
611
|
+
*/
|
|
612
|
+
conductorEndUserId: string;
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Query param: Filter for discount items of these classes. A class is a way
|
|
616
|
+
* end-users can categorize discount items in QuickBooks.
|
|
617
|
+
*/
|
|
618
|
+
classIds?: Array<string>;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Query param: Filter for specific discount items by their full-name(s),
|
|
622
|
+
* case-insensitive. Like `id`, `fullName` is a unique identifier for a discount
|
|
623
|
+
* item, formed by by combining the names of its parent objects with its own
|
|
624
|
+
* `name`, separated by colons. For example, if a discount item is under
|
|
625
|
+
* "Discounts" and has the `name` "10% labor discount", its `fullName` would be
|
|
626
|
+
* "Discounts:10% labor discount".
|
|
627
|
+
*
|
|
628
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
629
|
+
* query parameters for this request.
|
|
630
|
+
*
|
|
631
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
632
|
+
* request will return an error.
|
|
633
|
+
*/
|
|
634
|
+
fullNames?: Array<string>;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Query param: Filter for specific discount items by their QuickBooks-assigned
|
|
638
|
+
* unique identifier(s).
|
|
639
|
+
*
|
|
640
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
641
|
+
* query parameters for this request.
|
|
642
|
+
*
|
|
643
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
644
|
+
* request will return an error.
|
|
645
|
+
*/
|
|
646
|
+
ids?: Array<string>;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Query param: Filter for discount items whose `name` contains this substring,
|
|
650
|
+
* case-insensitive. NOTE: If you use this parameter, you cannot also use
|
|
651
|
+
* `nameStartsWith` or `nameEndsWith`.
|
|
652
|
+
*/
|
|
653
|
+
nameContains?: string;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Query param: Filter for discount items whose `name` ends with this substring,
|
|
657
|
+
* case-insensitive. NOTE: If you use this parameter, you cannot also use
|
|
658
|
+
* `nameContains` or `nameStartsWith`.
|
|
659
|
+
*/
|
|
660
|
+
nameEndsWith?: string;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Query param: Filter for discount items whose `name` is alphabetically greater
|
|
664
|
+
* than or equal to this value.
|
|
665
|
+
*/
|
|
666
|
+
nameFrom?: string;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Query param: Filter for discount items whose `name` starts with this substring,
|
|
670
|
+
* case-insensitive. NOTE: If you use this parameter, you cannot also use
|
|
671
|
+
* `nameContains` or `nameEndsWith`.
|
|
672
|
+
*/
|
|
673
|
+
nameStartsWith?: string;
|
|
674
|
+
|
|
675
|
+
/**
|
|
676
|
+
* Query param: Filter for discount items whose `name` is alphabetically less than
|
|
677
|
+
* or equal to this value.
|
|
678
|
+
*/
|
|
679
|
+
nameTo?: string;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Query param: Filter for discount items that are active, inactive, or both.
|
|
683
|
+
*/
|
|
684
|
+
status?: 'active' | 'all' | 'inactive';
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Query param: Filter for discount items updated on or after this date and time,
|
|
688
|
+
* in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
|
|
689
|
+
* (YYYY-MM-DD), the time is assumed to be 00:00:00 of that day.
|
|
690
|
+
*/
|
|
691
|
+
updatedAfter?: string;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Query param: Filter for discount items updated on or before this date and time,
|
|
695
|
+
* in ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date
|
|
696
|
+
* (YYYY-MM-DD), the time is assumed to be 23:59:59 of that day.
|
|
697
|
+
*/
|
|
698
|
+
updatedBefore?: string;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
DiscountItems.DiscountItemsCursorPage = DiscountItemsCursorPage;
|
|
702
|
+
|
|
703
|
+
export declare namespace DiscountItems {
|
|
704
|
+
export {
|
|
705
|
+
type DiscountItem as DiscountItem,
|
|
706
|
+
DiscountItemsCursorPage as DiscountItemsCursorPage,
|
|
707
|
+
type DiscountItemCreateParams as DiscountItemCreateParams,
|
|
708
|
+
type DiscountItemRetrieveParams as DiscountItemRetrieveParams,
|
|
709
|
+
type DiscountItemUpdateParams as DiscountItemUpdateParams,
|
|
710
|
+
type DiscountItemListParams as DiscountItemListParams,
|
|
711
|
+
};
|
|
712
|
+
}
|