conductor-node 14.9.0 → 14.11.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 +32 -0
- package/bin/cli +12 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +11 -0
- package/client.js.map +1 -1
- package/client.mjs +11 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/qbd/account-tax-lines.d.mts +5 -3
- package/resources/qbd/account-tax-lines.d.mts.map +1 -1
- package/resources/qbd/account-tax-lines.d.ts +5 -3
- package/resources/qbd/account-tax-lines.d.ts.map +1 -1
- package/resources/qbd/account-tax-lines.js +5 -3
- package/resources/qbd/account-tax-lines.js.map +1 -1
- package/resources/qbd/account-tax-lines.mjs +5 -3
- package/resources/qbd/account-tax-lines.mjs.map +1 -1
- package/resources/qbd/accounts.d.mts +4 -3
- package/resources/qbd/accounts.d.mts.map +1 -1
- package/resources/qbd/accounts.d.ts +4 -3
- package/resources/qbd/accounts.d.ts.map +1 -1
- package/resources/qbd/accounts.js +4 -3
- package/resources/qbd/accounts.js.map +1 -1
- package/resources/qbd/accounts.mjs +4 -3
- package/resources/qbd/accounts.mjs.map +1 -1
- package/resources/qbd/bill-check-payments.d.mts +52 -1
- package/resources/qbd/bill-check-payments.d.mts.map +1 -1
- package/resources/qbd/bill-check-payments.d.ts +52 -1
- package/resources/qbd/bill-check-payments.d.ts.map +1 -1
- package/resources/qbd/bill-check-payments.js +20 -0
- package/resources/qbd/bill-check-payments.js.map +1 -1
- package/resources/qbd/bill-check-payments.mjs +20 -0
- package/resources/qbd/bill-check-payments.mjs.map +1 -1
- package/resources/qbd/bill-credit-card-payments.d.mts +54 -1
- package/resources/qbd/bill-credit-card-payments.d.mts.map +1 -1
- package/resources/qbd/bill-credit-card-payments.d.ts +54 -1
- package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
- package/resources/qbd/bill-credit-card-payments.js +21 -0
- package/resources/qbd/bill-credit-card-payments.js.map +1 -1
- package/resources/qbd/bill-credit-card-payments.mjs +21 -0
- package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
- package/resources/qbd/bills.d.mts +55 -1
- package/resources/qbd/bills.d.mts.map +1 -1
- package/resources/qbd/bills.d.ts +55 -1
- package/resources/qbd/bills.d.ts.map +1 -1
- package/resources/qbd/bills.js +24 -0
- package/resources/qbd/bills.js.map +1 -1
- package/resources/qbd/bills.mjs +24 -0
- package/resources/qbd/bills.mjs.map +1 -1
- package/resources/qbd/checks.d.mts +55 -1
- package/resources/qbd/checks.d.mts.map +1 -1
- package/resources/qbd/checks.d.ts +55 -1
- package/resources/qbd/checks.d.ts.map +1 -1
- package/resources/qbd/checks.js +24 -0
- package/resources/qbd/checks.js.map +1 -1
- package/resources/qbd/checks.mjs +24 -0
- package/resources/qbd/checks.mjs.map +1 -1
- package/resources/qbd/classes.d.mts +4 -3
- package/resources/qbd/classes.d.mts.map +1 -1
- package/resources/qbd/classes.d.ts +4 -3
- package/resources/qbd/classes.d.ts.map +1 -1
- package/resources/qbd/classes.js +4 -3
- package/resources/qbd/classes.js.map +1 -1
- package/resources/qbd/classes.mjs +4 -3
- package/resources/qbd/classes.mjs.map +1 -1
- package/resources/qbd/credit-card-charges.d.mts +56 -1
- package/resources/qbd/credit-card-charges.d.mts.map +1 -1
- package/resources/qbd/credit-card-charges.d.ts +56 -1
- package/resources/qbd/credit-card-charges.d.ts.map +1 -1
- package/resources/qbd/credit-card-charges.js +24 -0
- package/resources/qbd/credit-card-charges.js.map +1 -1
- package/resources/qbd/credit-card-charges.mjs +24 -0
- package/resources/qbd/credit-card-charges.mjs.map +1 -1
- package/resources/qbd/credit-card-credits.d.mts +56 -1
- package/resources/qbd/credit-card-credits.d.mts.map +1 -1
- package/resources/qbd/credit-card-credits.d.ts +56 -1
- package/resources/qbd/credit-card-credits.d.ts.map +1 -1
- package/resources/qbd/credit-card-credits.js +24 -0
- package/resources/qbd/credit-card-credits.js.map +1 -1
- package/resources/qbd/credit-card-credits.mjs +24 -0
- package/resources/qbd/credit-card-credits.mjs.map +1 -1
- package/resources/qbd/credit-card-refunds.d.mts +52 -1
- package/resources/qbd/credit-card-refunds.d.mts.map +1 -1
- package/resources/qbd/credit-card-refunds.d.ts +52 -1
- package/resources/qbd/credit-card-refunds.d.ts.map +1 -1
- package/resources/qbd/credit-card-refunds.js +20 -0
- package/resources/qbd/credit-card-refunds.js.map +1 -1
- package/resources/qbd/credit-card-refunds.mjs +20 -0
- package/resources/qbd/credit-card-refunds.mjs.map +1 -1
- package/resources/qbd/credit-memos.d.mts +55 -1
- package/resources/qbd/credit-memos.d.mts.map +1 -1
- package/resources/qbd/credit-memos.d.ts +55 -1
- package/resources/qbd/credit-memos.d.ts.map +1 -1
- package/resources/qbd/credit-memos.js +24 -0
- package/resources/qbd/credit-memos.js.map +1 -1
- package/resources/qbd/credit-memos.mjs +24 -0
- package/resources/qbd/credit-memos.mjs.map +1 -1
- package/resources/qbd/currencies.d.mts +4 -3
- package/resources/qbd/currencies.d.mts.map +1 -1
- package/resources/qbd/currencies.d.ts +4 -3
- package/resources/qbd/currencies.d.ts.map +1 -1
- package/resources/qbd/currencies.js +4 -3
- package/resources/qbd/currencies.js.map +1 -1
- package/resources/qbd/currencies.mjs +4 -3
- package/resources/qbd/currencies.mjs.map +1 -1
- package/resources/qbd/customer-types.d.mts +4 -3
- package/resources/qbd/customer-types.d.mts.map +1 -1
- package/resources/qbd/customer-types.d.ts +4 -3
- package/resources/qbd/customer-types.d.ts.map +1 -1
- package/resources/qbd/customer-types.js +4 -3
- package/resources/qbd/customer-types.js.map +1 -1
- package/resources/qbd/customer-types.mjs +4 -3
- package/resources/qbd/customer-types.mjs.map +1 -1
- package/resources/qbd/customers.d.mts +17 -2
- package/resources/qbd/customers.d.mts.map +1 -1
- package/resources/qbd/customers.d.ts +17 -2
- package/resources/qbd/customers.d.ts.map +1 -1
- package/resources/qbd/customers.js +4 -0
- package/resources/qbd/customers.js.map +1 -1
- package/resources/qbd/customers.mjs +4 -0
- package/resources/qbd/customers.mjs.map +1 -1
- package/resources/qbd/date-driven-terms.d.mts +5 -3
- package/resources/qbd/date-driven-terms.d.mts.map +1 -1
- package/resources/qbd/date-driven-terms.d.ts +5 -3
- package/resources/qbd/date-driven-terms.d.ts.map +1 -1
- package/resources/qbd/date-driven-terms.js +5 -3
- package/resources/qbd/date-driven-terms.js.map +1 -1
- package/resources/qbd/date-driven-terms.mjs +5 -3
- package/resources/qbd/date-driven-terms.mjs.map +1 -1
- package/resources/qbd/deleted-list-objects.d.mts +4 -0
- package/resources/qbd/deleted-list-objects.d.mts.map +1 -1
- package/resources/qbd/deleted-list-objects.d.ts +4 -0
- package/resources/qbd/deleted-list-objects.d.ts.map +1 -1
- package/resources/qbd/deleted-list-objects.js +4 -0
- package/resources/qbd/deleted-list-objects.js.map +1 -1
- package/resources/qbd/deleted-list-objects.mjs +4 -0
- package/resources/qbd/deleted-list-objects.mjs.map +1 -1
- package/resources/qbd/deleted-transactions.d.mts +4 -0
- package/resources/qbd/deleted-transactions.d.mts.map +1 -1
- package/resources/qbd/deleted-transactions.d.ts +4 -0
- package/resources/qbd/deleted-transactions.d.ts.map +1 -1
- package/resources/qbd/deleted-transactions.js +4 -0
- package/resources/qbd/deleted-transactions.js.map +1 -1
- package/resources/qbd/deleted-transactions.mjs +4 -0
- package/resources/qbd/deleted-transactions.mjs.map +1 -1
- package/resources/qbd/deposits.d.mts +879 -0
- package/resources/qbd/deposits.d.mts.map +1 -0
- package/resources/qbd/deposits.d.ts +879 -0
- package/resources/qbd/deposits.d.ts.map +1 -0
- package/resources/qbd/deposits.js +144 -0
- package/resources/qbd/deposits.js.map +1 -0
- package/resources/qbd/deposits.mjs +140 -0
- package/resources/qbd/deposits.mjs.map +1 -0
- package/resources/qbd/employees.d.mts +4 -3
- package/resources/qbd/employees.d.mts.map +1 -1
- package/resources/qbd/employees.d.ts +4 -3
- package/resources/qbd/employees.d.ts.map +1 -1
- package/resources/qbd/employees.js +4 -3
- package/resources/qbd/employees.js.map +1 -1
- package/resources/qbd/employees.mjs +4 -3
- package/resources/qbd/employees.mjs.map +1 -1
- package/resources/qbd/estimates.d.mts +4 -0
- package/resources/qbd/estimates.d.mts.map +1 -1
- package/resources/qbd/estimates.d.ts +4 -0
- package/resources/qbd/estimates.d.ts.map +1 -1
- package/resources/qbd/estimates.js +4 -0
- package/resources/qbd/estimates.js.map +1 -1
- package/resources/qbd/estimates.mjs +4 -0
- package/resources/qbd/estimates.mjs.map +1 -1
- package/resources/qbd/index.d.mts +16 -14
- package/resources/qbd/index.d.mts.map +1 -1
- package/resources/qbd/index.d.ts +16 -14
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js +6 -2
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs +2 -0
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/inventory-adjustments.d.mts +62 -4
- package/resources/qbd/inventory-adjustments.d.mts.map +1 -1
- package/resources/qbd/inventory-adjustments.d.ts +62 -4
- package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
- package/resources/qbd/inventory-adjustments.js +30 -3
- package/resources/qbd/inventory-adjustments.js.map +1 -1
- package/resources/qbd/inventory-adjustments.mjs +30 -3
- package/resources/qbd/inventory-adjustments.mjs.map +1 -1
- package/resources/qbd/inventory-sites.d.mts +4 -3
- package/resources/qbd/inventory-sites.d.mts.map +1 -1
- package/resources/qbd/inventory-sites.d.ts +4 -3
- package/resources/qbd/inventory-sites.d.ts.map +1 -1
- package/resources/qbd/inventory-sites.js +4 -3
- package/resources/qbd/inventory-sites.js.map +1 -1
- package/resources/qbd/inventory-sites.mjs +4 -3
- package/resources/qbd/inventory-sites.mjs.map +1 -1
- package/resources/qbd/invoices.d.mts +55 -1
- package/resources/qbd/invoices.d.mts.map +1 -1
- package/resources/qbd/invoices.d.ts +55 -1
- package/resources/qbd/invoices.d.ts.map +1 -1
- package/resources/qbd/invoices.js +24 -0
- package/resources/qbd/invoices.js.map +1 -1
- package/resources/qbd/invoices.mjs +24 -0
- package/resources/qbd/invoices.mjs.map +1 -1
- package/resources/qbd/item-receipts.d.mts +55 -1
- package/resources/qbd/item-receipts.d.mts.map +1 -1
- package/resources/qbd/item-receipts.d.ts +55 -1
- package/resources/qbd/item-receipts.d.ts.map +1 -1
- package/resources/qbd/item-receipts.js +24 -0
- package/resources/qbd/item-receipts.js.map +1 -1
- package/resources/qbd/item-receipts.mjs +24 -0
- package/resources/qbd/item-receipts.mjs.map +1 -1
- package/resources/qbd/journal-entries.d.mts +55 -1
- package/resources/qbd/journal-entries.d.mts.map +1 -1
- package/resources/qbd/journal-entries.d.ts +55 -1
- package/resources/qbd/journal-entries.d.ts.map +1 -1
- package/resources/qbd/journal-entries.js +24 -0
- package/resources/qbd/journal-entries.js.map +1 -1
- package/resources/qbd/journal-entries.mjs +24 -0
- package/resources/qbd/journal-entries.mjs.map +1 -1
- package/resources/qbd/other-names.d.mts +4 -3
- package/resources/qbd/other-names.d.mts.map +1 -1
- package/resources/qbd/other-names.d.ts +4 -3
- package/resources/qbd/other-names.d.ts.map +1 -1
- package/resources/qbd/other-names.js +4 -3
- package/resources/qbd/other-names.js.map +1 -1
- package/resources/qbd/other-names.mjs +4 -3
- package/resources/qbd/other-names.mjs.map +1 -1
- package/resources/qbd/payment-methods.d.mts +4 -3
- package/resources/qbd/payment-methods.d.mts.map +1 -1
- package/resources/qbd/payment-methods.d.ts +4 -3
- package/resources/qbd/payment-methods.d.ts.map +1 -1
- package/resources/qbd/payment-methods.js +4 -3
- package/resources/qbd/payment-methods.js.map +1 -1
- package/resources/qbd/payment-methods.mjs +4 -3
- package/resources/qbd/payment-methods.mjs.map +1 -1
- package/resources/qbd/payments-to-deposit.d.mts +139 -0
- package/resources/qbd/payments-to-deposit.d.mts.map +1 -0
- package/resources/qbd/payments-to-deposit.d.ts +139 -0
- package/resources/qbd/payments-to-deposit.d.ts.map +1 -0
- package/resources/qbd/payments-to-deposit.js +35 -0
- package/resources/qbd/payments-to-deposit.js.map +1 -0
- package/resources/qbd/payments-to-deposit.mjs +31 -0
- package/resources/qbd/payments-to-deposit.mjs.map +1 -0
- package/resources/qbd/price-levels.d.mts +4 -3
- package/resources/qbd/price-levels.d.mts.map +1 -1
- package/resources/qbd/price-levels.d.ts +4 -3
- package/resources/qbd/price-levels.d.ts.map +1 -1
- package/resources/qbd/price-levels.js +4 -3
- package/resources/qbd/price-levels.js.map +1 -1
- package/resources/qbd/price-levels.mjs +4 -3
- package/resources/qbd/price-levels.mjs.map +1 -1
- package/resources/qbd/purchase-orders.d.mts +4 -0
- package/resources/qbd/purchase-orders.d.mts.map +1 -1
- package/resources/qbd/purchase-orders.d.ts +4 -0
- package/resources/qbd/purchase-orders.d.ts.map +1 -1
- package/resources/qbd/purchase-orders.js +4 -0
- package/resources/qbd/purchase-orders.js.map +1 -1
- package/resources/qbd/purchase-orders.mjs +4 -0
- package/resources/qbd/purchase-orders.mjs.map +1 -1
- package/resources/qbd/qbd.d.mts +36 -28
- package/resources/qbd/qbd.d.mts.map +1 -1
- package/resources/qbd/qbd.d.ts +36 -28
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js +8 -0
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs +8 -0
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/sales-orders.d.mts +4 -0
- package/resources/qbd/sales-orders.d.mts.map +1 -1
- package/resources/qbd/sales-orders.d.ts +4 -0
- package/resources/qbd/sales-orders.d.ts.map +1 -1
- package/resources/qbd/sales-orders.js +4 -0
- package/resources/qbd/sales-orders.js.map +1 -1
- package/resources/qbd/sales-orders.mjs +4 -0
- package/resources/qbd/sales-orders.mjs.map +1 -1
- package/resources/qbd/sales-receipts.d.mts +55 -1
- package/resources/qbd/sales-receipts.d.mts.map +1 -1
- package/resources/qbd/sales-receipts.d.ts +55 -1
- package/resources/qbd/sales-receipts.d.ts.map +1 -1
- package/resources/qbd/sales-receipts.js +24 -0
- package/resources/qbd/sales-receipts.js.map +1 -1
- package/resources/qbd/sales-receipts.mjs +24 -0
- package/resources/qbd/sales-receipts.mjs.map +1 -1
- package/resources/qbd/sales-representatives.d.mts +5 -3
- package/resources/qbd/sales-representatives.d.mts.map +1 -1
- package/resources/qbd/sales-representatives.d.ts +5 -3
- package/resources/qbd/sales-representatives.d.ts.map +1 -1
- package/resources/qbd/sales-representatives.js +5 -3
- package/resources/qbd/sales-representatives.js.map +1 -1
- package/resources/qbd/sales-representatives.mjs +5 -3
- package/resources/qbd/sales-representatives.mjs.map +1 -1
- package/resources/qbd/sales-tax-codes.d.mts +4 -3
- package/resources/qbd/sales-tax-codes.d.mts.map +1 -1
- package/resources/qbd/sales-tax-codes.d.ts +4 -3
- package/resources/qbd/sales-tax-codes.d.ts.map +1 -1
- package/resources/qbd/sales-tax-codes.js +4 -3
- package/resources/qbd/sales-tax-codes.js.map +1 -1
- package/resources/qbd/sales-tax-codes.mjs +4 -3
- package/resources/qbd/sales-tax-codes.mjs.map +1 -1
- package/resources/qbd/shipping-methods.d.mts +5 -3
- package/resources/qbd/shipping-methods.d.mts.map +1 -1
- package/resources/qbd/shipping-methods.d.ts +5 -3
- package/resources/qbd/shipping-methods.d.ts.map +1 -1
- package/resources/qbd/shipping-methods.js +5 -3
- package/resources/qbd/shipping-methods.js.map +1 -1
- package/resources/qbd/shipping-methods.mjs +5 -3
- package/resources/qbd/shipping-methods.mjs.map +1 -1
- package/resources/qbd/standard-terms.d.mts +4 -3
- package/resources/qbd/standard-terms.d.mts.map +1 -1
- package/resources/qbd/standard-terms.d.ts +4 -3
- package/resources/qbd/standard-terms.d.ts.map +1 -1
- package/resources/qbd/standard-terms.js +4 -3
- package/resources/qbd/standard-terms.js.map +1 -1
- package/resources/qbd/standard-terms.mjs +4 -3
- package/resources/qbd/standard-terms.mjs.map +1 -1
- package/resources/qbd/time-tracking-activities.d.mts +0 -5
- package/resources/qbd/time-tracking-activities.d.mts.map +1 -1
- package/resources/qbd/time-tracking-activities.d.ts +0 -5
- package/resources/qbd/time-tracking-activities.d.ts.map +1 -1
- package/resources/qbd/transactions.d.mts +2 -1
- package/resources/qbd/transactions.d.mts.map +1 -1
- package/resources/qbd/transactions.d.ts +2 -1
- package/resources/qbd/transactions.d.ts.map +1 -1
- package/resources/qbd/transactions.js +2 -1
- package/resources/qbd/transactions.js.map +1 -1
- package/resources/qbd/transactions.mjs +2 -1
- package/resources/qbd/transactions.mjs.map +1 -1
- package/resources/qbd/unit-of-measure-sets.d.mts +4 -0
- package/resources/qbd/unit-of-measure-sets.d.mts.map +1 -1
- package/resources/qbd/unit-of-measure-sets.d.ts +4 -0
- package/resources/qbd/unit-of-measure-sets.d.ts.map +1 -1
- package/resources/qbd/unit-of-measure-sets.js +4 -0
- package/resources/qbd/unit-of-measure-sets.js.map +1 -1
- package/resources/qbd/unit-of-measure-sets.mjs +4 -0
- package/resources/qbd/unit-of-measure-sets.mjs.map +1 -1
- package/resources/qbd/vendor-credits.d.mts +55 -1
- package/resources/qbd/vendor-credits.d.mts.map +1 -1
- package/resources/qbd/vendor-credits.d.ts +55 -1
- package/resources/qbd/vendor-credits.d.ts.map +1 -1
- package/resources/qbd/vendor-credits.js +24 -0
- package/resources/qbd/vendor-credits.js.map +1 -1
- package/resources/qbd/vendor-credits.mjs +24 -0
- package/resources/qbd/vendor-credits.mjs.map +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/qbd/account-tax-lines.ts +5 -3
- package/src/resources/qbd/accounts.ts +4 -3
- package/src/resources/qbd/bill-check-payments.ts +71 -0
- package/src/resources/qbd/bill-credit-card-payments.ts +73 -0
- package/src/resources/qbd/bills.ts +70 -0
- package/src/resources/qbd/checks.ts +70 -0
- package/src/resources/qbd/classes.ts +4 -3
- package/src/resources/qbd/credit-card-charges.ts +75 -0
- package/src/resources/qbd/credit-card-credits.ts +75 -0
- package/src/resources/qbd/credit-card-refunds.ts +71 -0
- package/src/resources/qbd/credit-memos.ts +74 -0
- package/src/resources/qbd/currencies.ts +4 -3
- package/src/resources/qbd/customer-types.ts +4 -3
- package/src/resources/qbd/customers.ts +18 -2
- package/src/resources/qbd/date-driven-terms.ts +5 -3
- package/src/resources/qbd/deleted-list-objects.ts +4 -0
- package/src/resources/qbd/deleted-transactions.ts +4 -0
- package/src/resources/qbd/deposits.ts +1101 -0
- package/src/resources/qbd/employees.ts +4 -3
- package/src/resources/qbd/estimates.ts +4 -0
- package/src/resources/qbd/index.ts +47 -0
- package/src/resources/qbd/inventory-adjustments.ts +81 -3
- package/src/resources/qbd/inventory-sites.ts +4 -3
- package/src/resources/qbd/invoices.ts +70 -0
- package/src/resources/qbd/item-receipts.ts +74 -0
- package/src/resources/qbd/journal-entries.ts +74 -0
- package/src/resources/qbd/other-names.ts +4 -3
- package/src/resources/qbd/payment-methods.ts +4 -3
- package/src/resources/qbd/payments-to-deposit.ts +201 -0
- package/src/resources/qbd/price-levels.ts +4 -3
- package/src/resources/qbd/purchase-orders.ts +4 -0
- package/src/resources/qbd/qbd.ts +104 -0
- package/src/resources/qbd/sales-orders.ts +4 -0
- package/src/resources/qbd/sales-receipts.ts +74 -0
- package/src/resources/qbd/sales-representatives.ts +5 -3
- package/src/resources/qbd/sales-tax-codes.ts +4 -3
- package/src/resources/qbd/shipping-methods.ts +5 -3
- package/src/resources/qbd/standard-terms.ts +4 -3
- package/src/resources/qbd/time-tracking-activities.ts +0 -6
- package/src/resources/qbd/transactions.ts +2 -1
- package/src/resources/qbd/unit-of-measure-sets.ts +4 -0
- package/src/resources/qbd/vendor-credits.ts +74 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- 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
|
@@ -77,9 +77,10 @@ export class Employees extends APIResource {
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
|
-
* Returns a list of employees.
|
|
81
|
-
*
|
|
82
|
-
*
|
|
80
|
+
* Returns a list of employees.
|
|
81
|
+
*
|
|
82
|
+
* **NOTE:** QuickBooks Desktop does not support pagination for employees; hence,
|
|
83
|
+
* there is no `cursor` parameter. Users typically have few employees.
|
|
83
84
|
*
|
|
84
85
|
* @example
|
|
85
86
|
* ```ts
|
|
@@ -57,6 +57,10 @@ export class Estimates extends APIResource {
|
|
|
57
57
|
/**
|
|
58
58
|
* Updates an existing estimate.
|
|
59
59
|
*
|
|
60
|
+
* **NOTE:** If you include `lines` or `lineGroups`, QuickBooks Desktop replaces
|
|
61
|
+
* each included line list with the array you send, so include unchanged lines you
|
|
62
|
+
* want to keep and use `id: "-1"` for new lines.
|
|
63
|
+
*
|
|
60
64
|
* @example
|
|
61
65
|
* ```ts
|
|
62
66
|
* const estimate = await conductor.qbd.estimates.update(
|
|
@@ -19,32 +19,38 @@ export {
|
|
|
19
19
|
BillCheckPayments,
|
|
20
20
|
type BillCheckPayment,
|
|
21
21
|
type BillCheckPaymentDeleteResponse,
|
|
22
|
+
type BillCheckPaymentVoidResponse,
|
|
22
23
|
type BillCheckPaymentCreateParams,
|
|
23
24
|
type BillCheckPaymentRetrieveParams,
|
|
24
25
|
type BillCheckPaymentUpdateParams,
|
|
25
26
|
type BillCheckPaymentListParams,
|
|
26
27
|
type BillCheckPaymentDeleteParams,
|
|
28
|
+
type BillCheckPaymentVoidParams,
|
|
27
29
|
type BillCheckPaymentsCursorPage,
|
|
28
30
|
} from './bill-check-payments';
|
|
29
31
|
export {
|
|
30
32
|
BillCreditCardPayments,
|
|
31
33
|
type BillCreditCardPayment,
|
|
32
34
|
type BillCreditCardPaymentDeleteResponse,
|
|
35
|
+
type BillCreditCardPaymentVoidResponse,
|
|
33
36
|
type BillCreditCardPaymentCreateParams,
|
|
34
37
|
type BillCreditCardPaymentRetrieveParams,
|
|
35
38
|
type BillCreditCardPaymentListParams,
|
|
36
39
|
type BillCreditCardPaymentDeleteParams,
|
|
40
|
+
type BillCreditCardPaymentVoidParams,
|
|
37
41
|
type BillCreditCardPaymentsCursorPage,
|
|
38
42
|
} from './bill-credit-card-payments';
|
|
39
43
|
export {
|
|
40
44
|
Bills,
|
|
41
45
|
type Bill,
|
|
42
46
|
type BillDeleteResponse,
|
|
47
|
+
type BillVoidResponse,
|
|
43
48
|
type BillCreateParams,
|
|
44
49
|
type BillRetrieveParams,
|
|
45
50
|
type BillUpdateParams,
|
|
46
51
|
type BillListParams,
|
|
47
52
|
type BillDeleteParams,
|
|
53
|
+
type BillVoidParams,
|
|
48
54
|
type BillsCursorPage,
|
|
49
55
|
} from './bills';
|
|
50
56
|
export {
|
|
@@ -62,11 +68,13 @@ export {
|
|
|
62
68
|
Checks,
|
|
63
69
|
type Check,
|
|
64
70
|
type CheckDeleteResponse,
|
|
71
|
+
type CheckVoidResponse,
|
|
65
72
|
type CheckCreateParams,
|
|
66
73
|
type CheckRetrieveParams,
|
|
67
74
|
type CheckUpdateParams,
|
|
68
75
|
type CheckListParams,
|
|
69
76
|
type CheckDeleteParams,
|
|
77
|
+
type CheckVoidParams,
|
|
70
78
|
type ChecksCursorPage,
|
|
71
79
|
} from './checks';
|
|
72
80
|
export {
|
|
@@ -83,43 +91,51 @@ export {
|
|
|
83
91
|
CreditCardCharges,
|
|
84
92
|
type CreditCardCharge,
|
|
85
93
|
type CreditCardChargeDeleteResponse,
|
|
94
|
+
type CreditCardChargeVoidResponse,
|
|
86
95
|
type CreditCardChargeCreateParams,
|
|
87
96
|
type CreditCardChargeRetrieveParams,
|
|
88
97
|
type CreditCardChargeUpdateParams,
|
|
89
98
|
type CreditCardChargeListParams,
|
|
90
99
|
type CreditCardChargeDeleteParams,
|
|
100
|
+
type CreditCardChargeVoidParams,
|
|
91
101
|
type CreditCardChargesCursorPage,
|
|
92
102
|
} from './credit-card-charges';
|
|
93
103
|
export {
|
|
94
104
|
CreditCardCredits,
|
|
95
105
|
type CreditCardCredit,
|
|
96
106
|
type CreditCardCreditDeleteResponse,
|
|
107
|
+
type CreditCardCreditVoidResponse,
|
|
97
108
|
type CreditCardCreditCreateParams,
|
|
98
109
|
type CreditCardCreditRetrieveParams,
|
|
99
110
|
type CreditCardCreditUpdateParams,
|
|
100
111
|
type CreditCardCreditListParams,
|
|
101
112
|
type CreditCardCreditDeleteParams,
|
|
113
|
+
type CreditCardCreditVoidParams,
|
|
102
114
|
type CreditCardCreditsCursorPage,
|
|
103
115
|
} from './credit-card-credits';
|
|
104
116
|
export {
|
|
105
117
|
CreditCardRefunds,
|
|
106
118
|
type CreditCardRefund,
|
|
107
119
|
type CreditCardRefundDeleteResponse,
|
|
120
|
+
type CreditCardRefundVoidResponse,
|
|
108
121
|
type CreditCardRefundCreateParams,
|
|
109
122
|
type CreditCardRefundRetrieveParams,
|
|
110
123
|
type CreditCardRefundListParams,
|
|
111
124
|
type CreditCardRefundDeleteParams,
|
|
125
|
+
type CreditCardRefundVoidParams,
|
|
112
126
|
type CreditCardRefundsCursorPage,
|
|
113
127
|
} from './credit-card-refunds';
|
|
114
128
|
export {
|
|
115
129
|
CreditMemos,
|
|
116
130
|
type CreditMemo,
|
|
117
131
|
type CreditMemoDeleteResponse,
|
|
132
|
+
type CreditMemoVoidResponse,
|
|
118
133
|
type CreditMemoCreateParams,
|
|
119
134
|
type CreditMemoRetrieveParams,
|
|
120
135
|
type CreditMemoUpdateParams,
|
|
121
136
|
type CreditMemoListParams,
|
|
122
137
|
type CreditMemoDeleteParams,
|
|
138
|
+
type CreditMemoVoidParams,
|
|
123
139
|
type CreditMemosCursorPage,
|
|
124
140
|
} from './credit-memos';
|
|
125
141
|
export {
|
|
@@ -168,6 +184,19 @@ export {
|
|
|
168
184
|
type DeletedTransactionListResponse,
|
|
169
185
|
type DeletedTransactionListParams,
|
|
170
186
|
} from './deleted-transactions';
|
|
187
|
+
export {
|
|
188
|
+
Deposits,
|
|
189
|
+
type Deposit,
|
|
190
|
+
type DepositDeleteResponse,
|
|
191
|
+
type DepositVoidResponse,
|
|
192
|
+
type DepositCreateParams,
|
|
193
|
+
type DepositRetrieveParams,
|
|
194
|
+
type DepositUpdateParams,
|
|
195
|
+
type DepositListParams,
|
|
196
|
+
type DepositDeleteParams,
|
|
197
|
+
type DepositVoidParams,
|
|
198
|
+
type DepositsCursorPage,
|
|
199
|
+
} from './deposits';
|
|
171
200
|
export {
|
|
172
201
|
DiscountItems,
|
|
173
202
|
type DiscountItem,
|
|
@@ -202,11 +231,13 @@ export {
|
|
|
202
231
|
type InventoryAdjustment,
|
|
203
232
|
type InventoryAdjustmentListResponse,
|
|
204
233
|
type InventoryAdjustmentDeleteResponse,
|
|
234
|
+
type InventoryAdjustmentVoidResponse,
|
|
205
235
|
type InventoryAdjustmentCreateParams,
|
|
206
236
|
type InventoryAdjustmentRetrieveParams,
|
|
207
237
|
type InventoryAdjustmentUpdateParams,
|
|
208
238
|
type InventoryAdjustmentListParams,
|
|
209
239
|
type InventoryAdjustmentDeleteParams,
|
|
240
|
+
type InventoryAdjustmentVoidParams,
|
|
210
241
|
} from './inventory-adjustments';
|
|
211
242
|
export {
|
|
212
243
|
InventoryAssemblyItems,
|
|
@@ -239,11 +270,13 @@ export {
|
|
|
239
270
|
Invoices,
|
|
240
271
|
type Invoice,
|
|
241
272
|
type InvoiceDeleteResponse,
|
|
273
|
+
type InvoiceVoidResponse,
|
|
242
274
|
type InvoiceCreateParams,
|
|
243
275
|
type InvoiceRetrieveParams,
|
|
244
276
|
type InvoiceUpdateParams,
|
|
245
277
|
type InvoiceListParams,
|
|
246
278
|
type InvoiceDeleteParams,
|
|
279
|
+
type InvoiceVoidParams,
|
|
247
280
|
type InvoicesCursorPage,
|
|
248
281
|
} from './invoices';
|
|
249
282
|
export {
|
|
@@ -259,11 +292,13 @@ export {
|
|
|
259
292
|
ItemReceipts,
|
|
260
293
|
type ItemReceipt,
|
|
261
294
|
type ItemReceiptDeleteResponse,
|
|
295
|
+
type ItemReceiptVoidResponse,
|
|
262
296
|
type ItemReceiptCreateParams,
|
|
263
297
|
type ItemReceiptRetrieveParams,
|
|
264
298
|
type ItemReceiptUpdateParams,
|
|
265
299
|
type ItemReceiptListParams,
|
|
266
300
|
type ItemReceiptDeleteParams,
|
|
301
|
+
type ItemReceiptVoidParams,
|
|
267
302
|
type ItemReceiptsCursorPage,
|
|
268
303
|
} from './item-receipts';
|
|
269
304
|
export {
|
|
@@ -277,11 +312,13 @@ export {
|
|
|
277
312
|
JournalEntries,
|
|
278
313
|
type JournalEntry,
|
|
279
314
|
type JournalEntryDeleteResponse,
|
|
315
|
+
type JournalEntryVoidResponse,
|
|
280
316
|
type JournalEntryCreateParams,
|
|
281
317
|
type JournalEntryRetrieveParams,
|
|
282
318
|
type JournalEntryUpdateParams,
|
|
283
319
|
type JournalEntryListParams,
|
|
284
320
|
type JournalEntryDeleteParams,
|
|
321
|
+
type JournalEntryVoidParams,
|
|
285
322
|
type JournalEntriesCursorPage,
|
|
286
323
|
} from './journal-entries';
|
|
287
324
|
export {
|
|
@@ -319,6 +356,12 @@ export {
|
|
|
319
356
|
type PaymentMethodRetrieveParams,
|
|
320
357
|
type PaymentMethodListParams,
|
|
321
358
|
} from './payment-methods';
|
|
359
|
+
export {
|
|
360
|
+
PaymentsToDeposit,
|
|
361
|
+
type PaymentToDeposit,
|
|
362
|
+
type PaymentsToDepositListResponse,
|
|
363
|
+
type PaymentsToDepositListParams,
|
|
364
|
+
} from './payments-to-deposit';
|
|
322
365
|
export {
|
|
323
366
|
PayrollWageItems,
|
|
324
367
|
type PayrollWageItem,
|
|
@@ -375,11 +418,13 @@ export {
|
|
|
375
418
|
SalesReceipts,
|
|
376
419
|
type SalesReceipt,
|
|
377
420
|
type SalesReceiptDeleteResponse,
|
|
421
|
+
type SalesReceiptVoidResponse,
|
|
378
422
|
type SalesReceiptCreateParams,
|
|
379
423
|
type SalesReceiptRetrieveParams,
|
|
380
424
|
type SalesReceiptUpdateParams,
|
|
381
425
|
type SalesReceiptListParams,
|
|
382
426
|
type SalesReceiptDeleteParams,
|
|
427
|
+
type SalesReceiptVoidParams,
|
|
383
428
|
type SalesReceiptsCursorPage,
|
|
384
429
|
} from './sales-receipts';
|
|
385
430
|
export {
|
|
@@ -483,11 +528,13 @@ export {
|
|
|
483
528
|
VendorCredits,
|
|
484
529
|
type VendorCredit,
|
|
485
530
|
type VendorCreditDeleteResponse,
|
|
531
|
+
type VendorCreditVoidResponse,
|
|
486
532
|
type VendorCreditCreateParams,
|
|
487
533
|
type VendorCreditRetrieveParams,
|
|
488
534
|
type VendorCreditUpdateParams,
|
|
489
535
|
type VendorCreditListParams,
|
|
490
536
|
type VendorCreditDeleteParams,
|
|
537
|
+
type VendorCreditVoidParams,
|
|
491
538
|
type VendorCreditsCursorPage,
|
|
492
539
|
} from './vendor-credits';
|
|
493
540
|
export {
|
|
@@ -63,6 +63,10 @@ export class InventoryAdjustments extends APIResource {
|
|
|
63
63
|
/**
|
|
64
64
|
* Updates an existing inventory adjustment.
|
|
65
65
|
*
|
|
66
|
+
* **NOTE:** If you include `lines`, QuickBooks Desktop replaces that line list
|
|
67
|
+
* with the array you send, so include unchanged lines you want to keep and use
|
|
68
|
+
* `id: "-1"` for new lines.
|
|
69
|
+
*
|
|
66
70
|
* @example
|
|
67
71
|
* ```ts
|
|
68
72
|
* const inventoryAdjustment =
|
|
@@ -89,9 +93,11 @@ export class InventoryAdjustments extends APIResource {
|
|
|
89
93
|
}
|
|
90
94
|
|
|
91
95
|
/**
|
|
92
|
-
* Returns a list of inventory adjustments.
|
|
93
|
-
*
|
|
94
|
-
*
|
|
96
|
+
* Returns a list of inventory adjustments.
|
|
97
|
+
*
|
|
98
|
+
* **NOTE:** QuickBooks Desktop does not support pagination for inventory
|
|
99
|
+
* adjustments; hence, there is no `cursor` parameter. Users typically have few
|
|
100
|
+
* inventory adjustments.
|
|
95
101
|
*
|
|
96
102
|
* @example
|
|
97
103
|
* ```ts
|
|
@@ -138,6 +144,32 @@ export class InventoryAdjustments extends APIResource {
|
|
|
138
144
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
139
145
|
});
|
|
140
146
|
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Voids an inventory adjustment by setting its amount to zero while keeping a
|
|
150
|
+
* record of it in QuickBooks. The void will fail if the inventory adjustment is
|
|
151
|
+
* currently in use or has any linked transactions that are in use.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```ts
|
|
155
|
+
* const response =
|
|
156
|
+
* await conductor.qbd.inventoryAdjustments.void(
|
|
157
|
+
* '123ABC-1234567890',
|
|
158
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
159
|
+
* );
|
|
160
|
+
* ```
|
|
161
|
+
*/
|
|
162
|
+
void(
|
|
163
|
+
id: string,
|
|
164
|
+
params: InventoryAdjustmentVoidParams,
|
|
165
|
+
options?: RequestOptions,
|
|
166
|
+
): APIPromise<InventoryAdjustmentVoidResponse> {
|
|
167
|
+
const { conductorEndUserId } = params;
|
|
168
|
+
return this._client.post(path`/quickbooks-desktop/inventory-adjustments/${id}/void`, {
|
|
169
|
+
...options,
|
|
170
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
171
|
+
});
|
|
172
|
+
}
|
|
141
173
|
}
|
|
142
174
|
|
|
143
175
|
export interface InventoryAdjustment {
|
|
@@ -506,6 +538,43 @@ export interface InventoryAdjustmentDeleteResponse {
|
|
|
506
538
|
refNumber: string | null;
|
|
507
539
|
}
|
|
508
540
|
|
|
541
|
+
export interface InventoryAdjustmentVoidResponse {
|
|
542
|
+
/**
|
|
543
|
+
* The QuickBooks-assigned unique identifier of the voided inventory adjustment.
|
|
544
|
+
*/
|
|
545
|
+
id: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* The date and time when this inventory adjustment was created, in ISO 8601 format
|
|
549
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
550
|
+
* timezone of the end-user's computer.
|
|
551
|
+
*/
|
|
552
|
+
createdAt: string | null;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* The type of object. This value is always `"qbd_inventory_adjustment"`.
|
|
556
|
+
*/
|
|
557
|
+
objectType: 'qbd_inventory_adjustment';
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* The case-sensitive user-defined reference number of the voided inventory
|
|
561
|
+
* adjustment.
|
|
562
|
+
*/
|
|
563
|
+
refNumber: string | null;
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* The date and time when this inventory adjustment was last updated, in ISO 8601
|
|
567
|
+
* format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the
|
|
568
|
+
* local timezone of the end-user's computer.
|
|
569
|
+
*/
|
|
570
|
+
updatedAt: string | null;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Indicates whether the inventory adjustment was voided.
|
|
574
|
+
*/
|
|
575
|
+
voided: boolean;
|
|
576
|
+
}
|
|
577
|
+
|
|
509
578
|
export interface InventoryAdjustmentCreateParams {
|
|
510
579
|
/**
|
|
511
580
|
* Body param: The account to which this inventory adjustment is posted for
|
|
@@ -1072,15 +1141,24 @@ export interface InventoryAdjustmentDeleteParams {
|
|
|
1072
1141
|
conductorEndUserId: string;
|
|
1073
1142
|
}
|
|
1074
1143
|
|
|
1144
|
+
export interface InventoryAdjustmentVoidParams {
|
|
1145
|
+
/**
|
|
1146
|
+
* The ID of the End-User to receive this request.
|
|
1147
|
+
*/
|
|
1148
|
+
conductorEndUserId: string;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1075
1151
|
export declare namespace InventoryAdjustments {
|
|
1076
1152
|
export {
|
|
1077
1153
|
type InventoryAdjustment as InventoryAdjustment,
|
|
1078
1154
|
type InventoryAdjustmentListResponse as InventoryAdjustmentListResponse,
|
|
1079
1155
|
type InventoryAdjustmentDeleteResponse as InventoryAdjustmentDeleteResponse,
|
|
1156
|
+
type InventoryAdjustmentVoidResponse as InventoryAdjustmentVoidResponse,
|
|
1080
1157
|
type InventoryAdjustmentCreateParams as InventoryAdjustmentCreateParams,
|
|
1081
1158
|
type InventoryAdjustmentRetrieveParams as InventoryAdjustmentRetrieveParams,
|
|
1082
1159
|
type InventoryAdjustmentUpdateParams as InventoryAdjustmentUpdateParams,
|
|
1083
1160
|
type InventoryAdjustmentListParams as InventoryAdjustmentListParams,
|
|
1084
1161
|
type InventoryAdjustmentDeleteParams as InventoryAdjustmentDeleteParams,
|
|
1162
|
+
type InventoryAdjustmentVoidParams as InventoryAdjustmentVoidParams,
|
|
1085
1163
|
};
|
|
1086
1164
|
}
|
|
@@ -82,9 +82,10 @@ export class InventorySites extends APIResource {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* Returns a list of inventory sites.
|
|
86
|
-
*
|
|
87
|
-
*
|
|
85
|
+
* Returns a list of inventory sites.
|
|
86
|
+
*
|
|
87
|
+
* **NOTE:** QuickBooks Desktop does not support pagination for inventory sites;
|
|
88
|
+
* hence, there is no `cursor` parameter. Users typically have few inventory sites.
|
|
88
89
|
*
|
|
89
90
|
* @example
|
|
90
91
|
* ```ts
|
|
@@ -58,6 +58,10 @@ export class Invoices extends APIResource {
|
|
|
58
58
|
/**
|
|
59
59
|
* Updates an existing invoice.
|
|
60
60
|
*
|
|
61
|
+
* **NOTE:** If you include `lines` or `lineGroups`, QuickBooks Desktop replaces
|
|
62
|
+
* each included line list with the array you send, so include unchanged lines you
|
|
63
|
+
* want to keep and use `id: "-1"` for new lines.
|
|
64
|
+
*
|
|
61
65
|
* @example
|
|
62
66
|
* ```ts
|
|
63
67
|
* const invoice = await conductor.qbd.invoices.update(
|
|
@@ -124,6 +128,27 @@ export class Invoices extends APIResource {
|
|
|
124
128
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
125
129
|
});
|
|
126
130
|
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Voids an invoice by setting its amount to zero while keeping a record of it in
|
|
134
|
+
* QuickBooks. The void will fail if the invoice is currently in use or has any
|
|
135
|
+
* linked transactions that are in use.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* const response = await conductor.qbd.invoices.void(
|
|
140
|
+
* '123ABC-1234567890',
|
|
141
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
142
|
+
* );
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
void(id: string, params: InvoiceVoidParams, options?: RequestOptions): APIPromise<InvoiceVoidResponse> {
|
|
146
|
+
const { conductorEndUserId } = params;
|
|
147
|
+
return this._client.post(path`/quickbooks-desktop/invoices/${id}/void`, {
|
|
148
|
+
...options,
|
|
149
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
150
|
+
});
|
|
151
|
+
}
|
|
127
152
|
}
|
|
128
153
|
|
|
129
154
|
export type InvoicesCursorPage = CursorPage<Invoice>;
|
|
@@ -1760,6 +1785,42 @@ export interface InvoiceDeleteResponse {
|
|
|
1760
1785
|
refNumber: string | null;
|
|
1761
1786
|
}
|
|
1762
1787
|
|
|
1788
|
+
export interface InvoiceVoidResponse {
|
|
1789
|
+
/**
|
|
1790
|
+
* The QuickBooks-assigned unique identifier of the voided invoice.
|
|
1791
|
+
*/
|
|
1792
|
+
id: string;
|
|
1793
|
+
|
|
1794
|
+
/**
|
|
1795
|
+
* The date and time when this invoice was created, in ISO 8601 format
|
|
1796
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1797
|
+
* timezone of the end-user's computer.
|
|
1798
|
+
*/
|
|
1799
|
+
createdAt: string | null;
|
|
1800
|
+
|
|
1801
|
+
/**
|
|
1802
|
+
* The type of object. This value is always `"qbd_invoice"`.
|
|
1803
|
+
*/
|
|
1804
|
+
objectType: 'qbd_invoice';
|
|
1805
|
+
|
|
1806
|
+
/**
|
|
1807
|
+
* The case-sensitive user-defined reference number of the voided invoice.
|
|
1808
|
+
*/
|
|
1809
|
+
refNumber: string | null;
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* The date and time when this invoice was last updated, in ISO 8601 format
|
|
1813
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1814
|
+
* timezone of the end-user's computer.
|
|
1815
|
+
*/
|
|
1816
|
+
updatedAt: string | null;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Indicates whether the invoice was voided.
|
|
1820
|
+
*/
|
|
1821
|
+
voided: boolean;
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1763
1824
|
export interface InvoiceCreateParams {
|
|
1764
1825
|
/**
|
|
1765
1826
|
* Body param: The customer or customer-job associated with this invoice.
|
|
@@ -3464,15 +3525,24 @@ export interface InvoiceDeleteParams {
|
|
|
3464
3525
|
conductorEndUserId: string;
|
|
3465
3526
|
}
|
|
3466
3527
|
|
|
3528
|
+
export interface InvoiceVoidParams {
|
|
3529
|
+
/**
|
|
3530
|
+
* The ID of the End-User to receive this request.
|
|
3531
|
+
*/
|
|
3532
|
+
conductorEndUserId: string;
|
|
3533
|
+
}
|
|
3534
|
+
|
|
3467
3535
|
export declare namespace Invoices {
|
|
3468
3536
|
export {
|
|
3469
3537
|
type Invoice as Invoice,
|
|
3470
3538
|
type InvoiceDeleteResponse as InvoiceDeleteResponse,
|
|
3539
|
+
type InvoiceVoidResponse as InvoiceVoidResponse,
|
|
3471
3540
|
type InvoicesCursorPage as InvoicesCursorPage,
|
|
3472
3541
|
type InvoiceCreateParams as InvoiceCreateParams,
|
|
3473
3542
|
type InvoiceRetrieveParams as InvoiceRetrieveParams,
|
|
3474
3543
|
type InvoiceUpdateParams as InvoiceUpdateParams,
|
|
3475
3544
|
type InvoiceListParams as InvoiceListParams,
|
|
3476
3545
|
type InvoiceDeleteParams as InvoiceDeleteParams,
|
|
3546
|
+
type InvoiceVoidParams as InvoiceVoidParams,
|
|
3477
3547
|
};
|
|
3478
3548
|
}
|
|
@@ -63,6 +63,10 @@ export class ItemReceipts extends APIResource {
|
|
|
63
63
|
/**
|
|
64
64
|
* Updates an existing item receipt.
|
|
65
65
|
*
|
|
66
|
+
* **NOTE:** If you include `expenseLines`, `itemLines`, or `itemGroupLines`,
|
|
67
|
+
* QuickBooks Desktop replaces each included line list with the array you send, so
|
|
68
|
+
* include unchanged lines you want to keep and use `id: "-1"` for new lines.
|
|
69
|
+
*
|
|
66
70
|
* @example
|
|
67
71
|
* ```ts
|
|
68
72
|
* const itemReceipt = await conductor.qbd.itemReceipts.update(
|
|
@@ -132,6 +136,31 @@ export class ItemReceipts extends APIResource {
|
|
|
132
136
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
133
137
|
});
|
|
134
138
|
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Voids an item receipt by setting its amount to zero while keeping a record of it
|
|
142
|
+
* in QuickBooks. The void will fail if the item receipt is currently in use or has
|
|
143
|
+
* any linked transactions that are in use.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* const response = await conductor.qbd.itemReceipts.void(
|
|
148
|
+
* '123ABC-1234567890',
|
|
149
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
150
|
+
* );
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
void(
|
|
154
|
+
id: string,
|
|
155
|
+
params: ItemReceiptVoidParams,
|
|
156
|
+
options?: RequestOptions,
|
|
157
|
+
): APIPromise<ItemReceiptVoidResponse> {
|
|
158
|
+
const { conductorEndUserId } = params;
|
|
159
|
+
return this._client.post(path`/quickbooks-desktop/item-receipts/${id}/void`, {
|
|
160
|
+
...options,
|
|
161
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
162
|
+
});
|
|
163
|
+
}
|
|
135
164
|
}
|
|
136
165
|
|
|
137
166
|
export type ItemReceiptsCursorPage = CursorPage<ItemReceipt>;
|
|
@@ -1625,6 +1654,42 @@ export interface ItemReceiptDeleteResponse {
|
|
|
1625
1654
|
refNumber: string | null;
|
|
1626
1655
|
}
|
|
1627
1656
|
|
|
1657
|
+
export interface ItemReceiptVoidResponse {
|
|
1658
|
+
/**
|
|
1659
|
+
* The QuickBooks-assigned unique identifier of the voided item receipt.
|
|
1660
|
+
*/
|
|
1661
|
+
id: string;
|
|
1662
|
+
|
|
1663
|
+
/**
|
|
1664
|
+
* The date and time when this item receipt was created, in ISO 8601 format
|
|
1665
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1666
|
+
* timezone of the end-user's computer.
|
|
1667
|
+
*/
|
|
1668
|
+
createdAt: string | null;
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* The type of object. This value is always `"qbd_item_receipt"`.
|
|
1672
|
+
*/
|
|
1673
|
+
objectType: 'qbd_item_receipt';
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* The case-sensitive user-defined reference number of the voided item receipt.
|
|
1677
|
+
*/
|
|
1678
|
+
refNumber: string | null;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* The date and time when this item receipt was last updated, in ISO 8601 format
|
|
1682
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1683
|
+
* timezone of the end-user's computer.
|
|
1684
|
+
*/
|
|
1685
|
+
updatedAt: string | null;
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* Indicates whether the item receipt was voided.
|
|
1689
|
+
*/
|
|
1690
|
+
voided: boolean;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1628
1693
|
export interface ItemReceiptCreateParams {
|
|
1629
1694
|
/**
|
|
1630
1695
|
* Body param: The date of this item receipt, in ISO 8601 format (YYYY-MM-DD).
|
|
@@ -2843,15 +2908,24 @@ export interface ItemReceiptDeleteParams {
|
|
|
2843
2908
|
conductorEndUserId: string;
|
|
2844
2909
|
}
|
|
2845
2910
|
|
|
2911
|
+
export interface ItemReceiptVoidParams {
|
|
2912
|
+
/**
|
|
2913
|
+
* The ID of the End-User to receive this request.
|
|
2914
|
+
*/
|
|
2915
|
+
conductorEndUserId: string;
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2846
2918
|
export declare namespace ItemReceipts {
|
|
2847
2919
|
export {
|
|
2848
2920
|
type ItemReceipt as ItemReceipt,
|
|
2849
2921
|
type ItemReceiptDeleteResponse as ItemReceiptDeleteResponse,
|
|
2922
|
+
type ItemReceiptVoidResponse as ItemReceiptVoidResponse,
|
|
2850
2923
|
type ItemReceiptsCursorPage as ItemReceiptsCursorPage,
|
|
2851
2924
|
type ItemReceiptCreateParams as ItemReceiptCreateParams,
|
|
2852
2925
|
type ItemReceiptRetrieveParams as ItemReceiptRetrieveParams,
|
|
2853
2926
|
type ItemReceiptUpdateParams as ItemReceiptUpdateParams,
|
|
2854
2927
|
type ItemReceiptListParams as ItemReceiptListParams,
|
|
2855
2928
|
type ItemReceiptDeleteParams as ItemReceiptDeleteParams,
|
|
2929
|
+
type ItemReceiptVoidParams as ItemReceiptVoidParams,
|
|
2856
2930
|
};
|
|
2857
2931
|
}
|