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
|
@@ -62,6 +62,10 @@ export class Bills extends APIResource {
|
|
|
62
62
|
* you must continue to supply the vendor, accounts payable account, and at least
|
|
63
63
|
* one expense or item line when you resubmit the bill.
|
|
64
64
|
*
|
|
65
|
+
* **NOTE:** If you include `expenseLines`, `itemLines`, or `itemGroupLines`,
|
|
66
|
+
* QuickBooks Desktop replaces each included line list with the array you send, so
|
|
67
|
+
* include unchanged lines you want to keep and use `id: "-1"` for new lines.
|
|
68
|
+
*
|
|
65
69
|
* @example
|
|
66
70
|
* ```ts
|
|
67
71
|
* const bill = await conductor.qbd.bills.update(
|
|
@@ -124,6 +128,27 @@ export class Bills extends APIResource {
|
|
|
124
128
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
125
129
|
});
|
|
126
130
|
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Voids a bill by setting its amount to zero while keeping a record of it in
|
|
134
|
+
* QuickBooks. The void will fail if the bill is currently in use or has any linked
|
|
135
|
+
* transactions that are in use.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* ```ts
|
|
139
|
+
* const response = await conductor.qbd.bills.void(
|
|
140
|
+
* '123ABC-1234567890',
|
|
141
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
142
|
+
* );
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
void(id: string, params: BillVoidParams, options?: RequestOptions): APIPromise<BillVoidResponse> {
|
|
146
|
+
const { conductorEndUserId } = params;
|
|
147
|
+
return this._client.post(path`/quickbooks-desktop/bills/${id}/void`, {
|
|
148
|
+
...options,
|
|
149
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
150
|
+
});
|
|
151
|
+
}
|
|
127
152
|
}
|
|
128
153
|
|
|
129
154
|
export type BillsCursorPage = CursorPage<Bill>;
|
|
@@ -1709,6 +1734,42 @@ export interface BillDeleteResponse {
|
|
|
1709
1734
|
refNumber: string | null;
|
|
1710
1735
|
}
|
|
1711
1736
|
|
|
1737
|
+
export interface BillVoidResponse {
|
|
1738
|
+
/**
|
|
1739
|
+
* The QuickBooks-assigned unique identifier of the voided bill.
|
|
1740
|
+
*/
|
|
1741
|
+
id: string;
|
|
1742
|
+
|
|
1743
|
+
/**
|
|
1744
|
+
* The date and time when this bill was created, in ISO 8601 format
|
|
1745
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1746
|
+
* timezone of the end-user's computer.
|
|
1747
|
+
*/
|
|
1748
|
+
createdAt: string | null;
|
|
1749
|
+
|
|
1750
|
+
/**
|
|
1751
|
+
* The type of object. This value is always `"qbd_bill"`.
|
|
1752
|
+
*/
|
|
1753
|
+
objectType: 'qbd_bill';
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* The case-sensitive user-defined reference number of the voided bill.
|
|
1757
|
+
*/
|
|
1758
|
+
refNumber: string | null;
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* The date and time when this bill was last updated, in ISO 8601 format
|
|
1762
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1763
|
+
* timezone of the end-user's computer.
|
|
1764
|
+
*/
|
|
1765
|
+
updatedAt: string | null;
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* Indicates whether the bill was voided.
|
|
1769
|
+
*/
|
|
1770
|
+
voided: boolean;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1712
1773
|
export interface BillCreateParams {
|
|
1713
1774
|
/**
|
|
1714
1775
|
* Body param: The date of this bill, in ISO 8601 format (YYYY-MM-DD).
|
|
@@ -3106,15 +3167,24 @@ export interface BillDeleteParams {
|
|
|
3106
3167
|
conductorEndUserId: string;
|
|
3107
3168
|
}
|
|
3108
3169
|
|
|
3170
|
+
export interface BillVoidParams {
|
|
3171
|
+
/**
|
|
3172
|
+
* The ID of the End-User to receive this request.
|
|
3173
|
+
*/
|
|
3174
|
+
conductorEndUserId: string;
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3109
3177
|
export declare namespace Bills {
|
|
3110
3178
|
export {
|
|
3111
3179
|
type Bill as Bill,
|
|
3112
3180
|
type BillDeleteResponse as BillDeleteResponse,
|
|
3181
|
+
type BillVoidResponse as BillVoidResponse,
|
|
3113
3182
|
type BillsCursorPage as BillsCursorPage,
|
|
3114
3183
|
type BillCreateParams as BillCreateParams,
|
|
3115
3184
|
type BillRetrieveParams as BillRetrieveParams,
|
|
3116
3185
|
type BillUpdateParams as BillUpdateParams,
|
|
3117
3186
|
type BillListParams as BillListParams,
|
|
3118
3187
|
type BillDeleteParams as BillDeleteParams,
|
|
3188
|
+
type BillVoidParams as BillVoidParams,
|
|
3119
3189
|
};
|
|
3120
3190
|
}
|
|
@@ -61,6 +61,10 @@ export class Checks extends APIResource {
|
|
|
61
61
|
* memo, transaction date, or expense and item lines. This request cannot modify
|
|
62
62
|
* checks created through the bill-payment workflow.
|
|
63
63
|
*
|
|
64
|
+
* **NOTE:** If you include `expenseLines`, `itemLines`, or `itemGroupLines`,
|
|
65
|
+
* QuickBooks Desktop replaces each included line list with the array you send, so
|
|
66
|
+
* include unchanged lines you want to keep and use `id: "-1"` for new lines.
|
|
67
|
+
*
|
|
64
68
|
* @example
|
|
65
69
|
* ```ts
|
|
66
70
|
* const check = await conductor.qbd.checks.update(
|
|
@@ -123,6 +127,27 @@ export class Checks extends APIResource {
|
|
|
123
127
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
124
128
|
});
|
|
125
129
|
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Voids a check by setting its amount to zero while keeping a record of it in
|
|
133
|
+
* QuickBooks. The void will fail if the check is currently in use or has any
|
|
134
|
+
* linked transactions that are in use.
|
|
135
|
+
*
|
|
136
|
+
* @example
|
|
137
|
+
* ```ts
|
|
138
|
+
* const response = await conductor.qbd.checks.void(
|
|
139
|
+
* '123ABC-1234567890',
|
|
140
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
141
|
+
* );
|
|
142
|
+
* ```
|
|
143
|
+
*/
|
|
144
|
+
void(id: string, params: CheckVoidParams, options?: RequestOptions): APIPromise<CheckVoidResponse> {
|
|
145
|
+
const { conductorEndUserId } = params;
|
|
146
|
+
return this._client.post(path`/quickbooks-desktop/checks/${id}/void`, {
|
|
147
|
+
...options,
|
|
148
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
149
|
+
});
|
|
150
|
+
}
|
|
126
151
|
}
|
|
127
152
|
|
|
128
153
|
export type ChecksCursorPage = CursorPage<Check>;
|
|
@@ -1659,6 +1684,42 @@ export interface CheckDeleteResponse {
|
|
|
1659
1684
|
refNumber: string | null;
|
|
1660
1685
|
}
|
|
1661
1686
|
|
|
1687
|
+
export interface CheckVoidResponse {
|
|
1688
|
+
/**
|
|
1689
|
+
* The QuickBooks-assigned unique identifier of the voided check.
|
|
1690
|
+
*/
|
|
1691
|
+
id: string;
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* The date and time when this check was created, in ISO 8601 format
|
|
1695
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1696
|
+
* timezone of the end-user's computer.
|
|
1697
|
+
*/
|
|
1698
|
+
createdAt: string | null;
|
|
1699
|
+
|
|
1700
|
+
/**
|
|
1701
|
+
* The type of object. This value is always `"qbd_check"`.
|
|
1702
|
+
*/
|
|
1703
|
+
objectType: 'qbd_check';
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* The case-sensitive user-defined reference number of the voided check.
|
|
1707
|
+
*/
|
|
1708
|
+
refNumber: string | null;
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* The date and time when this check was last updated, in ISO 8601 format
|
|
1712
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1713
|
+
* timezone of the end-user's computer.
|
|
1714
|
+
*/
|
|
1715
|
+
updatedAt: string | null;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Indicates whether the check was voided.
|
|
1719
|
+
*/
|
|
1720
|
+
voided: boolean;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1662
1723
|
export interface CheckCreateParams {
|
|
1663
1724
|
/**
|
|
1664
1725
|
* Body param: The bank account from which the funds are being drawn for this
|
|
@@ -3068,15 +3129,24 @@ export interface CheckDeleteParams {
|
|
|
3068
3129
|
conductorEndUserId: string;
|
|
3069
3130
|
}
|
|
3070
3131
|
|
|
3132
|
+
export interface CheckVoidParams {
|
|
3133
|
+
/**
|
|
3134
|
+
* The ID of the End-User to receive this request.
|
|
3135
|
+
*/
|
|
3136
|
+
conductorEndUserId: string;
|
|
3137
|
+
}
|
|
3138
|
+
|
|
3071
3139
|
export declare namespace Checks {
|
|
3072
3140
|
export {
|
|
3073
3141
|
type Check as Check,
|
|
3074
3142
|
type CheckDeleteResponse as CheckDeleteResponse,
|
|
3143
|
+
type CheckVoidResponse as CheckVoidResponse,
|
|
3075
3144
|
type ChecksCursorPage as ChecksCursorPage,
|
|
3076
3145
|
type CheckCreateParams as CheckCreateParams,
|
|
3077
3146
|
type CheckRetrieveParams as CheckRetrieveParams,
|
|
3078
3147
|
type CheckUpdateParams as CheckUpdateParams,
|
|
3079
3148
|
type CheckListParams as CheckListParams,
|
|
3080
3149
|
type CheckDeleteParams as CheckDeleteParams,
|
|
3150
|
+
type CheckVoidParams as CheckVoidParams,
|
|
3081
3151
|
};
|
|
3082
3152
|
}
|
|
@@ -74,9 +74,10 @@ export class Classes extends APIResource {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
|
-
* Returns a list of classes.
|
|
78
|
-
*
|
|
79
|
-
* classes
|
|
77
|
+
* Returns a list of classes.
|
|
78
|
+
*
|
|
79
|
+
* **NOTE:** QuickBooks Desktop does not support pagination for classes; hence,
|
|
80
|
+
* there is no `cursor` parameter. Users typically have few classes.
|
|
80
81
|
*
|
|
81
82
|
* @example
|
|
82
83
|
* ```ts
|
|
@@ -64,6 +64,10 @@ export class CreditCardCharges extends APIResource {
|
|
|
64
64
|
* account, payee, memo, transaction date, and expense or item lines. The total is
|
|
65
65
|
* recalculated from the line details.
|
|
66
66
|
*
|
|
67
|
+
* **NOTE:** If you include `expenseLines`, `itemLines`, or `itemGroupLines`,
|
|
68
|
+
* QuickBooks Desktop replaces each included line list with the array you send, so
|
|
69
|
+
* include unchanged lines you want to keep and use `id: "-1"` for new lines.
|
|
70
|
+
*
|
|
67
71
|
* @example
|
|
68
72
|
* ```ts
|
|
69
73
|
* const creditCardCharge =
|
|
@@ -139,6 +143,31 @@ export class CreditCardCharges extends APIResource {
|
|
|
139
143
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
140
144
|
});
|
|
141
145
|
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Voids a credit card charge by setting its amount to zero while keeping a record
|
|
149
|
+
* of it in QuickBooks. The void will fail if the credit card charge is currently
|
|
150
|
+
* in use or has any linked transactions that are in use.
|
|
151
|
+
*
|
|
152
|
+
* @example
|
|
153
|
+
* ```ts
|
|
154
|
+
* const response = await conductor.qbd.creditCardCharges.void(
|
|
155
|
+
* '123ABC-1234567890',
|
|
156
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
157
|
+
* );
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
void(
|
|
161
|
+
id: string,
|
|
162
|
+
params: CreditCardChargeVoidParams,
|
|
163
|
+
options?: RequestOptions,
|
|
164
|
+
): APIPromise<CreditCardChargeVoidResponse> {
|
|
165
|
+
const { conductorEndUserId } = params;
|
|
166
|
+
return this._client.post(path`/quickbooks-desktop/credit-card-charges/${id}/void`, {
|
|
167
|
+
...options,
|
|
168
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
169
|
+
});
|
|
170
|
+
}
|
|
142
171
|
}
|
|
143
172
|
|
|
144
173
|
export type CreditCardChargesCursorPage = CursorPage<CreditCardCharge>;
|
|
@@ -1523,6 +1552,43 @@ export interface CreditCardChargeDeleteResponse {
|
|
|
1523
1552
|
refNumber: string | null;
|
|
1524
1553
|
}
|
|
1525
1554
|
|
|
1555
|
+
export interface CreditCardChargeVoidResponse {
|
|
1556
|
+
/**
|
|
1557
|
+
* The QuickBooks-assigned unique identifier of the voided credit card charge.
|
|
1558
|
+
*/
|
|
1559
|
+
id: string;
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* The date and time when this credit card charge was created, in ISO 8601 format
|
|
1563
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1564
|
+
* timezone of the end-user's computer.
|
|
1565
|
+
*/
|
|
1566
|
+
createdAt: string | null;
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* The type of object. This value is always `"qbd_credit_card_charge"`.
|
|
1570
|
+
*/
|
|
1571
|
+
objectType: 'qbd_credit_card_charge';
|
|
1572
|
+
|
|
1573
|
+
/**
|
|
1574
|
+
* The case-sensitive user-defined reference number of the voided credit card
|
|
1575
|
+
* charge.
|
|
1576
|
+
*/
|
|
1577
|
+
refNumber: string | null;
|
|
1578
|
+
|
|
1579
|
+
/**
|
|
1580
|
+
* The date and time when this credit card charge was last updated, in ISO 8601
|
|
1581
|
+
* format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the
|
|
1582
|
+
* local timezone of the end-user's computer.
|
|
1583
|
+
*/
|
|
1584
|
+
updatedAt: string | null;
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* Indicates whether the credit card charge was voided.
|
|
1588
|
+
*/
|
|
1589
|
+
voided: boolean;
|
|
1590
|
+
}
|
|
1591
|
+
|
|
1526
1592
|
export interface CreditCardChargeCreateParams {
|
|
1527
1593
|
/**
|
|
1528
1594
|
* Body param: The bank or credit card account to which money is owed for this
|
|
@@ -2710,15 +2776,24 @@ export interface CreditCardChargeDeleteParams {
|
|
|
2710
2776
|
conductorEndUserId: string;
|
|
2711
2777
|
}
|
|
2712
2778
|
|
|
2779
|
+
export interface CreditCardChargeVoidParams {
|
|
2780
|
+
/**
|
|
2781
|
+
* The ID of the End-User to receive this request.
|
|
2782
|
+
*/
|
|
2783
|
+
conductorEndUserId: string;
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2713
2786
|
export declare namespace CreditCardCharges {
|
|
2714
2787
|
export {
|
|
2715
2788
|
type CreditCardCharge as CreditCardCharge,
|
|
2716
2789
|
type CreditCardChargeDeleteResponse as CreditCardChargeDeleteResponse,
|
|
2790
|
+
type CreditCardChargeVoidResponse as CreditCardChargeVoidResponse,
|
|
2717
2791
|
type CreditCardChargesCursorPage as CreditCardChargesCursorPage,
|
|
2718
2792
|
type CreditCardChargeCreateParams as CreditCardChargeCreateParams,
|
|
2719
2793
|
type CreditCardChargeRetrieveParams as CreditCardChargeRetrieveParams,
|
|
2720
2794
|
type CreditCardChargeUpdateParams as CreditCardChargeUpdateParams,
|
|
2721
2795
|
type CreditCardChargeListParams as CreditCardChargeListParams,
|
|
2722
2796
|
type CreditCardChargeDeleteParams as CreditCardChargeDeleteParams,
|
|
2797
|
+
type CreditCardChargeVoidParams as CreditCardChargeVoidParams,
|
|
2723
2798
|
};
|
|
2724
2799
|
}
|
|
@@ -62,6 +62,10 @@ export class CreditCardCredits extends APIResource {
|
|
|
62
62
|
/**
|
|
63
63
|
* Updates an existing credit card credit.
|
|
64
64
|
*
|
|
65
|
+
* **NOTE:** If you include `expenseLines`, `itemLines`, or `itemGroupLines`,
|
|
66
|
+
* QuickBooks Desktop replaces each included line list with the array you send, so
|
|
67
|
+
* include unchanged lines you want to keep and use `id: "-1"` for new lines.
|
|
68
|
+
*
|
|
65
69
|
* @example
|
|
66
70
|
* ```ts
|
|
67
71
|
* const creditCardCredit =
|
|
@@ -137,6 +141,31 @@ export class CreditCardCredits extends APIResource {
|
|
|
137
141
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
138
142
|
});
|
|
139
143
|
}
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Voids a credit card credit by setting its amount to zero while keeping a record
|
|
147
|
+
* of it in QuickBooks. The void will fail if the credit card credit is currently
|
|
148
|
+
* in use or has any linked transactions that are in use.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* ```ts
|
|
152
|
+
* const response = await conductor.qbd.creditCardCredits.void(
|
|
153
|
+
* '123ABC-1234567890',
|
|
154
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
155
|
+
* );
|
|
156
|
+
* ```
|
|
157
|
+
*/
|
|
158
|
+
void(
|
|
159
|
+
id: string,
|
|
160
|
+
params: CreditCardCreditVoidParams,
|
|
161
|
+
options?: RequestOptions,
|
|
162
|
+
): APIPromise<CreditCardCreditVoidResponse> {
|
|
163
|
+
const { conductorEndUserId } = params;
|
|
164
|
+
return this._client.post(path`/quickbooks-desktop/credit-card-credits/${id}/void`, {
|
|
165
|
+
...options,
|
|
166
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
167
|
+
});
|
|
168
|
+
}
|
|
140
169
|
}
|
|
141
170
|
|
|
142
171
|
export type CreditCardCreditsCursorPage = CursorPage<CreditCardCredit>;
|
|
@@ -1519,6 +1548,43 @@ export interface CreditCardCreditDeleteResponse {
|
|
|
1519
1548
|
refNumber: string | null;
|
|
1520
1549
|
}
|
|
1521
1550
|
|
|
1551
|
+
export interface CreditCardCreditVoidResponse {
|
|
1552
|
+
/**
|
|
1553
|
+
* The QuickBooks-assigned unique identifier of the voided credit card credit.
|
|
1554
|
+
*/
|
|
1555
|
+
id: string;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* The date and time when this credit card credit was created, in ISO 8601 format
|
|
1559
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1560
|
+
* timezone of the end-user's computer.
|
|
1561
|
+
*/
|
|
1562
|
+
createdAt: string | null;
|
|
1563
|
+
|
|
1564
|
+
/**
|
|
1565
|
+
* The type of object. This value is always `"qbd_credit_card_credit"`.
|
|
1566
|
+
*/
|
|
1567
|
+
objectType: 'qbd_credit_card_credit';
|
|
1568
|
+
|
|
1569
|
+
/**
|
|
1570
|
+
* The case-sensitive user-defined reference number of the voided credit card
|
|
1571
|
+
* credit.
|
|
1572
|
+
*/
|
|
1573
|
+
refNumber: string | null;
|
|
1574
|
+
|
|
1575
|
+
/**
|
|
1576
|
+
* The date and time when this credit card credit was last updated, in ISO 8601
|
|
1577
|
+
* format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the
|
|
1578
|
+
* local timezone of the end-user's computer.
|
|
1579
|
+
*/
|
|
1580
|
+
updatedAt: string | null;
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* Indicates whether the credit card credit was voided.
|
|
1584
|
+
*/
|
|
1585
|
+
voided: boolean;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1522
1588
|
export interface CreditCardCreditCreateParams {
|
|
1523
1589
|
/**
|
|
1524
1590
|
* Body param: The bank or credit card account to which this credit card credit is
|
|
@@ -2705,15 +2771,24 @@ export interface CreditCardCreditDeleteParams {
|
|
|
2705
2771
|
conductorEndUserId: string;
|
|
2706
2772
|
}
|
|
2707
2773
|
|
|
2774
|
+
export interface CreditCardCreditVoidParams {
|
|
2775
|
+
/**
|
|
2776
|
+
* The ID of the End-User to receive this request.
|
|
2777
|
+
*/
|
|
2778
|
+
conductorEndUserId: string;
|
|
2779
|
+
}
|
|
2780
|
+
|
|
2708
2781
|
export declare namespace CreditCardCredits {
|
|
2709
2782
|
export {
|
|
2710
2783
|
type CreditCardCredit as CreditCardCredit,
|
|
2711
2784
|
type CreditCardCreditDeleteResponse as CreditCardCreditDeleteResponse,
|
|
2785
|
+
type CreditCardCreditVoidResponse as CreditCardCreditVoidResponse,
|
|
2712
2786
|
type CreditCardCreditsCursorPage as CreditCardCreditsCursorPage,
|
|
2713
2787
|
type CreditCardCreditCreateParams as CreditCardCreditCreateParams,
|
|
2714
2788
|
type CreditCardCreditRetrieveParams as CreditCardCreditRetrieveParams,
|
|
2715
2789
|
type CreditCardCreditUpdateParams as CreditCardCreditUpdateParams,
|
|
2716
2790
|
type CreditCardCreditListParams as CreditCardCreditListParams,
|
|
2717
2791
|
type CreditCardCreditDeleteParams as CreditCardCreditDeleteParams,
|
|
2792
|
+
type CreditCardCreditVoidParams as CreditCardCreditVoidParams,
|
|
2718
2793
|
};
|
|
2719
2794
|
}
|
|
@@ -118,6 +118,31 @@ export class CreditCardRefunds extends APIResource {
|
|
|
118
118
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Voids a credit card refund by setting its amount to zero while keeping a record
|
|
124
|
+
* of it in QuickBooks. The void will fail if the credit card refund is currently
|
|
125
|
+
* in use or has any linked transactions that are in use.
|
|
126
|
+
*
|
|
127
|
+
* @example
|
|
128
|
+
* ```ts
|
|
129
|
+
* const response = await conductor.qbd.creditCardRefunds.void(
|
|
130
|
+
* '123ABC-1234567890',
|
|
131
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
132
|
+
* );
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
void(
|
|
136
|
+
id: string,
|
|
137
|
+
params: CreditCardRefundVoidParams,
|
|
138
|
+
options?: RequestOptions,
|
|
139
|
+
): APIPromise<CreditCardRefundVoidResponse> {
|
|
140
|
+
const { conductorEndUserId } = params;
|
|
141
|
+
return this._client.post(path`/quickbooks-desktop/credit-card-refunds/${id}/void`, {
|
|
142
|
+
...options,
|
|
143
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
144
|
+
});
|
|
145
|
+
}
|
|
121
146
|
}
|
|
122
147
|
|
|
123
148
|
export type CreditCardRefundsCursorPage = CursorPage<CreditCardRefund>;
|
|
@@ -724,6 +749,43 @@ export interface CreditCardRefundDeleteResponse {
|
|
|
724
749
|
refNumber: string | null;
|
|
725
750
|
}
|
|
726
751
|
|
|
752
|
+
export interface CreditCardRefundVoidResponse {
|
|
753
|
+
/**
|
|
754
|
+
* The QuickBooks-assigned unique identifier of the voided credit card refund.
|
|
755
|
+
*/
|
|
756
|
+
id: string;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* The date and time when this credit card refund was created, in ISO 8601 format
|
|
760
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
761
|
+
* timezone of the end-user's computer.
|
|
762
|
+
*/
|
|
763
|
+
createdAt: string | null;
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* The type of object. This value is always `"qbd_credit_card_refund"`.
|
|
767
|
+
*/
|
|
768
|
+
objectType: 'qbd_credit_card_refund';
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* The case-sensitive user-defined reference number of the voided credit card
|
|
772
|
+
* refund.
|
|
773
|
+
*/
|
|
774
|
+
refNumber: string | null;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* The date and time when this credit card refund was last updated, in ISO 8601
|
|
778
|
+
* format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the
|
|
779
|
+
* local timezone of the end-user's computer.
|
|
780
|
+
*/
|
|
781
|
+
updatedAt: string | null;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* Indicates whether the credit card refund was voided.
|
|
785
|
+
*/
|
|
786
|
+
voided: boolean;
|
|
787
|
+
}
|
|
788
|
+
|
|
727
789
|
export interface CreditCardRefundCreateParams {
|
|
728
790
|
/**
|
|
729
791
|
* Body param: The customer or customer-job associated with this credit card
|
|
@@ -1238,14 +1300,23 @@ export interface CreditCardRefundDeleteParams {
|
|
|
1238
1300
|
conductorEndUserId: string;
|
|
1239
1301
|
}
|
|
1240
1302
|
|
|
1303
|
+
export interface CreditCardRefundVoidParams {
|
|
1304
|
+
/**
|
|
1305
|
+
* The ID of the End-User to receive this request.
|
|
1306
|
+
*/
|
|
1307
|
+
conductorEndUserId: string;
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1241
1310
|
export declare namespace CreditCardRefunds {
|
|
1242
1311
|
export {
|
|
1243
1312
|
type CreditCardRefund as CreditCardRefund,
|
|
1244
1313
|
type CreditCardRefundDeleteResponse as CreditCardRefundDeleteResponse,
|
|
1314
|
+
type CreditCardRefundVoidResponse as CreditCardRefundVoidResponse,
|
|
1245
1315
|
type CreditCardRefundsCursorPage as CreditCardRefundsCursorPage,
|
|
1246
1316
|
type CreditCardRefundCreateParams as CreditCardRefundCreateParams,
|
|
1247
1317
|
type CreditCardRefundRetrieveParams as CreditCardRefundRetrieveParams,
|
|
1248
1318
|
type CreditCardRefundListParams as CreditCardRefundListParams,
|
|
1249
1319
|
type CreditCardRefundDeleteParams as CreditCardRefundDeleteParams,
|
|
1320
|
+
type CreditCardRefundVoidParams as CreditCardRefundVoidParams,
|
|
1250
1321
|
};
|
|
1251
1322
|
}
|
|
@@ -57,6 +57,10 @@ export class CreditMemos extends APIResource {
|
|
|
57
57
|
/**
|
|
58
58
|
* Updates an existing credit memo.
|
|
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 creditMemo = await conductor.qbd.creditMemos.update(
|
|
@@ -126,6 +130,31 @@ export class CreditMemos extends APIResource {
|
|
|
126
130
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
127
131
|
});
|
|
128
132
|
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Voids a credit memo by setting its amount to zero while keeping a record of it
|
|
136
|
+
* in QuickBooks. The void will fail if the credit memo is currently in use or has
|
|
137
|
+
* any linked transactions that are in use.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* ```ts
|
|
141
|
+
* const response = await conductor.qbd.creditMemos.void(
|
|
142
|
+
* '123ABC-1234567890',
|
|
143
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
144
|
+
* );
|
|
145
|
+
* ```
|
|
146
|
+
*/
|
|
147
|
+
void(
|
|
148
|
+
id: string,
|
|
149
|
+
params: CreditMemoVoidParams,
|
|
150
|
+
options?: RequestOptions,
|
|
151
|
+
): APIPromise<CreditMemoVoidResponse> {
|
|
152
|
+
const { conductorEndUserId } = params;
|
|
153
|
+
return this._client.post(path`/quickbooks-desktop/credit-memos/${id}/void`, {
|
|
154
|
+
...options,
|
|
155
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
129
158
|
}
|
|
130
159
|
|
|
131
160
|
export type CreditMemosCursorPage = CursorPage<CreditMemo>;
|
|
@@ -1724,6 +1753,42 @@ export interface CreditMemoDeleteResponse {
|
|
|
1724
1753
|
refNumber: string | null;
|
|
1725
1754
|
}
|
|
1726
1755
|
|
|
1756
|
+
export interface CreditMemoVoidResponse {
|
|
1757
|
+
/**
|
|
1758
|
+
* The QuickBooks-assigned unique identifier of the voided credit memo.
|
|
1759
|
+
*/
|
|
1760
|
+
id: string;
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* The date and time when this credit memo was created, in ISO 8601 format
|
|
1764
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1765
|
+
* timezone of the end-user's computer.
|
|
1766
|
+
*/
|
|
1767
|
+
createdAt: string | null;
|
|
1768
|
+
|
|
1769
|
+
/**
|
|
1770
|
+
* The type of object. This value is always `"qbd_credit_memo"`.
|
|
1771
|
+
*/
|
|
1772
|
+
objectType: 'qbd_credit_memo';
|
|
1773
|
+
|
|
1774
|
+
/**
|
|
1775
|
+
* The case-sensitive user-defined reference number of the voided credit memo.
|
|
1776
|
+
*/
|
|
1777
|
+
refNumber: string | null;
|
|
1778
|
+
|
|
1779
|
+
/**
|
|
1780
|
+
* The date and time when this credit memo was last updated, in ISO 8601 format
|
|
1781
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1782
|
+
* timezone of the end-user's computer.
|
|
1783
|
+
*/
|
|
1784
|
+
updatedAt: string | null;
|
|
1785
|
+
|
|
1786
|
+
/**
|
|
1787
|
+
* Indicates whether the credit memo was voided.
|
|
1788
|
+
*/
|
|
1789
|
+
voided: boolean;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1727
1792
|
export interface CreditMemoCreateParams {
|
|
1728
1793
|
/**
|
|
1729
1794
|
* Body param: The customer or customer-job associated with this credit memo.
|
|
@@ -3220,15 +3285,24 @@ export interface CreditMemoDeleteParams {
|
|
|
3220
3285
|
conductorEndUserId: string;
|
|
3221
3286
|
}
|
|
3222
3287
|
|
|
3288
|
+
export interface CreditMemoVoidParams {
|
|
3289
|
+
/**
|
|
3290
|
+
* The ID of the End-User to receive this request.
|
|
3291
|
+
*/
|
|
3292
|
+
conductorEndUserId: string;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3223
3295
|
export declare namespace CreditMemos {
|
|
3224
3296
|
export {
|
|
3225
3297
|
type CreditMemo as CreditMemo,
|
|
3226
3298
|
type CreditMemoDeleteResponse as CreditMemoDeleteResponse,
|
|
3299
|
+
type CreditMemoVoidResponse as CreditMemoVoidResponse,
|
|
3227
3300
|
type CreditMemosCursorPage as CreditMemosCursorPage,
|
|
3228
3301
|
type CreditMemoCreateParams as CreditMemoCreateParams,
|
|
3229
3302
|
type CreditMemoRetrieveParams as CreditMemoRetrieveParams,
|
|
3230
3303
|
type CreditMemoUpdateParams as CreditMemoUpdateParams,
|
|
3231
3304
|
type CreditMemoListParams as CreditMemoListParams,
|
|
3232
3305
|
type CreditMemoDeleteParams as CreditMemoDeleteParams,
|
|
3306
|
+
type CreditMemoVoidParams as CreditMemoVoidParams,
|
|
3233
3307
|
};
|
|
3234
3308
|
}
|
|
@@ -79,9 +79,10 @@ export class Currencies extends APIResource {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* Returns a list of currencies.
|
|
83
|
-
*
|
|
84
|
-
*
|
|
82
|
+
* Returns a list of currencies.
|
|
83
|
+
*
|
|
84
|
+
* **NOTE:** QuickBooks Desktop does not support pagination for currencies; hence,
|
|
85
|
+
* there is no `cursor` parameter. Users typically have few currencies.
|
|
85
86
|
*
|
|
86
87
|
* @example
|
|
87
88
|
* ```ts
|
|
@@ -57,9 +57,10 @@ export class CustomerTypes extends APIResource {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* Returns a list of customer types.
|
|
61
|
-
*
|
|
62
|
-
*
|
|
60
|
+
* Returns a list of customer types.
|
|
61
|
+
*
|
|
62
|
+
* **NOTE:** QuickBooks Desktop does not support pagination for customer types;
|
|
63
|
+
* hence, there is no `cursor` parameter. Users typically have few customer types.
|
|
63
64
|
*
|
|
64
65
|
* @example
|
|
65
66
|
* ```ts
|