conductor-node 12.42.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +41 -0
- package/README.md +111 -41
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/bin/cli +46 -0
- package/bin/migration-config.json +44 -0
- package/client.d.mts +189 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +189 -0
- package/client.d.ts.map +1 -0
- package/client.js +462 -0
- package/client.js.map +1 -0
- package/client.mjs +458 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +1 -46
- package/error.d.ts.map +1 -1
- package/error.js +3 -110
- package/error.js.map +1 -1
- package/error.mjs +1 -96
- package/error.mjs.map +1 -1
- package/index.d.mts +7 -124
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -123
- package/index.d.ts.map +1 -1
- package/index.js +14 -119
- package/index.js.map +1 -1
- package/index.mjs +6 -92
- package/index.mjs.map +1 -1
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +1 -0
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js +4 -2
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs +2 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +16 -19
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs +17 -19
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +1 -0
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +22 -21
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs +12 -12
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +113 -64
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +1 -17
- package/pagination.d.ts.map +1 -1
- package/pagination.js +3 -37
- package/pagination.js.map +1 -1
- package/pagination.mjs +1 -35
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +1 -5
- package/resource.d.ts.map +1 -1
- package/resource.js +3 -8
- package/resource.js.map +1 -1
- package/resource.mjs +1 -6
- package/resource.mjs.map +1 -1
- package/resources/auth-sessions.d.mts +84 -0
- package/resources/auth-sessions.d.mts.map +1 -0
- package/resources/auth-sessions.d.ts +4 -3
- package/resources/auth-sessions.d.ts.map +1 -1
- package/resources/auth-sessions.js +1 -1
- package/resources/auth-sessions.js.map +1 -1
- package/resources/auth-sessions.mjs +1 -1
- package/resources/auth-sessions.mjs.map +1 -1
- package/resources/end-users.d.mts +195 -0
- package/resources/end-users.d.mts.map +1 -0
- package/resources/end-users.d.ts +24 -12
- package/resources/end-users.d.ts.map +1 -1
- package/resources/end-users.js +14 -7
- package/resources/end-users.js.map +1 -1
- package/resources/end-users.mjs +14 -7
- package/resources/end-users.mjs.map +1 -1
- package/resources/index.d.mts +4 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/qbd/account-tax-lines.d.mts +56 -0
- package/resources/qbd/account-tax-lines.d.mts.map +1 -0
- package/resources/qbd/account-tax-lines.d.ts +5 -5
- package/resources/qbd/account-tax-lines.d.ts.map +1 -1
- package/resources/qbd/account-tax-lines.js +3 -2
- package/resources/qbd/account-tax-lines.js.map +1 -1
- package/resources/qbd/account-tax-lines.mjs +3 -2
- package/resources/qbd/account-tax-lines.mjs.map +1 -1
- package/resources/qbd/accounts.d.mts +645 -0
- package/resources/qbd/accounts.d.mts.map +1 -0
- package/resources/qbd/accounts.d.ts +11 -14
- package/resources/qbd/accounts.d.ts.map +1 -1
- package/resources/qbd/accounts.js +9 -7
- package/resources/qbd/accounts.js.map +1 -1
- package/resources/qbd/accounts.mjs +9 -7
- package/resources/qbd/accounts.mjs.map +1 -1
- package/resources/qbd/bill-check-payments.d.mts +918 -0
- package/resources/qbd/bill-check-payments.d.mts.map +1 -0
- package/resources/qbd/bill-check-payments.d.ts +16 -21
- package/resources/qbd/bill-check-payments.d.ts.map +1 -1
- package/resources/qbd/bill-check-payments.js +14 -16
- package/resources/qbd/bill-check-payments.js.map +1 -1
- package/resources/qbd/bill-check-payments.mjs +13 -14
- package/resources/qbd/bill-check-payments.mjs.map +1 -1
- package/resources/qbd/bill-credit-card-payments.d.mts +714 -0
- package/resources/qbd/bill-credit-card-payments.d.mts.map +1 -0
- package/resources/qbd/bill-credit-card-payments.d.ts +14 -18
- package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
- package/resources/qbd/bill-credit-card-payments.js +15 -13
- package/resources/qbd/bill-credit-card-payments.js.map +1 -1
- package/resources/qbd/bill-credit-card-payments.mjs +14 -11
- package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
- package/resources/qbd/bills.d.mts +2644 -0
- package/resources/qbd/bills.d.mts.map +1 -0
- package/resources/qbd/bills.d.ts +24 -22
- package/resources/qbd/bills.d.ts.map +1 -1
- package/resources/qbd/bills.js +14 -16
- package/resources/qbd/bills.js.map +1 -1
- package/resources/qbd/bills.mjs +13 -14
- package/resources/qbd/bills.mjs.map +1 -1
- package/resources/qbd/build-assemblies.d.mts +698 -0
- package/resources/qbd/build-assemblies.d.mts.map +1 -0
- package/resources/qbd/build-assemblies.d.ts +16 -21
- package/resources/qbd/build-assemblies.d.ts.map +1 -1
- package/resources/qbd/build-assemblies.js +14 -16
- package/resources/qbd/build-assemblies.js.map +1 -1
- package/resources/qbd/build-assemblies.mjs +13 -14
- package/resources/qbd/build-assemblies.mjs.map +1 -1
- package/resources/qbd/checks.d.mts +2607 -0
- package/resources/qbd/checks.d.mts.map +1 -0
- package/resources/qbd/checks.d.ts +16 -21
- package/resources/qbd/checks.d.ts.map +1 -1
- package/resources/qbd/checks.js +14 -16
- package/resources/qbd/checks.js.map +1 -1
- package/resources/qbd/checks.mjs +13 -14
- package/resources/qbd/checks.mjs.map +1 -1
- package/resources/qbd/classes.d.mts +344 -0
- package/resources/qbd/classes.d.mts.map +1 -0
- package/resources/qbd/classes.d.ts +11 -14
- package/resources/qbd/classes.d.ts.map +1 -1
- package/resources/qbd/classes.js +9 -7
- package/resources/qbd/classes.js.map +1 -1
- package/resources/qbd/classes.mjs +9 -7
- package/resources/qbd/classes.mjs.map +1 -1
- package/resources/qbd/company.d.mts +361 -0
- package/resources/qbd/company.d.mts.map +1 -0
- package/resources/qbd/company.d.ts +5 -5
- package/resources/qbd/company.d.ts.map +1 -1
- package/resources/qbd/company.js +3 -2
- package/resources/qbd/company.js.map +1 -1
- package/resources/qbd/company.mjs +3 -2
- package/resources/qbd/company.mjs.map +1 -1
- package/resources/qbd/credit-card-charges.d.mts +2316 -0
- package/resources/qbd/credit-card-charges.d.mts.map +1 -0
- package/resources/qbd/credit-card-charges.d.ts +16 -21
- package/resources/qbd/credit-card-charges.d.ts.map +1 -1
- package/resources/qbd/credit-card-charges.js +14 -16
- package/resources/qbd/credit-card-charges.js.map +1 -1
- package/resources/qbd/credit-card-charges.mjs +13 -14
- package/resources/qbd/credit-card-charges.mjs.map +1 -1
- package/resources/qbd/credit-card-credits.d.mts +2311 -0
- package/resources/qbd/credit-card-credits.d.mts.map +1 -0
- package/resources/qbd/credit-card-credits.d.ts +16 -21
- package/resources/qbd/credit-card-credits.d.ts.map +1 -1
- package/resources/qbd/credit-card-credits.js +14 -16
- package/resources/qbd/credit-card-credits.js.map +1 -1
- package/resources/qbd/credit-card-credits.mjs +13 -14
- package/resources/qbd/credit-card-credits.mjs.map +1 -1
- package/resources/qbd/credit-card-refunds.d.mts +1012 -0
- package/resources/qbd/credit-card-refunds.d.mts.map +1 -0
- package/resources/qbd/credit-card-refunds.d.ts +14 -18
- package/resources/qbd/credit-card-refunds.d.ts.map +1 -1
- package/resources/qbd/credit-card-refunds.js +12 -14
- package/resources/qbd/credit-card-refunds.js.map +1 -1
- package/resources/qbd/credit-card-refunds.mjs +11 -12
- package/resources/qbd/credit-card-refunds.mjs.map +1 -1
- package/resources/qbd/credit-memos.d.mts +2718 -0
- package/resources/qbd/credit-memos.d.mts.map +1 -0
- package/resources/qbd/credit-memos.d.ts +16 -21
- package/resources/qbd/credit-memos.d.ts.map +1 -1
- package/resources/qbd/credit-memos.js +14 -16
- package/resources/qbd/credit-memos.js.map +1 -1
- package/resources/qbd/credit-memos.mjs +13 -14
- package/resources/qbd/credit-memos.mjs.map +1 -1
- package/resources/qbd/currencies.d.mts +439 -0
- package/resources/qbd/currencies.d.mts.map +1 -0
- package/resources/qbd/currencies.d.ts +11 -14
- package/resources/qbd/currencies.d.ts.map +1 -1
- package/resources/qbd/currencies.js +9 -7
- package/resources/qbd/currencies.js.map +1 -1
- package/resources/qbd/currencies.mjs +9 -7
- package/resources/qbd/currencies.mjs.map +1 -1
- package/resources/qbd/customer-types.d.mts +300 -0
- package/resources/qbd/customer-types.d.mts.map +1 -0
- package/resources/qbd/customer-types.d.ts +9 -11
- package/resources/qbd/customer-types.d.ts.map +1 -1
- package/resources/qbd/customer-types.js +7 -5
- package/resources/qbd/customer-types.js.map +1 -1
- package/resources/qbd/customer-types.mjs +7 -5
- package/resources/qbd/customer-types.mjs.map +1 -1
- package/resources/qbd/customers.d.mts +2163 -0
- package/resources/qbd/customers.d.mts.map +1 -0
- package/resources/qbd/customers.d.ts +14 -18
- package/resources/qbd/customers.d.ts.map +1 -1
- package/resources/qbd/customers.js +12 -14
- package/resources/qbd/customers.js.map +1 -1
- package/resources/qbd/customers.mjs +11 -12
- package/resources/qbd/customers.mjs.map +1 -1
- package/resources/qbd/date-driven-terms.d.mts +295 -0
- package/resources/qbd/date-driven-terms.d.mts.map +1 -0
- package/resources/qbd/date-driven-terms.d.ts +9 -11
- package/resources/qbd/date-driven-terms.d.ts.map +1 -1
- package/resources/qbd/date-driven-terms.js +7 -5
- package/resources/qbd/date-driven-terms.js.map +1 -1
- package/resources/qbd/date-driven-terms.mjs +7 -5
- package/resources/qbd/date-driven-terms.mjs.map +1 -1
- package/resources/qbd/deleted-list-objects.d.mts +105 -0
- package/resources/qbd/deleted-list-objects.d.mts.map +1 -0
- package/resources/qbd/deleted-list-objects.d.ts +5 -5
- package/resources/qbd/deleted-list-objects.d.ts.map +1 -1
- package/resources/qbd/deleted-list-objects.js +3 -2
- package/resources/qbd/deleted-list-objects.js.map +1 -1
- package/resources/qbd/deleted-list-objects.mjs +3 -2
- package/resources/qbd/deleted-list-objects.mjs.map +1 -1
- package/resources/qbd/deleted-transactions.d.mts +111 -0
- package/resources/qbd/deleted-transactions.d.mts.map +1 -0
- package/resources/qbd/deleted-transactions.d.ts +5 -5
- package/resources/qbd/deleted-transactions.d.ts.map +1 -1
- package/resources/qbd/deleted-transactions.js +3 -2
- package/resources/qbd/deleted-transactions.js.map +1 -1
- package/resources/qbd/deleted-transactions.mjs +3 -2
- package/resources/qbd/deleted-transactions.mjs.map +1 -1
- package/resources/qbd/discount-items.d.mts +642 -0
- package/resources/qbd/discount-items.d.mts.map +1 -0
- package/resources/qbd/discount-items.d.ts +14 -18
- package/resources/qbd/discount-items.d.ts.map +1 -1
- package/resources/qbd/discount-items.js +12 -14
- package/resources/qbd/discount-items.js.map +1 -1
- package/resources/qbd/discount-items.mjs +11 -12
- package/resources/qbd/discount-items.mjs.map +1 -1
- package/resources/qbd/employees.d.mts +1811 -0
- package/resources/qbd/employees.d.mts.map +1 -0
- package/resources/qbd/employees.d.ts +11 -14
- package/resources/qbd/employees.d.ts.map +1 -1
- package/resources/qbd/employees.js +9 -7
- package/resources/qbd/employees.js.map +1 -1
- package/resources/qbd/employees.mjs +9 -7
- package/resources/qbd/employees.mjs.map +1 -1
- package/resources/qbd/estimates.d.mts +2584 -0
- package/resources/qbd/estimates.d.mts.map +1 -0
- package/resources/qbd/estimates.d.ts +16 -21
- package/resources/qbd/estimates.d.ts.map +1 -1
- package/resources/qbd/estimates.js +14 -16
- package/resources/qbd/estimates.js.map +1 -1
- package/resources/qbd/estimates.mjs +13 -14
- package/resources/qbd/estimates.mjs.map +1 -1
- package/resources/qbd/index.d.mts +57 -0
- package/resources/qbd/index.d.mts.map +1 -0
- package/resources/qbd/index.d.ts +34 -34
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +2 -36
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs +34 -34
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/inventory-adjustments.d.mts +893 -0
- package/resources/qbd/inventory-adjustments.d.mts.map +1 -0
- package/resources/qbd/inventory-adjustments.d.ts +13 -17
- package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
- package/resources/qbd/inventory-adjustments.js +11 -9
- package/resources/qbd/inventory-adjustments.js.map +1 -1
- package/resources/qbd/inventory-adjustments.mjs +11 -9
- package/resources/qbd/inventory-adjustments.mjs.map +1 -1
- package/resources/qbd/inventory-assembly-items.d.mts +988 -0
- package/resources/qbd/inventory-assembly-items.d.mts.map +1 -0
- package/resources/qbd/inventory-assembly-items.d.ts +14 -18
- package/resources/qbd/inventory-assembly-items.d.ts.map +1 -1
- package/resources/qbd/inventory-assembly-items.js +15 -13
- package/resources/qbd/inventory-assembly-items.js.map +1 -1
- package/resources/qbd/inventory-assembly-items.mjs +14 -11
- package/resources/qbd/inventory-assembly-items.mjs.map +1 -1
- package/resources/qbd/inventory-items.d.mts +898 -0
- package/resources/qbd/inventory-items.d.mts.map +1 -0
- package/resources/qbd/inventory-items.d.ts +14 -18
- package/resources/qbd/inventory-items.d.ts.map +1 -1
- package/resources/qbd/inventory-items.js +12 -14
- package/resources/qbd/inventory-items.js.map +1 -1
- package/resources/qbd/inventory-items.mjs +11 -12
- package/resources/qbd/inventory-items.mjs.map +1 -1
- package/resources/qbd/inventory-sites.d.mts +537 -0
- package/resources/qbd/inventory-sites.d.mts.map +1 -0
- package/resources/qbd/inventory-sites.d.ts +11 -14
- package/resources/qbd/inventory-sites.d.ts.map +1 -1
- package/resources/qbd/inventory-sites.js +9 -7
- package/resources/qbd/inventory-sites.js.map +1 -1
- package/resources/qbd/inventory-sites.mjs +9 -7
- package/resources/qbd/inventory-sites.mjs.map +1 -1
- package/resources/qbd/invoices.d.mts +2942 -0
- package/resources/qbd/invoices.d.mts.map +1 -0
- package/resources/qbd/invoices.d.ts +16 -21
- package/resources/qbd/invoices.d.ts.map +1 -1
- package/resources/qbd/invoices.js +14 -16
- package/resources/qbd/invoices.js.map +1 -1
- package/resources/qbd/invoices.mjs +13 -14
- package/resources/qbd/invoices.mjs.map +1 -1
- package/resources/qbd/item-groups.d.mts +548 -0
- package/resources/qbd/item-groups.d.mts.map +1 -0
- package/resources/qbd/item-groups.d.ts +14 -18
- package/resources/qbd/item-groups.d.ts.map +1 -1
- package/resources/qbd/item-groups.js +12 -14
- package/resources/qbd/item-groups.js.map +1 -1
- package/resources/qbd/item-groups.mjs +11 -12
- package/resources/qbd/item-groups.mjs.map +1 -1
- package/resources/qbd/item-receipts.d.mts +2416 -0
- package/resources/qbd/item-receipts.d.mts.map +1 -0
- package/resources/qbd/item-receipts.d.ts +16 -21
- package/resources/qbd/item-receipts.d.ts.map +1 -1
- package/resources/qbd/item-receipts.js +14 -16
- package/resources/qbd/item-receipts.js.map +1 -1
- package/resources/qbd/item-receipts.mjs +13 -14
- package/resources/qbd/item-receipts.mjs.map +1 -1
- package/resources/qbd/item-sites.d.mts +244 -0
- package/resources/qbd/item-sites.d.mts.map +1 -0
- package/resources/qbd/item-sites.d.ts +10 -12
- package/resources/qbd/item-sites.d.ts.map +1 -1
- package/resources/qbd/item-sites.js +9 -11
- package/resources/qbd/item-sites.js.map +1 -1
- package/resources/qbd/item-sites.mjs +8 -9
- package/resources/qbd/item-sites.mjs.map +1 -1
- package/resources/qbd/journal-entries.d.mts +937 -0
- package/resources/qbd/journal-entries.d.mts.map +1 -0
- package/resources/qbd/journal-entries.d.ts +16 -21
- package/resources/qbd/journal-entries.d.ts.map +1 -1
- package/resources/qbd/journal-entries.js +14 -16
- package/resources/qbd/journal-entries.js.map +1 -1
- package/resources/qbd/journal-entries.mjs +13 -14
- package/resources/qbd/journal-entries.mjs.map +1 -1
- package/resources/qbd/non-inventory-items.d.mts +1016 -0
- package/resources/qbd/non-inventory-items.d.mts.map +1 -0
- package/resources/qbd/non-inventory-items.d.ts +14 -18
- package/resources/qbd/non-inventory-items.d.ts.map +1 -1
- package/resources/qbd/non-inventory-items.js +12 -14
- package/resources/qbd/non-inventory-items.js.map +1 -1
- package/resources/qbd/non-inventory-items.mjs +11 -12
- package/resources/qbd/non-inventory-items.mjs.map +1 -1
- package/resources/qbd/other-charge-items.d.mts +948 -0
- package/resources/qbd/other-charge-items.d.mts.map +1 -0
- package/resources/qbd/other-charge-items.d.ts +14 -18
- package/resources/qbd/other-charge-items.d.ts.map +1 -1
- package/resources/qbd/other-charge-items.js +12 -14
- package/resources/qbd/other-charge-items.js.map +1 -1
- package/resources/qbd/other-charge-items.mjs +11 -12
- package/resources/qbd/other-charge-items.mjs.map +1 -1
- package/resources/qbd/other-names.d.mts +711 -0
- package/resources/qbd/other-names.d.mts.map +1 -0
- package/resources/qbd/other-names.d.ts +11 -14
- package/resources/qbd/other-names.d.ts.map +1 -1
- package/resources/qbd/other-names.js +9 -7
- package/resources/qbd/other-names.js.map +1 -1
- package/resources/qbd/other-names.mjs +9 -7
- package/resources/qbd/other-names.mjs.map +1 -1
- package/resources/qbd/payment-methods.d.mts +258 -0
- package/resources/qbd/payment-methods.d.mts.map +1 -0
- package/resources/qbd/payment-methods.d.ts +9 -11
- package/resources/qbd/payment-methods.d.ts.map +1 -1
- package/resources/qbd/payment-methods.js +7 -5
- package/resources/qbd/payment-methods.js.map +1 -1
- package/resources/qbd/payment-methods.mjs +7 -5
- package/resources/qbd/payment-methods.mjs.map +1 -1
- package/resources/qbd/payroll-wage-items.d.mts +267 -0
- package/resources/qbd/payroll-wage-items.d.mts.map +1 -0
- package/resources/qbd/payroll-wage-items.d.ts +12 -15
- package/resources/qbd/payroll-wage-items.d.ts.map +1 -1
- package/resources/qbd/payroll-wage-items.js +10 -12
- package/resources/qbd/payroll-wage-items.js.map +1 -1
- package/resources/qbd/payroll-wage-items.mjs +9 -10
- package/resources/qbd/payroll-wage-items.mjs.map +1 -1
- package/resources/qbd/preferences.d.mts +599 -0
- package/resources/qbd/preferences.d.mts.map +1 -0
- package/resources/qbd/preferences.d.ts +5 -5
- package/resources/qbd/preferences.d.ts.map +1 -1
- package/resources/qbd/preferences.js +3 -2
- package/resources/qbd/preferences.js.map +1 -1
- package/resources/qbd/preferences.mjs +3 -2
- package/resources/qbd/preferences.mjs.map +1 -1
- package/resources/qbd/price-levels.d.mts +509 -0
- package/resources/qbd/price-levels.d.mts.map +1 -0
- package/resources/qbd/price-levels.d.ts +11 -14
- package/resources/qbd/price-levels.d.ts.map +1 -1
- package/resources/qbd/price-levels.js +9 -7
- package/resources/qbd/price-levels.js.map +1 -1
- package/resources/qbd/price-levels.mjs +9 -7
- package/resources/qbd/price-levels.mjs.map +1 -1
- package/resources/qbd/purchase-orders.d.mts +2632 -0
- package/resources/qbd/purchase-orders.d.mts.map +1 -0
- package/resources/qbd/purchase-orders.d.ts +16 -21
- package/resources/qbd/purchase-orders.d.ts.map +1 -1
- package/resources/qbd/purchase-orders.js +14 -16
- package/resources/qbd/purchase-orders.js.map +1 -1
- package/resources/qbd/purchase-orders.mjs +13 -14
- package/resources/qbd/purchase-orders.mjs.map +1 -1
- package/resources/qbd/qbd.d.mts +261 -0
- package/resources/qbd/qbd.d.mts.map +1 -0
- package/resources/qbd/qbd.d.ts +39 -39
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +59 -114
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +37 -70
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/receive-payments.d.mts +1358 -0
- package/resources/qbd/receive-payments.d.mts.map +1 -0
- package/resources/qbd/receive-payments.d.ts +16 -21
- package/resources/qbd/receive-payments.d.ts.map +1 -1
- package/resources/qbd/receive-payments.js +14 -16
- package/resources/qbd/receive-payments.js.map +1 -1
- package/resources/qbd/receive-payments.mjs +13 -14
- package/resources/qbd/receive-payments.mjs.map +1 -1
- package/resources/qbd/sales-orders.d.mts +2705 -0
- package/resources/qbd/sales-orders.d.mts.map +1 -0
- package/resources/qbd/sales-orders.d.ts +16 -21
- package/resources/qbd/sales-orders.d.ts.map +1 -1
- package/resources/qbd/sales-orders.js +14 -16
- package/resources/qbd/sales-orders.js.map +1 -1
- package/resources/qbd/sales-orders.mjs +13 -14
- package/resources/qbd/sales-orders.mjs.map +1 -1
- package/resources/qbd/sales-receipts.d.mts +3454 -0
- package/resources/qbd/sales-receipts.d.mts.map +1 -0
- package/resources/qbd/sales-receipts.d.ts +16 -21
- package/resources/qbd/sales-receipts.d.ts.map +1 -1
- package/resources/qbd/sales-receipts.js +14 -16
- package/resources/qbd/sales-receipts.js.map +1 -1
- package/resources/qbd/sales-receipts.mjs +13 -14
- package/resources/qbd/sales-receipts.mjs.map +1 -1
- package/resources/qbd/sales-representatives.d.mts +317 -0
- package/resources/qbd/sales-representatives.d.mts.map +1 -0
- package/resources/qbd/sales-representatives.d.ts +11 -14
- package/resources/qbd/sales-representatives.d.ts.map +1 -1
- package/resources/qbd/sales-representatives.js +9 -7
- package/resources/qbd/sales-representatives.js.map +1 -1
- package/resources/qbd/sales-representatives.mjs +9 -7
- package/resources/qbd/sales-representatives.mjs.map +1 -1
- package/resources/qbd/sales-tax-codes.d.mts +369 -0
- package/resources/qbd/sales-tax-codes.d.mts.map +1 -0
- package/resources/qbd/sales-tax-codes.d.ts +11 -14
- package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
- package/resources/qbd/sales-tax-codes.js +9 -7
- package/resources/qbd/sales-tax-codes.js.map +1 -1
- package/resources/qbd/sales-tax-codes.mjs +9 -7
- package/resources/qbd/sales-tax-codes.mjs.map +1 -1
- package/resources/qbd/sales-tax-items.d.mts +518 -0
- package/resources/qbd/sales-tax-items.d.mts.map +1 -0
- package/resources/qbd/sales-tax-items.d.ts +14 -18
- package/resources/qbd/sales-tax-items.d.ts.map +1 -1
- package/resources/qbd/sales-tax-items.js +12 -14
- package/resources/qbd/sales-tax-items.js.map +1 -1
- package/resources/qbd/sales-tax-items.mjs +11 -12
- package/resources/qbd/sales-tax-items.mjs.map +1 -1
- package/resources/qbd/service-items.d.mts +987 -0
- package/resources/qbd/service-items.d.mts.map +1 -0
- package/resources/qbd/service-items.d.ts +14 -18
- package/resources/qbd/service-items.d.ts.map +1 -1
- package/resources/qbd/service-items.js +12 -14
- package/resources/qbd/service-items.js.map +1 -1
- package/resources/qbd/service-items.mjs +11 -12
- package/resources/qbd/service-items.mjs.map +1 -1
- package/resources/qbd/standard-terms.d.mts +273 -0
- package/resources/qbd/standard-terms.d.mts.map +1 -0
- package/resources/qbd/standard-terms.d.ts +9 -11
- package/resources/qbd/standard-terms.d.ts.map +1 -1
- package/resources/qbd/standard-terms.js +7 -5
- package/resources/qbd/standard-terms.js.map +1 -1
- package/resources/qbd/standard-terms.mjs +7 -5
- package/resources/qbd/standard-terms.mjs.map +1 -1
- package/resources/qbd/subtotal-items.d.mts +383 -0
- package/resources/qbd/subtotal-items.d.mts.map +1 -0
- package/resources/qbd/subtotal-items.d.ts +14 -18
- package/resources/qbd/subtotal-items.d.ts.map +1 -1
- package/resources/qbd/subtotal-items.js +12 -14
- package/resources/qbd/subtotal-items.js.map +1 -1
- package/resources/qbd/subtotal-items.mjs +11 -12
- package/resources/qbd/subtotal-items.mjs.map +1 -1
- package/resources/qbd/templates.d.mts +107 -0
- package/resources/qbd/templates.d.mts.map +1 -0
- package/resources/qbd/templates.d.ts +5 -5
- package/resources/qbd/templates.d.ts.map +1 -1
- package/resources/qbd/templates.js +3 -2
- package/resources/qbd/templates.js.map +1 -1
- package/resources/qbd/templates.mjs +3 -2
- package/resources/qbd/templates.mjs.map +1 -1
- package/resources/qbd/time-tracking-activities.d.mts +560 -0
- package/resources/qbd/time-tracking-activities.d.mts.map +1 -0
- package/resources/qbd/time-tracking-activities.d.ts +16 -21
- package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
- package/resources/qbd/time-tracking-activities.js +17 -15
- package/resources/qbd/time-tracking-activities.js.map +1 -1
- package/resources/qbd/time-tracking-activities.mjs +16 -13
- package/resources/qbd/time-tracking-activities.mjs.map +1 -1
- package/resources/qbd/transactions.d.mts +356 -0
- package/resources/qbd/transactions.d.mts.map +1 -0
- package/resources/qbd/transactions.d.ts +10 -12
- package/resources/qbd/transactions.d.ts.map +1 -1
- package/resources/qbd/transactions.js +9 -11
- package/resources/qbd/transactions.js.map +1 -1
- package/resources/qbd/transactions.mjs +8 -9
- package/resources/qbd/transactions.mjs.map +1 -1
- package/resources/qbd/transfers.d.mts +331 -0
- package/resources/qbd/transfers.d.mts.map +1 -0
- package/resources/qbd/transfers.d.ts +14 -18
- package/resources/qbd/transfers.d.ts.map +1 -1
- package/resources/qbd/transfers.js +12 -14
- package/resources/qbd/transfers.js.map +1 -1
- package/resources/qbd/transfers.mjs +11 -12
- package/resources/qbd/transfers.mjs.map +1 -1
- package/resources/qbd/unit-of-measure-sets.d.mts +443 -0
- package/resources/qbd/unit-of-measure-sets.d.mts.map +1 -0
- package/resources/qbd/unit-of-measure-sets.d.ts +9 -11
- package/resources/qbd/unit-of-measure-sets.d.ts.map +1 -1
- package/resources/qbd/unit-of-measure-sets.js +7 -5
- package/resources/qbd/unit-of-measure-sets.js.map +1 -1
- package/resources/qbd/unit-of-measure-sets.mjs +7 -5
- package/resources/qbd/unit-of-measure-sets.mjs.map +1 -1
- package/resources/qbd/vendor-credits.d.mts +2387 -0
- package/resources/qbd/vendor-credits.d.mts.map +1 -0
- package/resources/qbd/vendor-credits.d.ts +27 -24
- package/resources/qbd/vendor-credits.d.ts.map +1 -1
- package/resources/qbd/vendor-credits.js +14 -16
- package/resources/qbd/vendor-credits.js.map +1 -1
- package/resources/qbd/vendor-credits.mjs +13 -14
- package/resources/qbd/vendor-credits.mjs.map +1 -1
- package/resources/qbd/vendors.d.mts +1734 -0
- package/resources/qbd/vendors.d.mts.map +1 -0
- package/resources/qbd/vendors.d.ts +14 -18
- package/resources/qbd/vendors.d.ts.map +1 -1
- package/resources/qbd/vendors.js +12 -14
- package/resources/qbd/vendors.js.map +1 -1
- package/resources/qbd/vendors.mjs +11 -12
- package/resources/qbd/vendors.mjs.map +1 -1
- package/resources/qbd.d.mts +2 -0
- package/resources/qbd.d.mts.map +1 -0
- package/resources/qbd.d.ts.map +1 -1
- package/resources/qbd.js +2 -15
- package/resources/qbd.js.map +1 -1
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/api-promise.ts +2 -0
- package/src/client.ts +769 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/pagination.ts +157 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -130
- package/src/index.ts +6 -223
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/formats.ts +3 -2
- package/src/internal/qs/index.ts +3 -3
- package/src/internal/qs/stringify.ts +18 -21
- package/src/internal/qs/utils.ts +16 -16
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/pagination.ts +2 -60
- package/src/resource.ts +2 -11
- package/src/resources/auth-sessions.ts +4 -3
- package/src/resources/end-users.ts +33 -16
- package/src/resources/index.ts +3 -3
- package/src/resources/qbd/account-tax-lines.ts +7 -9
- package/src/resources/qbd/accounts.ts +19 -24
- package/src/resources/qbd/bill-check-payments.ts +31 -38
- package/src/resources/qbd/bill-credit-card-payments.ts +31 -30
- package/src/resources/qbd/bills.ts +35 -36
- package/src/resources/qbd/build-assemblies.ts +30 -38
- package/src/resources/qbd/checks.ts +27 -35
- package/src/resources/qbd/classes.ts +19 -20
- package/src/resources/qbd/company.ts +7 -6
- package/src/resources/qbd/credit-card-charges.ts +31 -38
- package/src/resources/qbd/credit-card-credits.ts +31 -38
- package/src/resources/qbd/credit-card-refunds.ts +26 -32
- package/src/resources/qbd/credit-memos.ts +29 -41
- package/src/resources/qbd/currencies.ts +19 -24
- package/src/resources/qbd/customer-types.ts +16 -19
- package/src/resources/qbd/customers.ts +23 -33
- package/src/resources/qbd/date-driven-terms.ts +16 -19
- package/src/resources/qbd/deleted-list-objects.ts +8 -7
- package/src/resources/qbd/deleted-transactions.ts +8 -7
- package/src/resources/qbd/discount-items.ts +25 -32
- package/src/resources/qbd/employees.ts +19 -24
- package/src/resources/qbd/estimates.ts +28 -39
- package/src/resources/qbd/index.ts +90 -90
- package/src/resources/qbd/inventory-adjustments.ts +27 -32
- package/src/resources/qbd/inventory-assembly-items.ts +31 -30
- package/src/resources/qbd/inventory-items.ts +25 -32
- package/src/resources/qbd/inventory-sites.ts +20 -28
- package/src/resources/qbd/invoices.ts +28 -39
- package/src/resources/qbd/item-groups.ts +23 -37
- package/src/resources/qbd/item-receipts.ts +29 -41
- package/src/resources/qbd/item-sites.ts +16 -24
- package/src/resources/qbd/journal-entries.ts +30 -38
- package/src/resources/qbd/non-inventory-items.ts +26 -32
- package/src/resources/qbd/other-charge-items.ts +26 -32
- package/src/resources/qbd/other-names.ts +19 -28
- package/src/resources/qbd/payment-methods.ts +16 -19
- package/src/resources/qbd/payroll-wage-items.ts +21 -26
- package/src/resources/qbd/preferences.ts +7 -6
- package/src/resources/qbd/price-levels.ts +19 -28
- package/src/resources/qbd/purchase-orders.ts +30 -38
- package/src/resources/qbd/qbd.ts +151 -187
- package/src/resources/qbd/receive-payments.ts +31 -35
- package/src/resources/qbd/sales-orders.ts +29 -41
- package/src/resources/qbd/sales-receipts.ts +30 -38
- package/src/resources/qbd/sales-representatives.ts +22 -26
- package/src/resources/qbd/sales-tax-codes.ts +20 -28
- package/src/resources/qbd/sales-tax-items.ts +25 -32
- package/src/resources/qbd/service-items.ts +24 -35
- package/src/resources/qbd/standard-terms.ts +16 -19
- package/src/resources/qbd/subtotal-items.ts +25 -32
- package/src/resources/qbd/templates.ts +7 -6
- package/src/resources/qbd/time-tracking-activities.ts +36 -36
- package/src/resources/qbd/transactions.ts +17 -22
- package/src/resources/qbd/transfers.ts +23 -33
- package/src/resources/qbd/unit-of-measure-sets.ts +17 -20
- package/src/resources/qbd/vendor-credits.ts +41 -41
- package/src/resources/qbd/vendors.ts +23 -26
- package/src/resources/qbd.ts +1 -1
- package/src/resources.ts +1 -1
- package/src/tsconfig.json +2 -2
- package/src/uploads.ts +2 -255
- package/src/version.ts +1 -1
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +1 -74
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -168
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -157
- package/uploads.mjs.map +1 -1
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/_shims/MultipartBody.d.ts +0 -9
- package/_shims/MultipartBody.d.ts.map +0 -1
- package/_shims/MultipartBody.js +0 -16
- package/_shims/MultipartBody.js.map +0 -1
- package/_shims/MultipartBody.mjs +0 -12
- package/_shims/MultipartBody.mjs.map +0 -1
- package/_shims/README.md +0 -46
- package/_shims/auto/runtime-bun.d.ts +0 -5
- package/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/_shims/auto/runtime-bun.js +0 -21
- package/_shims/auto/runtime-bun.js.map +0 -1
- package/_shims/auto/runtime-bun.mjs +0 -2
- package/_shims/auto/runtime-bun.mjs.map +0 -1
- package/_shims/auto/runtime-node.d.ts +0 -5
- package/_shims/auto/runtime-node.d.ts.map +0 -1
- package/_shims/auto/runtime-node.js +0 -21
- package/_shims/auto/runtime-node.js.map +0 -1
- package/_shims/auto/runtime-node.mjs +0 -2
- package/_shims/auto/runtime-node.mjs.map +0 -1
- package/_shims/auto/runtime.d.ts +0 -5
- package/_shims/auto/runtime.d.ts.map +0 -1
- package/_shims/auto/runtime.js +0 -21
- package/_shims/auto/runtime.js.map +0 -1
- package/_shims/auto/runtime.mjs +0 -2
- package/_shims/auto/runtime.mjs.map +0 -1
- package/_shims/auto/types-node.d.ts +0 -5
- package/_shims/auto/types-node.d.ts.map +0 -1
- package/_shims/auto/types-node.js +0 -21
- package/_shims/auto/types-node.js.map +0 -1
- package/_shims/auto/types-node.mjs +0 -2
- package/_shims/auto/types-node.mjs.map +0 -1
- package/_shims/auto/types.d.ts +0 -101
- package/_shims/auto/types.js +0 -3
- package/_shims/auto/types.mjs +0 -3
- package/_shims/bun-runtime.d.ts +0 -6
- package/_shims/bun-runtime.d.ts.map +0 -1
- package/_shims/bun-runtime.js +0 -14
- package/_shims/bun-runtime.js.map +0 -1
- package/_shims/bun-runtime.mjs +0 -10
- package/_shims/bun-runtime.mjs.map +0 -1
- package/_shims/index.d.ts +0 -83
- package/_shims/index.js +0 -17
- package/_shims/index.mjs +0 -11
- package/_shims/manual-types.d.ts +0 -12
- package/_shims/manual-types.js +0 -3
- package/_shims/manual-types.mjs +0 -3
- package/_shims/node-runtime.d.ts +0 -3
- package/_shims/node-runtime.d.ts.map +0 -1
- package/_shims/node-runtime.js +0 -89
- package/_shims/node-runtime.js.map +0 -1
- package/_shims/node-runtime.mjs +0 -56
- package/_shims/node-runtime.mjs.map +0 -1
- package/_shims/node-types.d.ts +0 -42
- package/_shims/node-types.js +0 -3
- package/_shims/node-types.mjs +0 -3
- package/_shims/registry.d.ts +0 -37
- package/_shims/registry.d.ts.map +0 -1
- package/_shims/registry.js +0 -41
- package/_shims/registry.js.map +0 -1
- package/_shims/registry.mjs +0 -37
- package/_shims/registry.mjs.map +0 -1
- package/_shims/web-runtime.d.ts +0 -5
- package/_shims/web-runtime.d.ts.map +0 -1
- package/_shims/web-runtime.js +0 -78
- package/_shims/web-runtime.js.map +0 -1
- package/_shims/web-runtime.mjs +0 -71
- package/_shims/web-runtime.mjs.map +0 -1
- package/_shims/web-types.d.ts +0 -83
- package/_shims/web-types.js +0 -3
- package/_shims/web-types.mjs +0 -3
- package/core.d.ts +0 -255
- package/core.d.ts.map +0 -1
- package/core.js +0 -924
- package/core.js.map +0 -1
- package/core.mjs +0 -892
- package/core.mjs.map +0 -1
- package/shims/node.d.ts +0 -30
- package/shims/node.d.ts.map +0 -1
- package/shims/node.js +0 -31
- package/shims/node.js.map +0 -1
- package/shims/node.mjs +0 -5
- package/shims/node.mjs.map +0 -1
- package/shims/web.d.ts +0 -26
- package/shims/web.d.ts.map +0 -1
- package/shims/web.js +0 -31
- package/shims/web.js.map +0 -1
- package/shims/web.mjs +0 -5
- package/shims/web.mjs.map +0 -1
- package/src/_shims/MultipartBody.ts +0 -9
- package/src/_shims/README.md +0 -46
- package/src/_shims/auto/runtime-bun.ts +0 -4
- package/src/_shims/auto/runtime-node.ts +0 -4
- package/src/_shims/auto/runtime.ts +0 -4
- package/src/_shims/auto/types-node.ts +0 -4
- package/src/_shims/auto/types.d.ts +0 -101
- package/src/_shims/auto/types.js +0 -3
- package/src/_shims/auto/types.mjs +0 -3
- package/src/_shims/bun-runtime.ts +0 -14
- package/src/_shims/index.d.ts +0 -83
- package/src/_shims/index.js +0 -17
- package/src/_shims/index.mjs +0 -11
- package/src/_shims/manual-types.d.ts +0 -12
- package/src/_shims/manual-types.js +0 -3
- package/src/_shims/manual-types.mjs +0 -3
- package/src/_shims/node-runtime.ts +0 -81
- package/src/_shims/node-types.d.ts +0 -42
- package/src/_shims/node-types.js +0 -3
- package/src/_shims/node-types.mjs +0 -3
- package/src/_shims/registry.ts +0 -67
- package/src/_shims/web-runtime.ts +0 -103
- package/src/_shims/web-types.d.ts +0 -83
- package/src/_shims/web-types.js +0 -3
- package/src/_shims/web-types.mjs +0 -3
- package/src/core.ts +0 -1236
- package/src/shims/node.ts +0 -50
- package/src/shims/web.ts +0 -50
|
@@ -0,0 +1,1734 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Vendors extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new vendor.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const vendor = await conductor.qbd.vendors.create({
|
|
12
|
+
* name: 'Acme Supplies Inc.',
|
|
13
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
create(params: VendorCreateParams, options?: RequestOptions): APIPromise<Vendor>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves a vendor by ID.
|
|
20
|
+
*
|
|
21
|
+
* **IMPORTANT:** If you need to fetch multiple specific vendors by ID, use the
|
|
22
|
+
* list endpoint instead with the `ids` parameter. It accepts an array of IDs so
|
|
23
|
+
* you can batch the request into a single call, which is significantly faster.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const vendor = await conductor.qbd.vendors.retrieve(
|
|
28
|
+
* '80000001-1234567890',
|
|
29
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
retrieve(id: string, params: VendorRetrieveParams, options?: RequestOptions): APIPromise<Vendor>;
|
|
34
|
+
/**
|
|
35
|
+
* Updates an existing vendor.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const vendor = await conductor.qbd.vendors.update(
|
|
40
|
+
* '80000001-1234567890',
|
|
41
|
+
* {
|
|
42
|
+
* revisionNumber: '1721172183',
|
|
43
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
44
|
+
* },
|
|
45
|
+
* );
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
update(id: string, params: VendorUpdateParams, options?: RequestOptions): APIPromise<Vendor>;
|
|
49
|
+
/**
|
|
50
|
+
* Returns a list of vendors. Use the `cursor` parameter to paginate through the
|
|
51
|
+
* results.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* // Automatically fetches more pages as needed.
|
|
56
|
+
* for await (const vendor of conductor.qbd.vendors.list({
|
|
57
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
58
|
+
* })) {
|
|
59
|
+
* // ...
|
|
60
|
+
* }
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
list(params: VendorListParams, options?: RequestOptions): PagePromise<VendorsCursorPage, Vendor>;
|
|
64
|
+
}
|
|
65
|
+
export type VendorsCursorPage = CursorPage<Vendor>;
|
|
66
|
+
export interface Vendor {
|
|
67
|
+
/**
|
|
68
|
+
* The unique identifier assigned by QuickBooks to this vendor. This ID is unique
|
|
69
|
+
* across all vendors but not across different QuickBooks object types.
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
/**
|
|
73
|
+
* The vendor's account number, which appears in the QuickBooks chart of accounts,
|
|
74
|
+
* reports, and graphs.
|
|
75
|
+
*
|
|
76
|
+
* Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
|
|
77
|
+
* the account number may not be visible in the user interface, but it can still be
|
|
78
|
+
* set and retrieved through the API.
|
|
79
|
+
*/
|
|
80
|
+
accountNumber: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* Additional alternate contacts for this vendor.
|
|
83
|
+
*/
|
|
84
|
+
additionalContacts: Array<Vendor.AdditionalContact>;
|
|
85
|
+
/**
|
|
86
|
+
* Additional notes about this vendor.
|
|
87
|
+
*/
|
|
88
|
+
additionalNotes: Array<Vendor.AdditionalNote>;
|
|
89
|
+
/**
|
|
90
|
+
* The name of a alternate contact person for this vendor.
|
|
91
|
+
*/
|
|
92
|
+
alternateContact: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* The vendor's alternate telephone number.
|
|
95
|
+
*/
|
|
96
|
+
alternatePhone: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* The current balance owed to this vendor, represented as a decimal string. A
|
|
99
|
+
* positive number indicates money owed to the vendor.
|
|
100
|
+
*/
|
|
101
|
+
balance: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* The vendor's billing address.
|
|
104
|
+
*/
|
|
105
|
+
billingAddress: Vendor.BillingAddress | null;
|
|
106
|
+
/**
|
|
107
|
+
* The vendor's billing rate, used to override service item rates in time tracking
|
|
108
|
+
* activities.
|
|
109
|
+
*/
|
|
110
|
+
billingRate: Vendor.BillingRate | null;
|
|
111
|
+
/**
|
|
112
|
+
* An email address to carbon copy (CC) on communications with this vendor.
|
|
113
|
+
*/
|
|
114
|
+
ccEmail: string | null;
|
|
115
|
+
/**
|
|
116
|
+
* The vendor's class. Classes can be used to categorize objects into meaningful
|
|
117
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
118
|
+
* tracking is off by default.
|
|
119
|
+
*/
|
|
120
|
+
class: Vendor.Class | null;
|
|
121
|
+
/**
|
|
122
|
+
* The name of the company associated with this vendor. This name is used on
|
|
123
|
+
* invoices, checks, and other forms.
|
|
124
|
+
*/
|
|
125
|
+
companyName: string | null;
|
|
126
|
+
/**
|
|
127
|
+
* The name of the primary contact person for this vendor.
|
|
128
|
+
*/
|
|
129
|
+
contact: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* The date and time when this vendor was created, in ISO 8601 format
|
|
132
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
|
|
133
|
+
* timezone of the end-user's computer.
|
|
134
|
+
*/
|
|
135
|
+
createdAt: string;
|
|
136
|
+
/**
|
|
137
|
+
* The vendor's credit limit, represented as a decimal string. This is the maximum
|
|
138
|
+
* amount of money that can be spent being before billed by this vendor. If `null`,
|
|
139
|
+
* there is no credit limit.
|
|
140
|
+
*/
|
|
141
|
+
creditLimit: string | null;
|
|
142
|
+
/**
|
|
143
|
+
* The vendor's currency. For built-in currencies, the name and code are standard
|
|
144
|
+
* international values. For user-defined currencies, all values are editable.
|
|
145
|
+
*/
|
|
146
|
+
currency: Vendor.Currency | null;
|
|
147
|
+
/**
|
|
148
|
+
* Additional custom contact fields for this vendor, such as phone numbers or email
|
|
149
|
+
* addresses.
|
|
150
|
+
*/
|
|
151
|
+
customContactFields: Array<Vendor.CustomContactField>;
|
|
152
|
+
/**
|
|
153
|
+
* The custom fields for the vendor object, added as user-defined data extensions,
|
|
154
|
+
* not included in the standard QuickBooks object.
|
|
155
|
+
*/
|
|
156
|
+
customFields: Array<Vendor.CustomField>;
|
|
157
|
+
/**
|
|
158
|
+
* The expense accounts to prefill when entering bills for this vendor.
|
|
159
|
+
*/
|
|
160
|
+
defaultExpenseAccounts: Array<Vendor.DefaultExpenseAccount>;
|
|
161
|
+
/**
|
|
162
|
+
* The vendor's email address.
|
|
163
|
+
*/
|
|
164
|
+
email: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* A globally unique identifier (GUID) you, the developer, can provide for tracking
|
|
167
|
+
* this object in your external system. This field is immutable and can only be set
|
|
168
|
+
* during object creation.
|
|
169
|
+
*/
|
|
170
|
+
externalId: string | null;
|
|
171
|
+
/**
|
|
172
|
+
* The vendor's fax number.
|
|
173
|
+
*/
|
|
174
|
+
fax: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* The first name of the contact person for this vendor.
|
|
177
|
+
*/
|
|
178
|
+
firstName: string | null;
|
|
179
|
+
/**
|
|
180
|
+
* Indicates whether this vendor is active. Inactive objects are typically hidden
|
|
181
|
+
* from views and reports in QuickBooks. Defaults to `true`.
|
|
182
|
+
*/
|
|
183
|
+
isActive: boolean;
|
|
184
|
+
/**
|
|
185
|
+
* Indicates whether tax is charged on top of tax for this vendor, for use in
|
|
186
|
+
* Canada or the UK.
|
|
187
|
+
*/
|
|
188
|
+
isCompoundingTax: boolean | null;
|
|
189
|
+
/**
|
|
190
|
+
* Indicates whether this vendor is eligible to receive a 1099 form for tax
|
|
191
|
+
* reporting purposes. When `true`, then the fields `taxId` and `billingAddress`
|
|
192
|
+
* are required.
|
|
193
|
+
*/
|
|
194
|
+
isEligibleFor1099: boolean | null;
|
|
195
|
+
/**
|
|
196
|
+
* Indicates whether this vendor is a sales tax agency.
|
|
197
|
+
*/
|
|
198
|
+
isSalesTaxAgency: boolean | null;
|
|
199
|
+
/**
|
|
200
|
+
* Indicates whether tax is tracked on purchases for this vendor, for use in Canada
|
|
201
|
+
* or the UK.
|
|
202
|
+
*/
|
|
203
|
+
isTrackingPurchaseTax: boolean | null;
|
|
204
|
+
/**
|
|
205
|
+
* Indicates whether tax is tracked on sales for this vendor, for use in Canada or
|
|
206
|
+
* the UK.
|
|
207
|
+
*/
|
|
208
|
+
isTrackingSalesTax: boolean | null;
|
|
209
|
+
/**
|
|
210
|
+
* The job title of the contact person for this vendor.
|
|
211
|
+
*/
|
|
212
|
+
jobTitle: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* The last name of the contact person for this vendor.
|
|
215
|
+
*/
|
|
216
|
+
lastName: string | null;
|
|
217
|
+
/**
|
|
218
|
+
* The middle name of the contact person for this vendor.
|
|
219
|
+
*/
|
|
220
|
+
middleName: string | null;
|
|
221
|
+
/**
|
|
222
|
+
* The case-insensitive unique name of this vendor, unique across all vendors.
|
|
223
|
+
*
|
|
224
|
+
* **NOTE**: Vendors do not have a `fullName` field because they are not
|
|
225
|
+
* hierarchical objects, which is why `name` is unique for them but not for objects
|
|
226
|
+
* that have parents.
|
|
227
|
+
*/
|
|
228
|
+
name: string;
|
|
229
|
+
/**
|
|
230
|
+
* The vendor's name as it should appear on checks issued to this vendor.
|
|
231
|
+
*/
|
|
232
|
+
nameOnCheck: string | null;
|
|
233
|
+
/**
|
|
234
|
+
* A note or comment about this vendor.
|
|
235
|
+
*/
|
|
236
|
+
note: string | null;
|
|
237
|
+
/**
|
|
238
|
+
* The type of object. This value is always `"qbd_vendor"`.
|
|
239
|
+
*/
|
|
240
|
+
objectType: 'qbd_vendor';
|
|
241
|
+
/**
|
|
242
|
+
* The vendor's primary telephone number.
|
|
243
|
+
*/
|
|
244
|
+
phone: string | null;
|
|
245
|
+
/**
|
|
246
|
+
* The account used for tracking taxes on purchases for this vendor, for use in
|
|
247
|
+
* Canada or the UK.
|
|
248
|
+
*/
|
|
249
|
+
purchaseTaxAccount: Vendor.PurchaseTaxAccount | null;
|
|
250
|
+
/**
|
|
251
|
+
* The vendor's tax reporting period, for use in Canada or the UK.
|
|
252
|
+
*/
|
|
253
|
+
reportingPeriod: 'monthly' | 'quarterly' | null;
|
|
254
|
+
/**
|
|
255
|
+
* The current QuickBooks-assigned revision number of this vendor object, which
|
|
256
|
+
* changes each time the object is modified. When updating this object, you must
|
|
257
|
+
* provide the most recent `revisionNumber` to ensure you're working with the
|
|
258
|
+
* latest data; otherwise, the update will return an error.
|
|
259
|
+
*/
|
|
260
|
+
revisionNumber: string;
|
|
261
|
+
/**
|
|
262
|
+
* The account used for tracking taxes on sales for this vendor, for use in Canada
|
|
263
|
+
* or the UK.
|
|
264
|
+
*/
|
|
265
|
+
salesTaxAccount: Vendor.SalesTaxAccount | null;
|
|
266
|
+
/**
|
|
267
|
+
* The default sales-tax code for transactions with this vendor, determining
|
|
268
|
+
* whether the transactions are taxable or non-taxable. This can be overridden at
|
|
269
|
+
* the transaction or transaction-line level.
|
|
270
|
+
*
|
|
271
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
272
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
273
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
274
|
+
* non-taxable code to all sales.
|
|
275
|
+
*/
|
|
276
|
+
salesTaxCode: Vendor.SalesTaxCode | null;
|
|
277
|
+
/**
|
|
278
|
+
* The country for which sales tax is collected for this vendor.
|
|
279
|
+
*/
|
|
280
|
+
salesTaxCountry: 'australia' | 'canada' | 'uk' | 'us' | null;
|
|
281
|
+
/**
|
|
282
|
+
* The vendor's sales tax return information, used for tracking and reporting sales
|
|
283
|
+
* tax liabilities.
|
|
284
|
+
*/
|
|
285
|
+
salesTaxReturn: Vendor.SalesTaxReturn | null;
|
|
286
|
+
/**
|
|
287
|
+
* The formal salutation title that precedes the name of the contact person for
|
|
288
|
+
* this vendor, such as "Mr.", "Ms.", or "Dr.".
|
|
289
|
+
*/
|
|
290
|
+
salutation: string | null;
|
|
291
|
+
/**
|
|
292
|
+
* The vendor's shipping address.
|
|
293
|
+
*/
|
|
294
|
+
shippingAddress: Vendor.ShippingAddress | null;
|
|
295
|
+
/**
|
|
296
|
+
* The vendor's tax identification number (e.g., EIN or SSN).
|
|
297
|
+
*/
|
|
298
|
+
taxIdentificationNumber: string | null;
|
|
299
|
+
/**
|
|
300
|
+
* The vendor's tax registration number, for use in Canada or the UK.
|
|
301
|
+
*/
|
|
302
|
+
taxRegistrationNumber: string | null;
|
|
303
|
+
/**
|
|
304
|
+
* The vendor's payment terms, defining when payment is due and any applicable
|
|
305
|
+
* discounts.
|
|
306
|
+
*/
|
|
307
|
+
terms: Vendor.Terms | null;
|
|
308
|
+
/**
|
|
309
|
+
* The date and time when this vendor was last updated, in ISO 8601 format
|
|
310
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
|
|
311
|
+
* timezone of the end-user's computer.
|
|
312
|
+
*/
|
|
313
|
+
updatedAt: string;
|
|
314
|
+
/**
|
|
315
|
+
* The vendor's type, used for categorizing vendors into meaningful segments, such
|
|
316
|
+
* as industry or region.
|
|
317
|
+
*/
|
|
318
|
+
vendorType: Vendor.VendorType | null;
|
|
319
|
+
}
|
|
320
|
+
export declare namespace Vendor {
|
|
321
|
+
interface AdditionalContact {
|
|
322
|
+
/**
|
|
323
|
+
* The unique identifier assigned by QuickBooks to this contact. This ID is unique
|
|
324
|
+
* across all contacts but not across different QuickBooks object types.
|
|
325
|
+
*/
|
|
326
|
+
id: string;
|
|
327
|
+
/**
|
|
328
|
+
* The date and time when this contact was created, in ISO 8601 format
|
|
329
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
|
|
330
|
+
* timezone of the end-user's computer.
|
|
331
|
+
*/
|
|
332
|
+
createdAt: string;
|
|
333
|
+
/**
|
|
334
|
+
* Additional custom contact fields for this contact, such as phone numbers or
|
|
335
|
+
* email addresses.
|
|
336
|
+
*/
|
|
337
|
+
customContactFields: Array<AdditionalContact.CustomContactField>;
|
|
338
|
+
/**
|
|
339
|
+
* The contact's first name.
|
|
340
|
+
*/
|
|
341
|
+
firstName: string;
|
|
342
|
+
/**
|
|
343
|
+
* The contact's job title.
|
|
344
|
+
*/
|
|
345
|
+
jobTitle: string | null;
|
|
346
|
+
/**
|
|
347
|
+
* The contact's last name.
|
|
348
|
+
*/
|
|
349
|
+
lastName: string | null;
|
|
350
|
+
/**
|
|
351
|
+
* The contact's middle name.
|
|
352
|
+
*/
|
|
353
|
+
middleName: string | null;
|
|
354
|
+
/**
|
|
355
|
+
* The contact's full name.
|
|
356
|
+
*/
|
|
357
|
+
name: string | null;
|
|
358
|
+
/**
|
|
359
|
+
* The type of object. This value is always `"qbd_contact"`.
|
|
360
|
+
*/
|
|
361
|
+
objectType: 'qbd_contact';
|
|
362
|
+
/**
|
|
363
|
+
* The current QuickBooks-assigned revision number of this contact object, which
|
|
364
|
+
* changes each time the object is modified. When updating this object, you must
|
|
365
|
+
* provide the most recent `revisionNumber` to ensure you're working with the
|
|
366
|
+
* latest data; otherwise, the update will return an error.
|
|
367
|
+
*/
|
|
368
|
+
revisionNumber: string;
|
|
369
|
+
/**
|
|
370
|
+
* The contact's formal salutation title that precedes their name, such as "Mr.",
|
|
371
|
+
* "Ms.", or "Dr.".
|
|
372
|
+
*/
|
|
373
|
+
salutation: string | null;
|
|
374
|
+
/**
|
|
375
|
+
* The date and time when this contact was last updated, in ISO 8601 format
|
|
376
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
|
|
377
|
+
* timezone of the end-user's computer.
|
|
378
|
+
*/
|
|
379
|
+
updatedAt: string;
|
|
380
|
+
}
|
|
381
|
+
namespace AdditionalContact {
|
|
382
|
+
interface CustomContactField {
|
|
383
|
+
/**
|
|
384
|
+
* The name of the contact field (e.g., "old address", "secondary phone").
|
|
385
|
+
*/
|
|
386
|
+
name: string;
|
|
387
|
+
/**
|
|
388
|
+
* The value of the contact field.
|
|
389
|
+
*/
|
|
390
|
+
value: string | null;
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
interface AdditionalNote {
|
|
394
|
+
/**
|
|
395
|
+
* The auto-incrementing identifier assigned by QuickBooks to this note.
|
|
396
|
+
*/
|
|
397
|
+
id: number;
|
|
398
|
+
/**
|
|
399
|
+
* The date this note was last updated, in ISO 8601 format (YYYY-MM-DD).
|
|
400
|
+
*/
|
|
401
|
+
date: string | null;
|
|
402
|
+
/**
|
|
403
|
+
* The text of this note.
|
|
404
|
+
*/
|
|
405
|
+
note: string;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* The vendor's billing address.
|
|
409
|
+
*/
|
|
410
|
+
interface BillingAddress {
|
|
411
|
+
/**
|
|
412
|
+
* The city, district, suburb, town, or village name of the address.
|
|
413
|
+
*/
|
|
414
|
+
city: string | null;
|
|
415
|
+
/**
|
|
416
|
+
* The country name of the address.
|
|
417
|
+
*/
|
|
418
|
+
country: string | null;
|
|
419
|
+
/**
|
|
420
|
+
* The first line of the address (e.g., street, PO Box, or company name).
|
|
421
|
+
*/
|
|
422
|
+
line1: string | null;
|
|
423
|
+
/**
|
|
424
|
+
* The second line of the address, if needed (e.g., apartment, suite, unit, or
|
|
425
|
+
* building).
|
|
426
|
+
*/
|
|
427
|
+
line2: string | null;
|
|
428
|
+
/**
|
|
429
|
+
* The third line of the address, if needed.
|
|
430
|
+
*/
|
|
431
|
+
line3: string | null;
|
|
432
|
+
/**
|
|
433
|
+
* The fourth line of the address, if needed.
|
|
434
|
+
*/
|
|
435
|
+
line4: string | null;
|
|
436
|
+
/**
|
|
437
|
+
* The fifth line of the address, if needed.
|
|
438
|
+
*/
|
|
439
|
+
line5: string | null;
|
|
440
|
+
/**
|
|
441
|
+
* A note written at the bottom of the address in the form in which it appears,
|
|
442
|
+
* such as the invoice form.
|
|
443
|
+
*/
|
|
444
|
+
note: string | null;
|
|
445
|
+
/**
|
|
446
|
+
* The postal code or ZIP code of the address.
|
|
447
|
+
*/
|
|
448
|
+
postalCode: string | null;
|
|
449
|
+
/**
|
|
450
|
+
* The state, county, province, or region name of the address.
|
|
451
|
+
*/
|
|
452
|
+
state: string | null;
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* The vendor's billing rate, used to override service item rates in time tracking
|
|
456
|
+
* activities.
|
|
457
|
+
*/
|
|
458
|
+
interface BillingRate {
|
|
459
|
+
/**
|
|
460
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
461
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
462
|
+
* types.
|
|
463
|
+
*/
|
|
464
|
+
id: string | null;
|
|
465
|
+
/**
|
|
466
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
467
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
468
|
+
* case-sensitive.
|
|
469
|
+
*/
|
|
470
|
+
fullName: string | null;
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* The vendor's class. Classes can be used to categorize objects into meaningful
|
|
474
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
475
|
+
* tracking is off by default.
|
|
476
|
+
*/
|
|
477
|
+
interface Class {
|
|
478
|
+
/**
|
|
479
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
480
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
481
|
+
* types.
|
|
482
|
+
*/
|
|
483
|
+
id: string | null;
|
|
484
|
+
/**
|
|
485
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
486
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
487
|
+
* case-sensitive.
|
|
488
|
+
*/
|
|
489
|
+
fullName: string | null;
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* The vendor's currency. For built-in currencies, the name and code are standard
|
|
493
|
+
* international values. For user-defined currencies, all values are editable.
|
|
494
|
+
*/
|
|
495
|
+
interface Currency {
|
|
496
|
+
/**
|
|
497
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
498
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
499
|
+
* types.
|
|
500
|
+
*/
|
|
501
|
+
id: string | null;
|
|
502
|
+
/**
|
|
503
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
504
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
505
|
+
* case-sensitive.
|
|
506
|
+
*/
|
|
507
|
+
fullName: string | null;
|
|
508
|
+
}
|
|
509
|
+
interface CustomContactField {
|
|
510
|
+
/**
|
|
511
|
+
* The name of the contact field (e.g., "old address", "secondary phone").
|
|
512
|
+
*/
|
|
513
|
+
name: string;
|
|
514
|
+
/**
|
|
515
|
+
* The value of the contact field.
|
|
516
|
+
*/
|
|
517
|
+
value: string | null;
|
|
518
|
+
}
|
|
519
|
+
interface CustomField {
|
|
520
|
+
/**
|
|
521
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
522
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
523
|
+
*/
|
|
524
|
+
name: string;
|
|
525
|
+
/**
|
|
526
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
527
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
528
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
529
|
+
* fields that are only visible to the application that created them, this is a
|
|
530
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
531
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
532
|
+
* objects.
|
|
533
|
+
*/
|
|
534
|
+
ownerId: string;
|
|
535
|
+
/**
|
|
536
|
+
* The data type of this custom field.
|
|
537
|
+
*/
|
|
538
|
+
type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
|
|
539
|
+
/**
|
|
540
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
541
|
+
* type.
|
|
542
|
+
*/
|
|
543
|
+
value: string;
|
|
544
|
+
}
|
|
545
|
+
interface DefaultExpenseAccount {
|
|
546
|
+
/**
|
|
547
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
548
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
549
|
+
* types.
|
|
550
|
+
*/
|
|
551
|
+
id: string | null;
|
|
552
|
+
/**
|
|
553
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
554
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
555
|
+
* case-sensitive.
|
|
556
|
+
*/
|
|
557
|
+
fullName: string | null;
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* The account used for tracking taxes on purchases for this vendor, for use in
|
|
561
|
+
* Canada or the UK.
|
|
562
|
+
*/
|
|
563
|
+
interface PurchaseTaxAccount {
|
|
564
|
+
/**
|
|
565
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
566
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
567
|
+
* types.
|
|
568
|
+
*/
|
|
569
|
+
id: string | null;
|
|
570
|
+
/**
|
|
571
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
572
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
573
|
+
* case-sensitive.
|
|
574
|
+
*/
|
|
575
|
+
fullName: string | null;
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* The account used for tracking taxes on sales for this vendor, for use in Canada
|
|
579
|
+
* or the UK.
|
|
580
|
+
*/
|
|
581
|
+
interface SalesTaxAccount {
|
|
582
|
+
/**
|
|
583
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
584
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
585
|
+
* types.
|
|
586
|
+
*/
|
|
587
|
+
id: string | null;
|
|
588
|
+
/**
|
|
589
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
590
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
591
|
+
* case-sensitive.
|
|
592
|
+
*/
|
|
593
|
+
fullName: string | null;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* The default sales-tax code for transactions with this vendor, determining
|
|
597
|
+
* whether the transactions are taxable or non-taxable. This can be overridden at
|
|
598
|
+
* the transaction or transaction-line level.
|
|
599
|
+
*
|
|
600
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
601
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
602
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
603
|
+
* non-taxable code to all sales.
|
|
604
|
+
*/
|
|
605
|
+
interface SalesTaxCode {
|
|
606
|
+
/**
|
|
607
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
608
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
609
|
+
* types.
|
|
610
|
+
*/
|
|
611
|
+
id: string | null;
|
|
612
|
+
/**
|
|
613
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
614
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
615
|
+
* case-sensitive.
|
|
616
|
+
*/
|
|
617
|
+
fullName: string | null;
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* The vendor's sales tax return information, used for tracking and reporting sales
|
|
621
|
+
* tax liabilities.
|
|
622
|
+
*/
|
|
623
|
+
interface SalesTaxReturn {
|
|
624
|
+
/**
|
|
625
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
626
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
627
|
+
* types.
|
|
628
|
+
*/
|
|
629
|
+
id: string | null;
|
|
630
|
+
/**
|
|
631
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
632
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
633
|
+
* case-sensitive.
|
|
634
|
+
*/
|
|
635
|
+
fullName: string | null;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* The vendor's shipping address.
|
|
639
|
+
*/
|
|
640
|
+
interface ShippingAddress {
|
|
641
|
+
/**
|
|
642
|
+
* The city, district, suburb, town, or village name of the address.
|
|
643
|
+
*/
|
|
644
|
+
city: string | null;
|
|
645
|
+
/**
|
|
646
|
+
* The country name of the address.
|
|
647
|
+
*/
|
|
648
|
+
country: string | null;
|
|
649
|
+
/**
|
|
650
|
+
* The first line of the address (e.g., street, PO Box, or company name).
|
|
651
|
+
*/
|
|
652
|
+
line1: string | null;
|
|
653
|
+
/**
|
|
654
|
+
* The second line of the address, if needed (e.g., apartment, suite, unit, or
|
|
655
|
+
* building).
|
|
656
|
+
*/
|
|
657
|
+
line2: string | null;
|
|
658
|
+
/**
|
|
659
|
+
* The third line of the address, if needed.
|
|
660
|
+
*/
|
|
661
|
+
line3: string | null;
|
|
662
|
+
/**
|
|
663
|
+
* The fourth line of the address, if needed.
|
|
664
|
+
*/
|
|
665
|
+
line4: string | null;
|
|
666
|
+
/**
|
|
667
|
+
* The fifth line of the address, if needed.
|
|
668
|
+
*/
|
|
669
|
+
line5: string | null;
|
|
670
|
+
/**
|
|
671
|
+
* A note written at the bottom of the address in the form in which it appears,
|
|
672
|
+
* such as the invoice form.
|
|
673
|
+
*/
|
|
674
|
+
note: string | null;
|
|
675
|
+
/**
|
|
676
|
+
* The postal code or ZIP code of the address.
|
|
677
|
+
*/
|
|
678
|
+
postalCode: string | null;
|
|
679
|
+
/**
|
|
680
|
+
* The state, county, province, or region name of the address.
|
|
681
|
+
*/
|
|
682
|
+
state: string | null;
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* The vendor's payment terms, defining when payment is due and any applicable
|
|
686
|
+
* discounts.
|
|
687
|
+
*/
|
|
688
|
+
interface Terms {
|
|
689
|
+
/**
|
|
690
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
691
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
692
|
+
* types.
|
|
693
|
+
*/
|
|
694
|
+
id: string | null;
|
|
695
|
+
/**
|
|
696
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
697
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
698
|
+
* case-sensitive.
|
|
699
|
+
*/
|
|
700
|
+
fullName: string | null;
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* The vendor's type, used for categorizing vendors into meaningful segments, such
|
|
704
|
+
* as industry or region.
|
|
705
|
+
*/
|
|
706
|
+
interface VendorType {
|
|
707
|
+
/**
|
|
708
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
709
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
710
|
+
* types.
|
|
711
|
+
*/
|
|
712
|
+
id: string | null;
|
|
713
|
+
/**
|
|
714
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
715
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
716
|
+
* case-sensitive.
|
|
717
|
+
*/
|
|
718
|
+
fullName: string | null;
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
export interface VendorCreateParams {
|
|
722
|
+
/**
|
|
723
|
+
* Body param: The case-insensitive unique name of this vendor, unique across all
|
|
724
|
+
* vendors.
|
|
725
|
+
*
|
|
726
|
+
* **NOTE**: Vendors do not have a `fullName` field because they are not
|
|
727
|
+
* hierarchical objects, which is why `name` is unique for them but not for objects
|
|
728
|
+
* that have parents.
|
|
729
|
+
*
|
|
730
|
+
* Maximum length: 41 characters.
|
|
731
|
+
*/
|
|
732
|
+
name: string;
|
|
733
|
+
/**
|
|
734
|
+
* Header param: The ID of the End-User to receive this request.
|
|
735
|
+
*/
|
|
736
|
+
conductorEndUserId: string;
|
|
737
|
+
/**
|
|
738
|
+
* Body param: The vendor's account number, which appears in the QuickBooks chart
|
|
739
|
+
* of accounts, reports, and graphs.
|
|
740
|
+
*
|
|
741
|
+
* Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
|
|
742
|
+
* the account number may not be visible in the user interface, but it can still be
|
|
743
|
+
* set and retrieved through the API.
|
|
744
|
+
*/
|
|
745
|
+
accountNumber?: string;
|
|
746
|
+
/**
|
|
747
|
+
* Body param: Additional alternate contacts for this vendor.
|
|
748
|
+
*/
|
|
749
|
+
additionalContacts?: Array<VendorCreateParams.AdditionalContact>;
|
|
750
|
+
/**
|
|
751
|
+
* Body param: Additional notes about this vendor.
|
|
752
|
+
*/
|
|
753
|
+
additionalNotes?: Array<VendorCreateParams.AdditionalNote>;
|
|
754
|
+
/**
|
|
755
|
+
* Body param: The name of a alternate contact person for this vendor.
|
|
756
|
+
*/
|
|
757
|
+
alternateContact?: string;
|
|
758
|
+
/**
|
|
759
|
+
* Body param: The vendor's alternate telephone number.
|
|
760
|
+
*/
|
|
761
|
+
alternatePhone?: string;
|
|
762
|
+
/**
|
|
763
|
+
* Body param: The vendor's billing address.
|
|
764
|
+
*/
|
|
765
|
+
billingAddress?: VendorCreateParams.BillingAddress;
|
|
766
|
+
/**
|
|
767
|
+
* Body param: The vendor's billing rate, used to override service item rates in
|
|
768
|
+
* time tracking activities.
|
|
769
|
+
*/
|
|
770
|
+
billingRateId?: string;
|
|
771
|
+
/**
|
|
772
|
+
* Body param: An email address to carbon copy (CC) on communications with this
|
|
773
|
+
* vendor.
|
|
774
|
+
*/
|
|
775
|
+
ccEmail?: string;
|
|
776
|
+
/**
|
|
777
|
+
* Body param: The vendor's class. Classes can be used to categorize objects into
|
|
778
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
779
|
+
* QuickBooks, class tracking is off by default.
|
|
780
|
+
*/
|
|
781
|
+
classId?: string;
|
|
782
|
+
/**
|
|
783
|
+
* Body param: The name of the company associated with this vendor. This name is
|
|
784
|
+
* used on invoices, checks, and other forms.
|
|
785
|
+
*/
|
|
786
|
+
companyName?: string;
|
|
787
|
+
/**
|
|
788
|
+
* Body param: The name of the primary contact person for this vendor.
|
|
789
|
+
*/
|
|
790
|
+
contact?: string;
|
|
791
|
+
/**
|
|
792
|
+
* Body param: The vendor's credit limit, represented as a decimal string. This is
|
|
793
|
+
* the maximum amount of money that can be spent being before billed by this
|
|
794
|
+
* vendor. If `null`, there is no credit limit.
|
|
795
|
+
*/
|
|
796
|
+
creditLimit?: string;
|
|
797
|
+
/**
|
|
798
|
+
* Body param: The vendor's currency. For built-in currencies, the name and code
|
|
799
|
+
* are standard international values. For user-defined currencies, all values are
|
|
800
|
+
* editable.
|
|
801
|
+
*/
|
|
802
|
+
currencyId?: string;
|
|
803
|
+
/**
|
|
804
|
+
* Body param: Additional custom contact fields for this vendor, such as phone
|
|
805
|
+
* numbers or email addresses.
|
|
806
|
+
*/
|
|
807
|
+
customContactFields?: Array<VendorCreateParams.CustomContactField>;
|
|
808
|
+
/**
|
|
809
|
+
* Body param: The expense accounts to prefill when entering bills for this vendor.
|
|
810
|
+
*/
|
|
811
|
+
defaultExpenseAccountIds?: Array<string>;
|
|
812
|
+
/**
|
|
813
|
+
* Body param: The vendor's email address.
|
|
814
|
+
*/
|
|
815
|
+
email?: string;
|
|
816
|
+
/**
|
|
817
|
+
* Body param: A globally unique identifier (GUID) you, the developer, can provide
|
|
818
|
+
* for tracking this object in your external system. This field is immutable and
|
|
819
|
+
* can only be set during object creation.
|
|
820
|
+
*
|
|
821
|
+
* **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
|
|
822
|
+
* QuickBooks will return an error.
|
|
823
|
+
*/
|
|
824
|
+
externalId?: string;
|
|
825
|
+
/**
|
|
826
|
+
* Body param: The vendor's fax number.
|
|
827
|
+
*/
|
|
828
|
+
fax?: string;
|
|
829
|
+
/**
|
|
830
|
+
* Body param: The first name of the contact person for this vendor.
|
|
831
|
+
*
|
|
832
|
+
* Maximum length: 25 characters.
|
|
833
|
+
*/
|
|
834
|
+
firstName?: string;
|
|
835
|
+
/**
|
|
836
|
+
* Body param: Indicates whether this vendor is active. Inactive objects are
|
|
837
|
+
* typically hidden from views and reports in QuickBooks. Defaults to `true`.
|
|
838
|
+
*/
|
|
839
|
+
isActive?: boolean;
|
|
840
|
+
/**
|
|
841
|
+
* Body param: Indicates whether tax is charged on top of tax for this vendor, for
|
|
842
|
+
* use in Canada or the UK.
|
|
843
|
+
*/
|
|
844
|
+
isCompoundingTax?: boolean;
|
|
845
|
+
/**
|
|
846
|
+
* Body param: Indicates whether this vendor is eligible to receive a 1099 form for
|
|
847
|
+
* tax reporting purposes. When `true`, then the fields `taxId` and
|
|
848
|
+
* `billingAddress` are required.
|
|
849
|
+
*/
|
|
850
|
+
isEligibleFor1099?: boolean;
|
|
851
|
+
/**
|
|
852
|
+
* Body param: Indicates whether this vendor is a sales tax agency.
|
|
853
|
+
*/
|
|
854
|
+
isSalesTaxAgency?: boolean;
|
|
855
|
+
/**
|
|
856
|
+
* Body param: Indicates whether tax is tracked on purchases for this vendor, for
|
|
857
|
+
* use in Canada or the UK.
|
|
858
|
+
*/
|
|
859
|
+
isTrackingPurchaseTax?: boolean;
|
|
860
|
+
/**
|
|
861
|
+
* Body param: Indicates whether tax is tracked on sales for this vendor, for use
|
|
862
|
+
* in Canada or the UK.
|
|
863
|
+
*/
|
|
864
|
+
isTrackingSalesTax?: boolean;
|
|
865
|
+
/**
|
|
866
|
+
* Body param: The job title of the contact person for this vendor.
|
|
867
|
+
*/
|
|
868
|
+
jobTitle?: string;
|
|
869
|
+
/**
|
|
870
|
+
* Body param: The last name of the contact person for this vendor.
|
|
871
|
+
*
|
|
872
|
+
* Maximum length: 25 characters.
|
|
873
|
+
*/
|
|
874
|
+
lastName?: string;
|
|
875
|
+
/**
|
|
876
|
+
* Body param: The middle name of the contact person for this vendor.
|
|
877
|
+
*
|
|
878
|
+
* Maximum length: 5 characters.
|
|
879
|
+
*/
|
|
880
|
+
middleName?: string;
|
|
881
|
+
/**
|
|
882
|
+
* Body param: The vendor's name as it should appear on checks issued to this
|
|
883
|
+
* vendor.
|
|
884
|
+
*/
|
|
885
|
+
nameOnCheck?: string;
|
|
886
|
+
/**
|
|
887
|
+
* Body param: A note or comment about this vendor.
|
|
888
|
+
*/
|
|
889
|
+
note?: string;
|
|
890
|
+
/**
|
|
891
|
+
* Body param: The opening balance of this vendor's account, indicating the amount
|
|
892
|
+
* owed to this vendor, represented as a decimal string.
|
|
893
|
+
*/
|
|
894
|
+
openingBalance?: string;
|
|
895
|
+
/**
|
|
896
|
+
* Body param: The date of the opening balance of this vendor, in ISO 8601 format
|
|
897
|
+
* (YYYY-MM-DD).
|
|
898
|
+
*/
|
|
899
|
+
openingBalanceDate?: string;
|
|
900
|
+
/**
|
|
901
|
+
* Body param: The vendor's primary telephone number.
|
|
902
|
+
*/
|
|
903
|
+
phone?: string;
|
|
904
|
+
/**
|
|
905
|
+
* Body param: The account used for tracking taxes on purchases for this vendor,
|
|
906
|
+
* for use in Canada or the UK.
|
|
907
|
+
*/
|
|
908
|
+
purchaseTaxAccountId?: string;
|
|
909
|
+
/**
|
|
910
|
+
* Body param: The vendor's tax reporting period, for use in Canada or the UK.
|
|
911
|
+
*/
|
|
912
|
+
reportingPeriod?: 'monthly' | 'quarterly';
|
|
913
|
+
/**
|
|
914
|
+
* Body param: The account used for tracking taxes on sales for this vendor, for
|
|
915
|
+
* use in Canada or the UK.
|
|
916
|
+
*/
|
|
917
|
+
salesTaxAccountId?: string;
|
|
918
|
+
/**
|
|
919
|
+
* Body param: The default sales-tax code for transactions with this vendor,
|
|
920
|
+
* determining whether the transactions are taxable or non-taxable. This can be
|
|
921
|
+
* overridden at the transaction or transaction-line level.
|
|
922
|
+
*
|
|
923
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
924
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
925
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
926
|
+
* non-taxable code to all sales.
|
|
927
|
+
*/
|
|
928
|
+
salesTaxCodeId?: string;
|
|
929
|
+
/**
|
|
930
|
+
* Body param: The country for which sales tax is collected for this vendor.
|
|
931
|
+
*/
|
|
932
|
+
salesTaxCountry?: 'australia' | 'canada' | 'uk' | 'us';
|
|
933
|
+
/**
|
|
934
|
+
* Body param: The vendor's sales tax return information, used for tracking and
|
|
935
|
+
* reporting sales tax liabilities.
|
|
936
|
+
*/
|
|
937
|
+
salesTaxReturnId?: string;
|
|
938
|
+
/**
|
|
939
|
+
* Body param: The formal salutation title that precedes the name of the contact
|
|
940
|
+
* person for this vendor, such as "Mr.", "Ms.", or "Dr.".
|
|
941
|
+
*/
|
|
942
|
+
salutation?: string;
|
|
943
|
+
/**
|
|
944
|
+
* Body param: The vendor's shipping address.
|
|
945
|
+
*/
|
|
946
|
+
shippingAddress?: VendorCreateParams.ShippingAddress;
|
|
947
|
+
/**
|
|
948
|
+
* Body param: The vendor's tax identification number (e.g., EIN or SSN).
|
|
949
|
+
*/
|
|
950
|
+
taxIdentificationNumber?: string;
|
|
951
|
+
/**
|
|
952
|
+
* Body param: The vendor's tax registration number, for use in Canada or the UK.
|
|
953
|
+
*/
|
|
954
|
+
taxRegistrationNumber?: string;
|
|
955
|
+
/**
|
|
956
|
+
* Body param: The vendor's payment terms, defining when payment is due and any
|
|
957
|
+
* applicable discounts.
|
|
958
|
+
*/
|
|
959
|
+
termsId?: string;
|
|
960
|
+
/**
|
|
961
|
+
* Body param: The vendor's type, used for categorizing vendors into meaningful
|
|
962
|
+
* segments, such as industry or region.
|
|
963
|
+
*/
|
|
964
|
+
vendorTypeId?: string;
|
|
965
|
+
}
|
|
966
|
+
export declare namespace VendorCreateParams {
|
|
967
|
+
interface AdditionalContact {
|
|
968
|
+
/**
|
|
969
|
+
* The contact's first name.
|
|
970
|
+
*
|
|
971
|
+
* Maximum length: 25 characters.
|
|
972
|
+
*/
|
|
973
|
+
firstName: string;
|
|
974
|
+
/**
|
|
975
|
+
* Additional custom contact fields for this contact, such as phone numbers or
|
|
976
|
+
* email addresses.
|
|
977
|
+
*/
|
|
978
|
+
customContactFields?: Array<AdditionalContact.CustomContactField>;
|
|
979
|
+
/**
|
|
980
|
+
* The contact's job title.
|
|
981
|
+
*/
|
|
982
|
+
jobTitle?: string;
|
|
983
|
+
/**
|
|
984
|
+
* The contact's last name.
|
|
985
|
+
*
|
|
986
|
+
* Maximum length: 25 characters.
|
|
987
|
+
*/
|
|
988
|
+
lastName?: string;
|
|
989
|
+
/**
|
|
990
|
+
* The contact's middle name.
|
|
991
|
+
*
|
|
992
|
+
* Maximum length: 5 characters.
|
|
993
|
+
*/
|
|
994
|
+
middleName?: string;
|
|
995
|
+
/**
|
|
996
|
+
* The contact's formal salutation title that precedes their name, such as "Mr.",
|
|
997
|
+
* "Ms.", or "Dr.".
|
|
998
|
+
*/
|
|
999
|
+
salutation?: string;
|
|
1000
|
+
}
|
|
1001
|
+
namespace AdditionalContact {
|
|
1002
|
+
interface CustomContactField {
|
|
1003
|
+
/**
|
|
1004
|
+
* The name of the contact field (e.g., "old address", "secondary phone").
|
|
1005
|
+
*/
|
|
1006
|
+
name: string;
|
|
1007
|
+
/**
|
|
1008
|
+
* The value of the contact field.
|
|
1009
|
+
*/
|
|
1010
|
+
value: string;
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
interface AdditionalNote {
|
|
1014
|
+
/**
|
|
1015
|
+
* The text of this note.
|
|
1016
|
+
*/
|
|
1017
|
+
note: string;
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* The vendor's billing address.
|
|
1021
|
+
*/
|
|
1022
|
+
interface BillingAddress {
|
|
1023
|
+
/**
|
|
1024
|
+
* The city, district, suburb, town, or village name of the address.
|
|
1025
|
+
*
|
|
1026
|
+
* Maximum length: 31 characters.
|
|
1027
|
+
*/
|
|
1028
|
+
city?: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* The country name of the address.
|
|
1031
|
+
*/
|
|
1032
|
+
country?: string;
|
|
1033
|
+
/**
|
|
1034
|
+
* The first line of the address (e.g., street, PO Box, or company name).
|
|
1035
|
+
*
|
|
1036
|
+
* Maximum length: 41 characters.
|
|
1037
|
+
*/
|
|
1038
|
+
line1?: string;
|
|
1039
|
+
/**
|
|
1040
|
+
* The second line of the address, if needed (e.g., apartment, suite, unit, or
|
|
1041
|
+
* building).
|
|
1042
|
+
*
|
|
1043
|
+
* Maximum length: 41 characters.
|
|
1044
|
+
*/
|
|
1045
|
+
line2?: string;
|
|
1046
|
+
/**
|
|
1047
|
+
* The third line of the address, if needed.
|
|
1048
|
+
*
|
|
1049
|
+
* Maximum length: 41 characters.
|
|
1050
|
+
*/
|
|
1051
|
+
line3?: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* The fourth line of the address, if needed.
|
|
1054
|
+
*
|
|
1055
|
+
* Maximum length: 41 characters.
|
|
1056
|
+
*/
|
|
1057
|
+
line4?: string;
|
|
1058
|
+
/**
|
|
1059
|
+
* The fifth line of the address, if needed.
|
|
1060
|
+
*
|
|
1061
|
+
* Maximum length: 41 characters.
|
|
1062
|
+
*/
|
|
1063
|
+
line5?: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* A note written at the bottom of the address in the form in which it appears,
|
|
1066
|
+
* such as the invoice form.
|
|
1067
|
+
*/
|
|
1068
|
+
note?: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* The postal code or ZIP code of the address.
|
|
1071
|
+
*
|
|
1072
|
+
* Maximum length: 13 characters.
|
|
1073
|
+
*/
|
|
1074
|
+
postalCode?: string;
|
|
1075
|
+
/**
|
|
1076
|
+
* The state, county, province, or region name of the address.
|
|
1077
|
+
*
|
|
1078
|
+
* Maximum length: 21 characters.
|
|
1079
|
+
*/
|
|
1080
|
+
state?: string;
|
|
1081
|
+
}
|
|
1082
|
+
interface CustomContactField {
|
|
1083
|
+
/**
|
|
1084
|
+
* The name of the contact field (e.g., "old address", "secondary phone").
|
|
1085
|
+
*/
|
|
1086
|
+
name: string;
|
|
1087
|
+
/**
|
|
1088
|
+
* The value of the contact field.
|
|
1089
|
+
*/
|
|
1090
|
+
value: string;
|
|
1091
|
+
}
|
|
1092
|
+
/**
|
|
1093
|
+
* The vendor's shipping address.
|
|
1094
|
+
*/
|
|
1095
|
+
interface ShippingAddress {
|
|
1096
|
+
/**
|
|
1097
|
+
* The city, district, suburb, town, or village name of the address.
|
|
1098
|
+
*
|
|
1099
|
+
* Maximum length: 31 characters.
|
|
1100
|
+
*/
|
|
1101
|
+
city?: string;
|
|
1102
|
+
/**
|
|
1103
|
+
* The country name of the address.
|
|
1104
|
+
*/
|
|
1105
|
+
country?: string;
|
|
1106
|
+
/**
|
|
1107
|
+
* The first line of the address (e.g., street, PO Box, or company name).
|
|
1108
|
+
*
|
|
1109
|
+
* Maximum length: 41 characters.
|
|
1110
|
+
*/
|
|
1111
|
+
line1?: string;
|
|
1112
|
+
/**
|
|
1113
|
+
* The second line of the address, if needed (e.g., apartment, suite, unit, or
|
|
1114
|
+
* building).
|
|
1115
|
+
*
|
|
1116
|
+
* Maximum length: 41 characters.
|
|
1117
|
+
*/
|
|
1118
|
+
line2?: string;
|
|
1119
|
+
/**
|
|
1120
|
+
* The third line of the address, if needed.
|
|
1121
|
+
*
|
|
1122
|
+
* Maximum length: 41 characters.
|
|
1123
|
+
*/
|
|
1124
|
+
line3?: string;
|
|
1125
|
+
/**
|
|
1126
|
+
* The fourth line of the address, if needed.
|
|
1127
|
+
*
|
|
1128
|
+
* Maximum length: 41 characters.
|
|
1129
|
+
*/
|
|
1130
|
+
line4?: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* The fifth line of the address, if needed.
|
|
1133
|
+
*
|
|
1134
|
+
* Maximum length: 41 characters.
|
|
1135
|
+
*/
|
|
1136
|
+
line5?: string;
|
|
1137
|
+
/**
|
|
1138
|
+
* A note written at the bottom of the address in the form in which it appears,
|
|
1139
|
+
* such as the invoice form.
|
|
1140
|
+
*/
|
|
1141
|
+
note?: string;
|
|
1142
|
+
/**
|
|
1143
|
+
* The postal code or ZIP code of the address.
|
|
1144
|
+
*
|
|
1145
|
+
* Maximum length: 13 characters.
|
|
1146
|
+
*/
|
|
1147
|
+
postalCode?: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* The state, county, province, or region name of the address.
|
|
1150
|
+
*
|
|
1151
|
+
* Maximum length: 21 characters.
|
|
1152
|
+
*/
|
|
1153
|
+
state?: string;
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
export interface VendorRetrieveParams {
|
|
1157
|
+
/**
|
|
1158
|
+
* The ID of the End-User to receive this request.
|
|
1159
|
+
*/
|
|
1160
|
+
conductorEndUserId: string;
|
|
1161
|
+
}
|
|
1162
|
+
export interface VendorUpdateParams {
|
|
1163
|
+
/**
|
|
1164
|
+
* Body param: The current QuickBooks-assigned revision number of the vendor object
|
|
1165
|
+
* you are updating, which you can get by fetching the object first. Provide the
|
|
1166
|
+
* most recent `revisionNumber` to ensure you're working with the latest data;
|
|
1167
|
+
* otherwise, the update will return an error.
|
|
1168
|
+
*/
|
|
1169
|
+
revisionNumber: string;
|
|
1170
|
+
/**
|
|
1171
|
+
* Header param: The ID of the End-User to receive this request.
|
|
1172
|
+
*/
|
|
1173
|
+
conductorEndUserId: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Body param: The vendor's account number, which appears in the QuickBooks chart
|
|
1176
|
+
* of accounts, reports, and graphs.
|
|
1177
|
+
*
|
|
1178
|
+
* Note that if the "Use Account Numbers" preference is turned off in QuickBooks,
|
|
1179
|
+
* the account number may not be visible in the user interface, but it can still be
|
|
1180
|
+
* set and retrieved through the API.
|
|
1181
|
+
*/
|
|
1182
|
+
accountNumber?: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* Body param: Additional alternate contacts for this vendor.
|
|
1185
|
+
*/
|
|
1186
|
+
additionalContacts?: Array<VendorUpdateParams.AdditionalContact>;
|
|
1187
|
+
/**
|
|
1188
|
+
* Body param: Additional notes about this vendor.
|
|
1189
|
+
*/
|
|
1190
|
+
additionalNotes?: Array<VendorUpdateParams.AdditionalNote>;
|
|
1191
|
+
/**
|
|
1192
|
+
* Body param: The name of a alternate contact person for this vendor.
|
|
1193
|
+
*/
|
|
1194
|
+
alternateContact?: string;
|
|
1195
|
+
/**
|
|
1196
|
+
* Body param: The vendor's alternate telephone number.
|
|
1197
|
+
*/
|
|
1198
|
+
alternatePhone?: string;
|
|
1199
|
+
/**
|
|
1200
|
+
* Body param: The vendor's billing address.
|
|
1201
|
+
*/
|
|
1202
|
+
billingAddress?: VendorUpdateParams.BillingAddress;
|
|
1203
|
+
/**
|
|
1204
|
+
* Body param: The vendor's billing rate, used to override service item rates in
|
|
1205
|
+
* time tracking activities.
|
|
1206
|
+
*/
|
|
1207
|
+
billingRateId?: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Body param: An email address to carbon copy (CC) on communications with this
|
|
1210
|
+
* vendor.
|
|
1211
|
+
*/
|
|
1212
|
+
ccEmail?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* Body param: The vendor's class. Classes can be used to categorize objects into
|
|
1215
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
1216
|
+
* QuickBooks, class tracking is off by default.
|
|
1217
|
+
*/
|
|
1218
|
+
classId?: string;
|
|
1219
|
+
/**
|
|
1220
|
+
* Body param: The name of the company associated with this vendor. This name is
|
|
1221
|
+
* used on invoices, checks, and other forms.
|
|
1222
|
+
*/
|
|
1223
|
+
companyName?: string;
|
|
1224
|
+
/**
|
|
1225
|
+
* Body param: The name of the primary contact person for this vendor.
|
|
1226
|
+
*/
|
|
1227
|
+
contact?: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* Body param: The vendor's credit limit, represented as a decimal string. This is
|
|
1230
|
+
* the maximum amount of money that can be spent being before billed by this
|
|
1231
|
+
* vendor. If `null`, there is no credit limit.
|
|
1232
|
+
*/
|
|
1233
|
+
creditLimit?: string;
|
|
1234
|
+
/**
|
|
1235
|
+
* Body param: The vendor's currency. For built-in currencies, the name and code
|
|
1236
|
+
* are standard international values. For user-defined currencies, all values are
|
|
1237
|
+
* editable.
|
|
1238
|
+
*/
|
|
1239
|
+
currencyId?: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* Body param: Additional custom contact fields for this vendor, such as phone
|
|
1242
|
+
* numbers or email addresses.
|
|
1243
|
+
*/
|
|
1244
|
+
customContactFields?: Array<VendorUpdateParams.CustomContactField>;
|
|
1245
|
+
/**
|
|
1246
|
+
* Body param: The expense accounts to prefill when entering bills for this vendor.
|
|
1247
|
+
*/
|
|
1248
|
+
defaultExpenseAccountIds?: Array<string>;
|
|
1249
|
+
/**
|
|
1250
|
+
* Body param: The vendor's email address.
|
|
1251
|
+
*/
|
|
1252
|
+
email?: string;
|
|
1253
|
+
/**
|
|
1254
|
+
* Body param: The vendor's fax number.
|
|
1255
|
+
*/
|
|
1256
|
+
fax?: string;
|
|
1257
|
+
/**
|
|
1258
|
+
* Body param: The first name of the contact person for this vendor.
|
|
1259
|
+
*
|
|
1260
|
+
* Maximum length: 25 characters.
|
|
1261
|
+
*/
|
|
1262
|
+
firstName?: string;
|
|
1263
|
+
/**
|
|
1264
|
+
* Body param: Indicates whether this vendor is active. Inactive objects are
|
|
1265
|
+
* typically hidden from views and reports in QuickBooks. Defaults to `true`.
|
|
1266
|
+
*/
|
|
1267
|
+
isActive?: boolean;
|
|
1268
|
+
/**
|
|
1269
|
+
* Body param: Indicates whether tax is charged on top of tax for this vendor, for
|
|
1270
|
+
* use in Canada or the UK.
|
|
1271
|
+
*/
|
|
1272
|
+
isCompoundingTax?: boolean;
|
|
1273
|
+
/**
|
|
1274
|
+
* Body param: Indicates whether this vendor is eligible to receive a 1099 form for
|
|
1275
|
+
* tax reporting purposes. When `true`, then the fields `taxId` and
|
|
1276
|
+
* `billingAddress` are required.
|
|
1277
|
+
*/
|
|
1278
|
+
isEligibleFor1099?: boolean;
|
|
1279
|
+
/**
|
|
1280
|
+
* Body param: Indicates whether this vendor is a sales tax agency.
|
|
1281
|
+
*/
|
|
1282
|
+
isSalesTaxAgency?: boolean;
|
|
1283
|
+
/**
|
|
1284
|
+
* Body param: Indicates whether tax is tracked on purchases for this vendor, for
|
|
1285
|
+
* use in Canada or the UK.
|
|
1286
|
+
*/
|
|
1287
|
+
isTrackingPurchaseTax?: boolean;
|
|
1288
|
+
/**
|
|
1289
|
+
* Body param: Indicates whether tax is tracked on sales for this vendor, for use
|
|
1290
|
+
* in Canada or the UK.
|
|
1291
|
+
*/
|
|
1292
|
+
isTrackingSalesTax?: boolean;
|
|
1293
|
+
/**
|
|
1294
|
+
* Body param: The job title of the contact person for this vendor.
|
|
1295
|
+
*/
|
|
1296
|
+
jobTitle?: string;
|
|
1297
|
+
/**
|
|
1298
|
+
* Body param: The last name of the contact person for this vendor.
|
|
1299
|
+
*
|
|
1300
|
+
* Maximum length: 25 characters.
|
|
1301
|
+
*/
|
|
1302
|
+
lastName?: string;
|
|
1303
|
+
/**
|
|
1304
|
+
* Body param: The middle name of the contact person for this vendor.
|
|
1305
|
+
*
|
|
1306
|
+
* Maximum length: 5 characters.
|
|
1307
|
+
*/
|
|
1308
|
+
middleName?: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* Body param: The case-insensitive unique name of this vendor, unique across all
|
|
1311
|
+
* vendors.
|
|
1312
|
+
*
|
|
1313
|
+
* **NOTE**: Vendors do not have a `fullName` field because they are not
|
|
1314
|
+
* hierarchical objects, which is why `name` is unique for them but not for objects
|
|
1315
|
+
* that have parents.
|
|
1316
|
+
*
|
|
1317
|
+
* Maximum length: 41 characters.
|
|
1318
|
+
*/
|
|
1319
|
+
name?: string;
|
|
1320
|
+
/**
|
|
1321
|
+
* Body param: The vendor's name as it should appear on checks issued to this
|
|
1322
|
+
* vendor.
|
|
1323
|
+
*/
|
|
1324
|
+
nameOnCheck?: string;
|
|
1325
|
+
/**
|
|
1326
|
+
* Body param: A note or comment about this vendor.
|
|
1327
|
+
*/
|
|
1328
|
+
note?: string;
|
|
1329
|
+
/**
|
|
1330
|
+
* Body param: The vendor's primary telephone number.
|
|
1331
|
+
*/
|
|
1332
|
+
phone?: string;
|
|
1333
|
+
/**
|
|
1334
|
+
* Body param: The account used for tracking taxes on purchases for this vendor,
|
|
1335
|
+
* for use in Canada or the UK.
|
|
1336
|
+
*/
|
|
1337
|
+
purchaseTaxAccountId?: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* Body param: The vendor's tax reporting period, for use in Canada or the UK.
|
|
1340
|
+
*/
|
|
1341
|
+
reportingPeriod?: 'monthly' | 'quarterly';
|
|
1342
|
+
/**
|
|
1343
|
+
* Body param: The account used for tracking taxes on sales for this vendor, for
|
|
1344
|
+
* use in Canada or the UK.
|
|
1345
|
+
*/
|
|
1346
|
+
salesTaxAccountId?: string;
|
|
1347
|
+
/**
|
|
1348
|
+
* Body param: The default sales-tax code for transactions with this vendor,
|
|
1349
|
+
* determining whether the transactions are taxable or non-taxable. This can be
|
|
1350
|
+
* overridden at the transaction or transaction-line level.
|
|
1351
|
+
*
|
|
1352
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1353
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1354
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1355
|
+
* non-taxable code to all sales.
|
|
1356
|
+
*/
|
|
1357
|
+
salesTaxCodeId?: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* Body param: The country for which sales tax is collected for this vendor.
|
|
1360
|
+
*/
|
|
1361
|
+
salesTaxCountry?: 'australia' | 'canada' | 'uk' | 'us';
|
|
1362
|
+
/**
|
|
1363
|
+
* Body param: The vendor's sales tax return information, used for tracking and
|
|
1364
|
+
* reporting sales tax liabilities.
|
|
1365
|
+
*/
|
|
1366
|
+
salesTaxReturnId?: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* Body param: The formal salutation title that precedes the name of the contact
|
|
1369
|
+
* person for this vendor, such as "Mr.", "Ms.", or "Dr.".
|
|
1370
|
+
*/
|
|
1371
|
+
salutation?: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Body param: The vendor's shipping address.
|
|
1374
|
+
*/
|
|
1375
|
+
shippingAddress?: VendorUpdateParams.ShippingAddress;
|
|
1376
|
+
/**
|
|
1377
|
+
* Body param: The vendor's tax identification number (e.g., EIN or SSN).
|
|
1378
|
+
*/
|
|
1379
|
+
taxIdentificationNumber?: string;
|
|
1380
|
+
/**
|
|
1381
|
+
* Body param: The vendor's tax registration number, for use in Canada or the UK.
|
|
1382
|
+
*/
|
|
1383
|
+
taxRegistrationNumber?: string;
|
|
1384
|
+
/**
|
|
1385
|
+
* Body param: The vendor's payment terms, defining when payment is due and any
|
|
1386
|
+
* applicable discounts.
|
|
1387
|
+
*/
|
|
1388
|
+
termsId?: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* Body param: The vendor's type, used for categorizing vendors into meaningful
|
|
1391
|
+
* segments, such as industry or region.
|
|
1392
|
+
*/
|
|
1393
|
+
vendorTypeId?: string;
|
|
1394
|
+
}
|
|
1395
|
+
export declare namespace VendorUpdateParams {
|
|
1396
|
+
interface AdditionalContact {
|
|
1397
|
+
/**
|
|
1398
|
+
* The QuickBooks-assigned unique identifier of the contact to update.
|
|
1399
|
+
*/
|
|
1400
|
+
id: string;
|
|
1401
|
+
/**
|
|
1402
|
+
* The current QuickBooks-assigned revision number of the contact object you are
|
|
1403
|
+
* updating, which you can get by fetching the object first. Provide the most
|
|
1404
|
+
* recent `revisionNumber` to ensure you're working with the latest data;
|
|
1405
|
+
* otherwise, the update will return an error.
|
|
1406
|
+
*/
|
|
1407
|
+
revisionNumber: string;
|
|
1408
|
+
/**
|
|
1409
|
+
* Additional custom contact fields for this contact, such as phone numbers or
|
|
1410
|
+
* email addresses.
|
|
1411
|
+
*/
|
|
1412
|
+
customContactFields?: Array<AdditionalContact.CustomContactField>;
|
|
1413
|
+
/**
|
|
1414
|
+
* The contact's first name.
|
|
1415
|
+
*
|
|
1416
|
+
* Maximum length: 25 characters.
|
|
1417
|
+
*/
|
|
1418
|
+
firstName?: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* The contact's job title.
|
|
1421
|
+
*/
|
|
1422
|
+
jobTitle?: string;
|
|
1423
|
+
/**
|
|
1424
|
+
* The contact's last name.
|
|
1425
|
+
*
|
|
1426
|
+
* Maximum length: 25 characters.
|
|
1427
|
+
*/
|
|
1428
|
+
lastName?: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* The contact's middle name.
|
|
1431
|
+
*
|
|
1432
|
+
* Maximum length: 5 characters.
|
|
1433
|
+
*/
|
|
1434
|
+
middleName?: string;
|
|
1435
|
+
/**
|
|
1436
|
+
* The contact's formal salutation title that precedes their name, such as "Mr.",
|
|
1437
|
+
* "Ms.", or "Dr.".
|
|
1438
|
+
*/
|
|
1439
|
+
salutation?: string;
|
|
1440
|
+
}
|
|
1441
|
+
namespace AdditionalContact {
|
|
1442
|
+
interface CustomContactField {
|
|
1443
|
+
/**
|
|
1444
|
+
* The name of the contact field (e.g., "old address", "secondary phone").
|
|
1445
|
+
*/
|
|
1446
|
+
name: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* The value of the contact field.
|
|
1449
|
+
*/
|
|
1450
|
+
value: string;
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
interface AdditionalNote {
|
|
1454
|
+
/**
|
|
1455
|
+
* The ID of the note to update.
|
|
1456
|
+
*/
|
|
1457
|
+
id: number;
|
|
1458
|
+
/**
|
|
1459
|
+
* The text of this note.
|
|
1460
|
+
*/
|
|
1461
|
+
note: string;
|
|
1462
|
+
}
|
|
1463
|
+
/**
|
|
1464
|
+
* The vendor's billing address.
|
|
1465
|
+
*/
|
|
1466
|
+
interface BillingAddress {
|
|
1467
|
+
/**
|
|
1468
|
+
* The city, district, suburb, town, or village name of the address.
|
|
1469
|
+
*
|
|
1470
|
+
* Maximum length: 31 characters.
|
|
1471
|
+
*/
|
|
1472
|
+
city?: string;
|
|
1473
|
+
/**
|
|
1474
|
+
* The country name of the address.
|
|
1475
|
+
*/
|
|
1476
|
+
country?: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* The first line of the address (e.g., street, PO Box, or company name).
|
|
1479
|
+
*
|
|
1480
|
+
* Maximum length: 41 characters.
|
|
1481
|
+
*/
|
|
1482
|
+
line1?: string;
|
|
1483
|
+
/**
|
|
1484
|
+
* The second line of the address, if needed (e.g., apartment, suite, unit, or
|
|
1485
|
+
* building).
|
|
1486
|
+
*
|
|
1487
|
+
* Maximum length: 41 characters.
|
|
1488
|
+
*/
|
|
1489
|
+
line2?: string;
|
|
1490
|
+
/**
|
|
1491
|
+
* The third line of the address, if needed.
|
|
1492
|
+
*
|
|
1493
|
+
* Maximum length: 41 characters.
|
|
1494
|
+
*/
|
|
1495
|
+
line3?: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* The fourth line of the address, if needed.
|
|
1498
|
+
*
|
|
1499
|
+
* Maximum length: 41 characters.
|
|
1500
|
+
*/
|
|
1501
|
+
line4?: string;
|
|
1502
|
+
/**
|
|
1503
|
+
* The fifth line of the address, if needed.
|
|
1504
|
+
*
|
|
1505
|
+
* Maximum length: 41 characters.
|
|
1506
|
+
*/
|
|
1507
|
+
line5?: string;
|
|
1508
|
+
/**
|
|
1509
|
+
* A note written at the bottom of the address in the form in which it appears,
|
|
1510
|
+
* such as the invoice form.
|
|
1511
|
+
*/
|
|
1512
|
+
note?: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* The postal code or ZIP code of the address.
|
|
1515
|
+
*
|
|
1516
|
+
* Maximum length: 13 characters.
|
|
1517
|
+
*/
|
|
1518
|
+
postalCode?: string;
|
|
1519
|
+
/**
|
|
1520
|
+
* The state, county, province, or region name of the address.
|
|
1521
|
+
*
|
|
1522
|
+
* Maximum length: 21 characters.
|
|
1523
|
+
*/
|
|
1524
|
+
state?: string;
|
|
1525
|
+
}
|
|
1526
|
+
interface CustomContactField {
|
|
1527
|
+
/**
|
|
1528
|
+
* The name of the contact field (e.g., "old address", "secondary phone").
|
|
1529
|
+
*/
|
|
1530
|
+
name: string;
|
|
1531
|
+
/**
|
|
1532
|
+
* The value of the contact field.
|
|
1533
|
+
*/
|
|
1534
|
+
value: string;
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* The vendor's shipping address.
|
|
1538
|
+
*/
|
|
1539
|
+
interface ShippingAddress {
|
|
1540
|
+
/**
|
|
1541
|
+
* The city, district, suburb, town, or village name of the address.
|
|
1542
|
+
*
|
|
1543
|
+
* Maximum length: 31 characters.
|
|
1544
|
+
*/
|
|
1545
|
+
city?: string;
|
|
1546
|
+
/**
|
|
1547
|
+
* The country name of the address.
|
|
1548
|
+
*/
|
|
1549
|
+
country?: string;
|
|
1550
|
+
/**
|
|
1551
|
+
* The first line of the address (e.g., street, PO Box, or company name).
|
|
1552
|
+
*
|
|
1553
|
+
* Maximum length: 41 characters.
|
|
1554
|
+
*/
|
|
1555
|
+
line1?: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* The second line of the address, if needed (e.g., apartment, suite, unit, or
|
|
1558
|
+
* building).
|
|
1559
|
+
*
|
|
1560
|
+
* Maximum length: 41 characters.
|
|
1561
|
+
*/
|
|
1562
|
+
line2?: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* The third line of the address, if needed.
|
|
1565
|
+
*
|
|
1566
|
+
* Maximum length: 41 characters.
|
|
1567
|
+
*/
|
|
1568
|
+
line3?: string;
|
|
1569
|
+
/**
|
|
1570
|
+
* The fourth line of the address, if needed.
|
|
1571
|
+
*
|
|
1572
|
+
* Maximum length: 41 characters.
|
|
1573
|
+
*/
|
|
1574
|
+
line4?: string;
|
|
1575
|
+
/**
|
|
1576
|
+
* The fifth line of the address, if needed.
|
|
1577
|
+
*
|
|
1578
|
+
* Maximum length: 41 characters.
|
|
1579
|
+
*/
|
|
1580
|
+
line5?: string;
|
|
1581
|
+
/**
|
|
1582
|
+
* A note written at the bottom of the address in the form in which it appears,
|
|
1583
|
+
* such as the invoice form.
|
|
1584
|
+
*/
|
|
1585
|
+
note?: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* The postal code or ZIP code of the address.
|
|
1588
|
+
*
|
|
1589
|
+
* Maximum length: 13 characters.
|
|
1590
|
+
*/
|
|
1591
|
+
postalCode?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
* The state, county, province, or region name of the address.
|
|
1594
|
+
*
|
|
1595
|
+
* Maximum length: 21 characters.
|
|
1596
|
+
*/
|
|
1597
|
+
state?: string;
|
|
1598
|
+
}
|
|
1599
|
+
}
|
|
1600
|
+
export interface VendorListParams extends CursorPageParams {
|
|
1601
|
+
/**
|
|
1602
|
+
* Header param: The ID of the End-User to receive this request.
|
|
1603
|
+
*/
|
|
1604
|
+
conductorEndUserId: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Query param: Filter for vendors of these classes. A class is a way end-users can
|
|
1607
|
+
* categorize vendors in QuickBooks.
|
|
1608
|
+
*/
|
|
1609
|
+
classIds?: Array<string>;
|
|
1610
|
+
/**
|
|
1611
|
+
* Query param: Filter for vendors in these currencies.
|
|
1612
|
+
*/
|
|
1613
|
+
currencyIds?: Array<string>;
|
|
1614
|
+
/**
|
|
1615
|
+
* Query param: Filter for specific vendors by their QuickBooks-assigned unique
|
|
1616
|
+
* identifier(s).
|
|
1617
|
+
*
|
|
1618
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
1619
|
+
* query parameters for this request.
|
|
1620
|
+
*
|
|
1621
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
1622
|
+
* request will return an error.
|
|
1623
|
+
*/
|
|
1624
|
+
ids?: Array<string>;
|
|
1625
|
+
/**
|
|
1626
|
+
* Query param: Filter for vendors whose `name` contains this substring,
|
|
1627
|
+
* case-insensitive.
|
|
1628
|
+
*
|
|
1629
|
+
* **NOTE**: If you use this parameter, you cannot also use `nameStartsWith` or
|
|
1630
|
+
* `nameEndsWith`.
|
|
1631
|
+
*/
|
|
1632
|
+
nameContains?: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* Query param: Filter for vendors whose `name` ends with this substring,
|
|
1635
|
+
* case-insensitive.
|
|
1636
|
+
*
|
|
1637
|
+
* **NOTE**: If you use this parameter, you cannot also use `nameContains` or
|
|
1638
|
+
* `nameStartsWith`.
|
|
1639
|
+
*/
|
|
1640
|
+
nameEndsWith?: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* Query param: Filter for vendors whose `name` is alphabetically greater than or
|
|
1643
|
+
* equal to this value.
|
|
1644
|
+
*/
|
|
1645
|
+
nameFrom?: string;
|
|
1646
|
+
/**
|
|
1647
|
+
* Query param: Filter for specific vendors by their name(s), case-insensitive.
|
|
1648
|
+
* Like `id`, `name` is a unique identifier for a vendor.
|
|
1649
|
+
*
|
|
1650
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
1651
|
+
* query parameters for this request.
|
|
1652
|
+
*
|
|
1653
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
1654
|
+
* request will return an error.
|
|
1655
|
+
*/
|
|
1656
|
+
names?: Array<string>;
|
|
1657
|
+
/**
|
|
1658
|
+
* Query param: Filter for vendors whose `name` starts with this substring,
|
|
1659
|
+
* case-insensitive.
|
|
1660
|
+
*
|
|
1661
|
+
* **NOTE**: If you use this parameter, you cannot also use `nameContains` or
|
|
1662
|
+
* `nameEndsWith`.
|
|
1663
|
+
*/
|
|
1664
|
+
nameStartsWith?: string;
|
|
1665
|
+
/**
|
|
1666
|
+
* Query param: Filter for vendors whose `name` is alphabetically less than or
|
|
1667
|
+
* equal to this value.
|
|
1668
|
+
*/
|
|
1669
|
+
nameTo?: string;
|
|
1670
|
+
/**
|
|
1671
|
+
* Query param: Filter for vendors that are active, inactive, or both.
|
|
1672
|
+
*/
|
|
1673
|
+
status?: 'active' | 'all' | 'inactive';
|
|
1674
|
+
/**
|
|
1675
|
+
* Query param: Filter for vendors whose `totalBalance` equals this amount,
|
|
1676
|
+
* represented as a decimal string. You can only use one total-balance filter at a
|
|
1677
|
+
* time.
|
|
1678
|
+
*/
|
|
1679
|
+
totalBalance?: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* Query param: Filter for vendors whose `totalBalance` is greater than this
|
|
1682
|
+
* amount, represented as a decimal string. You can only use one total-balance
|
|
1683
|
+
* filter at a time.
|
|
1684
|
+
*/
|
|
1685
|
+
totalBalanceGreaterThan?: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* Query param: Filter for vendors whose `totalBalance` is greater than or equal to
|
|
1688
|
+
* this amount, represented as a decimal string. You can only use one total-balance
|
|
1689
|
+
* filter at a time.
|
|
1690
|
+
*/
|
|
1691
|
+
totalBalanceGreaterThanOrEqualTo?: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* Query param: Filter for vendors whose `totalBalance` is less than this amount,
|
|
1694
|
+
* represented as a decimal string. You can only use one total-balance filter at a
|
|
1695
|
+
* time.
|
|
1696
|
+
*/
|
|
1697
|
+
totalBalanceLessThan?: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* Query param: Filter for vendors whose `totalBalance` is less than or equal to
|
|
1700
|
+
* this amount, represented as a decimal string. You can only use one total-balance
|
|
1701
|
+
* filter at a time.
|
|
1702
|
+
*/
|
|
1703
|
+
totalBalanceLessThanOrEqualTo?: string;
|
|
1704
|
+
/**
|
|
1705
|
+
* Query param: Filter for vendors updated on or after this date/time. Accepts the
|
|
1706
|
+
* following ISO 8601 formats:
|
|
1707
|
+
*
|
|
1708
|
+
* - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
|
|
1709
|
+
* **start of the specified day** in the local timezone of the end-user's
|
|
1710
|
+
* computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).
|
|
1711
|
+
* - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
|
|
1712
|
+
* interprets the timestamp in the local timezone of the end-user's computer.
|
|
1713
|
+
* - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
|
|
1714
|
+
* interprets the timestamp using the specified timezone.
|
|
1715
|
+
*/
|
|
1716
|
+
updatedAfter?: string;
|
|
1717
|
+
/**
|
|
1718
|
+
* Query param: Filter for vendors updated on or before this date/time. Accepts the
|
|
1719
|
+
* following ISO 8601 formats:
|
|
1720
|
+
*
|
|
1721
|
+
* - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
|
|
1722
|
+
* **end of the specified day** in the local timezone of the end-user's computer
|
|
1723
|
+
* (e.g., `2025-01-01` → `2025-01-01T23:59:59`).
|
|
1724
|
+
* - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
|
|
1725
|
+
* interprets the timestamp in the local timezone of the end-user's computer.
|
|
1726
|
+
* - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
|
|
1727
|
+
* interprets the timestamp using the specified timezone.
|
|
1728
|
+
*/
|
|
1729
|
+
updatedBefore?: string;
|
|
1730
|
+
}
|
|
1731
|
+
export declare namespace Vendors {
|
|
1732
|
+
export { type Vendor as Vendor, type VendorsCursorPage as VendorsCursorPage, type VendorCreateParams as VendorCreateParams, type VendorRetrieveParams as VendorRetrieveParams, type VendorUpdateParams as VendorUpdateParams, type VendorListParams as VendorListParams, };
|
|
1733
|
+
}
|
|
1734
|
+
//# sourceMappingURL=vendors.d.mts.map
|