conductor-node 14.8.1 → 14.10.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/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 +51 -1
- package/resources/qbd/bills.d.mts.map +1 -1
- package/resources/qbd/bills.d.ts +51 -1
- package/resources/qbd/bills.d.ts.map +1 -1
- package/resources/qbd/bills.js +20 -0
- package/resources/qbd/bills.js.map +1 -1
- package/resources/qbd/bills.mjs +20 -0
- package/resources/qbd/bills.mjs.map +1 -1
- package/resources/qbd/checks.d.mts +51 -1
- package/resources/qbd/checks.d.mts.map +1 -1
- package/resources/qbd/checks.d.ts +51 -1
- package/resources/qbd/checks.d.ts.map +1 -1
- package/resources/qbd/checks.js +20 -0
- package/resources/qbd/checks.js.map +1 -1
- package/resources/qbd/checks.mjs +20 -0
- package/resources/qbd/checks.mjs.map +1 -1
- package/resources/qbd/credit-card-charges.d.mts +52 -1
- package/resources/qbd/credit-card-charges.d.mts.map +1 -1
- package/resources/qbd/credit-card-charges.d.ts +52 -1
- package/resources/qbd/credit-card-charges.d.ts.map +1 -1
- package/resources/qbd/credit-card-charges.js +20 -0
- package/resources/qbd/credit-card-charges.js.map +1 -1
- package/resources/qbd/credit-card-charges.mjs +20 -0
- package/resources/qbd/credit-card-charges.mjs.map +1 -1
- package/resources/qbd/credit-card-credits.d.mts +52 -1
- package/resources/qbd/credit-card-credits.d.mts.map +1 -1
- package/resources/qbd/credit-card-credits.d.ts +52 -1
- package/resources/qbd/credit-card-credits.d.ts.map +1 -1
- package/resources/qbd/credit-card-credits.js +20 -0
- package/resources/qbd/credit-card-credits.js.map +1 -1
- package/resources/qbd/credit-card-credits.mjs +20 -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 +51 -1
- package/resources/qbd/credit-memos.d.mts.map +1 -1
- package/resources/qbd/credit-memos.d.ts +51 -1
- package/resources/qbd/credit-memos.d.ts.map +1 -1
- package/resources/qbd/credit-memos.js +20 -0
- package/resources/qbd/credit-memos.js.map +1 -1
- package/resources/qbd/credit-memos.mjs +20 -0
- package/resources/qbd/credit-memos.mjs.map +1 -1
- package/resources/qbd/customers.d.mts +16 -2
- package/resources/qbd/customers.d.mts.map +1 -1
- package/resources/qbd/customers.d.ts +16 -2
- package/resources/qbd/customers.d.ts.map +1 -1
- package/resources/qbd/customers.js +3 -0
- package/resources/qbd/customers.js.map +1 -1
- package/resources/qbd/customers.mjs +3 -0
- package/resources/qbd/customers.mjs.map +1 -1
- package/resources/qbd/index.d.mts +14 -14
- package/resources/qbd/index.d.mts.map +1 -1
- package/resources/qbd/index.d.ts +14 -14
- package/resources/qbd/index.d.ts.map +1 -1
- package/resources/qbd/index.js.map +1 -1
- package/resources/qbd/index.mjs.map +1 -1
- package/resources/qbd/inventory-adjustments.d.mts +53 -1
- package/resources/qbd/inventory-adjustments.d.mts.map +1 -1
- package/resources/qbd/inventory-adjustments.d.ts +53 -1
- package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
- package/resources/qbd/inventory-adjustments.js +21 -0
- package/resources/qbd/inventory-adjustments.js.map +1 -1
- package/resources/qbd/inventory-adjustments.mjs +21 -0
- package/resources/qbd/inventory-adjustments.mjs.map +1 -1
- package/resources/qbd/invoices.d.mts +51 -1
- package/resources/qbd/invoices.d.mts.map +1 -1
- package/resources/qbd/invoices.d.ts +51 -1
- package/resources/qbd/invoices.d.ts.map +1 -1
- package/resources/qbd/invoices.js +20 -0
- package/resources/qbd/invoices.js.map +1 -1
- package/resources/qbd/invoices.mjs +20 -0
- package/resources/qbd/invoices.mjs.map +1 -1
- package/resources/qbd/item-receipts.d.mts +51 -1
- package/resources/qbd/item-receipts.d.mts.map +1 -1
- package/resources/qbd/item-receipts.d.ts +51 -1
- package/resources/qbd/item-receipts.d.ts.map +1 -1
- package/resources/qbd/item-receipts.js +20 -0
- package/resources/qbd/item-receipts.js.map +1 -1
- package/resources/qbd/item-receipts.mjs +20 -0
- package/resources/qbd/item-receipts.mjs.map +1 -1
- package/resources/qbd/journal-entries.d.mts +51 -1
- package/resources/qbd/journal-entries.d.mts.map +1 -1
- package/resources/qbd/journal-entries.d.ts +51 -1
- package/resources/qbd/journal-entries.d.ts.map +1 -1
- package/resources/qbd/journal-entries.js +20 -0
- package/resources/qbd/journal-entries.js.map +1 -1
- package/resources/qbd/journal-entries.mjs +20 -0
- package/resources/qbd/journal-entries.mjs.map +1 -1
- package/resources/qbd/qbd.d.mts +28 -28
- package/resources/qbd/qbd.d.mts.map +1 -1
- package/resources/qbd/qbd.d.ts +28 -28
- package/resources/qbd/qbd.d.ts.map +1 -1
- package/resources/qbd/qbd.js.map +1 -1
- package/resources/qbd/qbd.mjs.map +1 -1
- package/resources/qbd/sales-receipts.d.mts +51 -1
- package/resources/qbd/sales-receipts.d.mts.map +1 -1
- package/resources/qbd/sales-receipts.d.ts +51 -1
- package/resources/qbd/sales-receipts.d.ts.map +1 -1
- package/resources/qbd/sales-receipts.js +20 -0
- package/resources/qbd/sales-receipts.js.map +1 -1
- package/resources/qbd/sales-receipts.mjs +20 -0
- package/resources/qbd/sales-receipts.mjs.map +1 -1
- package/resources/qbd/vendor-credits.d.mts +51 -1
- package/resources/qbd/vendor-credits.d.mts.map +1 -1
- package/resources/qbd/vendor-credits.d.ts +51 -1
- package/resources/qbd/vendor-credits.d.ts.map +1 -1
- package/resources/qbd/vendor-credits.js +20 -0
- package/resources/qbd/vendor-credits.js.map +1 -1
- package/resources/qbd/vendor-credits.mjs +20 -0
- package/resources/qbd/vendor-credits.mjs.map +1 -1
- package/resources/qbd/vendors.d.mts +3 -3
- package/resources/qbd/vendors.d.mts.map +1 -1
- package/resources/qbd/vendors.d.ts +3 -3
- package/resources/qbd/vendors.d.ts.map +1 -1
- package/src/client.ts +12 -0
- package/src/internal/types.ts +6 -8
- 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 +66 -0
- package/src/resources/qbd/checks.ts +66 -0
- package/src/resources/qbd/credit-card-charges.ts +71 -0
- package/src/resources/qbd/credit-card-credits.ts +71 -0
- package/src/resources/qbd/credit-card-refunds.ts +71 -0
- package/src/resources/qbd/credit-memos.ts +70 -0
- package/src/resources/qbd/customers.ts +17 -2
- package/src/resources/qbd/index.ts +28 -0
- package/src/resources/qbd/inventory-adjustments.ts +72 -0
- package/src/resources/qbd/invoices.ts +66 -0
- package/src/resources/qbd/item-receipts.ts +70 -0
- package/src/resources/qbd/journal-entries.ts +70 -0
- package/src/resources/qbd/qbd.ts +56 -0
- package/src/resources/qbd/sales-receipts.ts +70 -0
- package/src/resources/qbd/vendor-credits.ts +70 -0
- package/src/resources/qbd/vendors.ts +3 -3
- 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
|
@@ -78,6 +78,9 @@ export class Customers extends APIResource {
|
|
|
78
78
|
* Returns a list of customers. Use the `cursor` parameter to paginate through the
|
|
79
79
|
* results.
|
|
80
80
|
*
|
|
81
|
+
* **IMPORTANT**: If this request times out or is slow, set
|
|
82
|
+
* `excludeAlternateShippingAddresses=true` to significantly improve performance.
|
|
83
|
+
*
|
|
81
84
|
* @example
|
|
82
85
|
* ```ts
|
|
83
86
|
* // Automatically fetches more pages as needed.
|
|
@@ -139,9 +142,11 @@ export interface Customer {
|
|
|
139
142
|
|
|
140
143
|
/**
|
|
141
144
|
* A list of additional shipping addresses for this customer. Useful when the
|
|
142
|
-
* customer has multiple shipping locations.
|
|
145
|
+
* customer has multiple shipping locations. If
|
|
146
|
+
* `excludeAlternateShippingAddresses=true` is set on a customer list request, this
|
|
147
|
+
* field is `null` because the addresses were not fetched.
|
|
143
148
|
*/
|
|
144
|
-
alternateShippingAddresses: Array<Customer.AlternateShippingAddress
|
|
149
|
+
alternateShippingAddresses: Array<Customer.AlternateShippingAddress> | null;
|
|
145
150
|
|
|
146
151
|
/**
|
|
147
152
|
* The current balance owed by this customer, excluding balances from any jobs
|
|
@@ -2423,6 +2428,16 @@ export interface CustomerListParams extends CursorPageParams {
|
|
|
2423
2428
|
*/
|
|
2424
2429
|
currencyIds?: Array<string>;
|
|
2425
2430
|
|
|
2431
|
+
/**
|
|
2432
|
+
* Query param: Excludes alternate shipping addresses from each customer returned
|
|
2433
|
+
* by the list request. When true, the response returns
|
|
2434
|
+
* `alternateShippingAddresses` as `null` instead of fetching the address array.
|
|
2435
|
+
* Use this when your integration does not need alternate shipping addresses. This
|
|
2436
|
+
* significantly improves performance for company files where some customers have
|
|
2437
|
+
* many saved shipping addresses (sometimes dozens or hundreds).
|
|
2438
|
+
*/
|
|
2439
|
+
excludeAlternateShippingAddresses?: boolean;
|
|
2440
|
+
|
|
2426
2441
|
/**
|
|
2427
2442
|
* Query param: Filter for specific customers by their full-name(s),
|
|
2428
2443
|
* case-insensitive. Like `id`, `fullName` is a unique identifier for a customer,
|
|
@@ -19,32 +19,38 @@ export {
|
|
|
19
19
|
BillCheckPayments,
|
|
20
20
|
type BillCheckPayment,
|
|
21
21
|
type BillCheckPaymentDeleteResponse,
|
|
22
|
+
type BillCheckPaymentVoidResponse,
|
|
22
23
|
type BillCheckPaymentCreateParams,
|
|
23
24
|
type BillCheckPaymentRetrieveParams,
|
|
24
25
|
type BillCheckPaymentUpdateParams,
|
|
25
26
|
type BillCheckPaymentListParams,
|
|
26
27
|
type BillCheckPaymentDeleteParams,
|
|
28
|
+
type BillCheckPaymentVoidParams,
|
|
27
29
|
type BillCheckPaymentsCursorPage,
|
|
28
30
|
} from './bill-check-payments';
|
|
29
31
|
export {
|
|
30
32
|
BillCreditCardPayments,
|
|
31
33
|
type BillCreditCardPayment,
|
|
32
34
|
type BillCreditCardPaymentDeleteResponse,
|
|
35
|
+
type BillCreditCardPaymentVoidResponse,
|
|
33
36
|
type BillCreditCardPaymentCreateParams,
|
|
34
37
|
type BillCreditCardPaymentRetrieveParams,
|
|
35
38
|
type BillCreditCardPaymentListParams,
|
|
36
39
|
type BillCreditCardPaymentDeleteParams,
|
|
40
|
+
type BillCreditCardPaymentVoidParams,
|
|
37
41
|
type BillCreditCardPaymentsCursorPage,
|
|
38
42
|
} from './bill-credit-card-payments';
|
|
39
43
|
export {
|
|
40
44
|
Bills,
|
|
41
45
|
type Bill,
|
|
42
46
|
type BillDeleteResponse,
|
|
47
|
+
type BillVoidResponse,
|
|
43
48
|
type BillCreateParams,
|
|
44
49
|
type BillRetrieveParams,
|
|
45
50
|
type BillUpdateParams,
|
|
46
51
|
type BillListParams,
|
|
47
52
|
type BillDeleteParams,
|
|
53
|
+
type BillVoidParams,
|
|
48
54
|
type BillsCursorPage,
|
|
49
55
|
} from './bills';
|
|
50
56
|
export {
|
|
@@ -62,11 +68,13 @@ export {
|
|
|
62
68
|
Checks,
|
|
63
69
|
type Check,
|
|
64
70
|
type CheckDeleteResponse,
|
|
71
|
+
type CheckVoidResponse,
|
|
65
72
|
type CheckCreateParams,
|
|
66
73
|
type CheckRetrieveParams,
|
|
67
74
|
type CheckUpdateParams,
|
|
68
75
|
type CheckListParams,
|
|
69
76
|
type CheckDeleteParams,
|
|
77
|
+
type CheckVoidParams,
|
|
70
78
|
type ChecksCursorPage,
|
|
71
79
|
} from './checks';
|
|
72
80
|
export {
|
|
@@ -83,43 +91,51 @@ export {
|
|
|
83
91
|
CreditCardCharges,
|
|
84
92
|
type CreditCardCharge,
|
|
85
93
|
type CreditCardChargeDeleteResponse,
|
|
94
|
+
type CreditCardChargeVoidResponse,
|
|
86
95
|
type CreditCardChargeCreateParams,
|
|
87
96
|
type CreditCardChargeRetrieveParams,
|
|
88
97
|
type CreditCardChargeUpdateParams,
|
|
89
98
|
type CreditCardChargeListParams,
|
|
90
99
|
type CreditCardChargeDeleteParams,
|
|
100
|
+
type CreditCardChargeVoidParams,
|
|
91
101
|
type CreditCardChargesCursorPage,
|
|
92
102
|
} from './credit-card-charges';
|
|
93
103
|
export {
|
|
94
104
|
CreditCardCredits,
|
|
95
105
|
type CreditCardCredit,
|
|
96
106
|
type CreditCardCreditDeleteResponse,
|
|
107
|
+
type CreditCardCreditVoidResponse,
|
|
97
108
|
type CreditCardCreditCreateParams,
|
|
98
109
|
type CreditCardCreditRetrieveParams,
|
|
99
110
|
type CreditCardCreditUpdateParams,
|
|
100
111
|
type CreditCardCreditListParams,
|
|
101
112
|
type CreditCardCreditDeleteParams,
|
|
113
|
+
type CreditCardCreditVoidParams,
|
|
102
114
|
type CreditCardCreditsCursorPage,
|
|
103
115
|
} from './credit-card-credits';
|
|
104
116
|
export {
|
|
105
117
|
CreditCardRefunds,
|
|
106
118
|
type CreditCardRefund,
|
|
107
119
|
type CreditCardRefundDeleteResponse,
|
|
120
|
+
type CreditCardRefundVoidResponse,
|
|
108
121
|
type CreditCardRefundCreateParams,
|
|
109
122
|
type CreditCardRefundRetrieveParams,
|
|
110
123
|
type CreditCardRefundListParams,
|
|
111
124
|
type CreditCardRefundDeleteParams,
|
|
125
|
+
type CreditCardRefundVoidParams,
|
|
112
126
|
type CreditCardRefundsCursorPage,
|
|
113
127
|
} from './credit-card-refunds';
|
|
114
128
|
export {
|
|
115
129
|
CreditMemos,
|
|
116
130
|
type CreditMemo,
|
|
117
131
|
type CreditMemoDeleteResponse,
|
|
132
|
+
type CreditMemoVoidResponse,
|
|
118
133
|
type CreditMemoCreateParams,
|
|
119
134
|
type CreditMemoRetrieveParams,
|
|
120
135
|
type CreditMemoUpdateParams,
|
|
121
136
|
type CreditMemoListParams,
|
|
122
137
|
type CreditMemoDeleteParams,
|
|
138
|
+
type CreditMemoVoidParams,
|
|
123
139
|
type CreditMemosCursorPage,
|
|
124
140
|
} from './credit-memos';
|
|
125
141
|
export {
|
|
@@ -202,11 +218,13 @@ export {
|
|
|
202
218
|
type InventoryAdjustment,
|
|
203
219
|
type InventoryAdjustmentListResponse,
|
|
204
220
|
type InventoryAdjustmentDeleteResponse,
|
|
221
|
+
type InventoryAdjustmentVoidResponse,
|
|
205
222
|
type InventoryAdjustmentCreateParams,
|
|
206
223
|
type InventoryAdjustmentRetrieveParams,
|
|
207
224
|
type InventoryAdjustmentUpdateParams,
|
|
208
225
|
type InventoryAdjustmentListParams,
|
|
209
226
|
type InventoryAdjustmentDeleteParams,
|
|
227
|
+
type InventoryAdjustmentVoidParams,
|
|
210
228
|
} from './inventory-adjustments';
|
|
211
229
|
export {
|
|
212
230
|
InventoryAssemblyItems,
|
|
@@ -239,11 +257,13 @@ export {
|
|
|
239
257
|
Invoices,
|
|
240
258
|
type Invoice,
|
|
241
259
|
type InvoiceDeleteResponse,
|
|
260
|
+
type InvoiceVoidResponse,
|
|
242
261
|
type InvoiceCreateParams,
|
|
243
262
|
type InvoiceRetrieveParams,
|
|
244
263
|
type InvoiceUpdateParams,
|
|
245
264
|
type InvoiceListParams,
|
|
246
265
|
type InvoiceDeleteParams,
|
|
266
|
+
type InvoiceVoidParams,
|
|
247
267
|
type InvoicesCursorPage,
|
|
248
268
|
} from './invoices';
|
|
249
269
|
export {
|
|
@@ -259,11 +279,13 @@ export {
|
|
|
259
279
|
ItemReceipts,
|
|
260
280
|
type ItemReceipt,
|
|
261
281
|
type ItemReceiptDeleteResponse,
|
|
282
|
+
type ItemReceiptVoidResponse,
|
|
262
283
|
type ItemReceiptCreateParams,
|
|
263
284
|
type ItemReceiptRetrieveParams,
|
|
264
285
|
type ItemReceiptUpdateParams,
|
|
265
286
|
type ItemReceiptListParams,
|
|
266
287
|
type ItemReceiptDeleteParams,
|
|
288
|
+
type ItemReceiptVoidParams,
|
|
267
289
|
type ItemReceiptsCursorPage,
|
|
268
290
|
} from './item-receipts';
|
|
269
291
|
export {
|
|
@@ -277,11 +299,13 @@ export {
|
|
|
277
299
|
JournalEntries,
|
|
278
300
|
type JournalEntry,
|
|
279
301
|
type JournalEntryDeleteResponse,
|
|
302
|
+
type JournalEntryVoidResponse,
|
|
280
303
|
type JournalEntryCreateParams,
|
|
281
304
|
type JournalEntryRetrieveParams,
|
|
282
305
|
type JournalEntryUpdateParams,
|
|
283
306
|
type JournalEntryListParams,
|
|
284
307
|
type JournalEntryDeleteParams,
|
|
308
|
+
type JournalEntryVoidParams,
|
|
285
309
|
type JournalEntriesCursorPage,
|
|
286
310
|
} from './journal-entries';
|
|
287
311
|
export {
|
|
@@ -375,11 +399,13 @@ export {
|
|
|
375
399
|
SalesReceipts,
|
|
376
400
|
type SalesReceipt,
|
|
377
401
|
type SalesReceiptDeleteResponse,
|
|
402
|
+
type SalesReceiptVoidResponse,
|
|
378
403
|
type SalesReceiptCreateParams,
|
|
379
404
|
type SalesReceiptRetrieveParams,
|
|
380
405
|
type SalesReceiptUpdateParams,
|
|
381
406
|
type SalesReceiptListParams,
|
|
382
407
|
type SalesReceiptDeleteParams,
|
|
408
|
+
type SalesReceiptVoidParams,
|
|
383
409
|
type SalesReceiptsCursorPage,
|
|
384
410
|
} from './sales-receipts';
|
|
385
411
|
export {
|
|
@@ -483,11 +509,13 @@ export {
|
|
|
483
509
|
VendorCredits,
|
|
484
510
|
type VendorCredit,
|
|
485
511
|
type VendorCreditDeleteResponse,
|
|
512
|
+
type VendorCreditVoidResponse,
|
|
486
513
|
type VendorCreditCreateParams,
|
|
487
514
|
type VendorCreditRetrieveParams,
|
|
488
515
|
type VendorCreditUpdateParams,
|
|
489
516
|
type VendorCreditListParams,
|
|
490
517
|
type VendorCreditDeleteParams,
|
|
518
|
+
type VendorCreditVoidParams,
|
|
491
519
|
type VendorCreditsCursorPage,
|
|
492
520
|
} from './vendor-credits';
|
|
493
521
|
export {
|
|
@@ -138,6 +138,32 @@ export class InventoryAdjustments extends APIResource {
|
|
|
138
138
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Voids an inventory adjustment by setting its amount to zero while keeping a
|
|
144
|
+
* record of it in QuickBooks. The void will fail if the inventory adjustment is
|
|
145
|
+
* currently in use or has any linked transactions that are in use.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* ```ts
|
|
149
|
+
* const response =
|
|
150
|
+
* await conductor.qbd.inventoryAdjustments.void(
|
|
151
|
+
* '123ABC-1234567890',
|
|
152
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
153
|
+
* );
|
|
154
|
+
* ```
|
|
155
|
+
*/
|
|
156
|
+
void(
|
|
157
|
+
id: string,
|
|
158
|
+
params: InventoryAdjustmentVoidParams,
|
|
159
|
+
options?: RequestOptions,
|
|
160
|
+
): APIPromise<InventoryAdjustmentVoidResponse> {
|
|
161
|
+
const { conductorEndUserId } = params;
|
|
162
|
+
return this._client.post(path`/quickbooks-desktop/inventory-adjustments/${id}/void`, {
|
|
163
|
+
...options,
|
|
164
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
165
|
+
});
|
|
166
|
+
}
|
|
141
167
|
}
|
|
142
168
|
|
|
143
169
|
export interface InventoryAdjustment {
|
|
@@ -506,6 +532,43 @@ export interface InventoryAdjustmentDeleteResponse {
|
|
|
506
532
|
refNumber: string | null;
|
|
507
533
|
}
|
|
508
534
|
|
|
535
|
+
export interface InventoryAdjustmentVoidResponse {
|
|
536
|
+
/**
|
|
537
|
+
* The QuickBooks-assigned unique identifier of the voided inventory adjustment.
|
|
538
|
+
*/
|
|
539
|
+
id: string;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* The date and time when this inventory adjustment was created, in ISO 8601 format
|
|
543
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
544
|
+
* timezone of the end-user's computer.
|
|
545
|
+
*/
|
|
546
|
+
createdAt: string | null;
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
* The type of object. This value is always `"qbd_inventory_adjustment"`.
|
|
550
|
+
*/
|
|
551
|
+
objectType: 'qbd_inventory_adjustment';
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* The case-sensitive user-defined reference number of the voided inventory
|
|
555
|
+
* adjustment.
|
|
556
|
+
*/
|
|
557
|
+
refNumber: string | null;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* The date and time when this inventory adjustment was last updated, in ISO 8601
|
|
561
|
+
* format (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the
|
|
562
|
+
* local timezone of the end-user's computer.
|
|
563
|
+
*/
|
|
564
|
+
updatedAt: string | null;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Indicates whether the inventory adjustment was voided.
|
|
568
|
+
*/
|
|
569
|
+
voided: boolean;
|
|
570
|
+
}
|
|
571
|
+
|
|
509
572
|
export interface InventoryAdjustmentCreateParams {
|
|
510
573
|
/**
|
|
511
574
|
* Body param: The account to which this inventory adjustment is posted for
|
|
@@ -1072,15 +1135,24 @@ export interface InventoryAdjustmentDeleteParams {
|
|
|
1072
1135
|
conductorEndUserId: string;
|
|
1073
1136
|
}
|
|
1074
1137
|
|
|
1138
|
+
export interface InventoryAdjustmentVoidParams {
|
|
1139
|
+
/**
|
|
1140
|
+
* The ID of the End-User to receive this request.
|
|
1141
|
+
*/
|
|
1142
|
+
conductorEndUserId: string;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1075
1145
|
export declare namespace InventoryAdjustments {
|
|
1076
1146
|
export {
|
|
1077
1147
|
type InventoryAdjustment as InventoryAdjustment,
|
|
1078
1148
|
type InventoryAdjustmentListResponse as InventoryAdjustmentListResponse,
|
|
1079
1149
|
type InventoryAdjustmentDeleteResponse as InventoryAdjustmentDeleteResponse,
|
|
1150
|
+
type InventoryAdjustmentVoidResponse as InventoryAdjustmentVoidResponse,
|
|
1080
1151
|
type InventoryAdjustmentCreateParams as InventoryAdjustmentCreateParams,
|
|
1081
1152
|
type InventoryAdjustmentRetrieveParams as InventoryAdjustmentRetrieveParams,
|
|
1082
1153
|
type InventoryAdjustmentUpdateParams as InventoryAdjustmentUpdateParams,
|
|
1083
1154
|
type InventoryAdjustmentListParams as InventoryAdjustmentListParams,
|
|
1084
1155
|
type InventoryAdjustmentDeleteParams as InventoryAdjustmentDeleteParams,
|
|
1156
|
+
type InventoryAdjustmentVoidParams as InventoryAdjustmentVoidParams,
|
|
1085
1157
|
};
|
|
1086
1158
|
}
|
|
@@ -124,6 +124,27 @@ export class Invoices extends APIResource {
|
|
|
124
124
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Voids an invoice by setting its amount to zero while keeping a record of it in
|
|
130
|
+
* QuickBooks. The void will fail if the invoice is currently in use or has any
|
|
131
|
+
* linked transactions that are in use.
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* ```ts
|
|
135
|
+
* const response = await conductor.qbd.invoices.void(
|
|
136
|
+
* '123ABC-1234567890',
|
|
137
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
138
|
+
* );
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
void(id: string, params: InvoiceVoidParams, options?: RequestOptions): APIPromise<InvoiceVoidResponse> {
|
|
142
|
+
const { conductorEndUserId } = params;
|
|
143
|
+
return this._client.post(path`/quickbooks-desktop/invoices/${id}/void`, {
|
|
144
|
+
...options,
|
|
145
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
146
|
+
});
|
|
147
|
+
}
|
|
127
148
|
}
|
|
128
149
|
|
|
129
150
|
export type InvoicesCursorPage = CursorPage<Invoice>;
|
|
@@ -1760,6 +1781,42 @@ export interface InvoiceDeleteResponse {
|
|
|
1760
1781
|
refNumber: string | null;
|
|
1761
1782
|
}
|
|
1762
1783
|
|
|
1784
|
+
export interface InvoiceVoidResponse {
|
|
1785
|
+
/**
|
|
1786
|
+
* The QuickBooks-assigned unique identifier of the voided invoice.
|
|
1787
|
+
*/
|
|
1788
|
+
id: string;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* The date and time when this invoice was created, in ISO 8601 format
|
|
1792
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1793
|
+
* timezone of the end-user's computer.
|
|
1794
|
+
*/
|
|
1795
|
+
createdAt: string | null;
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* The type of object. This value is always `"qbd_invoice"`.
|
|
1799
|
+
*/
|
|
1800
|
+
objectType: 'qbd_invoice';
|
|
1801
|
+
|
|
1802
|
+
/**
|
|
1803
|
+
* The case-sensitive user-defined reference number of the voided invoice.
|
|
1804
|
+
*/
|
|
1805
|
+
refNumber: string | null;
|
|
1806
|
+
|
|
1807
|
+
/**
|
|
1808
|
+
* The date and time when this invoice was last updated, in ISO 8601 format
|
|
1809
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1810
|
+
* timezone of the end-user's computer.
|
|
1811
|
+
*/
|
|
1812
|
+
updatedAt: string | null;
|
|
1813
|
+
|
|
1814
|
+
/**
|
|
1815
|
+
* Indicates whether the invoice was voided.
|
|
1816
|
+
*/
|
|
1817
|
+
voided: boolean;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1763
1820
|
export interface InvoiceCreateParams {
|
|
1764
1821
|
/**
|
|
1765
1822
|
* Body param: The customer or customer-job associated with this invoice.
|
|
@@ -3464,15 +3521,24 @@ export interface InvoiceDeleteParams {
|
|
|
3464
3521
|
conductorEndUserId: string;
|
|
3465
3522
|
}
|
|
3466
3523
|
|
|
3524
|
+
export interface InvoiceVoidParams {
|
|
3525
|
+
/**
|
|
3526
|
+
* The ID of the End-User to receive this request.
|
|
3527
|
+
*/
|
|
3528
|
+
conductorEndUserId: string;
|
|
3529
|
+
}
|
|
3530
|
+
|
|
3467
3531
|
export declare namespace Invoices {
|
|
3468
3532
|
export {
|
|
3469
3533
|
type Invoice as Invoice,
|
|
3470
3534
|
type InvoiceDeleteResponse as InvoiceDeleteResponse,
|
|
3535
|
+
type InvoiceVoidResponse as InvoiceVoidResponse,
|
|
3471
3536
|
type InvoicesCursorPage as InvoicesCursorPage,
|
|
3472
3537
|
type InvoiceCreateParams as InvoiceCreateParams,
|
|
3473
3538
|
type InvoiceRetrieveParams as InvoiceRetrieveParams,
|
|
3474
3539
|
type InvoiceUpdateParams as InvoiceUpdateParams,
|
|
3475
3540
|
type InvoiceListParams as InvoiceListParams,
|
|
3476
3541
|
type InvoiceDeleteParams as InvoiceDeleteParams,
|
|
3542
|
+
type InvoiceVoidParams as InvoiceVoidParams,
|
|
3477
3543
|
};
|
|
3478
3544
|
}
|
|
@@ -132,6 +132,31 @@ export class ItemReceipts extends APIResource {
|
|
|
132
132
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Voids an item receipt by setting its amount to zero while keeping a record of it
|
|
138
|
+
* in QuickBooks. The void will fail if the item receipt is currently in use or has
|
|
139
|
+
* any linked transactions that are in use.
|
|
140
|
+
*
|
|
141
|
+
* @example
|
|
142
|
+
* ```ts
|
|
143
|
+
* const response = await conductor.qbd.itemReceipts.void(
|
|
144
|
+
* '123ABC-1234567890',
|
|
145
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
146
|
+
* );
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
void(
|
|
150
|
+
id: string,
|
|
151
|
+
params: ItemReceiptVoidParams,
|
|
152
|
+
options?: RequestOptions,
|
|
153
|
+
): APIPromise<ItemReceiptVoidResponse> {
|
|
154
|
+
const { conductorEndUserId } = params;
|
|
155
|
+
return this._client.post(path`/quickbooks-desktop/item-receipts/${id}/void`, {
|
|
156
|
+
...options,
|
|
157
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
158
|
+
});
|
|
159
|
+
}
|
|
135
160
|
}
|
|
136
161
|
|
|
137
162
|
export type ItemReceiptsCursorPage = CursorPage<ItemReceipt>;
|
|
@@ -1625,6 +1650,42 @@ export interface ItemReceiptDeleteResponse {
|
|
|
1625
1650
|
refNumber: string | null;
|
|
1626
1651
|
}
|
|
1627
1652
|
|
|
1653
|
+
export interface ItemReceiptVoidResponse {
|
|
1654
|
+
/**
|
|
1655
|
+
* The QuickBooks-assigned unique identifier of the voided item receipt.
|
|
1656
|
+
*/
|
|
1657
|
+
id: string;
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* The date and time when this item receipt was created, in ISO 8601 format
|
|
1661
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1662
|
+
* timezone of the end-user's computer.
|
|
1663
|
+
*/
|
|
1664
|
+
createdAt: string | null;
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* The type of object. This value is always `"qbd_item_receipt"`.
|
|
1668
|
+
*/
|
|
1669
|
+
objectType: 'qbd_item_receipt';
|
|
1670
|
+
|
|
1671
|
+
/**
|
|
1672
|
+
* The case-sensitive user-defined reference number of the voided item receipt.
|
|
1673
|
+
*/
|
|
1674
|
+
refNumber: string | null;
|
|
1675
|
+
|
|
1676
|
+
/**
|
|
1677
|
+
* The date and time when this item receipt was last updated, in ISO 8601 format
|
|
1678
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
1679
|
+
* timezone of the end-user's computer.
|
|
1680
|
+
*/
|
|
1681
|
+
updatedAt: string | null;
|
|
1682
|
+
|
|
1683
|
+
/**
|
|
1684
|
+
* Indicates whether the item receipt was voided.
|
|
1685
|
+
*/
|
|
1686
|
+
voided: boolean;
|
|
1687
|
+
}
|
|
1688
|
+
|
|
1628
1689
|
export interface ItemReceiptCreateParams {
|
|
1629
1690
|
/**
|
|
1630
1691
|
* Body param: The date of this item receipt, in ISO 8601 format (YYYY-MM-DD).
|
|
@@ -2843,15 +2904,24 @@ export interface ItemReceiptDeleteParams {
|
|
|
2843
2904
|
conductorEndUserId: string;
|
|
2844
2905
|
}
|
|
2845
2906
|
|
|
2907
|
+
export interface ItemReceiptVoidParams {
|
|
2908
|
+
/**
|
|
2909
|
+
* The ID of the End-User to receive this request.
|
|
2910
|
+
*/
|
|
2911
|
+
conductorEndUserId: string;
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2846
2914
|
export declare namespace ItemReceipts {
|
|
2847
2915
|
export {
|
|
2848
2916
|
type ItemReceipt as ItemReceipt,
|
|
2849
2917
|
type ItemReceiptDeleteResponse as ItemReceiptDeleteResponse,
|
|
2918
|
+
type ItemReceiptVoidResponse as ItemReceiptVoidResponse,
|
|
2850
2919
|
type ItemReceiptsCursorPage as ItemReceiptsCursorPage,
|
|
2851
2920
|
type ItemReceiptCreateParams as ItemReceiptCreateParams,
|
|
2852
2921
|
type ItemReceiptRetrieveParams as ItemReceiptRetrieveParams,
|
|
2853
2922
|
type ItemReceiptUpdateParams as ItemReceiptUpdateParams,
|
|
2854
2923
|
type ItemReceiptListParams as ItemReceiptListParams,
|
|
2855
2924
|
type ItemReceiptDeleteParams as ItemReceiptDeleteParams,
|
|
2925
|
+
type ItemReceiptVoidParams as ItemReceiptVoidParams,
|
|
2856
2926
|
};
|
|
2857
2927
|
}
|
|
@@ -136,6 +136,31 @@ export class JournalEntries extends APIResource {
|
|
|
136
136
|
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* Voids a journal entry by setting its amount to zero while keeping a record of it
|
|
142
|
+
* in QuickBooks. The void will fail if the journal entry is currently in use or
|
|
143
|
+
* has any linked transactions that are in use.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```ts
|
|
147
|
+
* const response = await conductor.qbd.journalEntries.void(
|
|
148
|
+
* '123ABC-1234567890',
|
|
149
|
+
* { conductorEndUserId: 'end_usr_1234567abcdefg' },
|
|
150
|
+
* );
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
void(
|
|
154
|
+
id: string,
|
|
155
|
+
params: JournalEntryVoidParams,
|
|
156
|
+
options?: RequestOptions,
|
|
157
|
+
): APIPromise<JournalEntryVoidResponse> {
|
|
158
|
+
const { conductorEndUserId } = params;
|
|
159
|
+
return this._client.post(path`/quickbooks-desktop/journal-entries/${id}/void`, {
|
|
160
|
+
...options,
|
|
161
|
+
headers: buildHeaders([{ 'Conductor-End-User-Id': conductorEndUserId }, options?.headers]),
|
|
162
|
+
});
|
|
163
|
+
}
|
|
139
164
|
}
|
|
140
165
|
|
|
141
166
|
export type JournalEntriesCursorPage = CursorPage<JournalEntry>;
|
|
@@ -640,6 +665,42 @@ export interface JournalEntryDeleteResponse {
|
|
|
640
665
|
refNumber: string | null;
|
|
641
666
|
}
|
|
642
667
|
|
|
668
|
+
export interface JournalEntryVoidResponse {
|
|
669
|
+
/**
|
|
670
|
+
* The QuickBooks-assigned unique identifier of the voided journal entry.
|
|
671
|
+
*/
|
|
672
|
+
id: string;
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* The date and time when this journal entry was created, in ISO 8601 format
|
|
676
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
677
|
+
* timezone of the end-user's computer.
|
|
678
|
+
*/
|
|
679
|
+
createdAt: string | null;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* The type of object. This value is always `"qbd_journal_entry"`.
|
|
683
|
+
*/
|
|
684
|
+
objectType: 'qbd_journal_entry';
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* The case-sensitive user-defined reference number of the voided journal entry.
|
|
688
|
+
*/
|
|
689
|
+
refNumber: string | null;
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* The date and time when this journal entry was last updated, in ISO 8601 format
|
|
693
|
+
* (YYYY-MM-DDThh:mm:ss+hh:mm), which QuickBooks Desktop interprets in the local
|
|
694
|
+
* timezone of the end-user's computer.
|
|
695
|
+
*/
|
|
696
|
+
updatedAt: string | null;
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Indicates whether the journal entry was voided.
|
|
700
|
+
*/
|
|
701
|
+
voided: boolean;
|
|
702
|
+
}
|
|
703
|
+
|
|
643
704
|
export interface JournalEntryCreateParams {
|
|
644
705
|
/**
|
|
645
706
|
* Body param: The date of this journal entry, in ISO 8601 format (YYYY-MM-DD).
|
|
@@ -1115,15 +1176,24 @@ export interface JournalEntryDeleteParams {
|
|
|
1115
1176
|
conductorEndUserId: string;
|
|
1116
1177
|
}
|
|
1117
1178
|
|
|
1179
|
+
export interface JournalEntryVoidParams {
|
|
1180
|
+
/**
|
|
1181
|
+
* The ID of the End-User to receive this request.
|
|
1182
|
+
*/
|
|
1183
|
+
conductorEndUserId: string;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1118
1186
|
export declare namespace JournalEntries {
|
|
1119
1187
|
export {
|
|
1120
1188
|
type JournalEntry as JournalEntry,
|
|
1121
1189
|
type JournalEntryDeleteResponse as JournalEntryDeleteResponse,
|
|
1190
|
+
type JournalEntryVoidResponse as JournalEntryVoidResponse,
|
|
1122
1191
|
type JournalEntriesCursorPage as JournalEntriesCursorPage,
|
|
1123
1192
|
type JournalEntryCreateParams as JournalEntryCreateParams,
|
|
1124
1193
|
type JournalEntryRetrieveParams as JournalEntryRetrieveParams,
|
|
1125
1194
|
type JournalEntryUpdateParams as JournalEntryUpdateParams,
|
|
1126
1195
|
type JournalEntryListParams as JournalEntryListParams,
|
|
1127
1196
|
type JournalEntryDeleteParams as JournalEntryDeleteParams,
|
|
1197
|
+
type JournalEntryVoidParams as JournalEntryVoidParams,
|
|
1128
1198
|
};
|
|
1129
1199
|
}
|