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