conductor-node 12.43.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 +20 -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 +16 -21
- 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 +16 -21
- 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 +27 -35
- 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 +30 -38
- 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,2316 @@
|
|
|
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 CreditCardCharges extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Creates a new credit card charge for the specified account.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const creditCardCharge =
|
|
12
|
+
* await conductor.qbd.creditCardCharges.create({
|
|
13
|
+
* accountId: '80000001-1234567890',
|
|
14
|
+
* transactionDate: '2024-10-01',
|
|
15
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(params: CreditCardChargeCreateParams, options?: RequestOptions): APIPromise<CreditCardCharge>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieves a credit card charge by ID.
|
|
22
|
+
*
|
|
23
|
+
* **IMPORTANT:** If you need to fetch multiple specific credit card charges by ID,
|
|
24
|
+
* use the list endpoint instead with the `ids` parameter. It accepts an array of
|
|
25
|
+
* IDs so you can batch the request into a single call, which is significantly
|
|
26
|
+
* faster.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const creditCardCharge =
|
|
31
|
+
* await conductor.qbd.creditCardCharges.retrieve(
|
|
32
|
+
* '123ABC-1234567890',
|
|
33
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
retrieve(id: string, params: CreditCardChargeRetrieveParams, options?: RequestOptions): APIPromise<CreditCardCharge>;
|
|
38
|
+
/**
|
|
39
|
+
* Updates an existing credit card charge so you can adjust the credit card
|
|
40
|
+
* account, payee, memo, transaction date, and expense or item lines. The total is
|
|
41
|
+
* recalculated from the line details.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const creditCardCharge =
|
|
46
|
+
* await conductor.qbd.creditCardCharges.update(
|
|
47
|
+
* '123ABC-1234567890',
|
|
48
|
+
* {
|
|
49
|
+
* revisionNumber: '1721172183',
|
|
50
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
51
|
+
* },
|
|
52
|
+
* );
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
update(id: string, params: CreditCardChargeUpdateParams, options?: RequestOptions): APIPromise<CreditCardCharge>;
|
|
56
|
+
/**
|
|
57
|
+
* Returns a list of credit card charges. Use the `cursor` parameter to paginate
|
|
58
|
+
* through the results.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* // Automatically fetches more pages as needed.
|
|
63
|
+
* for await (const creditCardCharge of conductor.qbd.creditCardCharges.list(
|
|
64
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
65
|
+
* )) {
|
|
66
|
+
* // ...
|
|
67
|
+
* }
|
|
68
|
+
* ```
|
|
69
|
+
*/
|
|
70
|
+
list(params: CreditCardChargeListParams, options?: RequestOptions): PagePromise<CreditCardChargesCursorPage, CreditCardCharge>;
|
|
71
|
+
/**
|
|
72
|
+
* Permanently deletes a a credit card charge. The deletion will fail if the credit
|
|
73
|
+
* card charge is currently in use or has any linked transactions that are in use.
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const creditCardCharge =
|
|
78
|
+
* await conductor.qbd.creditCardCharges.delete(
|
|
79
|
+
* '123ABC-1234567890',
|
|
80
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
81
|
+
* );
|
|
82
|
+
* ```
|
|
83
|
+
*/
|
|
84
|
+
delete(id: string, params: CreditCardChargeDeleteParams, options?: RequestOptions): APIPromise<CreditCardChargeDeleteResponse>;
|
|
85
|
+
}
|
|
86
|
+
export type CreditCardChargesCursorPage = CursorPage<CreditCardCharge>;
|
|
87
|
+
export interface CreditCardCharge {
|
|
88
|
+
/**
|
|
89
|
+
* The unique identifier assigned by QuickBooks to this credit card charge. This ID
|
|
90
|
+
* is unique across all transaction types.
|
|
91
|
+
*/
|
|
92
|
+
id: string;
|
|
93
|
+
/**
|
|
94
|
+
* The bank or credit card account to which money is owed for this credit card
|
|
95
|
+
* charge.
|
|
96
|
+
*/
|
|
97
|
+
account: CreditCardCharge.Account;
|
|
98
|
+
/**
|
|
99
|
+
* The total monetary amount of this credit card charge, represented as a decimal
|
|
100
|
+
* string. This equals the sum of the amounts in the credit card charge's expense
|
|
101
|
+
* lines, item lines, and item group lines.
|
|
102
|
+
*/
|
|
103
|
+
amount: string;
|
|
104
|
+
/**
|
|
105
|
+
* The monetary amount of this credit card charge converted to the home currency of
|
|
106
|
+
* the QuickBooks company file. Represented as a decimal string.
|
|
107
|
+
*/
|
|
108
|
+
amountInHomeCurrency: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* The date and time when this credit card charge was created, in ISO 8601 format
|
|
111
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
|
|
112
|
+
* timezone of the end-user's computer.
|
|
113
|
+
*/
|
|
114
|
+
createdAt: string;
|
|
115
|
+
/**
|
|
116
|
+
* The credit card charge's currency. For built-in currencies, the name and code
|
|
117
|
+
* are standard international values. For user-defined currencies, all values are
|
|
118
|
+
* editable.
|
|
119
|
+
*/
|
|
120
|
+
currency: CreditCardCharge.Currency | null;
|
|
121
|
+
/**
|
|
122
|
+
* The custom fields for the credit card charge object, added as user-defined data
|
|
123
|
+
* extensions, not included in the standard QuickBooks object.
|
|
124
|
+
*/
|
|
125
|
+
customFields: Array<CreditCardCharge.CustomField>;
|
|
126
|
+
/**
|
|
127
|
+
* The market exchange rate between this credit card charge's currency and the home
|
|
128
|
+
* currency in QuickBooks at the time of this transaction. Represented as a decimal
|
|
129
|
+
* value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
|
|
130
|
+
*/
|
|
131
|
+
exchangeRate: number | null;
|
|
132
|
+
/**
|
|
133
|
+
* The credit card charge's expense lines, each representing one line in this
|
|
134
|
+
* expense.
|
|
135
|
+
*/
|
|
136
|
+
expenseLines: Array<CreditCardCharge.ExpenseLine>;
|
|
137
|
+
/**
|
|
138
|
+
* A globally unique identifier (GUID) you, the developer, can provide for tracking
|
|
139
|
+
* this object in your external system. This field is immutable and can only be set
|
|
140
|
+
* during object creation.
|
|
141
|
+
*/
|
|
142
|
+
externalId: string | null;
|
|
143
|
+
/**
|
|
144
|
+
* The credit card charge's item group lines, each representing a predefined set of
|
|
145
|
+
* items bundled together because they are commonly purchased together or grouped
|
|
146
|
+
* for faster entry.
|
|
147
|
+
*/
|
|
148
|
+
itemGroupLines: Array<CreditCardCharge.ItemGroupLine>;
|
|
149
|
+
/**
|
|
150
|
+
* The credit card charge's item lines, each representing the purchase of a
|
|
151
|
+
* specific item or service.
|
|
152
|
+
*/
|
|
153
|
+
itemLines: Array<CreditCardCharge.ItemLine>;
|
|
154
|
+
/**
|
|
155
|
+
* A memo or note for this credit card charge.
|
|
156
|
+
*/
|
|
157
|
+
memo: string | null;
|
|
158
|
+
/**
|
|
159
|
+
* The type of object. This value is always `"qbd_credit_card_charge"`.
|
|
160
|
+
*/
|
|
161
|
+
objectType: 'qbd_credit_card_charge';
|
|
162
|
+
/**
|
|
163
|
+
* The vendor or company from whom merchandise or services were purchased for this
|
|
164
|
+
* credit card charge.
|
|
165
|
+
*/
|
|
166
|
+
payee: CreditCardCharge.Payee | null;
|
|
167
|
+
/**
|
|
168
|
+
* The case-sensitive user-defined reference number for this credit card charge,
|
|
169
|
+
* which can be used to identify the transaction in QuickBooks. This value is not
|
|
170
|
+
* required to be unique and can be arbitrarily changed by the QuickBooks user.
|
|
171
|
+
*/
|
|
172
|
+
refNumber: string | null;
|
|
173
|
+
/**
|
|
174
|
+
* The current QuickBooks-assigned revision number of this credit card charge
|
|
175
|
+
* object, which changes each time the object is modified. When updating this
|
|
176
|
+
* object, you must provide the most recent `revisionNumber` to ensure you're
|
|
177
|
+
* working with the latest data; otherwise, the update will return an error.
|
|
178
|
+
*/
|
|
179
|
+
revisionNumber: string;
|
|
180
|
+
/**
|
|
181
|
+
* The sales-tax code for this credit card charge, determining whether it is
|
|
182
|
+
* taxable or non-taxable. If set, this overrides any sales-tax codes defined on
|
|
183
|
+
* the payee. This can be overridden on the credit card charge's individual lines.
|
|
184
|
+
*
|
|
185
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
186
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
187
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
188
|
+
* non-taxable code to all sales.
|
|
189
|
+
*/
|
|
190
|
+
salesTaxCode: CreditCardCharge.SalesTaxCode | null;
|
|
191
|
+
/**
|
|
192
|
+
* The date of this credit card charge, in ISO 8601 format (YYYY-MM-DD).
|
|
193
|
+
*/
|
|
194
|
+
transactionDate: string;
|
|
195
|
+
/**
|
|
196
|
+
* The date and time when this credit card charge was last updated, in ISO 8601
|
|
197
|
+
* format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the
|
|
198
|
+
* local timezone of the end-user's computer.
|
|
199
|
+
*/
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
}
|
|
202
|
+
export declare namespace CreditCardCharge {
|
|
203
|
+
/**
|
|
204
|
+
* The bank or credit card account to which money is owed for this credit card
|
|
205
|
+
* charge.
|
|
206
|
+
*/
|
|
207
|
+
interface Account {
|
|
208
|
+
/**
|
|
209
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
210
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
211
|
+
* types.
|
|
212
|
+
*/
|
|
213
|
+
id: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
216
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
217
|
+
* case-sensitive.
|
|
218
|
+
*/
|
|
219
|
+
fullName: string | null;
|
|
220
|
+
}
|
|
221
|
+
/**
|
|
222
|
+
* The credit card charge's currency. For built-in currencies, the name and code
|
|
223
|
+
* are standard international values. For user-defined currencies, all values are
|
|
224
|
+
* editable.
|
|
225
|
+
*/
|
|
226
|
+
interface Currency {
|
|
227
|
+
/**
|
|
228
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
229
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
230
|
+
* types.
|
|
231
|
+
*/
|
|
232
|
+
id: string | null;
|
|
233
|
+
/**
|
|
234
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
235
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
236
|
+
* case-sensitive.
|
|
237
|
+
*/
|
|
238
|
+
fullName: string | null;
|
|
239
|
+
}
|
|
240
|
+
interface CustomField {
|
|
241
|
+
/**
|
|
242
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
243
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
244
|
+
*/
|
|
245
|
+
name: string;
|
|
246
|
+
/**
|
|
247
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
248
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
249
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
250
|
+
* fields that are only visible to the application that created them, this is a
|
|
251
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
252
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
253
|
+
* objects.
|
|
254
|
+
*/
|
|
255
|
+
ownerId: string;
|
|
256
|
+
/**
|
|
257
|
+
* The data type of this custom field.
|
|
258
|
+
*/
|
|
259
|
+
type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
|
|
260
|
+
/**
|
|
261
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
262
|
+
* type.
|
|
263
|
+
*/
|
|
264
|
+
value: string;
|
|
265
|
+
}
|
|
266
|
+
interface ExpenseLine {
|
|
267
|
+
/**
|
|
268
|
+
* The unique identifier assigned by QuickBooks to this expense line. This ID is
|
|
269
|
+
* unique across all transaction line types.
|
|
270
|
+
*/
|
|
271
|
+
id: string;
|
|
272
|
+
/**
|
|
273
|
+
* The expense account being debited (increased) for this expense line. The
|
|
274
|
+
* corresponding account being credited is usually a liability account (e.g.,
|
|
275
|
+
* Accounts-Payable) or an asset account (e.g., Cash), depending on the transaction
|
|
276
|
+
* type.
|
|
277
|
+
*/
|
|
278
|
+
account: ExpenseLine.Account | null;
|
|
279
|
+
/**
|
|
280
|
+
* The monetary amount of this expense line, represented as a decimal string.
|
|
281
|
+
*/
|
|
282
|
+
amount: string | null;
|
|
283
|
+
/**
|
|
284
|
+
* The billing status of this expense line.
|
|
285
|
+
*/
|
|
286
|
+
billingStatus: 'billable' | 'has_been_billed' | 'not_billable' | null;
|
|
287
|
+
/**
|
|
288
|
+
* The expense line's class. Classes can be used to categorize objects into
|
|
289
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
290
|
+
* QuickBooks, class tracking is off by default. If a class is specified for the
|
|
291
|
+
* entire parent transaction, it is automatically applied to all expense lines
|
|
292
|
+
* unless overridden here, at the transaction line level.
|
|
293
|
+
*/
|
|
294
|
+
class: ExpenseLine.Class | null;
|
|
295
|
+
/**
|
|
296
|
+
* The custom fields for the expense line object, added as user-defined data
|
|
297
|
+
* extensions, not included in the standard QuickBooks object.
|
|
298
|
+
*/
|
|
299
|
+
customFields: Array<ExpenseLine.CustomField>;
|
|
300
|
+
/**
|
|
301
|
+
* A memo or note for this expense line.
|
|
302
|
+
*/
|
|
303
|
+
memo: string | null;
|
|
304
|
+
/**
|
|
305
|
+
* The type of object. This value is always `"qbd_expense_line"`.
|
|
306
|
+
*/
|
|
307
|
+
objectType: 'qbd_expense_line';
|
|
308
|
+
/**
|
|
309
|
+
* If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
|
|
310
|
+
* expense's vendor (not the customer). If `account` refers to any other type of
|
|
311
|
+
* account, `payee` refers to the expense's customer (not the vendor).
|
|
312
|
+
*/
|
|
313
|
+
payee: ExpenseLine.Payee | null;
|
|
314
|
+
/**
|
|
315
|
+
* The expense line's sales representative. Sales representatives can be employees,
|
|
316
|
+
* vendors, or other names in QuickBooks.
|
|
317
|
+
*/
|
|
318
|
+
salesRepresentative: ExpenseLine.SalesRepresentative | null;
|
|
319
|
+
/**
|
|
320
|
+
* The sales-tax code for this expense line, determining whether it is taxable or
|
|
321
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
322
|
+
* transaction or the associated item.
|
|
323
|
+
*
|
|
324
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
325
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
326
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
327
|
+
* non-taxable code to all sales.
|
|
328
|
+
*/
|
|
329
|
+
salesTaxCode: ExpenseLine.SalesTaxCode | null;
|
|
330
|
+
}
|
|
331
|
+
namespace ExpenseLine {
|
|
332
|
+
/**
|
|
333
|
+
* The expense account being debited (increased) for this expense line. The
|
|
334
|
+
* corresponding account being credited is usually a liability account (e.g.,
|
|
335
|
+
* Accounts-Payable) or an asset account (e.g., Cash), depending on the transaction
|
|
336
|
+
* type.
|
|
337
|
+
*/
|
|
338
|
+
interface Account {
|
|
339
|
+
/**
|
|
340
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
341
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
342
|
+
* types.
|
|
343
|
+
*/
|
|
344
|
+
id: string | null;
|
|
345
|
+
/**
|
|
346
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
347
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
348
|
+
* case-sensitive.
|
|
349
|
+
*/
|
|
350
|
+
fullName: string | null;
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* The expense line's class. Classes can be used to categorize objects into
|
|
354
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
355
|
+
* QuickBooks, class tracking is off by default. If a class is specified for the
|
|
356
|
+
* entire parent transaction, it is automatically applied to all expense lines
|
|
357
|
+
* unless overridden here, at the transaction line level.
|
|
358
|
+
*/
|
|
359
|
+
interface Class {
|
|
360
|
+
/**
|
|
361
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
362
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
363
|
+
* types.
|
|
364
|
+
*/
|
|
365
|
+
id: string | null;
|
|
366
|
+
/**
|
|
367
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
368
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
369
|
+
* case-sensitive.
|
|
370
|
+
*/
|
|
371
|
+
fullName: string | null;
|
|
372
|
+
}
|
|
373
|
+
interface CustomField {
|
|
374
|
+
/**
|
|
375
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
376
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
377
|
+
*/
|
|
378
|
+
name: string;
|
|
379
|
+
/**
|
|
380
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
381
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
382
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
383
|
+
* fields that are only visible to the application that created them, this is a
|
|
384
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
385
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
386
|
+
* objects.
|
|
387
|
+
*/
|
|
388
|
+
ownerId: string;
|
|
389
|
+
/**
|
|
390
|
+
* The data type of this custom field.
|
|
391
|
+
*/
|
|
392
|
+
type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
|
|
393
|
+
/**
|
|
394
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
395
|
+
* type.
|
|
396
|
+
*/
|
|
397
|
+
value: string;
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
|
|
401
|
+
* expense's vendor (not the customer). If `account` refers to any other type of
|
|
402
|
+
* account, `payee` refers to the expense's customer (not the vendor).
|
|
403
|
+
*/
|
|
404
|
+
interface Payee {
|
|
405
|
+
/**
|
|
406
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
407
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
408
|
+
* types.
|
|
409
|
+
*/
|
|
410
|
+
id: string | null;
|
|
411
|
+
/**
|
|
412
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
413
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
414
|
+
* case-sensitive.
|
|
415
|
+
*/
|
|
416
|
+
fullName: string | null;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* The expense line's sales representative. Sales representatives can be employees,
|
|
420
|
+
* vendors, or other names in QuickBooks.
|
|
421
|
+
*/
|
|
422
|
+
interface SalesRepresentative {
|
|
423
|
+
/**
|
|
424
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
425
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
426
|
+
* types.
|
|
427
|
+
*/
|
|
428
|
+
id: string | null;
|
|
429
|
+
/**
|
|
430
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
431
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
432
|
+
* case-sensitive.
|
|
433
|
+
*/
|
|
434
|
+
fullName: string | null;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* The sales-tax code for this expense line, determining whether it is taxable or
|
|
438
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
439
|
+
* transaction or the associated item.
|
|
440
|
+
*
|
|
441
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
442
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
443
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
444
|
+
* non-taxable code to all sales.
|
|
445
|
+
*/
|
|
446
|
+
interface SalesTaxCode {
|
|
447
|
+
/**
|
|
448
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
449
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
450
|
+
* types.
|
|
451
|
+
*/
|
|
452
|
+
id: string | null;
|
|
453
|
+
/**
|
|
454
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
455
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
456
|
+
* case-sensitive.
|
|
457
|
+
*/
|
|
458
|
+
fullName: string | null;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
interface ItemGroupLine {
|
|
462
|
+
/**
|
|
463
|
+
* The unique identifier assigned by QuickBooks to this item group line. This ID is
|
|
464
|
+
* unique across all transaction line types.
|
|
465
|
+
*/
|
|
466
|
+
id: string;
|
|
467
|
+
/**
|
|
468
|
+
* The custom fields for the item group line object, added as user-defined data
|
|
469
|
+
* extensions, not included in the standard QuickBooks object.
|
|
470
|
+
*/
|
|
471
|
+
customFields: Array<ItemGroupLine.CustomField>;
|
|
472
|
+
/**
|
|
473
|
+
* A description of this item group line.
|
|
474
|
+
*/
|
|
475
|
+
description: string | null;
|
|
476
|
+
/**
|
|
477
|
+
* The item group line's item group, representing a predefined set of items bundled
|
|
478
|
+
* because they are commonly purchased together or grouped for faster entry.
|
|
479
|
+
*/
|
|
480
|
+
itemGroup: ItemGroupLine.ItemGroup;
|
|
481
|
+
/**
|
|
482
|
+
* The item group line's item lines, each representing the purchase of a specific
|
|
483
|
+
* item or service.
|
|
484
|
+
*/
|
|
485
|
+
itemLines: Array<ItemGroupLine.ItemLine>;
|
|
486
|
+
/**
|
|
487
|
+
* The type of object. This value is always `"qbd_item_group_line"`.
|
|
488
|
+
*/
|
|
489
|
+
objectType: 'qbd_item_group_line';
|
|
490
|
+
/**
|
|
491
|
+
* Specifies an alternative unit-of-measure set when updating this item group
|
|
492
|
+
* line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
|
|
493
|
+
* select units from a different set than the item's default unit-of-measure set,
|
|
494
|
+
* which remains unchanged on the item itself. The override applies only to this
|
|
495
|
+
* specific line. For example, you can sell an item typically measured in volume
|
|
496
|
+
* units using weight units in a specific transaction by specifying a different
|
|
497
|
+
* unit-of-measure set with this field.
|
|
498
|
+
*/
|
|
499
|
+
overrideUnitOfMeasureSet: ItemGroupLine.OverrideUnitOfMeasureSet | null;
|
|
500
|
+
/**
|
|
501
|
+
* The quantity of the item group associated with this item group line. This field
|
|
502
|
+
* cannot be cleared.
|
|
503
|
+
*
|
|
504
|
+
* **NOTE**: Do not use this field if the associated item group is a discount item
|
|
505
|
+
* group.
|
|
506
|
+
*/
|
|
507
|
+
quantity: number | null;
|
|
508
|
+
/**
|
|
509
|
+
* The total monetary amount of this item group line, equivalent to the sum of the
|
|
510
|
+
* amounts in `lines`, represented as a decimal string.
|
|
511
|
+
*/
|
|
512
|
+
totalAmount: string;
|
|
513
|
+
/**
|
|
514
|
+
* The unit-of-measure used for the `quantity` in this item group line. Must be a
|
|
515
|
+
* valid unit within the item's available units of measure.
|
|
516
|
+
*/
|
|
517
|
+
unitOfMeasure: string | null;
|
|
518
|
+
}
|
|
519
|
+
namespace ItemGroupLine {
|
|
520
|
+
interface CustomField {
|
|
521
|
+
/**
|
|
522
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
523
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
524
|
+
*/
|
|
525
|
+
name: string;
|
|
526
|
+
/**
|
|
527
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
528
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
529
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
530
|
+
* fields that are only visible to the application that created them, this is a
|
|
531
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
532
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
533
|
+
* objects.
|
|
534
|
+
*/
|
|
535
|
+
ownerId: string;
|
|
536
|
+
/**
|
|
537
|
+
* The data type of this custom field.
|
|
538
|
+
*/
|
|
539
|
+
type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
|
|
540
|
+
/**
|
|
541
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
542
|
+
* type.
|
|
543
|
+
*/
|
|
544
|
+
value: string;
|
|
545
|
+
}
|
|
546
|
+
/**
|
|
547
|
+
* The item group line's item group, representing a predefined set of items bundled
|
|
548
|
+
* because they are commonly purchased together or grouped for faster entry.
|
|
549
|
+
*/
|
|
550
|
+
interface ItemGroup {
|
|
551
|
+
/**
|
|
552
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
553
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
554
|
+
* types.
|
|
555
|
+
*/
|
|
556
|
+
id: string | null;
|
|
557
|
+
/**
|
|
558
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
559
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
560
|
+
* case-sensitive.
|
|
561
|
+
*/
|
|
562
|
+
fullName: string | null;
|
|
563
|
+
}
|
|
564
|
+
interface ItemLine {
|
|
565
|
+
/**
|
|
566
|
+
* The unique identifier assigned by QuickBooks to this item line. This ID is
|
|
567
|
+
* unique across all transaction line types.
|
|
568
|
+
*/
|
|
569
|
+
id: string;
|
|
570
|
+
/**
|
|
571
|
+
* The monetary amount of this item line, represented as a decimal string. If both
|
|
572
|
+
* `quantity` and `cost` are specified but not `amount`, QuickBooks will use them
|
|
573
|
+
* to calculate `amount`. If `amount`, `cost`, and `quantity` are all unspecified,
|
|
574
|
+
* then QuickBooks will calculate `amount` based on a `quantity` of `1` and the
|
|
575
|
+
* suggested `cost`. This field cannot be cleared.
|
|
576
|
+
*/
|
|
577
|
+
amount: string | null;
|
|
578
|
+
/**
|
|
579
|
+
* The billing status of this item line.
|
|
580
|
+
*/
|
|
581
|
+
billingStatus: 'billable' | 'has_been_billed' | 'not_billable' | null;
|
|
582
|
+
/**
|
|
583
|
+
* The item line's class. Classes can be used to categorize objects into meaningful
|
|
584
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
585
|
+
* tracking is off by default. If a class is specified for the entire parent
|
|
586
|
+
* transaction, it is automatically applied to all item lines unless overridden
|
|
587
|
+
* here, at the transaction line level.
|
|
588
|
+
*/
|
|
589
|
+
class: ItemLine.Class | null;
|
|
590
|
+
/**
|
|
591
|
+
* The cost of this item line, represented as a decimal string. If both `quantity`
|
|
592
|
+
* and `amount` are specified but not `cost`, QuickBooks will use them to calculate
|
|
593
|
+
* `cost`.
|
|
594
|
+
*/
|
|
595
|
+
cost: string | null;
|
|
596
|
+
/**
|
|
597
|
+
* The customer or customer-job associated with this item line.
|
|
598
|
+
*/
|
|
599
|
+
customer: ItemLine.Customer | null;
|
|
600
|
+
/**
|
|
601
|
+
* The custom fields for the item line object, added as user-defined data
|
|
602
|
+
* extensions, not included in the standard QuickBooks object.
|
|
603
|
+
*/
|
|
604
|
+
customFields: Array<ItemLine.CustomField>;
|
|
605
|
+
/**
|
|
606
|
+
* A description of this item line.
|
|
607
|
+
*/
|
|
608
|
+
description: string | null;
|
|
609
|
+
/**
|
|
610
|
+
* The expiration date for the serial number or lot number of the item associated
|
|
611
|
+
* with this item line, in ISO 8601 format (YYYY-MM-DD). This is particularly
|
|
612
|
+
* relevant for perishable or time-sensitive inventory items. Note that this field
|
|
613
|
+
* is only supported on QuickBooks Desktop 2023 or later.
|
|
614
|
+
*/
|
|
615
|
+
expirationDate: string | null;
|
|
616
|
+
/**
|
|
617
|
+
* The site location where inventory for the item associated with this item line is
|
|
618
|
+
* stored.
|
|
619
|
+
*/
|
|
620
|
+
inventorySite: ItemLine.InventorySite | null;
|
|
621
|
+
/**
|
|
622
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
623
|
+
* item associated with this item line is stored.
|
|
624
|
+
*/
|
|
625
|
+
inventorySiteLocation: ItemLine.InventorySiteLocation | null;
|
|
626
|
+
/**
|
|
627
|
+
* The item associated with this item line. This can refer to any good or service
|
|
628
|
+
* that the business buys or sells, including item types such as a service item,
|
|
629
|
+
* inventory item, or special calculation item like a discount item or sales-tax
|
|
630
|
+
* item.
|
|
631
|
+
*/
|
|
632
|
+
item: ItemLine.Item | null;
|
|
633
|
+
/**
|
|
634
|
+
* The lot number of the item associated with this item line. Used for tracking
|
|
635
|
+
* groups of inventory items that are purchased or manufactured together.
|
|
636
|
+
*/
|
|
637
|
+
lotNumber: string | null;
|
|
638
|
+
/**
|
|
639
|
+
* The type of object. This value is always `"qbd_item_line"`.
|
|
640
|
+
*/
|
|
641
|
+
objectType: 'qbd_item_line';
|
|
642
|
+
/**
|
|
643
|
+
* Specifies an alternative unit-of-measure set when updating this item line's
|
|
644
|
+
* `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to select
|
|
645
|
+
* units from a different set than the item's default unit-of-measure set, which
|
|
646
|
+
* remains unchanged on the item itself. The override applies only to this specific
|
|
647
|
+
* line. For example, you can sell an item typically measured in volume units using
|
|
648
|
+
* weight units in a specific transaction by specifying a different unit-of-measure
|
|
649
|
+
* set with this field.
|
|
650
|
+
*/
|
|
651
|
+
overrideUnitOfMeasureSet: ItemLine.OverrideUnitOfMeasureSet | null;
|
|
652
|
+
/**
|
|
653
|
+
* The quantity of the item associated with this item line. This field cannot be
|
|
654
|
+
* cleared.
|
|
655
|
+
*
|
|
656
|
+
* **NOTE**: Do not use this field if the associated item is a discount item.
|
|
657
|
+
*/
|
|
658
|
+
quantity: number | null;
|
|
659
|
+
/**
|
|
660
|
+
* The item line's sales representative. Sales representatives can be employees,
|
|
661
|
+
* vendors, or other names in QuickBooks.
|
|
662
|
+
*/
|
|
663
|
+
salesRepresentative: ItemLine.SalesRepresentative | null;
|
|
664
|
+
/**
|
|
665
|
+
* The sales-tax code for this item line, determining whether it is taxable or
|
|
666
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
667
|
+
* transaction or the associated item.
|
|
668
|
+
*
|
|
669
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
670
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
671
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
672
|
+
* non-taxable code to all sales.
|
|
673
|
+
*/
|
|
674
|
+
salesTaxCode: ItemLine.SalesTaxCode | null;
|
|
675
|
+
/**
|
|
676
|
+
* The serial number of the item associated with this item line. This is used for
|
|
677
|
+
* tracking individual units of serialized inventory items.
|
|
678
|
+
*/
|
|
679
|
+
serialNumber: string | null;
|
|
680
|
+
/**
|
|
681
|
+
* The unit-of-measure used for the `quantity` in this item line. Must be a valid
|
|
682
|
+
* unit within the item's available units of measure.
|
|
683
|
+
*/
|
|
684
|
+
unitOfMeasure: string | null;
|
|
685
|
+
}
|
|
686
|
+
namespace ItemLine {
|
|
687
|
+
/**
|
|
688
|
+
* The item line's class. Classes can be used to categorize objects into meaningful
|
|
689
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
690
|
+
* tracking is off by default. If a class is specified for the entire parent
|
|
691
|
+
* transaction, it is automatically applied to all item lines unless overridden
|
|
692
|
+
* here, at the transaction line level.
|
|
693
|
+
*/
|
|
694
|
+
interface Class {
|
|
695
|
+
/**
|
|
696
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
697
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
698
|
+
* types.
|
|
699
|
+
*/
|
|
700
|
+
id: string | null;
|
|
701
|
+
/**
|
|
702
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
703
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
704
|
+
* case-sensitive.
|
|
705
|
+
*/
|
|
706
|
+
fullName: string | null;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* The customer or customer-job associated with this item line.
|
|
710
|
+
*/
|
|
711
|
+
interface Customer {
|
|
712
|
+
/**
|
|
713
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
714
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
715
|
+
* types.
|
|
716
|
+
*/
|
|
717
|
+
id: string | null;
|
|
718
|
+
/**
|
|
719
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
720
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
721
|
+
* case-sensitive.
|
|
722
|
+
*/
|
|
723
|
+
fullName: string | null;
|
|
724
|
+
}
|
|
725
|
+
interface CustomField {
|
|
726
|
+
/**
|
|
727
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
728
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
729
|
+
*/
|
|
730
|
+
name: string;
|
|
731
|
+
/**
|
|
732
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
733
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
734
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
735
|
+
* fields that are only visible to the application that created them, this is a
|
|
736
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
737
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
738
|
+
* objects.
|
|
739
|
+
*/
|
|
740
|
+
ownerId: string;
|
|
741
|
+
/**
|
|
742
|
+
* The data type of this custom field.
|
|
743
|
+
*/
|
|
744
|
+
type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
|
|
745
|
+
/**
|
|
746
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
747
|
+
* type.
|
|
748
|
+
*/
|
|
749
|
+
value: string;
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* The site location where inventory for the item associated with this item line is
|
|
753
|
+
* stored.
|
|
754
|
+
*/
|
|
755
|
+
interface InventorySite {
|
|
756
|
+
/**
|
|
757
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
758
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
759
|
+
* types.
|
|
760
|
+
*/
|
|
761
|
+
id: string | null;
|
|
762
|
+
/**
|
|
763
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
764
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
765
|
+
* case-sensitive.
|
|
766
|
+
*/
|
|
767
|
+
fullName: string | null;
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
771
|
+
* item associated with this item line is stored.
|
|
772
|
+
*/
|
|
773
|
+
interface InventorySiteLocation {
|
|
774
|
+
/**
|
|
775
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
776
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
777
|
+
* types.
|
|
778
|
+
*/
|
|
779
|
+
id: string | null;
|
|
780
|
+
/**
|
|
781
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
782
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
783
|
+
* case-sensitive.
|
|
784
|
+
*/
|
|
785
|
+
fullName: string | null;
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* The item associated with this item line. This can refer to any good or service
|
|
789
|
+
* that the business buys or sells, including item types such as a service item,
|
|
790
|
+
* inventory item, or special calculation item like a discount item or sales-tax
|
|
791
|
+
* item.
|
|
792
|
+
*/
|
|
793
|
+
interface Item {
|
|
794
|
+
/**
|
|
795
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
796
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
797
|
+
* types.
|
|
798
|
+
*/
|
|
799
|
+
id: string | null;
|
|
800
|
+
/**
|
|
801
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
802
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
803
|
+
* case-sensitive.
|
|
804
|
+
*/
|
|
805
|
+
fullName: string | null;
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* Specifies an alternative unit-of-measure set when updating this item line's
|
|
809
|
+
* `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to select
|
|
810
|
+
* units from a different set than the item's default unit-of-measure set, which
|
|
811
|
+
* remains unchanged on the item itself. The override applies only to this specific
|
|
812
|
+
* line. For example, you can sell an item typically measured in volume units using
|
|
813
|
+
* weight units in a specific transaction by specifying a different unit-of-measure
|
|
814
|
+
* set with this field.
|
|
815
|
+
*/
|
|
816
|
+
interface OverrideUnitOfMeasureSet {
|
|
817
|
+
/**
|
|
818
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
819
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
820
|
+
* types.
|
|
821
|
+
*/
|
|
822
|
+
id: string | null;
|
|
823
|
+
/**
|
|
824
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
825
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
826
|
+
* case-sensitive.
|
|
827
|
+
*/
|
|
828
|
+
fullName: string | null;
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* The item line's sales representative. Sales representatives can be employees,
|
|
832
|
+
* vendors, or other names in QuickBooks.
|
|
833
|
+
*/
|
|
834
|
+
interface SalesRepresentative {
|
|
835
|
+
/**
|
|
836
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
837
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
838
|
+
* types.
|
|
839
|
+
*/
|
|
840
|
+
id: string | null;
|
|
841
|
+
/**
|
|
842
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
843
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
844
|
+
* case-sensitive.
|
|
845
|
+
*/
|
|
846
|
+
fullName: string | null;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* The sales-tax code for this item line, determining whether it is taxable or
|
|
850
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
851
|
+
* transaction or the associated item.
|
|
852
|
+
*
|
|
853
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
854
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
855
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
856
|
+
* non-taxable code to all sales.
|
|
857
|
+
*/
|
|
858
|
+
interface SalesTaxCode {
|
|
859
|
+
/**
|
|
860
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
861
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
862
|
+
* types.
|
|
863
|
+
*/
|
|
864
|
+
id: string | null;
|
|
865
|
+
/**
|
|
866
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
867
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
868
|
+
* case-sensitive.
|
|
869
|
+
*/
|
|
870
|
+
fullName: string | null;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Specifies an alternative unit-of-measure set when updating this item group
|
|
875
|
+
* line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
|
|
876
|
+
* select units from a different set than the item's default unit-of-measure set,
|
|
877
|
+
* which remains unchanged on the item itself. The override applies only to this
|
|
878
|
+
* specific line. For example, you can sell an item typically measured in volume
|
|
879
|
+
* units using weight units in a specific transaction by specifying a different
|
|
880
|
+
* unit-of-measure set with this field.
|
|
881
|
+
*/
|
|
882
|
+
interface OverrideUnitOfMeasureSet {
|
|
883
|
+
/**
|
|
884
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
885
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
886
|
+
* types.
|
|
887
|
+
*/
|
|
888
|
+
id: string | null;
|
|
889
|
+
/**
|
|
890
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
891
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
892
|
+
* case-sensitive.
|
|
893
|
+
*/
|
|
894
|
+
fullName: string | null;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
interface ItemLine {
|
|
898
|
+
/**
|
|
899
|
+
* The unique identifier assigned by QuickBooks to this item line. This ID is
|
|
900
|
+
* unique across all transaction line types.
|
|
901
|
+
*/
|
|
902
|
+
id: string;
|
|
903
|
+
/**
|
|
904
|
+
* The monetary amount of this item line, represented as a decimal string. If both
|
|
905
|
+
* `quantity` and `cost` are specified but not `amount`, QuickBooks will use them
|
|
906
|
+
* to calculate `amount`. If `amount`, `cost`, and `quantity` are all unspecified,
|
|
907
|
+
* then QuickBooks will calculate `amount` based on a `quantity` of `1` and the
|
|
908
|
+
* suggested `cost`. This field cannot be cleared.
|
|
909
|
+
*/
|
|
910
|
+
amount: string | null;
|
|
911
|
+
/**
|
|
912
|
+
* The billing status of this item line.
|
|
913
|
+
*/
|
|
914
|
+
billingStatus: 'billable' | 'has_been_billed' | 'not_billable' | null;
|
|
915
|
+
/**
|
|
916
|
+
* The item line's class. Classes can be used to categorize objects into meaningful
|
|
917
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
918
|
+
* tracking is off by default. If a class is specified for the entire parent
|
|
919
|
+
* transaction, it is automatically applied to all item lines unless overridden
|
|
920
|
+
* here, at the transaction line level.
|
|
921
|
+
*/
|
|
922
|
+
class: ItemLine.Class | null;
|
|
923
|
+
/**
|
|
924
|
+
* The cost of this item line, represented as a decimal string. If both `quantity`
|
|
925
|
+
* and `amount` are specified but not `cost`, QuickBooks will use them to calculate
|
|
926
|
+
* `cost`.
|
|
927
|
+
*/
|
|
928
|
+
cost: string | null;
|
|
929
|
+
/**
|
|
930
|
+
* The customer or customer-job associated with this item line.
|
|
931
|
+
*/
|
|
932
|
+
customer: ItemLine.Customer | null;
|
|
933
|
+
/**
|
|
934
|
+
* The custom fields for the item line object, added as user-defined data
|
|
935
|
+
* extensions, not included in the standard QuickBooks object.
|
|
936
|
+
*/
|
|
937
|
+
customFields: Array<ItemLine.CustomField>;
|
|
938
|
+
/**
|
|
939
|
+
* A description of this item line.
|
|
940
|
+
*/
|
|
941
|
+
description: string | null;
|
|
942
|
+
/**
|
|
943
|
+
* The expiration date for the serial number or lot number of the item associated
|
|
944
|
+
* with this item line, in ISO 8601 format (YYYY-MM-DD). This is particularly
|
|
945
|
+
* relevant for perishable or time-sensitive inventory items. Note that this field
|
|
946
|
+
* is only supported on QuickBooks Desktop 2023 or later.
|
|
947
|
+
*/
|
|
948
|
+
expirationDate: string | null;
|
|
949
|
+
/**
|
|
950
|
+
* The site location where inventory for the item associated with this item line is
|
|
951
|
+
* stored.
|
|
952
|
+
*/
|
|
953
|
+
inventorySite: ItemLine.InventorySite | null;
|
|
954
|
+
/**
|
|
955
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
956
|
+
* item associated with this item line is stored.
|
|
957
|
+
*/
|
|
958
|
+
inventorySiteLocation: ItemLine.InventorySiteLocation | null;
|
|
959
|
+
/**
|
|
960
|
+
* The item associated with this item line. This can refer to any good or service
|
|
961
|
+
* that the business buys or sells, including item types such as a service item,
|
|
962
|
+
* inventory item, or special calculation item like a discount item or sales-tax
|
|
963
|
+
* item.
|
|
964
|
+
*/
|
|
965
|
+
item: ItemLine.Item | null;
|
|
966
|
+
/**
|
|
967
|
+
* The lot number of the item associated with this item line. Used for tracking
|
|
968
|
+
* groups of inventory items that are purchased or manufactured together.
|
|
969
|
+
*/
|
|
970
|
+
lotNumber: string | null;
|
|
971
|
+
/**
|
|
972
|
+
* The type of object. This value is always `"qbd_item_line"`.
|
|
973
|
+
*/
|
|
974
|
+
objectType: 'qbd_item_line';
|
|
975
|
+
/**
|
|
976
|
+
* Specifies an alternative unit-of-measure set when updating this item line's
|
|
977
|
+
* `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to select
|
|
978
|
+
* units from a different set than the item's default unit-of-measure set, which
|
|
979
|
+
* remains unchanged on the item itself. The override applies only to this specific
|
|
980
|
+
* line. For example, you can sell an item typically measured in volume units using
|
|
981
|
+
* weight units in a specific transaction by specifying a different unit-of-measure
|
|
982
|
+
* set with this field.
|
|
983
|
+
*/
|
|
984
|
+
overrideUnitOfMeasureSet: ItemLine.OverrideUnitOfMeasureSet | null;
|
|
985
|
+
/**
|
|
986
|
+
* The quantity of the item associated with this item line. This field cannot be
|
|
987
|
+
* cleared.
|
|
988
|
+
*
|
|
989
|
+
* **NOTE**: Do not use this field if the associated item is a discount item.
|
|
990
|
+
*/
|
|
991
|
+
quantity: number | null;
|
|
992
|
+
/**
|
|
993
|
+
* The item line's sales representative. Sales representatives can be employees,
|
|
994
|
+
* vendors, or other names in QuickBooks.
|
|
995
|
+
*/
|
|
996
|
+
salesRepresentative: ItemLine.SalesRepresentative | null;
|
|
997
|
+
/**
|
|
998
|
+
* The sales-tax code for this item line, determining whether it is taxable or
|
|
999
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
1000
|
+
* transaction or the associated item.
|
|
1001
|
+
*
|
|
1002
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1003
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1004
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1005
|
+
* non-taxable code to all sales.
|
|
1006
|
+
*/
|
|
1007
|
+
salesTaxCode: ItemLine.SalesTaxCode | null;
|
|
1008
|
+
/**
|
|
1009
|
+
* The serial number of the item associated with this item line. This is used for
|
|
1010
|
+
* tracking individual units of serialized inventory items.
|
|
1011
|
+
*/
|
|
1012
|
+
serialNumber: string | null;
|
|
1013
|
+
/**
|
|
1014
|
+
* The unit-of-measure used for the `quantity` in this item line. Must be a valid
|
|
1015
|
+
* unit within the item's available units of measure.
|
|
1016
|
+
*/
|
|
1017
|
+
unitOfMeasure: string | null;
|
|
1018
|
+
}
|
|
1019
|
+
namespace ItemLine {
|
|
1020
|
+
/**
|
|
1021
|
+
* The item line's class. Classes can be used to categorize objects into meaningful
|
|
1022
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
1023
|
+
* tracking is off by default. If a class is specified for the entire parent
|
|
1024
|
+
* transaction, it is automatically applied to all item lines unless overridden
|
|
1025
|
+
* here, at the transaction line level.
|
|
1026
|
+
*/
|
|
1027
|
+
interface Class {
|
|
1028
|
+
/**
|
|
1029
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1030
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1031
|
+
* types.
|
|
1032
|
+
*/
|
|
1033
|
+
id: string | null;
|
|
1034
|
+
/**
|
|
1035
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1036
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1037
|
+
* case-sensitive.
|
|
1038
|
+
*/
|
|
1039
|
+
fullName: string | null;
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* The customer or customer-job associated with this item line.
|
|
1043
|
+
*/
|
|
1044
|
+
interface Customer {
|
|
1045
|
+
/**
|
|
1046
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1047
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1048
|
+
* types.
|
|
1049
|
+
*/
|
|
1050
|
+
id: string | null;
|
|
1051
|
+
/**
|
|
1052
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1053
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1054
|
+
* case-sensitive.
|
|
1055
|
+
*/
|
|
1056
|
+
fullName: string | null;
|
|
1057
|
+
}
|
|
1058
|
+
interface CustomField {
|
|
1059
|
+
/**
|
|
1060
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
1061
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
1062
|
+
*/
|
|
1063
|
+
name: string;
|
|
1064
|
+
/**
|
|
1065
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
1066
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
1067
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
1068
|
+
* fields that are only visible to the application that created them, this is a
|
|
1069
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
1070
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
1071
|
+
* objects.
|
|
1072
|
+
*/
|
|
1073
|
+
ownerId: string;
|
|
1074
|
+
/**
|
|
1075
|
+
* The data type of this custom field.
|
|
1076
|
+
*/
|
|
1077
|
+
type: 'amount_type' | 'date_time_type' | 'integer_type' | 'percent_type' | 'price_type' | 'quantity_type' | 'string_1024_type' | 'string_255_type';
|
|
1078
|
+
/**
|
|
1079
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
1080
|
+
* type.
|
|
1081
|
+
*/
|
|
1082
|
+
value: string;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* The site location where inventory for the item associated with this item line is
|
|
1086
|
+
* stored.
|
|
1087
|
+
*/
|
|
1088
|
+
interface InventorySite {
|
|
1089
|
+
/**
|
|
1090
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1091
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1092
|
+
* types.
|
|
1093
|
+
*/
|
|
1094
|
+
id: string | null;
|
|
1095
|
+
/**
|
|
1096
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1097
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1098
|
+
* case-sensitive.
|
|
1099
|
+
*/
|
|
1100
|
+
fullName: string | null;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
1104
|
+
* item associated with this item line is stored.
|
|
1105
|
+
*/
|
|
1106
|
+
interface InventorySiteLocation {
|
|
1107
|
+
/**
|
|
1108
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1109
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1110
|
+
* types.
|
|
1111
|
+
*/
|
|
1112
|
+
id: string | null;
|
|
1113
|
+
/**
|
|
1114
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1115
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1116
|
+
* case-sensitive.
|
|
1117
|
+
*/
|
|
1118
|
+
fullName: string | null;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* The item associated with this item line. This can refer to any good or service
|
|
1122
|
+
* that the business buys or sells, including item types such as a service item,
|
|
1123
|
+
* inventory item, or special calculation item like a discount item or sales-tax
|
|
1124
|
+
* item.
|
|
1125
|
+
*/
|
|
1126
|
+
interface Item {
|
|
1127
|
+
/**
|
|
1128
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1129
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1130
|
+
* types.
|
|
1131
|
+
*/
|
|
1132
|
+
id: string | null;
|
|
1133
|
+
/**
|
|
1134
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1135
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1136
|
+
* case-sensitive.
|
|
1137
|
+
*/
|
|
1138
|
+
fullName: string | null;
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Specifies an alternative unit-of-measure set when updating this item line's
|
|
1142
|
+
* `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to select
|
|
1143
|
+
* units from a different set than the item's default unit-of-measure set, which
|
|
1144
|
+
* remains unchanged on the item itself. The override applies only to this specific
|
|
1145
|
+
* line. For example, you can sell an item typically measured in volume units using
|
|
1146
|
+
* weight units in a specific transaction by specifying a different unit-of-measure
|
|
1147
|
+
* set with this field.
|
|
1148
|
+
*/
|
|
1149
|
+
interface OverrideUnitOfMeasureSet {
|
|
1150
|
+
/**
|
|
1151
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1152
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1153
|
+
* types.
|
|
1154
|
+
*/
|
|
1155
|
+
id: string | null;
|
|
1156
|
+
/**
|
|
1157
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1158
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1159
|
+
* case-sensitive.
|
|
1160
|
+
*/
|
|
1161
|
+
fullName: string | null;
|
|
1162
|
+
}
|
|
1163
|
+
/**
|
|
1164
|
+
* The item line's sales representative. Sales representatives can be employees,
|
|
1165
|
+
* vendors, or other names in QuickBooks.
|
|
1166
|
+
*/
|
|
1167
|
+
interface SalesRepresentative {
|
|
1168
|
+
/**
|
|
1169
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1170
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1171
|
+
* types.
|
|
1172
|
+
*/
|
|
1173
|
+
id: string | null;
|
|
1174
|
+
/**
|
|
1175
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1176
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1177
|
+
* case-sensitive.
|
|
1178
|
+
*/
|
|
1179
|
+
fullName: string | null;
|
|
1180
|
+
}
|
|
1181
|
+
/**
|
|
1182
|
+
* The sales-tax code for this item line, determining whether it is taxable or
|
|
1183
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
1184
|
+
* transaction or the associated item.
|
|
1185
|
+
*
|
|
1186
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1187
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1188
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1189
|
+
* non-taxable code to all sales.
|
|
1190
|
+
*/
|
|
1191
|
+
interface SalesTaxCode {
|
|
1192
|
+
/**
|
|
1193
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1194
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1195
|
+
* types.
|
|
1196
|
+
*/
|
|
1197
|
+
id: string | null;
|
|
1198
|
+
/**
|
|
1199
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1200
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1201
|
+
* case-sensitive.
|
|
1202
|
+
*/
|
|
1203
|
+
fullName: string | null;
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* The vendor or company from whom merchandise or services were purchased for this
|
|
1208
|
+
* credit card charge.
|
|
1209
|
+
*/
|
|
1210
|
+
interface Payee {
|
|
1211
|
+
/**
|
|
1212
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1213
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1214
|
+
* types.
|
|
1215
|
+
*/
|
|
1216
|
+
id: string | null;
|
|
1217
|
+
/**
|
|
1218
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1219
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1220
|
+
* case-sensitive.
|
|
1221
|
+
*/
|
|
1222
|
+
fullName: string | null;
|
|
1223
|
+
}
|
|
1224
|
+
/**
|
|
1225
|
+
* The sales-tax code for this credit card charge, determining whether it is
|
|
1226
|
+
* taxable or non-taxable. If set, this overrides any sales-tax codes defined on
|
|
1227
|
+
* the payee. This can be overridden on the credit card charge's individual lines.
|
|
1228
|
+
*
|
|
1229
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1230
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1231
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1232
|
+
* non-taxable code to all sales.
|
|
1233
|
+
*/
|
|
1234
|
+
interface SalesTaxCode {
|
|
1235
|
+
/**
|
|
1236
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
1237
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
1238
|
+
* types.
|
|
1239
|
+
*/
|
|
1240
|
+
id: string | null;
|
|
1241
|
+
/**
|
|
1242
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
1243
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
1244
|
+
* case-sensitive.
|
|
1245
|
+
*/
|
|
1246
|
+
fullName: string | null;
|
|
1247
|
+
}
|
|
1248
|
+
}
|
|
1249
|
+
export interface CreditCardChargeDeleteResponse {
|
|
1250
|
+
/**
|
|
1251
|
+
* The QuickBooks-assigned unique identifier of the deleted credit card charge.
|
|
1252
|
+
*/
|
|
1253
|
+
id: string;
|
|
1254
|
+
/**
|
|
1255
|
+
* Indicates whether the credit card charge was deleted.
|
|
1256
|
+
*/
|
|
1257
|
+
deleted: boolean;
|
|
1258
|
+
/**
|
|
1259
|
+
* The type of object. This value is always `"qbd_credit_card_charge"`.
|
|
1260
|
+
*/
|
|
1261
|
+
objectType: 'qbd_credit_card_charge';
|
|
1262
|
+
/**
|
|
1263
|
+
* The case-sensitive user-defined reference number of the deleted credit card
|
|
1264
|
+
* charge.
|
|
1265
|
+
*/
|
|
1266
|
+
refNumber: string | null;
|
|
1267
|
+
}
|
|
1268
|
+
export interface CreditCardChargeCreateParams {
|
|
1269
|
+
/**
|
|
1270
|
+
* Body param: The bank or credit card account to which money is owed for this
|
|
1271
|
+
* credit card charge.
|
|
1272
|
+
*/
|
|
1273
|
+
accountId: string;
|
|
1274
|
+
/**
|
|
1275
|
+
* Body param: The date of this credit card charge, in ISO 8601 format
|
|
1276
|
+
* (YYYY-MM-DD).
|
|
1277
|
+
*/
|
|
1278
|
+
transactionDate: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* Header param: The ID of the End-User to receive this request.
|
|
1281
|
+
*/
|
|
1282
|
+
conductorEndUserId: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* Body param: The market exchange rate between this credit card charge's currency
|
|
1285
|
+
* and the home currency in QuickBooks at the time of this transaction. Represented
|
|
1286
|
+
* as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
|
|
1287
|
+
* currency).
|
|
1288
|
+
*/
|
|
1289
|
+
exchangeRate?: number;
|
|
1290
|
+
/**
|
|
1291
|
+
* Body param: The credit card charge's expense lines, each representing one line
|
|
1292
|
+
* in this expense.
|
|
1293
|
+
*/
|
|
1294
|
+
expenseLines?: Array<CreditCardChargeCreateParams.ExpenseLine>;
|
|
1295
|
+
/**
|
|
1296
|
+
* Body param: A globally unique identifier (GUID) you, the developer, can provide
|
|
1297
|
+
* for tracking this object in your external system. This field is immutable and
|
|
1298
|
+
* can only be set during object creation.
|
|
1299
|
+
*
|
|
1300
|
+
* **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
|
|
1301
|
+
* QuickBooks will return an error.
|
|
1302
|
+
*/
|
|
1303
|
+
externalId?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* Body param: The credit card charge's item group lines, each representing a
|
|
1306
|
+
* predefined set of items bundled together because they are commonly purchased
|
|
1307
|
+
* together or grouped for faster entry.
|
|
1308
|
+
*/
|
|
1309
|
+
itemGroupLines?: Array<CreditCardChargeCreateParams.ItemGroupLine>;
|
|
1310
|
+
/**
|
|
1311
|
+
* Body param: The credit card charge's item lines, each representing the purchase
|
|
1312
|
+
* of a specific item or service.
|
|
1313
|
+
*/
|
|
1314
|
+
itemLines?: Array<CreditCardChargeCreateParams.ItemLine>;
|
|
1315
|
+
/**
|
|
1316
|
+
* Body param: A memo or note for this credit card charge.
|
|
1317
|
+
*/
|
|
1318
|
+
memo?: string;
|
|
1319
|
+
/**
|
|
1320
|
+
* Body param: The vendor or company from whom merchandise or services were
|
|
1321
|
+
* purchased for this credit card charge.
|
|
1322
|
+
*/
|
|
1323
|
+
payeeId?: string;
|
|
1324
|
+
/**
|
|
1325
|
+
* Body param: The case-sensitive user-defined reference number for this credit
|
|
1326
|
+
* card charge, which can be used to identify the transaction in QuickBooks. This
|
|
1327
|
+
* value is not required to be unique and can be arbitrarily changed by the
|
|
1328
|
+
* QuickBooks user. When left blank in this create request, this field will be left
|
|
1329
|
+
* blank in QuickBooks (i.e., it does _not_ auto-increment).
|
|
1330
|
+
*/
|
|
1331
|
+
refNumber?: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* Body param: The sales-tax code for this credit card charge, determining whether
|
|
1334
|
+
* it is taxable or non-taxable. If set, this overrides any sales-tax codes defined
|
|
1335
|
+
* on the payee. This can be overridden on the credit card charge's individual
|
|
1336
|
+
* lines.
|
|
1337
|
+
*
|
|
1338
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1339
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1340
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1341
|
+
* non-taxable code to all sales.
|
|
1342
|
+
*/
|
|
1343
|
+
salesTaxCodeId?: string;
|
|
1344
|
+
}
|
|
1345
|
+
export declare namespace CreditCardChargeCreateParams {
|
|
1346
|
+
interface ExpenseLine {
|
|
1347
|
+
/**
|
|
1348
|
+
* The expense account being debited (increased) for this expense line. The
|
|
1349
|
+
* corresponding account being credited is usually a liability account (e.g.,
|
|
1350
|
+
* Accounts-Payable) or an asset account (e.g., Cash), depending on the transaction
|
|
1351
|
+
* type.
|
|
1352
|
+
*/
|
|
1353
|
+
accountId?: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* The monetary amount of this expense line, represented as a decimal string.
|
|
1356
|
+
*/
|
|
1357
|
+
amount?: string;
|
|
1358
|
+
/**
|
|
1359
|
+
* The billing status of this expense line.
|
|
1360
|
+
*/
|
|
1361
|
+
billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
|
|
1362
|
+
/**
|
|
1363
|
+
* The expense line's class. Classes can be used to categorize objects into
|
|
1364
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
1365
|
+
* QuickBooks, class tracking is off by default. If a class is specified for the
|
|
1366
|
+
* entire parent transaction, it is automatically applied to all expense lines
|
|
1367
|
+
* unless overridden here, at the transaction line level.
|
|
1368
|
+
*/
|
|
1369
|
+
classId?: string;
|
|
1370
|
+
/**
|
|
1371
|
+
* The custom fields for the expense line object, added as user-defined data
|
|
1372
|
+
* extensions, not included in the standard QuickBooks object.
|
|
1373
|
+
*/
|
|
1374
|
+
customFields?: Array<ExpenseLine.CustomField>;
|
|
1375
|
+
/**
|
|
1376
|
+
* A memo or note for this expense line.
|
|
1377
|
+
*/
|
|
1378
|
+
memo?: string;
|
|
1379
|
+
/**
|
|
1380
|
+
* If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
|
|
1381
|
+
* expense's vendor (not the customer). If `account` refers to any other type of
|
|
1382
|
+
* account, `payee` refers to the expense's customer (not the vendor).
|
|
1383
|
+
*/
|
|
1384
|
+
payeeId?: string;
|
|
1385
|
+
/**
|
|
1386
|
+
* The expense line's sales representative. Sales representatives can be employees,
|
|
1387
|
+
* vendors, or other names in QuickBooks.
|
|
1388
|
+
*/
|
|
1389
|
+
salesRepresentativeId?: string;
|
|
1390
|
+
/**
|
|
1391
|
+
* The sales-tax code for this expense line, determining whether it is taxable or
|
|
1392
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
1393
|
+
* transaction or the associated item.
|
|
1394
|
+
*
|
|
1395
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1396
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1397
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1398
|
+
* non-taxable code to all sales.
|
|
1399
|
+
*/
|
|
1400
|
+
salesTaxCodeId?: string;
|
|
1401
|
+
}
|
|
1402
|
+
namespace ExpenseLine {
|
|
1403
|
+
interface CustomField {
|
|
1404
|
+
/**
|
|
1405
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
1406
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
1407
|
+
*/
|
|
1408
|
+
name: string;
|
|
1409
|
+
/**
|
|
1410
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
1411
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
1412
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
1413
|
+
* fields that are only visible to the application that created them, this is a
|
|
1414
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
1415
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
1416
|
+
* objects.
|
|
1417
|
+
*/
|
|
1418
|
+
ownerId: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
1421
|
+
* type.
|
|
1422
|
+
*/
|
|
1423
|
+
value: string;
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
interface ItemGroupLine {
|
|
1427
|
+
/**
|
|
1428
|
+
* The item group line's item group, representing a predefined set of items bundled
|
|
1429
|
+
* because they are commonly purchased together or grouped for faster entry.
|
|
1430
|
+
*/
|
|
1431
|
+
itemGroupId: string;
|
|
1432
|
+
/**
|
|
1433
|
+
* The custom fields for the item group line object, added as user-defined data
|
|
1434
|
+
* extensions, not included in the standard QuickBooks object.
|
|
1435
|
+
*/
|
|
1436
|
+
customFields?: Array<ItemGroupLine.CustomField>;
|
|
1437
|
+
/**
|
|
1438
|
+
* The site location where inventory for the item group associated with this item
|
|
1439
|
+
* group line is stored.
|
|
1440
|
+
*/
|
|
1441
|
+
inventorySiteId?: string;
|
|
1442
|
+
/**
|
|
1443
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
1444
|
+
* item group associated with this item group line is stored.
|
|
1445
|
+
*/
|
|
1446
|
+
inventorySiteLocationId?: string;
|
|
1447
|
+
/**
|
|
1448
|
+
* The quantity of the item group associated with this item group line. This field
|
|
1449
|
+
* cannot be cleared.
|
|
1450
|
+
*
|
|
1451
|
+
* **NOTE**: Do not use this field if the associated item group is a discount item
|
|
1452
|
+
* group.
|
|
1453
|
+
*/
|
|
1454
|
+
quantity?: number;
|
|
1455
|
+
/**
|
|
1456
|
+
* The unit-of-measure used for the `quantity` in this item group line. Must be a
|
|
1457
|
+
* valid unit within the item's available units of measure.
|
|
1458
|
+
*/
|
|
1459
|
+
unitOfMeasure?: string;
|
|
1460
|
+
}
|
|
1461
|
+
namespace ItemGroupLine {
|
|
1462
|
+
interface CustomField {
|
|
1463
|
+
/**
|
|
1464
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
1465
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
1466
|
+
*/
|
|
1467
|
+
name: string;
|
|
1468
|
+
/**
|
|
1469
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
1470
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
1471
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
1472
|
+
* fields that are only visible to the application that created them, this is a
|
|
1473
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
1474
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
1475
|
+
* objects.
|
|
1476
|
+
*/
|
|
1477
|
+
ownerId: string;
|
|
1478
|
+
/**
|
|
1479
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
1480
|
+
* type.
|
|
1481
|
+
*/
|
|
1482
|
+
value: string;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
interface ItemLine {
|
|
1486
|
+
/**
|
|
1487
|
+
* The monetary amount of this item line, represented as a decimal string. If both
|
|
1488
|
+
* `quantity` and `cost` are specified but not `amount`, QuickBooks will use them
|
|
1489
|
+
* to calculate `amount`. If `amount`, `cost`, and `quantity` are all unspecified,
|
|
1490
|
+
* then QuickBooks will calculate `amount` based on a `quantity` of `1` and the
|
|
1491
|
+
* suggested `cost`. This field cannot be cleared.
|
|
1492
|
+
*/
|
|
1493
|
+
amount?: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* The billing status of this item line.
|
|
1496
|
+
*/
|
|
1497
|
+
billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
|
|
1498
|
+
/**
|
|
1499
|
+
* The item line's class. Classes can be used to categorize objects into meaningful
|
|
1500
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
1501
|
+
* tracking is off by default. If a class is specified for the entire parent
|
|
1502
|
+
* transaction, it is automatically applied to all item lines unless overridden
|
|
1503
|
+
* here, at the transaction line level.
|
|
1504
|
+
*/
|
|
1505
|
+
classId?: string;
|
|
1506
|
+
/**
|
|
1507
|
+
* The cost of this item line, represented as a decimal string. If both `quantity`
|
|
1508
|
+
* and `amount` are specified but not `cost`, QuickBooks will use them to calculate
|
|
1509
|
+
* `cost`.
|
|
1510
|
+
*/
|
|
1511
|
+
cost?: string;
|
|
1512
|
+
/**
|
|
1513
|
+
* The customer or customer-job associated with this item line.
|
|
1514
|
+
*/
|
|
1515
|
+
customerId?: string;
|
|
1516
|
+
/**
|
|
1517
|
+
* The custom fields for the item line object, added as user-defined data
|
|
1518
|
+
* extensions, not included in the standard QuickBooks object.
|
|
1519
|
+
*/
|
|
1520
|
+
customFields?: Array<ItemLine.CustomField>;
|
|
1521
|
+
/**
|
|
1522
|
+
* A description of this item line.
|
|
1523
|
+
*/
|
|
1524
|
+
description?: string;
|
|
1525
|
+
/**
|
|
1526
|
+
* The expiration date for the serial number or lot number of the item associated
|
|
1527
|
+
* with this item line, in ISO 8601 format (YYYY-MM-DD). This is particularly
|
|
1528
|
+
* relevant for perishable or time-sensitive inventory items. Note that this field
|
|
1529
|
+
* is only supported on QuickBooks Desktop 2023 or later.
|
|
1530
|
+
*/
|
|
1531
|
+
expirationDate?: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* The site location where inventory for the item associated with this item line is
|
|
1534
|
+
* stored.
|
|
1535
|
+
*/
|
|
1536
|
+
inventorySiteId?: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
1539
|
+
* item associated with this item line is stored.
|
|
1540
|
+
*/
|
|
1541
|
+
inventorySiteLocationId?: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* The item associated with this item line. This can refer to any good or service
|
|
1544
|
+
* that the business buys or sells, including item types such as a service item,
|
|
1545
|
+
* inventory item, or special calculation item like a discount item or sales-tax
|
|
1546
|
+
* item.
|
|
1547
|
+
*/
|
|
1548
|
+
itemId?: string;
|
|
1549
|
+
/**
|
|
1550
|
+
* An existing transaction line that you wish to link to this item line. Note that
|
|
1551
|
+
* this only links to a single transaction line item, not an entire transaction. If
|
|
1552
|
+
* you want to link an entire transaction and bring in all its lines, instead use
|
|
1553
|
+
* the field `linkToTransactionIds` on the parent transaction, if available. If the
|
|
1554
|
+
* parent transaction is a bill or an item receipt, you can only link to purchase
|
|
1555
|
+
* orders; QuickBooks does not support linking these transactions to other
|
|
1556
|
+
* transaction types.
|
|
1557
|
+
*
|
|
1558
|
+
* Transaction lines can only be linked when creating this item line and cannot be
|
|
1559
|
+
* unlinked later.
|
|
1560
|
+
*
|
|
1561
|
+
* **IMPORTANT**: If you use `linkToTransactionLine` on this item line, you cannot
|
|
1562
|
+
* use the field `item` on this line (QuickBooks will return an error) because this
|
|
1563
|
+
* field brings in all of the item information you need. You can, however, specify
|
|
1564
|
+
* whatever `quantity` or `rate` that you want, or any other transaction line
|
|
1565
|
+
* element other than `item`.
|
|
1566
|
+
*
|
|
1567
|
+
* If the parent transaction supports the `linkToTransactionIds` field, you can use
|
|
1568
|
+
* both `linkToTransactionLine` (on this item line) and `linkToTransactionIds` (on
|
|
1569
|
+
* its parent transaction) in the same request as long as they do NOT link to the
|
|
1570
|
+
* same transaction (otherwise, QuickBooks will return an error). QuickBooks will
|
|
1571
|
+
* also return an error if you attempt to link a transaction that is empty or
|
|
1572
|
+
* already closed.
|
|
1573
|
+
*
|
|
1574
|
+
* **IMPORTANT**: By default, QuickBooks will not return any information about the
|
|
1575
|
+
* linked transaction line in this endpoint's response even when this request is
|
|
1576
|
+
* successful. To see the transaction line linked via this field, refetch the
|
|
1577
|
+
* parent transaction and check the `linkedTransactions` response field. If
|
|
1578
|
+
* fetching a list of transactions, you must also specify the parameter
|
|
1579
|
+
* `includeLinkedTransactions=true` to see the `linkedTransactions` response field.
|
|
1580
|
+
*/
|
|
1581
|
+
linkToTransactionLine?: ItemLine.LinkToTransactionLine;
|
|
1582
|
+
/**
|
|
1583
|
+
* The lot number of the item associated with this item line. Used for tracking
|
|
1584
|
+
* groups of inventory items that are purchased or manufactured together.
|
|
1585
|
+
*/
|
|
1586
|
+
lotNumber?: string;
|
|
1587
|
+
/**
|
|
1588
|
+
* The account to use for this item line, overriding the default account associated
|
|
1589
|
+
* with the item.
|
|
1590
|
+
*/
|
|
1591
|
+
overrideItemAccountId?: string;
|
|
1592
|
+
/**
|
|
1593
|
+
* The quantity of the item associated with this item line. This field cannot be
|
|
1594
|
+
* cleared.
|
|
1595
|
+
*
|
|
1596
|
+
* **NOTE**: Do not use this field if the associated item is a discount item.
|
|
1597
|
+
*/
|
|
1598
|
+
quantity?: number;
|
|
1599
|
+
/**
|
|
1600
|
+
* The item line's sales representative. Sales representatives can be employees,
|
|
1601
|
+
* vendors, or other names in QuickBooks.
|
|
1602
|
+
*/
|
|
1603
|
+
salesRepresentativeId?: string;
|
|
1604
|
+
/**
|
|
1605
|
+
* The sales-tax code for this item line, determining whether it is taxable or
|
|
1606
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
1607
|
+
* transaction or the associated item.
|
|
1608
|
+
*
|
|
1609
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1610
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1611
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1612
|
+
* non-taxable code to all sales.
|
|
1613
|
+
*/
|
|
1614
|
+
salesTaxCodeId?: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* The serial number of the item associated with this item line. This is used for
|
|
1617
|
+
* tracking individual units of serialized inventory items.
|
|
1618
|
+
*/
|
|
1619
|
+
serialNumber?: string;
|
|
1620
|
+
/**
|
|
1621
|
+
* The unit-of-measure used for the `quantity` in this item line. Must be a valid
|
|
1622
|
+
* unit within the item's available units of measure.
|
|
1623
|
+
*/
|
|
1624
|
+
unitOfMeasure?: string;
|
|
1625
|
+
}
|
|
1626
|
+
namespace ItemLine {
|
|
1627
|
+
interface CustomField {
|
|
1628
|
+
/**
|
|
1629
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
1630
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
1631
|
+
*/
|
|
1632
|
+
name: string;
|
|
1633
|
+
/**
|
|
1634
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
1635
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
1636
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
1637
|
+
* fields that are only visible to the application that created them, this is a
|
|
1638
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
1639
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
1640
|
+
* objects.
|
|
1641
|
+
*/
|
|
1642
|
+
ownerId: string;
|
|
1643
|
+
/**
|
|
1644
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
1645
|
+
* type.
|
|
1646
|
+
*/
|
|
1647
|
+
value: string;
|
|
1648
|
+
}
|
|
1649
|
+
/**
|
|
1650
|
+
* An existing transaction line that you wish to link to this item line. Note that
|
|
1651
|
+
* this only links to a single transaction line item, not an entire transaction. If
|
|
1652
|
+
* you want to link an entire transaction and bring in all its lines, instead use
|
|
1653
|
+
* the field `linkToTransactionIds` on the parent transaction, if available. If the
|
|
1654
|
+
* parent transaction is a bill or an item receipt, you can only link to purchase
|
|
1655
|
+
* orders; QuickBooks does not support linking these transactions to other
|
|
1656
|
+
* transaction types.
|
|
1657
|
+
*
|
|
1658
|
+
* Transaction lines can only be linked when creating this item line and cannot be
|
|
1659
|
+
* unlinked later.
|
|
1660
|
+
*
|
|
1661
|
+
* **IMPORTANT**: If you use `linkToTransactionLine` on this item line, you cannot
|
|
1662
|
+
* use the field `item` on this line (QuickBooks will return an error) because this
|
|
1663
|
+
* field brings in all of the item information you need. You can, however, specify
|
|
1664
|
+
* whatever `quantity` or `rate` that you want, or any other transaction line
|
|
1665
|
+
* element other than `item`.
|
|
1666
|
+
*
|
|
1667
|
+
* If the parent transaction supports the `linkToTransactionIds` field, you can use
|
|
1668
|
+
* both `linkToTransactionLine` (on this item line) and `linkToTransactionIds` (on
|
|
1669
|
+
* its parent transaction) in the same request as long as they do NOT link to the
|
|
1670
|
+
* same transaction (otherwise, QuickBooks will return an error). QuickBooks will
|
|
1671
|
+
* also return an error if you attempt to link a transaction that is empty or
|
|
1672
|
+
* already closed.
|
|
1673
|
+
*
|
|
1674
|
+
* **IMPORTANT**: By default, QuickBooks will not return any information about the
|
|
1675
|
+
* linked transaction line in this endpoint's response even when this request is
|
|
1676
|
+
* successful. To see the transaction line linked via this field, refetch the
|
|
1677
|
+
* parent transaction and check the `linkedTransactions` response field. If
|
|
1678
|
+
* fetching a list of transactions, you must also specify the parameter
|
|
1679
|
+
* `includeLinkedTransactions=true` to see the `linkedTransactions` response field.
|
|
1680
|
+
*/
|
|
1681
|
+
interface LinkToTransactionLine {
|
|
1682
|
+
/**
|
|
1683
|
+
* The ID of the transaction to which to link this transaction.
|
|
1684
|
+
*/
|
|
1685
|
+
transactionId: string;
|
|
1686
|
+
/**
|
|
1687
|
+
* The ID of the transaction line to which to link this transaction.
|
|
1688
|
+
*/
|
|
1689
|
+
transactionLineId: string;
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
export interface CreditCardChargeRetrieveParams {
|
|
1694
|
+
/**
|
|
1695
|
+
* The ID of the End-User to receive this request.
|
|
1696
|
+
*/
|
|
1697
|
+
conductorEndUserId: string;
|
|
1698
|
+
}
|
|
1699
|
+
export interface CreditCardChargeUpdateParams {
|
|
1700
|
+
/**
|
|
1701
|
+
* Body param: The current QuickBooks-assigned revision number of the credit card
|
|
1702
|
+
* charge object you are updating, which you can get by fetching the object first.
|
|
1703
|
+
* Provide the most recent `revisionNumber` to ensure you're working with the
|
|
1704
|
+
* latest data; otherwise, the update will return an error.
|
|
1705
|
+
*/
|
|
1706
|
+
revisionNumber: string;
|
|
1707
|
+
/**
|
|
1708
|
+
* Header param: The ID of the End-User to receive this request.
|
|
1709
|
+
*/
|
|
1710
|
+
conductorEndUserId: string;
|
|
1711
|
+
/**
|
|
1712
|
+
* Body param: The bank or credit card account to which money is owed for this
|
|
1713
|
+
* credit card charge.
|
|
1714
|
+
*/
|
|
1715
|
+
accountId?: string;
|
|
1716
|
+
/**
|
|
1717
|
+
* Body param: When `true`, removes all existing expense lines associated with this
|
|
1718
|
+
* credit card charge. To modify or add individual expense lines, use the field
|
|
1719
|
+
* `expenseLines` instead.
|
|
1720
|
+
*/
|
|
1721
|
+
clearExpenseLines?: boolean;
|
|
1722
|
+
/**
|
|
1723
|
+
* Body param: When `true`, removes all existing item lines associated with this
|
|
1724
|
+
* credit card charge. To modify or add individual item lines, use the field
|
|
1725
|
+
* `itemLines` instead.
|
|
1726
|
+
*/
|
|
1727
|
+
clearItemLines?: boolean;
|
|
1728
|
+
/**
|
|
1729
|
+
* Body param: The market exchange rate between this credit card charge's currency
|
|
1730
|
+
* and the home currency in QuickBooks at the time of this transaction. Represented
|
|
1731
|
+
* as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
|
|
1732
|
+
* currency).
|
|
1733
|
+
*/
|
|
1734
|
+
exchangeRate?: number;
|
|
1735
|
+
/**
|
|
1736
|
+
* Body param: The credit card charge's expense lines, each representing one line
|
|
1737
|
+
* in this expense.
|
|
1738
|
+
*
|
|
1739
|
+
* **IMPORTANT**:
|
|
1740
|
+
*
|
|
1741
|
+
* 1. Including this array in your update request will **REPLACE** all existing
|
|
1742
|
+
* expense lines for the credit card charge with this array. To keep any
|
|
1743
|
+
* existing expense lines, you must include them in this array even if they have
|
|
1744
|
+
* not changed. **Any expense lines not included will be removed.**
|
|
1745
|
+
*
|
|
1746
|
+
* 2. To add a new expense line, include it here with the `id` field set to `-1`.
|
|
1747
|
+
*
|
|
1748
|
+
* 3. If you do not wish to modify any expense lines, omit this field entirely to
|
|
1749
|
+
* keep them unchanged.
|
|
1750
|
+
*/
|
|
1751
|
+
expenseLines?: Array<CreditCardChargeUpdateParams.ExpenseLine>;
|
|
1752
|
+
/**
|
|
1753
|
+
* Body param: The credit card charge's item group lines, each representing a
|
|
1754
|
+
* predefined set of items bundled together because they are commonly purchased
|
|
1755
|
+
* together or grouped for faster entry.
|
|
1756
|
+
*
|
|
1757
|
+
* **IMPORTANT**:
|
|
1758
|
+
*
|
|
1759
|
+
* 1. Including this array in your update request will **REPLACE** all existing
|
|
1760
|
+
* item group lines for the credit card charge with this array. To keep any
|
|
1761
|
+
* existing item group lines, you must include them in this array even if they
|
|
1762
|
+
* have not changed. **Any item group lines not included will be removed.**
|
|
1763
|
+
*
|
|
1764
|
+
* 2. To add a new item group line, include it here with the `id` field set to
|
|
1765
|
+
* `-1`.
|
|
1766
|
+
*
|
|
1767
|
+
* 3. If you do not wish to modify any item group lines, omit this field entirely
|
|
1768
|
+
* to keep them unchanged.
|
|
1769
|
+
*/
|
|
1770
|
+
itemGroupLines?: Array<CreditCardChargeUpdateParams.ItemGroupLine>;
|
|
1771
|
+
/**
|
|
1772
|
+
* Body param: The credit card charge's item lines, each representing the purchase
|
|
1773
|
+
* of a specific item or service.
|
|
1774
|
+
*
|
|
1775
|
+
* **IMPORTANT**:
|
|
1776
|
+
*
|
|
1777
|
+
* 1. Including this array in your update request will **REPLACE** all existing
|
|
1778
|
+
* item lines for the credit card charge with this array. To keep any existing
|
|
1779
|
+
* item lines, you must include them in this array even if they have not
|
|
1780
|
+
* changed. **Any item lines not included will be removed.**
|
|
1781
|
+
*
|
|
1782
|
+
* 2. To add a new item line, include it here with the `id` field set to `-1`.
|
|
1783
|
+
*
|
|
1784
|
+
* 3. If you do not wish to modify any item lines, omit this field entirely to keep
|
|
1785
|
+
* them unchanged.
|
|
1786
|
+
*/
|
|
1787
|
+
itemLines?: Array<CreditCardChargeUpdateParams.ItemLine>;
|
|
1788
|
+
/**
|
|
1789
|
+
* Body param: A memo or note for this credit card charge.
|
|
1790
|
+
*/
|
|
1791
|
+
memo?: string;
|
|
1792
|
+
/**
|
|
1793
|
+
* Body param: The vendor or company from whom merchandise or services were
|
|
1794
|
+
* purchased for this credit card charge.
|
|
1795
|
+
*/
|
|
1796
|
+
payeeId?: string;
|
|
1797
|
+
/**
|
|
1798
|
+
* Body param: The case-sensitive user-defined reference number for this credit
|
|
1799
|
+
* card charge, which can be used to identify the transaction in QuickBooks. This
|
|
1800
|
+
* value is not required to be unique and can be arbitrarily changed by the
|
|
1801
|
+
* QuickBooks user.
|
|
1802
|
+
*/
|
|
1803
|
+
refNumber?: string;
|
|
1804
|
+
/**
|
|
1805
|
+
* Body param: The sales-tax code for this credit card charge, determining whether
|
|
1806
|
+
* it is taxable or non-taxable. If set, this overrides any sales-tax codes defined
|
|
1807
|
+
* on the payee. This can be overridden on the credit card charge's individual
|
|
1808
|
+
* lines.
|
|
1809
|
+
*
|
|
1810
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1811
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1812
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1813
|
+
* non-taxable code to all sales.
|
|
1814
|
+
*/
|
|
1815
|
+
salesTaxCodeId?: string;
|
|
1816
|
+
/**
|
|
1817
|
+
* Body param: The date of this credit card charge, in ISO 8601 format
|
|
1818
|
+
* (YYYY-MM-DD).
|
|
1819
|
+
*/
|
|
1820
|
+
transactionDate?: string;
|
|
1821
|
+
}
|
|
1822
|
+
export declare namespace CreditCardChargeUpdateParams {
|
|
1823
|
+
interface ExpenseLine {
|
|
1824
|
+
/**
|
|
1825
|
+
* The QuickBooks-assigned unique identifier of an existing expense line you wish
|
|
1826
|
+
* to retain or update.
|
|
1827
|
+
*
|
|
1828
|
+
* **IMPORTANT**: Set this field to `-1` for new expense lines you wish to add.
|
|
1829
|
+
*/
|
|
1830
|
+
id: string;
|
|
1831
|
+
/**
|
|
1832
|
+
* The expense account being debited (increased) for this expense line. The
|
|
1833
|
+
* corresponding account being credited is usually a liability account (e.g.,
|
|
1834
|
+
* Accounts-Payable) or an asset account (e.g., Cash), depending on the transaction
|
|
1835
|
+
* type.
|
|
1836
|
+
*/
|
|
1837
|
+
accountId?: string;
|
|
1838
|
+
/**
|
|
1839
|
+
* The monetary amount of this expense line, represented as a decimal string.
|
|
1840
|
+
*/
|
|
1841
|
+
amount?: string;
|
|
1842
|
+
/**
|
|
1843
|
+
* The billing status of this expense line.
|
|
1844
|
+
*/
|
|
1845
|
+
billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
|
|
1846
|
+
/**
|
|
1847
|
+
* The expense line's class. Classes can be used to categorize objects into
|
|
1848
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
1849
|
+
* QuickBooks, class tracking is off by default. If a class is specified for the
|
|
1850
|
+
* entire parent transaction, it is automatically applied to all expense lines
|
|
1851
|
+
* unless overridden here, at the transaction line level.
|
|
1852
|
+
*/
|
|
1853
|
+
classId?: string;
|
|
1854
|
+
/**
|
|
1855
|
+
* A memo or note for this expense line.
|
|
1856
|
+
*/
|
|
1857
|
+
memo?: string;
|
|
1858
|
+
/**
|
|
1859
|
+
* If `account` refers to an Accounts-Payable (A/P) account, `payee` refers to the
|
|
1860
|
+
* expense's vendor (not the customer). If `account` refers to any other type of
|
|
1861
|
+
* account, `payee` refers to the expense's customer (not the vendor).
|
|
1862
|
+
*/
|
|
1863
|
+
payeeId?: string;
|
|
1864
|
+
/**
|
|
1865
|
+
* The expense line's sales representative. Sales representatives can be employees,
|
|
1866
|
+
* vendors, or other names in QuickBooks.
|
|
1867
|
+
*/
|
|
1868
|
+
salesRepresentativeId?: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* The sales-tax code for this expense line, determining whether it is taxable or
|
|
1871
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
1872
|
+
* transaction or the associated item.
|
|
1873
|
+
*
|
|
1874
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
1875
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
1876
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
1877
|
+
* non-taxable code to all sales.
|
|
1878
|
+
*/
|
|
1879
|
+
salesTaxCodeId?: string;
|
|
1880
|
+
}
|
|
1881
|
+
interface ItemGroupLine {
|
|
1882
|
+
/**
|
|
1883
|
+
* The QuickBooks-assigned unique identifier of an existing item group line you
|
|
1884
|
+
* wish to retain or update.
|
|
1885
|
+
*
|
|
1886
|
+
* **IMPORTANT**: Set this field to `-1` for new item group lines you wish to add.
|
|
1887
|
+
*/
|
|
1888
|
+
id: string;
|
|
1889
|
+
/**
|
|
1890
|
+
* The item group line's item group, representing a predefined set of items bundled
|
|
1891
|
+
* because they are commonly purchased together or grouped for faster entry.
|
|
1892
|
+
*/
|
|
1893
|
+
itemGroupId?: string;
|
|
1894
|
+
/**
|
|
1895
|
+
* The item group line's item lines, each representing the purchase of a specific
|
|
1896
|
+
* item or service.
|
|
1897
|
+
*
|
|
1898
|
+
* **IMPORTANT**:
|
|
1899
|
+
*
|
|
1900
|
+
* 1. Including this array in your update request will **REPLACE** all existing
|
|
1901
|
+
* item lines for the item group line with this array. To keep any existing item
|
|
1902
|
+
* lines, you must include them in this array even if they have not changed.
|
|
1903
|
+
* **Any item lines not included will be removed.**
|
|
1904
|
+
*
|
|
1905
|
+
* 2. To add a new item line, include it here with the `id` field set to `-1`.
|
|
1906
|
+
*
|
|
1907
|
+
* 3. If you do not wish to modify any item lines, omit this field entirely to keep
|
|
1908
|
+
* them unchanged.
|
|
1909
|
+
*/
|
|
1910
|
+
itemLines?: Array<ItemGroupLine.ItemLine>;
|
|
1911
|
+
/**
|
|
1912
|
+
* Specifies an alternative unit-of-measure set when updating this item group
|
|
1913
|
+
* line's `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to
|
|
1914
|
+
* select units from a different set than the item's default unit-of-measure set,
|
|
1915
|
+
* which remains unchanged on the item itself. The override applies only to this
|
|
1916
|
+
* specific line. For example, you can sell an item typically measured in volume
|
|
1917
|
+
* units using weight units in a specific transaction by specifying a different
|
|
1918
|
+
* unit-of-measure set with this field.
|
|
1919
|
+
*/
|
|
1920
|
+
overrideUnitOfMeasureSetId?: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* The quantity of the item group associated with this item group line. This field
|
|
1923
|
+
* cannot be cleared.
|
|
1924
|
+
*
|
|
1925
|
+
* **NOTE**: Do not use this field if the associated item group is a discount item
|
|
1926
|
+
* group.
|
|
1927
|
+
*/
|
|
1928
|
+
quantity?: number;
|
|
1929
|
+
/**
|
|
1930
|
+
* The unit-of-measure used for the `quantity` in this item group line. Must be a
|
|
1931
|
+
* valid unit within the item's available units of measure.
|
|
1932
|
+
*/
|
|
1933
|
+
unitOfMeasure?: string;
|
|
1934
|
+
}
|
|
1935
|
+
namespace ItemGroupLine {
|
|
1936
|
+
interface ItemLine {
|
|
1937
|
+
/**
|
|
1938
|
+
* The QuickBooks-assigned unique identifier of an existing item line you wish to
|
|
1939
|
+
* retain or update.
|
|
1940
|
+
*
|
|
1941
|
+
* **IMPORTANT**: Set this field to `-1` for new item lines you wish to add.
|
|
1942
|
+
*/
|
|
1943
|
+
id: string;
|
|
1944
|
+
/**
|
|
1945
|
+
* The monetary amount of this item line, represented as a decimal string. If both
|
|
1946
|
+
* `quantity` and `cost` are specified but not `amount`, QuickBooks will use them
|
|
1947
|
+
* to calculate `amount`. If `amount`, `cost`, and `quantity` are all unspecified,
|
|
1948
|
+
* then QuickBooks will calculate `amount` based on a `quantity` of `1` and the
|
|
1949
|
+
* suggested `cost`. This field cannot be cleared.
|
|
1950
|
+
*/
|
|
1951
|
+
amount?: string;
|
|
1952
|
+
/**
|
|
1953
|
+
* The billing status of this item line.
|
|
1954
|
+
*/
|
|
1955
|
+
billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
|
|
1956
|
+
/**
|
|
1957
|
+
* The item line's class. Classes can be used to categorize objects into meaningful
|
|
1958
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
1959
|
+
* tracking is off by default. If a class is specified for the entire parent
|
|
1960
|
+
* transaction, it is automatically applied to all item lines unless overridden
|
|
1961
|
+
* here, at the transaction line level.
|
|
1962
|
+
*/
|
|
1963
|
+
classId?: string;
|
|
1964
|
+
/**
|
|
1965
|
+
* The cost of this item line, represented as a decimal string. If both `quantity`
|
|
1966
|
+
* and `amount` are specified but not `cost`, QuickBooks will use them to calculate
|
|
1967
|
+
* `cost`.
|
|
1968
|
+
*/
|
|
1969
|
+
cost?: string;
|
|
1970
|
+
/**
|
|
1971
|
+
* The customer or customer-job associated with this item line.
|
|
1972
|
+
*/
|
|
1973
|
+
customerId?: string;
|
|
1974
|
+
/**
|
|
1975
|
+
* A description of this item line.
|
|
1976
|
+
*/
|
|
1977
|
+
description?: string;
|
|
1978
|
+
/**
|
|
1979
|
+
* The expiration date for the serial number or lot number of the item associated
|
|
1980
|
+
* with this item line, in ISO 8601 format (YYYY-MM-DD). This is particularly
|
|
1981
|
+
* relevant for perishable or time-sensitive inventory items. Note that this field
|
|
1982
|
+
* is only supported on QuickBooks Desktop 2023 or later.
|
|
1983
|
+
*/
|
|
1984
|
+
expirationDate?: string;
|
|
1985
|
+
/**
|
|
1986
|
+
* The site location where inventory for the item associated with this item line is
|
|
1987
|
+
* stored.
|
|
1988
|
+
*/
|
|
1989
|
+
inventorySiteId?: string;
|
|
1990
|
+
/**
|
|
1991
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
1992
|
+
* item associated with this item line is stored.
|
|
1993
|
+
*/
|
|
1994
|
+
inventorySiteLocationId?: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* The item associated with this item line. This can refer to any good or service
|
|
1997
|
+
* that the business buys or sells, including item types such as a service item,
|
|
1998
|
+
* inventory item, or special calculation item like a discount item or sales-tax
|
|
1999
|
+
* item.
|
|
2000
|
+
*/
|
|
2001
|
+
itemId?: string;
|
|
2002
|
+
/**
|
|
2003
|
+
* The lot number of the item associated with this item line. Used for tracking
|
|
2004
|
+
* groups of inventory items that are purchased or manufactured together.
|
|
2005
|
+
*/
|
|
2006
|
+
lotNumber?: string;
|
|
2007
|
+
/**
|
|
2008
|
+
* The account to use for this item line, overriding the default account associated
|
|
2009
|
+
* with the item.
|
|
2010
|
+
*/
|
|
2011
|
+
overrideItemAccountId?: string;
|
|
2012
|
+
/**
|
|
2013
|
+
* Specifies an alternative unit-of-measure set when updating this item line's
|
|
2014
|
+
* `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to select
|
|
2015
|
+
* units from a different set than the item's default unit-of-measure set, which
|
|
2016
|
+
* remains unchanged on the item itself. The override applies only to this specific
|
|
2017
|
+
* line. For example, you can sell an item typically measured in volume units using
|
|
2018
|
+
* weight units in a specific transaction by specifying a different unit-of-measure
|
|
2019
|
+
* set with this field.
|
|
2020
|
+
*/
|
|
2021
|
+
overrideUnitOfMeasureSetId?: string;
|
|
2022
|
+
/**
|
|
2023
|
+
* The quantity of the item associated with this item line. This field cannot be
|
|
2024
|
+
* cleared.
|
|
2025
|
+
*
|
|
2026
|
+
* **NOTE**: Do not use this field if the associated item is a discount item.
|
|
2027
|
+
*/
|
|
2028
|
+
quantity?: number;
|
|
2029
|
+
/**
|
|
2030
|
+
* The item line's sales representative. Sales representatives can be employees,
|
|
2031
|
+
* vendors, or other names in QuickBooks.
|
|
2032
|
+
*/
|
|
2033
|
+
salesRepresentativeId?: string;
|
|
2034
|
+
/**
|
|
2035
|
+
* The sales-tax code for this item line, determining whether it is taxable or
|
|
2036
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
2037
|
+
* transaction or the associated item.
|
|
2038
|
+
*
|
|
2039
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
2040
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
2041
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
2042
|
+
* non-taxable code to all sales.
|
|
2043
|
+
*/
|
|
2044
|
+
salesTaxCodeId?: string;
|
|
2045
|
+
/**
|
|
2046
|
+
* The serial number of the item associated with this item line. This is used for
|
|
2047
|
+
* tracking individual units of serialized inventory items.
|
|
2048
|
+
*/
|
|
2049
|
+
serialNumber?: string;
|
|
2050
|
+
/**
|
|
2051
|
+
* The unit-of-measure used for the `quantity` in this item line. Must be a valid
|
|
2052
|
+
* unit within the item's available units of measure.
|
|
2053
|
+
*/
|
|
2054
|
+
unitOfMeasure?: string;
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
interface ItemLine {
|
|
2058
|
+
/**
|
|
2059
|
+
* The QuickBooks-assigned unique identifier of an existing item line you wish to
|
|
2060
|
+
* retain or update.
|
|
2061
|
+
*
|
|
2062
|
+
* **IMPORTANT**: Set this field to `-1` for new item lines you wish to add.
|
|
2063
|
+
*/
|
|
2064
|
+
id: string;
|
|
2065
|
+
/**
|
|
2066
|
+
* The monetary amount of this item line, represented as a decimal string. If both
|
|
2067
|
+
* `quantity` and `cost` are specified but not `amount`, QuickBooks will use them
|
|
2068
|
+
* to calculate `amount`. If `amount`, `cost`, and `quantity` are all unspecified,
|
|
2069
|
+
* then QuickBooks will calculate `amount` based on a `quantity` of `1` and the
|
|
2070
|
+
* suggested `cost`. This field cannot be cleared.
|
|
2071
|
+
*/
|
|
2072
|
+
amount?: string;
|
|
2073
|
+
/**
|
|
2074
|
+
* The billing status of this item line.
|
|
2075
|
+
*/
|
|
2076
|
+
billingStatus?: 'billable' | 'has_been_billed' | 'not_billable';
|
|
2077
|
+
/**
|
|
2078
|
+
* The item line's class. Classes can be used to categorize objects into meaningful
|
|
2079
|
+
* segments, such as department, location, or type of work. In QuickBooks, class
|
|
2080
|
+
* tracking is off by default. If a class is specified for the entire parent
|
|
2081
|
+
* transaction, it is automatically applied to all item lines unless overridden
|
|
2082
|
+
* here, at the transaction line level.
|
|
2083
|
+
*/
|
|
2084
|
+
classId?: string;
|
|
2085
|
+
/**
|
|
2086
|
+
* The cost of this item line, represented as a decimal string. If both `quantity`
|
|
2087
|
+
* and `amount` are specified but not `cost`, QuickBooks will use them to calculate
|
|
2088
|
+
* `cost`.
|
|
2089
|
+
*/
|
|
2090
|
+
cost?: string;
|
|
2091
|
+
/**
|
|
2092
|
+
* The customer or customer-job associated with this item line.
|
|
2093
|
+
*/
|
|
2094
|
+
customerId?: string;
|
|
2095
|
+
/**
|
|
2096
|
+
* A description of this item line.
|
|
2097
|
+
*/
|
|
2098
|
+
description?: string;
|
|
2099
|
+
/**
|
|
2100
|
+
* The expiration date for the serial number or lot number of the item associated
|
|
2101
|
+
* with this item line, in ISO 8601 format (YYYY-MM-DD). This is particularly
|
|
2102
|
+
* relevant for perishable or time-sensitive inventory items. Note that this field
|
|
2103
|
+
* is only supported on QuickBooks Desktop 2023 or later.
|
|
2104
|
+
*/
|
|
2105
|
+
expirationDate?: string;
|
|
2106
|
+
/**
|
|
2107
|
+
* The site location where inventory for the item associated with this item line is
|
|
2108
|
+
* stored.
|
|
2109
|
+
*/
|
|
2110
|
+
inventorySiteId?: string;
|
|
2111
|
+
/**
|
|
2112
|
+
* The specific location (e.g., bin or shelf) within the inventory site where the
|
|
2113
|
+
* item associated with this item line is stored.
|
|
2114
|
+
*/
|
|
2115
|
+
inventorySiteLocationId?: string;
|
|
2116
|
+
/**
|
|
2117
|
+
* The item associated with this item line. This can refer to any good or service
|
|
2118
|
+
* that the business buys or sells, including item types such as a service item,
|
|
2119
|
+
* inventory item, or special calculation item like a discount item or sales-tax
|
|
2120
|
+
* item.
|
|
2121
|
+
*/
|
|
2122
|
+
itemId?: string;
|
|
2123
|
+
/**
|
|
2124
|
+
* The lot number of the item associated with this item line. Used for tracking
|
|
2125
|
+
* groups of inventory items that are purchased or manufactured together.
|
|
2126
|
+
*/
|
|
2127
|
+
lotNumber?: string;
|
|
2128
|
+
/**
|
|
2129
|
+
* The account to use for this item line, overriding the default account associated
|
|
2130
|
+
* with the item.
|
|
2131
|
+
*/
|
|
2132
|
+
overrideItemAccountId?: string;
|
|
2133
|
+
/**
|
|
2134
|
+
* Specifies an alternative unit-of-measure set when updating this item line's
|
|
2135
|
+
* `unitOfMeasure` field (e.g., "pound" or "kilogram"). This allows you to select
|
|
2136
|
+
* units from a different set than the item's default unit-of-measure set, which
|
|
2137
|
+
* remains unchanged on the item itself. The override applies only to this specific
|
|
2138
|
+
* line. For example, you can sell an item typically measured in volume units using
|
|
2139
|
+
* weight units in a specific transaction by specifying a different unit-of-measure
|
|
2140
|
+
* set with this field.
|
|
2141
|
+
*/
|
|
2142
|
+
overrideUnitOfMeasureSetId?: string;
|
|
2143
|
+
/**
|
|
2144
|
+
* The quantity of the item associated with this item line. This field cannot be
|
|
2145
|
+
* cleared.
|
|
2146
|
+
*
|
|
2147
|
+
* **NOTE**: Do not use this field if the associated item is a discount item.
|
|
2148
|
+
*/
|
|
2149
|
+
quantity?: number;
|
|
2150
|
+
/**
|
|
2151
|
+
* The item line's sales representative. Sales representatives can be employees,
|
|
2152
|
+
* vendors, or other names in QuickBooks.
|
|
2153
|
+
*/
|
|
2154
|
+
salesRepresentativeId?: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* The sales-tax code for this item line, determining whether it is taxable or
|
|
2157
|
+
* non-taxable. If set, this overrides any sales-tax codes defined on the parent
|
|
2158
|
+
* transaction or the associated item.
|
|
2159
|
+
*
|
|
2160
|
+
* Default codes include "Non" (non-taxable) and "Tax" (taxable), but custom codes
|
|
2161
|
+
* can also be created in QuickBooks. If QuickBooks is not set up to charge sales
|
|
2162
|
+
* tax (via the "Do You Charge Sales Tax?" preference), it will assign the default
|
|
2163
|
+
* non-taxable code to all sales.
|
|
2164
|
+
*/
|
|
2165
|
+
salesTaxCodeId?: string;
|
|
2166
|
+
/**
|
|
2167
|
+
* The serial number of the item associated with this item line. This is used for
|
|
2168
|
+
* tracking individual units of serialized inventory items.
|
|
2169
|
+
*/
|
|
2170
|
+
serialNumber?: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* The unit-of-measure used for the `quantity` in this item line. Must be a valid
|
|
2173
|
+
* unit within the item's available units of measure.
|
|
2174
|
+
*/
|
|
2175
|
+
unitOfMeasure?: string;
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
export interface CreditCardChargeListParams extends CursorPageParams {
|
|
2179
|
+
/**
|
|
2180
|
+
* Header param: The ID of the End-User to receive this request.
|
|
2181
|
+
*/
|
|
2182
|
+
conductorEndUserId: string;
|
|
2183
|
+
/**
|
|
2184
|
+
* Query param: Filter for credit card charges associated with these accounts.
|
|
2185
|
+
*/
|
|
2186
|
+
accountIds?: Array<string>;
|
|
2187
|
+
/**
|
|
2188
|
+
* Query param: Filter for credit card charges in these currencies.
|
|
2189
|
+
*/
|
|
2190
|
+
currencyIds?: Array<string>;
|
|
2191
|
+
/**
|
|
2192
|
+
* Query param: Filter for specific credit card charges by their
|
|
2193
|
+
* QuickBooks-assigned unique identifier(s).
|
|
2194
|
+
*
|
|
2195
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
2196
|
+
* query parameters for this request.
|
|
2197
|
+
*
|
|
2198
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
2199
|
+
* request will return an error.
|
|
2200
|
+
*/
|
|
2201
|
+
ids?: Array<string>;
|
|
2202
|
+
/**
|
|
2203
|
+
* Query param: Whether to include line items in the response. Defaults to `true`.
|
|
2204
|
+
*/
|
|
2205
|
+
includeLineItems?: boolean;
|
|
2206
|
+
/**
|
|
2207
|
+
* Query param: Filter for credit card charges paid to these payees. These are the
|
|
2208
|
+
* vendors or companies from whom merchandise or services were purchased for these
|
|
2209
|
+
* credit card charges.
|
|
2210
|
+
*/
|
|
2211
|
+
payeeIds?: Array<string>;
|
|
2212
|
+
/**
|
|
2213
|
+
* Query param: Filter for credit card charges whose `refNumber` contains this
|
|
2214
|
+
* substring.
|
|
2215
|
+
*
|
|
2216
|
+
* **NOTE**: If you use this parameter, you cannot also use `refNumberStartsWith`
|
|
2217
|
+
* or `refNumberEndsWith`.
|
|
2218
|
+
*/
|
|
2219
|
+
refNumberContains?: string;
|
|
2220
|
+
/**
|
|
2221
|
+
* Query param: Filter for credit card charges whose `refNumber` ends with this
|
|
2222
|
+
* substring.
|
|
2223
|
+
*
|
|
2224
|
+
* **NOTE**: If you use this parameter, you cannot also use `refNumberContains` or
|
|
2225
|
+
* `refNumberStartsWith`.
|
|
2226
|
+
*/
|
|
2227
|
+
refNumberEndsWith?: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* Query param: Filter for credit card charges whose `refNumber` is greater than or
|
|
2230
|
+
* equal to this value. If omitted, the range will begin with the first number of
|
|
2231
|
+
* the list. Uses a numerical comparison for values that contain only digits;
|
|
2232
|
+
* otherwise, uses a lexicographical comparison.
|
|
2233
|
+
*/
|
|
2234
|
+
refNumberFrom?: string;
|
|
2235
|
+
/**
|
|
2236
|
+
* Query param: Filter for specific credit card charges by their ref-number(s),
|
|
2237
|
+
* case-sensitive. In QuickBooks, ref-numbers are not required to be unique and can
|
|
2238
|
+
* be arbitrarily changed by the QuickBooks user.
|
|
2239
|
+
*
|
|
2240
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
2241
|
+
* query parameters for this request.
|
|
2242
|
+
*
|
|
2243
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
2244
|
+
* request will return an error.
|
|
2245
|
+
*/
|
|
2246
|
+
refNumbers?: Array<string>;
|
|
2247
|
+
/**
|
|
2248
|
+
* Query param: Filter for credit card charges whose `refNumber` starts with this
|
|
2249
|
+
* substring.
|
|
2250
|
+
*
|
|
2251
|
+
* **NOTE**: If you use this parameter, you cannot also use `refNumberContains` or
|
|
2252
|
+
* `refNumberEndsWith`.
|
|
2253
|
+
*/
|
|
2254
|
+
refNumberStartsWith?: string;
|
|
2255
|
+
/**
|
|
2256
|
+
* Query param: Filter for credit card charges whose `refNumber` is less than or
|
|
2257
|
+
* equal to this value. If omitted, the range will end with the last number of the
|
|
2258
|
+
* list. Uses a numerical comparison for values that contain only digits;
|
|
2259
|
+
* otherwise, uses a lexicographical comparison.
|
|
2260
|
+
*/
|
|
2261
|
+
refNumberTo?: string;
|
|
2262
|
+
/**
|
|
2263
|
+
* Query param: Filter for credit card charges whose `date` field is on or after
|
|
2264
|
+
* this date, in ISO 8601 format (YYYY-MM-DD).
|
|
2265
|
+
*
|
|
2266
|
+
* **NOTE:** QuickBooks Desktop interprets this date as the **start of the
|
|
2267
|
+
* specified day** in the local timezone of the end-user's computer (e.g.,
|
|
2268
|
+
* `2025-01-01` → `2025-01-01T00:00:00`).
|
|
2269
|
+
*/
|
|
2270
|
+
transactionDateFrom?: string;
|
|
2271
|
+
/**
|
|
2272
|
+
* Query param: Filter for credit card charges whose `date` field is on or before
|
|
2273
|
+
* this date, in ISO 8601 format (YYYY-MM-DD).
|
|
2274
|
+
*
|
|
2275
|
+
* **NOTE:** QuickBooks Desktop interprets this date as the **end of the specified
|
|
2276
|
+
* day** in the local timezone of the end-user's computer (e.g., `2025-01-01` →
|
|
2277
|
+
* `2025-01-01T23:59:59`).
|
|
2278
|
+
*/
|
|
2279
|
+
transactionDateTo?: string;
|
|
2280
|
+
/**
|
|
2281
|
+
* Query param: Filter for credit card charges updated on or after this date/time.
|
|
2282
|
+
* Accepts the following ISO 8601 formats:
|
|
2283
|
+
*
|
|
2284
|
+
* - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
|
|
2285
|
+
* **start of the specified day** in the local timezone of the end-user's
|
|
2286
|
+
* computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).
|
|
2287
|
+
* - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
|
|
2288
|
+
* interprets the timestamp in the local timezone of the end-user's computer.
|
|
2289
|
+
* - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
|
|
2290
|
+
* interprets the timestamp using the specified timezone.
|
|
2291
|
+
*/
|
|
2292
|
+
updatedAfter?: string;
|
|
2293
|
+
/**
|
|
2294
|
+
* Query param: Filter for credit card charges updated on or before this date/time.
|
|
2295
|
+
* Accepts the following ISO 8601 formats:
|
|
2296
|
+
*
|
|
2297
|
+
* - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
|
|
2298
|
+
* **end of the specified day** in the local timezone of the end-user's computer
|
|
2299
|
+
* (e.g., `2025-01-01` → `2025-01-01T23:59:59`).
|
|
2300
|
+
* - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
|
|
2301
|
+
* interprets the timestamp in the local timezone of the end-user's computer.
|
|
2302
|
+
* - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
|
|
2303
|
+
* interprets the timestamp using the specified timezone.
|
|
2304
|
+
*/
|
|
2305
|
+
updatedBefore?: string;
|
|
2306
|
+
}
|
|
2307
|
+
export interface CreditCardChargeDeleteParams {
|
|
2308
|
+
/**
|
|
2309
|
+
* The ID of the End-User to receive this request.
|
|
2310
|
+
*/
|
|
2311
|
+
conductorEndUserId: string;
|
|
2312
|
+
}
|
|
2313
|
+
export declare namespace CreditCardCharges {
|
|
2314
|
+
export { type CreditCardCharge as CreditCardCharge, type CreditCardChargeDeleteResponse as CreditCardChargeDeleteResponse, type CreditCardChargesCursorPage as CreditCardChargesCursorPage, type CreditCardChargeCreateParams as CreditCardChargeCreateParams, type CreditCardChargeRetrieveParams as CreditCardChargeRetrieveParams, type CreditCardChargeUpdateParams as CreditCardChargeUpdateParams, type CreditCardChargeListParams as CreditCardChargeListParams, type CreditCardChargeDeleteParams as CreditCardChargeDeleteParams, };
|
|
2315
|
+
}
|
|
2316
|
+
//# sourceMappingURL=credit-card-charges.d.mts.map
|