conductor-node 14.10.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 +8 -0
- 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/bills.d.mts +4 -0
- package/resources/qbd/bills.d.mts.map +1 -1
- package/resources/qbd/bills.d.ts +4 -0
- package/resources/qbd/bills.d.ts.map +1 -1
- package/resources/qbd/bills.js +4 -0
- package/resources/qbd/bills.js.map +1 -1
- package/resources/qbd/bills.mjs +4 -0
- package/resources/qbd/bills.mjs.map +1 -1
- package/resources/qbd/checks.d.mts +4 -0
- package/resources/qbd/checks.d.mts.map +1 -1
- package/resources/qbd/checks.d.ts +4 -0
- package/resources/qbd/checks.d.ts.map +1 -1
- package/resources/qbd/checks.js +4 -0
- package/resources/qbd/checks.js.map +1 -1
- package/resources/qbd/checks.mjs +4 -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 +4 -0
- package/resources/qbd/credit-card-charges.d.mts.map +1 -1
- package/resources/qbd/credit-card-charges.d.ts +4 -0
- package/resources/qbd/credit-card-charges.d.ts.map +1 -1
- package/resources/qbd/credit-card-charges.js +4 -0
- package/resources/qbd/credit-card-charges.js.map +1 -1
- package/resources/qbd/credit-card-charges.mjs +4 -0
- package/resources/qbd/credit-card-charges.mjs.map +1 -1
- package/resources/qbd/credit-card-credits.d.mts +4 -0
- package/resources/qbd/credit-card-credits.d.mts.map +1 -1
- package/resources/qbd/credit-card-credits.d.ts +4 -0
- package/resources/qbd/credit-card-credits.d.ts.map +1 -1
- package/resources/qbd/credit-card-credits.js +4 -0
- package/resources/qbd/credit-card-credits.js.map +1 -1
- package/resources/qbd/credit-card-credits.mjs +4 -0
- package/resources/qbd/credit-card-credits.mjs.map +1 -1
- package/resources/qbd/credit-memos.d.mts +4 -0
- package/resources/qbd/credit-memos.d.mts.map +1 -1
- package/resources/qbd/credit-memos.d.ts +4 -0
- package/resources/qbd/credit-memos.d.ts.map +1 -1
- package/resources/qbd/credit-memos.js +4 -0
- package/resources/qbd/credit-memos.js.map +1 -1
- package/resources/qbd/credit-memos.mjs +4 -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 +1 -0
- package/resources/qbd/customers.d.mts.map +1 -1
- package/resources/qbd/customers.d.ts +1 -0
- package/resources/qbd/customers.d.ts.map +1 -1
- package/resources/qbd/customers.js +1 -0
- package/resources/qbd/customers.js.map +1 -1
- package/resources/qbd/customers.mjs +1 -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 +2 -0
- package/resources/qbd/index.d.mts.map +1 -1
- package/resources/qbd/index.d.ts +2 -0
- 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 +9 -3
- package/resources/qbd/inventory-adjustments.d.mts.map +1 -1
- package/resources/qbd/inventory-adjustments.d.ts +9 -3
- package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
- package/resources/qbd/inventory-adjustments.js +9 -3
- package/resources/qbd/inventory-adjustments.js.map +1 -1
- package/resources/qbd/inventory-adjustments.mjs +9 -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 +4 -0
- package/resources/qbd/invoices.d.mts.map +1 -1
- package/resources/qbd/invoices.d.ts +4 -0
- package/resources/qbd/invoices.d.ts.map +1 -1
- package/resources/qbd/invoices.js +4 -0
- package/resources/qbd/invoices.js.map +1 -1
- package/resources/qbd/invoices.mjs +4 -0
- package/resources/qbd/invoices.mjs.map +1 -1
- package/resources/qbd/item-receipts.d.mts +4 -0
- package/resources/qbd/item-receipts.d.mts.map +1 -1
- package/resources/qbd/item-receipts.d.ts +4 -0
- package/resources/qbd/item-receipts.d.ts.map +1 -1
- package/resources/qbd/item-receipts.js +4 -0
- package/resources/qbd/item-receipts.js.map +1 -1
- package/resources/qbd/item-receipts.mjs +4 -0
- package/resources/qbd/item-receipts.mjs.map +1 -1
- package/resources/qbd/journal-entries.d.mts +4 -0
- package/resources/qbd/journal-entries.d.mts.map +1 -1
- package/resources/qbd/journal-entries.d.ts +4 -0
- package/resources/qbd/journal-entries.d.ts.map +1 -1
- package/resources/qbd/journal-entries.js +4 -0
- package/resources/qbd/journal-entries.js.map +1 -1
- package/resources/qbd/journal-entries.mjs +4 -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 +8 -0
- package/resources/qbd/qbd.d.mts.map +1 -1
- package/resources/qbd/qbd.d.ts +8 -0
- 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 +4 -0
- package/resources/qbd/sales-receipts.d.mts.map +1 -1
- package/resources/qbd/sales-receipts.d.ts +4 -0
- package/resources/qbd/sales-receipts.d.ts.map +1 -1
- package/resources/qbd/sales-receipts.js +4 -0
- package/resources/qbd/sales-receipts.js.map +1 -1
- package/resources/qbd/sales-receipts.mjs +4 -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 +4 -0
- package/resources/qbd/vendor-credits.d.mts.map +1 -1
- package/resources/qbd/vendor-credits.d.ts +4 -0
- package/resources/qbd/vendor-credits.d.ts.map +1 -1
- package/resources/qbd/vendor-credits.js +4 -0
- package/resources/qbd/vendor-credits.js.map +1 -1
- package/resources/qbd/vendor-credits.mjs +4 -0
- package/resources/qbd/vendor-credits.mjs.map +1 -1
- package/src/resources/qbd/account-tax-lines.ts +5 -3
- package/src/resources/qbd/accounts.ts +4 -3
- package/src/resources/qbd/bills.ts +4 -0
- package/src/resources/qbd/checks.ts +4 -0
- package/src/resources/qbd/classes.ts +4 -3
- package/src/resources/qbd/credit-card-charges.ts +4 -0
- package/src/resources/qbd/credit-card-credits.ts +4 -0
- package/src/resources/qbd/credit-memos.ts +4 -0
- package/src/resources/qbd/currencies.ts +4 -3
- package/src/resources/qbd/customer-types.ts +4 -3
- package/src/resources/qbd/customers.ts +1 -0
- 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 +19 -0
- package/src/resources/qbd/inventory-adjustments.ts +9 -3
- package/src/resources/qbd/inventory-sites.ts +4 -3
- package/src/resources/qbd/invoices.ts +4 -0
- package/src/resources/qbd/item-receipts.ts +4 -0
- package/src/resources/qbd/journal-entries.ts +4 -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 +48 -0
- package/src/resources/qbd/sales-orders.ts +4 -0
- package/src/resources/qbd/sales-receipts.ts +4 -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 +4 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,1101 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
|
|
6
|
+
import { buildHeaders } from '../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Deposits extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Creates a deposit into a QuickBooks Desktop bank or other asset account. Lines
|
|
13
|
+
* can either reference existing payments waiting to be deposited, using
|
|
14
|
+
* `paymentTransactionId` and optionally `paymentTransactionLineId`, or describe a
|
|
15
|
+
* manual transfer from another account using `accountId` and related line details.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const deposit = await conductor.qbd.deposits.create({
|
|
20
|
+
* depositToAccountId: '80000001-1234567890',
|
|
21
|
+
* transactionDate: '2024-10-01',
|
|
22
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
23
|
+
* });
|
|
24
|
+
* ```
|
|
25
|
+
*/
|
|
26
|
+
create(params: DepositCreateParams, options?: RequestOptions): APIPromise<Deposit> {
|
|
27
|
+
const { conductorEndUserId, ...body } = params;
|
|
28
|
+
return this._client.post('/quickbooks-desktop/deposits', {
|
|
29
|
+
body,
|
|
30
|
+
...options,
|
|
31
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves a deposit by ID.
|
|
37
|
+
*
|
|
38
|
+
* **IMPORTANT:** If you need to fetch multiple specific deposits by ID, use the
|
|
39
|
+
* list endpoint instead with the `ids` parameter. It accepts an array of IDs so
|
|
40
|
+
* you can batch the request into a single call, which is significantly faster.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const deposit = await conductor.qbd.deposits.retrieve(
|
|
45
|
+
* '123ABC-1234567890',
|
|
46
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
47
|
+
* );
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
retrieve(id: string, params: DepositRetrieveParams, options?: RequestOptions): APIPromise<Deposit> {
|
|
51
|
+
const { conductorEndUserId } = params;
|
|
52
|
+
return this._client.get(path`/quickbooks-desktop/deposits/${id}`, {
|
|
53
|
+
...options,
|
|
54
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Updates an existing deposit.
|
|
60
|
+
*
|
|
61
|
+
* **NOTE:** If you include `lines`, QuickBooks Desktop replaces that line list
|
|
62
|
+
* with the array you send, so include unchanged lines you want to keep and use
|
|
63
|
+
* `id: "-1"` for new lines.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const deposit = await conductor.qbd.deposits.update(
|
|
68
|
+
* '123ABC-1234567890',
|
|
69
|
+
* {
|
|
70
|
+
* revisionNumber: '1721172183',
|
|
71
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
72
|
+
* },
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
update(id: string, params: DepositUpdateParams, options?: RequestOptions): APIPromise<Deposit> {
|
|
77
|
+
const { conductorEndUserId, ...body } = params;
|
|
78
|
+
return this._client.post(path`/quickbooks-desktop/deposits/${id}`, {
|
|
79
|
+
body,
|
|
80
|
+
...options,
|
|
81
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Returns a list of deposits. Use the `cursor` parameter to paginate through the
|
|
87
|
+
* results.
|
|
88
|
+
*
|
|
89
|
+
* @example
|
|
90
|
+
* ```ts
|
|
91
|
+
* // Automatically fetches more pages as needed.
|
|
92
|
+
* for await (const deposit of conductor.qbd.deposits.list({
|
|
93
|
+
* conductorEndUserId: 'end_usr_1234567abcdefg',
|
|
94
|
+
* })) {
|
|
95
|
+
* // ...
|
|
96
|
+
* }
|
|
97
|
+
* ```
|
|
98
|
+
*/
|
|
99
|
+
list(params: DepositListParams, options?: RequestOptions): PagePromise<DepositsCursorPage, Deposit> {
|
|
100
|
+
const { conductorEndUserId, ...query } = params;
|
|
101
|
+
return this._client.getAPIList('/quickbooks-desktop/deposits', CursorPage<Deposit>, {
|
|
102
|
+
query,
|
|
103
|
+
...options,
|
|
104
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Permanently deletes a a deposit. The deletion will fail if the deposit is
|
|
110
|
+
* currently in use or has any linked transactions that are in use.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```ts
|
|
114
|
+
* const deposit = await conductor.qbd.deposits.delete(
|
|
115
|
+
* '123ABC-1234567890',
|
|
116
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
117
|
+
* );
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
delete(
|
|
121
|
+
id: string,
|
|
122
|
+
params: DepositDeleteParams,
|
|
123
|
+
options?: RequestOptions,
|
|
124
|
+
): APIPromise<DepositDeleteResponse> {
|
|
125
|
+
const { conductorEndUserId } = params;
|
|
126
|
+
return this._client.delete(path`/quickbooks-desktop/deposits/${id}`, {
|
|
127
|
+
...options,
|
|
128
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Voids a deposit by setting its amount to zero while keeping a record of it in
|
|
134
|
+
* QuickBooks. The void will fail if the deposit 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.deposits.void(
|
|
140
|
+
* '123ABC-1234567890',
|
|
141
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
142
|
+
* );
|
|
143
|
+
* ```
|
|
144
|
+
*/
|
|
145
|
+
void(id: string, params: DepositVoidParams, options?: RequestOptions): APIPromise<DepositVoidResponse> {
|
|
146
|
+
const { conductorEndUserId } = params;
|
|
147
|
+
return this._client.post(path`/quickbooks-desktop/deposits/${id}/void`, {
|
|
148
|
+
...options,
|
|
149
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type DepositsCursorPage = CursorPage<Deposit>;
|
|
155
|
+
|
|
156
|
+
export interface Deposit {
|
|
157
|
+
/**
|
|
158
|
+
* The unique identifier assigned by QuickBooks to this deposit. This ID is unique
|
|
159
|
+
* across all transaction types.
|
|
160
|
+
*/
|
|
161
|
+
id: string;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Cash back taken out of this deposit and recorded to another account, such as
|
|
165
|
+
* Petty Cash.
|
|
166
|
+
*/
|
|
167
|
+
cashBack: Deposit.CashBack | null;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The date and time when this deposit was created, in ISO 8601 format
|
|
171
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
|
|
172
|
+
* timezone of the end-user's computer.
|
|
173
|
+
*/
|
|
174
|
+
createdAt: string;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* The deposit's currency. For built-in currencies, the name and code are standard
|
|
178
|
+
* ISO 4217 international values. For user-defined currencies, all values are
|
|
179
|
+
* editable.
|
|
180
|
+
*/
|
|
181
|
+
currency: Deposit.Currency | null;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* The custom fields for the deposit object, added as user-defined data extensions,
|
|
185
|
+
* not included in the standard QuickBooks object.
|
|
186
|
+
*/
|
|
187
|
+
customFields: Array<Deposit.CustomField>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The account where the funds for this deposit have been deposited.
|
|
191
|
+
*/
|
|
192
|
+
depositToAccount: Deposit.DepositToAccount | null;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* The market exchange rate between this deposit's currency and the home currency
|
|
196
|
+
* in QuickBooks at the time of this transaction. Represented as a decimal value
|
|
197
|
+
* (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
|
|
198
|
+
*/
|
|
199
|
+
exchangeRate: number | null;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* A globally unique identifier (GUID) you, the developer, can provide for tracking
|
|
203
|
+
* this object in your external system. This field is immutable and can only be set
|
|
204
|
+
* during object creation.
|
|
205
|
+
*/
|
|
206
|
+
externalId: string | null;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* The deposit's deposit lines, each representing either an existing payment
|
|
210
|
+
* selected for deposit or a manual transfer from another account into the deposit
|
|
211
|
+
* account.
|
|
212
|
+
*/
|
|
213
|
+
lines: Array<Deposit.Line>;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* A memo or note for this deposit.
|
|
217
|
+
*/
|
|
218
|
+
memo: string | null;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* The type of object. This value is always `"qbd_deposit"`.
|
|
222
|
+
*/
|
|
223
|
+
objectType: 'qbd_deposit';
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The current QuickBooks-assigned revision number of this deposit object, which
|
|
227
|
+
* changes each time the object is modified. When updating this object, you must
|
|
228
|
+
* provide the most recent `revisionNumber` to ensure you're working with the
|
|
229
|
+
* latest data; otherwise, the update will return an error.
|
|
230
|
+
*/
|
|
231
|
+
revisionNumber: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* The total monetary amount deposited into this deposit's destination account,
|
|
235
|
+
* represented as a decimal string.
|
|
236
|
+
*/
|
|
237
|
+
totalAmount: string | null;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* This deposit's total monetary amount converted to the home currency of the
|
|
241
|
+
* QuickBooks company file, represented as a decimal string.
|
|
242
|
+
*/
|
|
243
|
+
totalAmountInHomeCurrency: string | null;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The date of this deposit, in ISO 8601 format (YYYY-MM-DD).
|
|
247
|
+
*/
|
|
248
|
+
transactionDate: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* The date and time when this deposit was last updated, in ISO 8601 format
|
|
252
|
+
* (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
|
|
253
|
+
* timezone of the end-user's computer.
|
|
254
|
+
*/
|
|
255
|
+
updatedAt: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export namespace Deposit {
|
|
259
|
+
/**
|
|
260
|
+
* Cash back taken out of this deposit and recorded to another account, such as
|
|
261
|
+
* Petty Cash.
|
|
262
|
+
*/
|
|
263
|
+
export interface CashBack {
|
|
264
|
+
/**
|
|
265
|
+
* The unique identifier assigned by QuickBooks to this deposit cash-back line.
|
|
266
|
+
* This ID is unique across all transaction line types.
|
|
267
|
+
*/
|
|
268
|
+
id: string;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* The account where this deposit cash-back line's cash-back amount is recorded,
|
|
272
|
+
* such as Petty Cash. This amount reduces the total credited to the deposit's
|
|
273
|
+
* destination account.
|
|
274
|
+
*/
|
|
275
|
+
account: CashBack.Account;
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* The cash-back amount taken out of the deposit and recorded to this deposit
|
|
279
|
+
* cash-back line's account, represented as a decimal string.
|
|
280
|
+
*/
|
|
281
|
+
amount: string | null;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* A memo or note for this deposit cash-back line.
|
|
285
|
+
*/
|
|
286
|
+
memo: string | null;
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* The type of object. This value is always `"qbd_deposit_cash_back_line"`.
|
|
290
|
+
*/
|
|
291
|
+
objectType: 'qbd_deposit_cash_back_line';
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export namespace CashBack {
|
|
295
|
+
/**
|
|
296
|
+
* The account where this deposit cash-back line's cash-back amount is recorded,
|
|
297
|
+
* such as Petty Cash. This amount reduces the total credited to the deposit's
|
|
298
|
+
* destination account.
|
|
299
|
+
*/
|
|
300
|
+
export interface Account {
|
|
301
|
+
/**
|
|
302
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
303
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
304
|
+
* types.
|
|
305
|
+
*/
|
|
306
|
+
id: string | null;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
310
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
311
|
+
* case-sensitive.
|
|
312
|
+
*/
|
|
313
|
+
fullName: string | null;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* The deposit's currency. For built-in currencies, the name and code are standard
|
|
319
|
+
* ISO 4217 international values. For user-defined currencies, all values are
|
|
320
|
+
* editable.
|
|
321
|
+
*/
|
|
322
|
+
export interface Currency {
|
|
323
|
+
/**
|
|
324
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
325
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
326
|
+
* types.
|
|
327
|
+
*/
|
|
328
|
+
id: string | null;
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
332
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
333
|
+
* case-sensitive.
|
|
334
|
+
*/
|
|
335
|
+
fullName: string | null;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
export interface CustomField {
|
|
339
|
+
/**
|
|
340
|
+
* The name of the custom field, unique for the specified `ownerId`. For public
|
|
341
|
+
* custom fields, this name is visible as a label in the QuickBooks UI.
|
|
342
|
+
*/
|
|
343
|
+
name: string;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* The identifier of the owner of the custom field, which QuickBooks internally
|
|
347
|
+
* calls a "data extension". For public custom fields visible in the UI, such as
|
|
348
|
+
* those added by the QuickBooks user, this is always "0". For private custom
|
|
349
|
+
* fields that are only visible to the application that created them, this is a
|
|
350
|
+
* valid GUID identifying the owning application. Internally, Conductor always
|
|
351
|
+
* fetches all public custom fields (those with an `ownerId` of "0") for all
|
|
352
|
+
* objects.
|
|
353
|
+
*/
|
|
354
|
+
ownerId: string;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* The data type of this custom field.
|
|
358
|
+
*/
|
|
359
|
+
type:
|
|
360
|
+
| 'amount_type'
|
|
361
|
+
| 'date_time_type'
|
|
362
|
+
| 'integer_type'
|
|
363
|
+
| 'percent_type'
|
|
364
|
+
| 'price_type'
|
|
365
|
+
| 'quantity_type'
|
|
366
|
+
| 'string_1024_type'
|
|
367
|
+
| 'string_255_type';
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* The value of this custom field. The maximum length depends on the field's data
|
|
371
|
+
* type.
|
|
372
|
+
*/
|
|
373
|
+
value: string;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* The account where the funds for this deposit have been deposited.
|
|
378
|
+
*/
|
|
379
|
+
export interface DepositToAccount {
|
|
380
|
+
/**
|
|
381
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
382
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
383
|
+
* types.
|
|
384
|
+
*/
|
|
385
|
+
id: string | null;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
389
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
390
|
+
* case-sensitive.
|
|
391
|
+
*/
|
|
392
|
+
fullName: string | null;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export interface Line {
|
|
396
|
+
/**
|
|
397
|
+
* The unique identifier assigned by QuickBooks to this deposit line. This ID is
|
|
398
|
+
* unique across all transaction line types.
|
|
399
|
+
*/
|
|
400
|
+
id: string;
|
|
401
|
+
|
|
402
|
+
/**
|
|
403
|
+
* The account associated with this deposit line. For manual deposit lines, this is
|
|
404
|
+
* the account the funds were transferred from into the deposit's destination
|
|
405
|
+
* account.
|
|
406
|
+
*/
|
|
407
|
+
account: Line.Account | null;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* The amount this deposit line contributes to the deposit's destination account,
|
|
411
|
+
* represented as a decimal string.
|
|
412
|
+
*/
|
|
413
|
+
amount: string | null;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* The check number of a check received for this deposit line.
|
|
417
|
+
*/
|
|
418
|
+
checkNumber: string | null;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* The deposit line's class. Classes can be used to categorize objects into
|
|
422
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
423
|
+
* QuickBooks, class tracking is off by default.
|
|
424
|
+
*/
|
|
425
|
+
class: Line.Class | null;
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* The customer, vendor, employee, or person on QuickBooks's "Other Names" list
|
|
429
|
+
* associated with this deposit line.
|
|
430
|
+
*/
|
|
431
|
+
entity: Line.Entity | null;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* A memo or note for this deposit line.
|
|
435
|
+
*/
|
|
436
|
+
memo: string | null;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* The type of object. This value is always `"qbd_deposit_line"`.
|
|
440
|
+
*/
|
|
441
|
+
objectType: 'qbd_deposit_line';
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* The deposit line's payment method (e.g., cash, check, credit card).
|
|
445
|
+
*/
|
|
446
|
+
paymentMethod: Line.PaymentMethod | null;
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* For payment-based deposit lines, the ID of the source payment included in this
|
|
450
|
+
* deposit line. For manual deposit lines, this is null.
|
|
451
|
+
*/
|
|
452
|
+
paymentTransactionId: string | null;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* For payment-based deposit lines, the line ID of the specific source payment line
|
|
456
|
+
* included in this deposit line. For manual deposit lines, this is null.
|
|
457
|
+
*/
|
|
458
|
+
paymentTransactionLineId: string | null;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The type of transaction for this deposit line.
|
|
462
|
+
*/
|
|
463
|
+
transactionType:
|
|
464
|
+
| 'ar_refund_credit_card'
|
|
465
|
+
| 'bill'
|
|
466
|
+
| 'bill_payment_check'
|
|
467
|
+
| 'bill_payment_credit_card'
|
|
468
|
+
| 'build_assembly'
|
|
469
|
+
| 'charge'
|
|
470
|
+
| 'check'
|
|
471
|
+
| 'credit_card_charge'
|
|
472
|
+
| 'credit_card_credit'
|
|
473
|
+
| 'credit_memo'
|
|
474
|
+
| 'deposit'
|
|
475
|
+
| 'estimate'
|
|
476
|
+
| 'inventory_adjustment'
|
|
477
|
+
| 'invoice'
|
|
478
|
+
| 'item_receipt'
|
|
479
|
+
| 'journal_entry'
|
|
480
|
+
| 'liability_adjustment'
|
|
481
|
+
| 'paycheck'
|
|
482
|
+
| 'payroll_liability_check'
|
|
483
|
+
| 'purchase_order'
|
|
484
|
+
| 'receive_payment'
|
|
485
|
+
| 'sales_order'
|
|
486
|
+
| 'sales_receipt'
|
|
487
|
+
| 'sales_tax_payment_check'
|
|
488
|
+
| 'transfer'
|
|
489
|
+
| 'vendor_credit'
|
|
490
|
+
| 'ytd_adjustment'
|
|
491
|
+
| null;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export namespace Line {
|
|
495
|
+
/**
|
|
496
|
+
* The account associated with this deposit line. For manual deposit lines, this is
|
|
497
|
+
* the account the funds were transferred from into the deposit's destination
|
|
498
|
+
* account.
|
|
499
|
+
*/
|
|
500
|
+
export interface Account {
|
|
501
|
+
/**
|
|
502
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
503
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
504
|
+
* types.
|
|
505
|
+
*/
|
|
506
|
+
id: string | null;
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
510
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
511
|
+
* case-sensitive.
|
|
512
|
+
*/
|
|
513
|
+
fullName: string | null;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* The deposit line's class. Classes can be used to categorize objects into
|
|
518
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
519
|
+
* QuickBooks, class tracking is off by default.
|
|
520
|
+
*/
|
|
521
|
+
export interface Class {
|
|
522
|
+
/**
|
|
523
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
524
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
525
|
+
* types.
|
|
526
|
+
*/
|
|
527
|
+
id: string | null;
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
531
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
532
|
+
* case-sensitive.
|
|
533
|
+
*/
|
|
534
|
+
fullName: string | null;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* The customer, vendor, employee, or person on QuickBooks's "Other Names" list
|
|
539
|
+
* associated with this deposit line.
|
|
540
|
+
*/
|
|
541
|
+
export interface Entity {
|
|
542
|
+
/**
|
|
543
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
544
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
545
|
+
* types.
|
|
546
|
+
*/
|
|
547
|
+
id: string | null;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
551
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
552
|
+
* case-sensitive.
|
|
553
|
+
*/
|
|
554
|
+
fullName: string | null;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* The deposit line's payment method (e.g., cash, check, credit card).
|
|
559
|
+
*/
|
|
560
|
+
export interface PaymentMethod {
|
|
561
|
+
/**
|
|
562
|
+
* The unique identifier assigned by QuickBooks to this object. This ID is unique
|
|
563
|
+
* across all objects of the same type, but not across different QuickBooks object
|
|
564
|
+
* types.
|
|
565
|
+
*/
|
|
566
|
+
id: string | null;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* The fully-qualified unique name for this object, formed by combining the names
|
|
570
|
+
* of its parent objects with its own `name`, separated by colons. Not
|
|
571
|
+
* case-sensitive.
|
|
572
|
+
*/
|
|
573
|
+
fullName: string | null;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export interface DepositDeleteResponse {
|
|
579
|
+
/**
|
|
580
|
+
* The QuickBooks-assigned unique identifier of the deleted deposit.
|
|
581
|
+
*/
|
|
582
|
+
id: string;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* Indicates whether the deposit was deleted.
|
|
586
|
+
*/
|
|
587
|
+
deleted: boolean;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* The type of object. This value is always `"qbd_deposit"`.
|
|
591
|
+
*/
|
|
592
|
+
objectType: 'qbd_deposit';
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
export interface DepositVoidResponse {
|
|
596
|
+
/**
|
|
597
|
+
* The QuickBooks-assigned unique identifier of the voided deposit.
|
|
598
|
+
*/
|
|
599
|
+
id: string;
|
|
600
|
+
|
|
601
|
+
/**
|
|
602
|
+
* The date and time when this deposit was created, in ISO 8601 format
|
|
603
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
604
|
+
* timezone of the end-user's computer.
|
|
605
|
+
*/
|
|
606
|
+
createdAt: string | null;
|
|
607
|
+
|
|
608
|
+
/**
|
|
609
|
+
* The type of object. This value is always `"qbd_deposit"`.
|
|
610
|
+
*/
|
|
611
|
+
objectType: 'qbd_deposit';
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* The date and time when this deposit was last updated, in ISO 8601 format
|
|
615
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
616
|
+
* timezone of the end-user's computer.
|
|
617
|
+
*/
|
|
618
|
+
updatedAt: string | null;
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* Indicates whether the deposit was voided.
|
|
622
|
+
*/
|
|
623
|
+
voided: boolean;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export interface DepositCreateParams {
|
|
627
|
+
/**
|
|
628
|
+
* Body param: The account where the funds for this deposit will be deposited.
|
|
629
|
+
*/
|
|
630
|
+
depositToAccountId: string;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Body param: The date of this deposit, in ISO 8601 format (YYYY-MM-DD).
|
|
634
|
+
*/
|
|
635
|
+
transactionDate: string;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Header param: The ID of the End-User to receive this request.
|
|
639
|
+
*/
|
|
640
|
+
conductorEndUserId: string;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Body param: Cash back taken out of this deposit and recorded to another account,
|
|
644
|
+
* such as Petty Cash.
|
|
645
|
+
*/
|
|
646
|
+
cashBack?: DepositCreateParams.CashBack;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Body param: The deposit's currency. For built-in currencies, the name and code
|
|
650
|
+
* are standard ISO 4217 international values. For user-defined currencies, all
|
|
651
|
+
* values are editable.
|
|
652
|
+
*/
|
|
653
|
+
currencyId?: string;
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* Body param: The market exchange rate between this deposit's currency and the
|
|
657
|
+
* home currency in QuickBooks at the time of this transaction. Represented as a
|
|
658
|
+
* decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
|
|
659
|
+
*/
|
|
660
|
+
exchangeRate?: number;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Body param: A globally unique identifier (GUID) you, the developer, can provide
|
|
664
|
+
* for tracking this object in your external system. This field is immutable and
|
|
665
|
+
* can only be set during object creation.
|
|
666
|
+
*
|
|
667
|
+
* **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
|
|
668
|
+
* QuickBooks will return an error.
|
|
669
|
+
*/
|
|
670
|
+
externalId?: string;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Body param: The deposit's deposit lines, each representing either an existing
|
|
674
|
+
* payment selected for deposit or a manual transfer from another account into the
|
|
675
|
+
* deposit account.
|
|
676
|
+
*/
|
|
677
|
+
lines?: Array<DepositCreateParams.Line>;
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Body param: A memo or note for this deposit.
|
|
681
|
+
*/
|
|
682
|
+
memo?: string;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
export namespace DepositCreateParams {
|
|
686
|
+
/**
|
|
687
|
+
* Cash back taken out of this deposit and recorded to another account, such as
|
|
688
|
+
* Petty Cash.
|
|
689
|
+
*/
|
|
690
|
+
export interface CashBack {
|
|
691
|
+
/**
|
|
692
|
+
* The account where this deposit cash-back line's cash-back amount is recorded,
|
|
693
|
+
* such as Petty Cash. This amount reduces the total credited to the deposit's
|
|
694
|
+
* destination account.
|
|
695
|
+
*/
|
|
696
|
+
accountId: string;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* The cash-back amount taken out of the deposit and recorded to this deposit
|
|
700
|
+
* cash-back line's account, represented as a decimal string.
|
|
701
|
+
*/
|
|
702
|
+
amount?: string;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* A memo or note for this deposit cash-back line.
|
|
706
|
+
*/
|
|
707
|
+
memo?: string;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export interface Line {
|
|
711
|
+
/**
|
|
712
|
+
* For a manual deposit line, the account that the funds are transferred from into
|
|
713
|
+
* the deposit's destination account. To deposit an existing payment instead, use
|
|
714
|
+
* `paymentTransactionId` and, when needed, `paymentTransactionLineId`.
|
|
715
|
+
*/
|
|
716
|
+
accountId?: string;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* For a manual deposit line, the amount transferred from the line's account into
|
|
720
|
+
* the deposit's destination account, represented as a decimal string.
|
|
721
|
+
*/
|
|
722
|
+
amount?: string;
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* The check number of a check received for this deposit line.
|
|
726
|
+
*/
|
|
727
|
+
checkNumber?: string;
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* The deposit line's class. Classes can be used to categorize objects into
|
|
731
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
732
|
+
* QuickBooks, class tracking is off by default.
|
|
733
|
+
*/
|
|
734
|
+
classId?: string;
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* The customer, vendor, employee, or person on QuickBooks's "Other Names" list
|
|
738
|
+
* associated with this manual deposit line.
|
|
739
|
+
*/
|
|
740
|
+
entityId?: string;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* A memo or note for this deposit line.
|
|
744
|
+
*/
|
|
745
|
+
memo?: string;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* The check number to use for this deposit line, overriding the check number from
|
|
749
|
+
* the existing payment line.
|
|
750
|
+
*
|
|
751
|
+
* Maximum length: 11 characters.
|
|
752
|
+
*/
|
|
753
|
+
overrideCheckNumber?: string;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* The class to use for this deposit line, overriding the class from the existing
|
|
757
|
+
* payment line.
|
|
758
|
+
*/
|
|
759
|
+
overrideClassId?: string;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* The memo to use for this deposit line, overriding the memo from the existing
|
|
763
|
+
* payment line.
|
|
764
|
+
*
|
|
765
|
+
* Maximum length: 4095 characters.
|
|
766
|
+
*/
|
|
767
|
+
overrideMemo?: string;
|
|
768
|
+
|
|
769
|
+
/**
|
|
770
|
+
* The deposit line's payment method (e.g., cash, check, credit card).
|
|
771
|
+
*/
|
|
772
|
+
paymentMethodId?: string;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* The ID of an existing undeposited payment to include in this deposit line. Use
|
|
776
|
+
* the `paymentTransactionId` from a payments-to-deposit result, or the `id` from
|
|
777
|
+
* the original receive-payment response. If the source payment has multiple
|
|
778
|
+
* depositable lines and you omit `paymentTransactionLineId`, QuickBooks Desktop
|
|
779
|
+
* deposits only the first line.
|
|
780
|
+
*/
|
|
781
|
+
paymentTransactionId?: string;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* The line ID for the specific undeposited payment line to include in this deposit
|
|
785
|
+
* line. Use the `paymentTransactionLineId` from a payments-to-deposit result. If
|
|
786
|
+
* the source payment has multiple depositable lines, provide this field with
|
|
787
|
+
* `paymentTransactionId` to choose the exact line.
|
|
788
|
+
*/
|
|
789
|
+
paymentTransactionLineId?: string;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
export interface DepositRetrieveParams {
|
|
794
|
+
/**
|
|
795
|
+
* The ID of the End-User to receive this request.
|
|
796
|
+
*/
|
|
797
|
+
conductorEndUserId: string;
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
export interface DepositUpdateParams {
|
|
801
|
+
/**
|
|
802
|
+
* Body param: The current QuickBooks-assigned revision number of the deposit
|
|
803
|
+
* object you are updating, which you can get by fetching the object first. Provide
|
|
804
|
+
* the most recent `revisionNumber` to ensure you're working with the latest data;
|
|
805
|
+
* otherwise, the update will return an error.
|
|
806
|
+
*/
|
|
807
|
+
revisionNumber: string;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Header param: The ID of the End-User to receive this request.
|
|
811
|
+
*/
|
|
812
|
+
conductorEndUserId: string;
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Body param: Cash back taken out of this deposit and recorded to another account,
|
|
816
|
+
* such as Petty Cash.
|
|
817
|
+
*/
|
|
818
|
+
cashBack?: DepositUpdateParams.CashBack;
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Body param: The deposit's currency. For built-in currencies, the name and code
|
|
822
|
+
* are standard ISO 4217 international values. For user-defined currencies, all
|
|
823
|
+
* values are editable.
|
|
824
|
+
*/
|
|
825
|
+
currencyId?: string;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Body param: The account where the funds for this deposit will be deposited.
|
|
829
|
+
*/
|
|
830
|
+
depositToAccountId?: string;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* Body param: The market exchange rate between this deposit's currency and the
|
|
834
|
+
* home currency in QuickBooks at the time of this transaction. Represented as a
|
|
835
|
+
* decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
|
|
836
|
+
*/
|
|
837
|
+
exchangeRate?: number;
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Body param: The deposit's deposit lines, each representing either an existing
|
|
841
|
+
* payment selected for deposit or a manual transfer from another account into the
|
|
842
|
+
* deposit account.
|
|
843
|
+
*
|
|
844
|
+
* **IMPORTANT**:
|
|
845
|
+
*
|
|
846
|
+
* 1. Including this array in your update request will **REPLACE** all existing
|
|
847
|
+
* deposit lines for the deposit with this array. To keep any existing deposit
|
|
848
|
+
* lines, you must include them in this array even if they have not changed.
|
|
849
|
+
* **Any deposit lines not included will be removed.**
|
|
850
|
+
*
|
|
851
|
+
* 2. To add a new deposit line, include it here with the `id` field set to `-1`.
|
|
852
|
+
*
|
|
853
|
+
* 3. If you do not wish to modify any deposit lines, omit this field entirely to
|
|
854
|
+
* keep them unchanged.
|
|
855
|
+
*/
|
|
856
|
+
lines?: Array<DepositUpdateParams.Line>;
|
|
857
|
+
|
|
858
|
+
/**
|
|
859
|
+
* Body param: A memo or note for this deposit.
|
|
860
|
+
*/
|
|
861
|
+
memo?: string;
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Body param: The date of this deposit, in ISO 8601 format (YYYY-MM-DD).
|
|
865
|
+
*/
|
|
866
|
+
transactionDate?: string;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export namespace DepositUpdateParams {
|
|
870
|
+
/**
|
|
871
|
+
* Cash back taken out of this deposit and recorded to another account, such as
|
|
872
|
+
* Petty Cash.
|
|
873
|
+
*/
|
|
874
|
+
export interface CashBack {
|
|
875
|
+
/**
|
|
876
|
+
* The account where this deposit cash-back line's cash-back amount is recorded,
|
|
877
|
+
* such as Petty Cash. This amount reduces the total credited to the deposit's
|
|
878
|
+
* destination account.
|
|
879
|
+
*/
|
|
880
|
+
accountId?: string;
|
|
881
|
+
|
|
882
|
+
/**
|
|
883
|
+
* The cash-back amount taken out of the deposit and recorded to this deposit
|
|
884
|
+
* cash-back line's account, represented as a decimal string.
|
|
885
|
+
*/
|
|
886
|
+
amount?: string;
|
|
887
|
+
|
|
888
|
+
/**
|
|
889
|
+
* A memo or note for this deposit cash-back line.
|
|
890
|
+
*/
|
|
891
|
+
memo?: string;
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
export interface Line {
|
|
895
|
+
/**
|
|
896
|
+
* The QuickBooks-assigned unique identifier of an existing deposit line you wish
|
|
897
|
+
* to retain or update.
|
|
898
|
+
*
|
|
899
|
+
* **IMPORTANT**: Set this field to `-1` for new deposit lines you wish to add.
|
|
900
|
+
*/
|
|
901
|
+
id: string;
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* For a manual deposit line, the account that the funds are transferred from into
|
|
905
|
+
* the deposit's destination account. To deposit an existing payment instead, use
|
|
906
|
+
* `paymentTransactionId` and, when needed, `paymentTransactionLineId`.
|
|
907
|
+
*/
|
|
908
|
+
accountId?: string;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* For a manual deposit line, the amount transferred from the line's account into
|
|
912
|
+
* the deposit's destination account, represented as a decimal string.
|
|
913
|
+
*/
|
|
914
|
+
amount?: string;
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
* The check number of a check received for this deposit line.
|
|
918
|
+
*/
|
|
919
|
+
checkNumber?: string;
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* The deposit line's class. Classes can be used to categorize objects into
|
|
923
|
+
* meaningful segments, such as department, location, or type of work. In
|
|
924
|
+
* QuickBooks, class tracking is off by default.
|
|
925
|
+
*/
|
|
926
|
+
classId?: string;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* The customer, vendor, employee, or person on QuickBooks's "Other Names" list
|
|
930
|
+
* associated with this manual deposit line.
|
|
931
|
+
*/
|
|
932
|
+
entityId?: string;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* A memo or note for this deposit line.
|
|
936
|
+
*/
|
|
937
|
+
memo?: string;
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* The check number to use for this deposit line, overriding the check number from
|
|
941
|
+
* the existing payment line.
|
|
942
|
+
*
|
|
943
|
+
* Maximum length: 11 characters.
|
|
944
|
+
*/
|
|
945
|
+
overrideCheckNumber?: string;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* The class to use for this deposit line, overriding the class from the existing
|
|
949
|
+
* payment line.
|
|
950
|
+
*/
|
|
951
|
+
overrideClassId?: string;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* The memo to use for this deposit line, overriding the memo from the existing
|
|
955
|
+
* payment line.
|
|
956
|
+
*
|
|
957
|
+
* Maximum length: 4095 characters.
|
|
958
|
+
*/
|
|
959
|
+
overrideMemo?: string;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* The deposit line's payment method (e.g., cash, check, credit card).
|
|
963
|
+
*/
|
|
964
|
+
paymentMethodId?: string;
|
|
965
|
+
|
|
966
|
+
/**
|
|
967
|
+
* The ID of an existing undeposited payment to include in this deposit line. Use
|
|
968
|
+
* the `paymentTransactionId` from a payments-to-deposit result, or the `id` from
|
|
969
|
+
* the original receive-payment response. If the source payment has multiple
|
|
970
|
+
* depositable lines and you omit `paymentTransactionLineId`, QuickBooks Desktop
|
|
971
|
+
* deposits only the first line.
|
|
972
|
+
*/
|
|
973
|
+
paymentTransactionId?: string;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* The line ID for the specific undeposited payment line to include in this deposit
|
|
977
|
+
* line. Use the `paymentTransactionLineId` from a payments-to-deposit result. If
|
|
978
|
+
* the source payment has multiple depositable lines, provide this field with
|
|
979
|
+
* `paymentTransactionId` to choose the exact line.
|
|
980
|
+
*/
|
|
981
|
+
paymentTransactionLineId?: string;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export interface DepositListParams extends CursorPageParams {
|
|
986
|
+
/**
|
|
987
|
+
* Header param: The ID of the End-User to receive this request.
|
|
988
|
+
*/
|
|
989
|
+
conductorEndUserId: string;
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Query param: Filter for deposits associated with these accounts.
|
|
993
|
+
*/
|
|
994
|
+
accountIds?: Array<string>;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Query param: Filter for deposits in these currencies.
|
|
998
|
+
*/
|
|
999
|
+
currencyIds?: Array<string>;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Query param: Filter for deposits associated with these entities (customers,
|
|
1003
|
+
* vendors, employees, etc.). These are the entities referenced on the deposit's
|
|
1004
|
+
* manual lines.
|
|
1005
|
+
*/
|
|
1006
|
+
entityIds?: Array<string>;
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* Query param: Filter for specific deposits by their QuickBooks-assigned unique
|
|
1010
|
+
* identifier(s).
|
|
1011
|
+
*
|
|
1012
|
+
* **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
|
|
1013
|
+
* query parameters for this request.
|
|
1014
|
+
*
|
|
1015
|
+
* **NOTE**: If any of the values you specify in this parameter are not found, the
|
|
1016
|
+
* request will return an error.
|
|
1017
|
+
*/
|
|
1018
|
+
ids?: Array<string>;
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* Query param: Whether to include line items in the response. Defaults to `true`.
|
|
1022
|
+
*/
|
|
1023
|
+
includeLineItems?: boolean;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* Query param: Filter for deposits whose `date` field is on or after this date, in
|
|
1027
|
+
* ISO 8601 format (YYYY-MM-DD).
|
|
1028
|
+
*
|
|
1029
|
+
* **NOTE:** QuickBooks Desktop interprets this date as the **start of the
|
|
1030
|
+
* specified day** in the local timezone of the end-user's computer (e.g.,
|
|
1031
|
+
* `2025-01-01` → `2025-01-01T00:00:00`).
|
|
1032
|
+
*/
|
|
1033
|
+
transactionDateFrom?: string;
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Query param: Filter for deposits whose `date` field is on or before this date,
|
|
1037
|
+
* in ISO 8601 format (YYYY-MM-DD).
|
|
1038
|
+
*
|
|
1039
|
+
* **NOTE:** QuickBooks Desktop interprets this date as the **end of the specified
|
|
1040
|
+
* day** in the local timezone of the end-user's computer (e.g., `2025-01-01` →
|
|
1041
|
+
* `2025-01-01T23:59:59`).
|
|
1042
|
+
*/
|
|
1043
|
+
transactionDateTo?: string;
|
|
1044
|
+
|
|
1045
|
+
/**
|
|
1046
|
+
* Query param: Filter for deposits updated on or after this date/time. Accepts the
|
|
1047
|
+
* following ISO 8601 formats:
|
|
1048
|
+
*
|
|
1049
|
+
* - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
|
|
1050
|
+
* **start of the specified day** in the local timezone of the end-user's
|
|
1051
|
+
* computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).
|
|
1052
|
+
* - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
|
|
1053
|
+
* interprets the timestamp in the local timezone of the end-user's computer.
|
|
1054
|
+
* - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
|
|
1055
|
+
* interprets the timestamp using the specified timezone.
|
|
1056
|
+
*/
|
|
1057
|
+
updatedAfter?: string;
|
|
1058
|
+
|
|
1059
|
+
/**
|
|
1060
|
+
* Query param: Filter for deposits updated on or before this date/time. Accepts
|
|
1061
|
+
* the following ISO 8601 formats:
|
|
1062
|
+
*
|
|
1063
|
+
* - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
|
|
1064
|
+
* **end of the specified day** in the local timezone of the end-user's computer
|
|
1065
|
+
* (e.g., `2025-01-01` → `2025-01-01T23:59:59`).
|
|
1066
|
+
* - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
|
|
1067
|
+
* interprets the timestamp in the local timezone of the end-user's computer.
|
|
1068
|
+
* - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
|
|
1069
|
+
* interprets the timestamp using the specified timezone.
|
|
1070
|
+
*/
|
|
1071
|
+
updatedBefore?: string;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
export interface DepositDeleteParams {
|
|
1075
|
+
/**
|
|
1076
|
+
* The ID of the End-User to receive this request.
|
|
1077
|
+
*/
|
|
1078
|
+
conductorEndUserId: string;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export interface DepositVoidParams {
|
|
1082
|
+
/**
|
|
1083
|
+
* The ID of the End-User to receive this request.
|
|
1084
|
+
*/
|
|
1085
|
+
conductorEndUserId: string;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
export declare namespace Deposits {
|
|
1089
|
+
export {
|
|
1090
|
+
type Deposit as Deposit,
|
|
1091
|
+
type DepositDeleteResponse as DepositDeleteResponse,
|
|
1092
|
+
type DepositVoidResponse as DepositVoidResponse,
|
|
1093
|
+
type DepositsCursorPage as DepositsCursorPage,
|
|
1094
|
+
type DepositCreateParams as DepositCreateParams,
|
|
1095
|
+
type DepositRetrieveParams as DepositRetrieveParams,
|
|
1096
|
+
type DepositUpdateParams as DepositUpdateParams,
|
|
1097
|
+
type DepositListParams as DepositListParams,
|
|
1098
|
+
type DepositDeleteParams as DepositDeleteParams,
|
|
1099
|
+
type DepositVoidParams as DepositVoidParams,
|
|
1100
|
+
};
|
|
1101
|
+
}
|