conductor-node 12.0.0-beta.9 → 12.0.1

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.
Files changed (175) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/README.md +3 -4
  3. package/_shims/index.d.ts +2 -0
  4. package/_shims/index.js +5 -1
  5. package/_shims/index.mjs +5 -1
  6. package/core.d.ts.map +1 -1
  7. package/core.js +5 -2
  8. package/core.js.map +1 -1
  9. package/core.mjs +6 -3
  10. package/core.mjs.map +1 -1
  11. package/index.d.mts +4 -4
  12. package/index.d.ts +4 -4
  13. package/index.d.ts.map +1 -1
  14. package/index.js.map +1 -1
  15. package/index.mjs.map +1 -1
  16. package/package.json +8 -29
  17. package/pagination.js +1 -1
  18. package/pagination.js.map +1 -1
  19. package/pagination.mjs +1 -1
  20. package/pagination.mjs.map +1 -1
  21. package/resources/auth-sessions.d.ts +1 -1
  22. package/resources/auth-sessions.js +1 -1
  23. package/resources/auth-sessions.mjs +1 -1
  24. package/resources/end-users.d.ts +1 -13
  25. package/resources/end-users.d.ts.map +1 -1
  26. package/resources/end-users.js +0 -8
  27. package/resources/end-users.js.map +1 -1
  28. package/resources/end-users.mjs +0 -8
  29. package/resources/end-users.mjs.map +1 -1
  30. package/resources/index.d.ts +2 -2
  31. package/resources/index.d.ts.map +1 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs.map +1 -1
  34. package/resources/qbd/account-tax-lines.d.ts +48 -0
  35. package/resources/qbd/account-tax-lines.d.ts.map +1 -0
  36. package/resources/qbd/account-tax-lines.js +21 -0
  37. package/resources/qbd/account-tax-lines.js.map +1 -0
  38. package/resources/qbd/account-tax-lines.mjs +17 -0
  39. package/resources/qbd/account-tax-lines.mjs.map +1 -0
  40. package/resources/qbd/accounts.d.ts +9 -3
  41. package/resources/qbd/accounts.d.ts.map +1 -1
  42. package/resources/qbd/bill-check-payments.d.ts +4 -4
  43. package/resources/qbd/bill-credit-card-payments.d.ts +4 -4
  44. package/resources/qbd/bills.d.ts +7 -8
  45. package/resources/qbd/bills.d.ts.map +1 -1
  46. package/resources/qbd/bills.js.map +1 -1
  47. package/resources/qbd/bills.mjs.map +1 -1
  48. package/resources/qbd/checks.d.ts +4 -4
  49. package/resources/qbd/company.d.ts +354 -0
  50. package/resources/qbd/company.d.ts.map +1 -0
  51. package/resources/qbd/company.js +22 -0
  52. package/resources/qbd/company.js.map +1 -0
  53. package/resources/qbd/company.mjs +18 -0
  54. package/resources/qbd/company.mjs.map +1 -0
  55. package/resources/qbd/credit-card-charges.d.ts +4 -4
  56. package/resources/qbd/credit-card-credits.d.ts +4 -4
  57. package/resources/qbd/credit-memos.d.ts +4 -4
  58. package/resources/qbd/customers.d.ts +2 -2
  59. package/resources/qbd/customers.d.ts.map +1 -1
  60. package/resources/qbd/employees.d.ts +17 -6
  61. package/resources/qbd/employees.d.ts.map +1 -1
  62. package/resources/qbd/employees.js.map +1 -1
  63. package/resources/qbd/employees.mjs.map +1 -1
  64. package/resources/qbd/estimates.d.ts +4 -4
  65. package/resources/qbd/index.d.ts +7 -1
  66. package/resources/qbd/index.d.ts.map +1 -1
  67. package/resources/qbd/index.js +16 -2
  68. package/resources/qbd/index.js.map +1 -1
  69. package/resources/qbd/index.mjs +6 -0
  70. package/resources/qbd/index.mjs.map +1 -1
  71. package/resources/qbd/inventory-adjustments.d.ts +4 -4
  72. package/resources/qbd/invoices.d.ts +4 -4
  73. package/resources/qbd/item-receipts.d.ts +2336 -0
  74. package/resources/qbd/item-receipts.d.ts.map +1 -0
  75. package/resources/qbd/item-receipts.js +69 -0
  76. package/resources/qbd/item-receipts.js.map +1 -0
  77. package/resources/qbd/item-receipts.mjs +64 -0
  78. package/resources/qbd/item-receipts.mjs.map +1 -0
  79. package/resources/qbd/journal-entries.d.ts +4 -4
  80. package/resources/qbd/preferences.d.ts +591 -0
  81. package/resources/qbd/preferences.d.ts.map +1 -0
  82. package/resources/qbd/preferences.js +21 -0
  83. package/resources/qbd/preferences.js.map +1 -0
  84. package/resources/qbd/preferences.mjs +17 -0
  85. package/resources/qbd/preferences.mjs.map +1 -0
  86. package/resources/qbd/price-levels.d.ts +454 -0
  87. package/resources/qbd/price-levels.d.ts.map +1 -0
  88. package/resources/qbd/price-levels.js +54 -0
  89. package/resources/qbd/price-levels.js.map +1 -0
  90. package/resources/qbd/price-levels.mjs +50 -0
  91. package/resources/qbd/price-levels.mjs.map +1 -0
  92. package/resources/qbd/purchase-orders.d.ts +4 -4
  93. package/resources/qbd/qbd.d.ts +52 -0
  94. package/resources/qbd/qbd.d.ts.map +1 -1
  95. package/resources/qbd/qbd.js +39 -0
  96. package/resources/qbd/qbd.js.map +1 -1
  97. package/resources/qbd/qbd.mjs +39 -0
  98. package/resources/qbd/qbd.mjs.map +1 -1
  99. package/resources/qbd/receive-payments.d.ts +4 -4
  100. package/resources/qbd/sales-orders.d.ts +4 -4
  101. package/resources/qbd/sales-receipts.d.ts +4 -4
  102. package/resources/qbd/sales-representatives.d.ts +4 -0
  103. package/resources/qbd/sales-representatives.d.ts.map +1 -1
  104. package/resources/qbd/time-tracking-activities.d.ts +4 -4
  105. package/resources/qbd/transactions.d.ts +310 -0
  106. package/resources/qbd/transactions.d.ts.map +1 -0
  107. package/resources/qbd/transactions.js +40 -0
  108. package/resources/qbd/transactions.js.map +1 -0
  109. package/resources/qbd/transactions.mjs +35 -0
  110. package/resources/qbd/transactions.mjs.map +1 -0
  111. package/resources/qbd/transfers.d.ts +4 -4
  112. package/resources/qbd/vendor-credits.d.ts +4 -4
  113. package/resources/qbd/vendors.d.ts +6 -6
  114. package/resources/qbd/vendors.d.ts.map +1 -1
  115. package/resources/qbd.d.ts +2 -0
  116. package/resources/qbd.d.ts.map +1 -0
  117. package/resources/qbd.js +19 -0
  118. package/resources/qbd.js.map +1 -0
  119. package/resources/qbd.mjs +3 -0
  120. package/resources/qbd.mjs.map +1 -0
  121. package/resources.d.ts +2 -0
  122. package/resources.d.ts.map +1 -0
  123. package/resources.js +18 -0
  124. package/resources.js.map +1 -0
  125. package/resources.mjs +2 -0
  126. package/resources.mjs.map +1 -0
  127. package/src/_shims/index.d.ts +2 -0
  128. package/src/_shims/index.js +5 -1
  129. package/src/_shims/index.mjs +5 -1
  130. package/src/core.ts +9 -4
  131. package/src/index.ts +6 -4
  132. package/src/pagination.ts +1 -1
  133. package/src/resources/auth-sessions.ts +1 -1
  134. package/src/resources/end-users.ts +0 -21
  135. package/src/resources/index.ts +1 -2
  136. package/src/resources/qbd/account-tax-lines.ts +70 -0
  137. package/src/resources/qbd/accounts.ts +9 -3
  138. package/src/resources/qbd/bill-check-payments.ts +4 -4
  139. package/src/resources/qbd/bill-credit-card-payments.ts +4 -4
  140. package/src/resources/qbd/bills.ts +7 -8
  141. package/src/resources/qbd/checks.ts +4 -4
  142. package/src/resources/qbd/company.ts +466 -0
  143. package/src/resources/qbd/credit-card-charges.ts +4 -4
  144. package/src/resources/qbd/credit-card-credits.ts +4 -4
  145. package/src/resources/qbd/credit-memos.ts +4 -4
  146. package/src/resources/qbd/customers.ts +2 -2
  147. package/src/resources/qbd/employees.ts +18 -6
  148. package/src/resources/qbd/estimates.ts +4 -4
  149. package/src/resources/qbd/index.ts +36 -1
  150. package/src/resources/qbd/inventory-adjustments.ts +4 -4
  151. package/src/resources/qbd/invoices.ts +4 -4
  152. package/src/resources/qbd/item-receipts.ts +2783 -0
  153. package/src/resources/qbd/journal-entries.ts +4 -4
  154. package/src/resources/qbd/preferences.ts +684 -0
  155. package/src/resources/qbd/price-levels.ts +561 -0
  156. package/src/resources/qbd/purchase-orders.ts +4 -4
  157. package/src/resources/qbd/qbd.ts +144 -0
  158. package/src/resources/qbd/receive-payments.ts +4 -4
  159. package/src/resources/qbd/sales-orders.ts +4 -4
  160. package/src/resources/qbd/sales-receipts.ts +4 -4
  161. package/src/resources/qbd/sales-representatives.ts +4 -0
  162. package/src/resources/qbd/time-tracking-activities.ts +4 -4
  163. package/src/resources/qbd/transactions.ts +439 -0
  164. package/src/resources/qbd/transfers.ts +4 -4
  165. package/src/resources/qbd/vendor-credits.ts +4 -4
  166. package/src/resources/qbd/vendors.ts +6 -6
  167. package/src/resources/qbd.ts +3 -0
  168. package/src/resources.ts +1 -0
  169. package/src/version.ts +1 -1
  170. package/version.d.ts +1 -1
  171. package/version.d.ts.map +1 -1
  172. package/version.js +1 -1
  173. package/version.js.map +1 -1
  174. package/version.mjs +1 -1
  175. package/version.mjs.map +1 -1
@@ -0,0 +1,439 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../resource';
4
+ import * as Core from '../../core';
5
+ import { CursorPage, type CursorPageParams } from '../../pagination';
6
+
7
+ export class Transactions extends APIResource {
8
+ /**
9
+ * Retrieves a transaction by ID.
10
+ */
11
+ retrieve(
12
+ id: string,
13
+ params: TransactionRetrieveParams,
14
+ options?: Core.RequestOptions,
15
+ ): Core.APIPromise<Transaction> {
16
+ const { conductorEndUserId } = params;
17
+ return this._client.get(`/quickbooks-desktop/transactions/${id}`, {
18
+ ...options,
19
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
20
+ });
21
+ }
22
+
23
+ /**
24
+ * Searches across all transaction types. Unlike transaction-specific queries, this
25
+ * endpoint only returns fields common to all transaction types, such as ID, type,
26
+ * dates, account, and reference numbers. For more details specific to that
27
+ * transaction type, make a subsequent call to the relevant transaction-specific
28
+ * endpoint (such as invoices, bills, etc.). NOTE: This endpoint does not support
29
+ * time tracking activities.
30
+ */
31
+ list(
32
+ params: TransactionListParams,
33
+ options?: Core.RequestOptions,
34
+ ): Core.PagePromise<TransactionsCursorPage, Transaction> {
35
+ const { conductorEndUserId, ...query } = params;
36
+ return this._client.getAPIList('/quickbooks-desktop/transactions', TransactionsCursorPage, {
37
+ query,
38
+ ...options,
39
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
40
+ });
41
+ }
42
+ }
43
+
44
+ export class TransactionsCursorPage extends CursorPage<Transaction> {}
45
+
46
+ export interface Transaction {
47
+ /**
48
+ * The account associated with this transaction.
49
+ */
50
+ account: Transaction.Account | null;
51
+
52
+ /**
53
+ * The monetary amount of this transaction, represented as a decimal string.
54
+ */
55
+ amount: string;
56
+
57
+ /**
58
+ * The monetary amount of this transaction converted to the home currency of the
59
+ * QuickBooks company file. Represented as a decimal string.
60
+ */
61
+ amountInHomeCurrency: string | null;
62
+
63
+ /**
64
+ * The date and time when this transaction was created, in ISO 8601 format
65
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
66
+ * in QuickBooks.
67
+ */
68
+ createdAt: string;
69
+
70
+ /**
71
+ * The transaction's currency. For built-in currencies, the name and code are
72
+ * standard international values. For user-defined currencies, all values are
73
+ * editable.
74
+ */
75
+ currency: Transaction.Currency | null;
76
+
77
+ /**
78
+ * The customer, vendor, employee, or person on QuickBooks's "Other Names" list
79
+ * associated with this transaction.
80
+ */
81
+ entity: Transaction.Entity | null;
82
+
83
+ /**
84
+ * The market exchange rate between this transaction's currency and the home
85
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
86
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
87
+ */
88
+ exchangeRate: number | null;
89
+
90
+ /**
91
+ * A memo or note for this transaction.
92
+ */
93
+ memo: string | null;
94
+
95
+ /**
96
+ * The case-sensitive user-defined reference number for this transaction, which can
97
+ * be used to identify the transaction in QuickBooks. This value is not required to
98
+ * be unique and can be arbitrarily changed by the QuickBooks user.
99
+ */
100
+ refNumber: string | null;
101
+
102
+ /**
103
+ * The date of this transaction, in ISO 8601 format (YYYY-MM-DD).
104
+ */
105
+ transactionDate: string;
106
+
107
+ /**
108
+ * The QuickBooks-assigned unique identifier of this transaction. If
109
+ * `transactionLineId` is also defined, this is the identifier of the line's parent
110
+ * transaction object.
111
+ */
112
+ transactionId: string;
113
+
114
+ /**
115
+ * The QuickBooks-assigned unique identifier of this transaction line. If `null`,
116
+ * this result is a transaction object.
117
+ */
118
+ transactionLineId: string | null;
119
+
120
+ /**
121
+ * The type of transaction.
122
+ */
123
+ transactionType:
124
+ | 'ar_refund_credit_card'
125
+ | 'bill'
126
+ | 'bill_payment_check'
127
+ | 'bill_payment_credit_card'
128
+ | 'build_assembly'
129
+ | 'charge'
130
+ | 'check'
131
+ | 'credit_card_charge'
132
+ | 'credit_card_credit'
133
+ | 'credit_memo'
134
+ | 'deposit'
135
+ | 'estimate'
136
+ | 'inventory_adjustment'
137
+ | 'invoice'
138
+ | 'item_receipt'
139
+ | 'journal_entry'
140
+ | 'liability_adjustment'
141
+ | 'paycheck'
142
+ | 'payroll_liability_check'
143
+ | 'purchase_order'
144
+ | 'receive_payment'
145
+ | 'sales_order'
146
+ | 'sales_receipt'
147
+ | 'sales_tax_payment_check'
148
+ | 'transfer'
149
+ | 'vendor_credit'
150
+ | 'ytd_adjustment';
151
+
152
+ /**
153
+ * The date and time when this transaction was last updated, in ISO 8601 format
154
+ * (YYYY-MM-DDThh:mm:ss±hh:mm). The time zone is the same as the user's time zone
155
+ * in QuickBooks.
156
+ */
157
+ updatedAt: string;
158
+ }
159
+
160
+ export namespace Transaction {
161
+ /**
162
+ * The account associated with this transaction.
163
+ */
164
+ export interface Account {
165
+ /**
166
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
167
+ * across all objects of the same type, but not across different QuickBooks object
168
+ * types.
169
+ */
170
+ id: string | null;
171
+
172
+ /**
173
+ * The fully-qualified unique name for this object, formed by combining the names
174
+ * of its parent objects with its own `name`, separated by colons. Not
175
+ * case-sensitive.
176
+ */
177
+ fullName: string | null;
178
+ }
179
+
180
+ /**
181
+ * The transaction's currency. For built-in currencies, the name and code are
182
+ * standard international values. For user-defined currencies, all values are
183
+ * editable.
184
+ */
185
+ export interface Currency {
186
+ /**
187
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
188
+ * across all objects of the same type, but not across different QuickBooks object
189
+ * types.
190
+ */
191
+ id: string | null;
192
+
193
+ /**
194
+ * The fully-qualified unique name for this object, formed by combining the names
195
+ * of its parent objects with its own `name`, separated by colons. Not
196
+ * case-sensitive.
197
+ */
198
+ fullName: string | null;
199
+ }
200
+
201
+ /**
202
+ * The customer, vendor, employee, or person on QuickBooks's "Other Names" list
203
+ * associated with this transaction.
204
+ */
205
+ export interface Entity {
206
+ /**
207
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
208
+ * across all objects of the same type, but not across different QuickBooks object
209
+ * types.
210
+ */
211
+ id: string | null;
212
+
213
+ /**
214
+ * The fully-qualified unique name for this object, formed by combining the names
215
+ * of its parent objects with its own `name`, separated by colons. Not
216
+ * case-sensitive.
217
+ */
218
+ fullName: string | null;
219
+ }
220
+ }
221
+
222
+ export interface TransactionRetrieveParams {
223
+ /**
224
+ * The ID of the EndUser to receive this request (e.g.,
225
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
226
+ */
227
+ conductorEndUserId: string;
228
+ }
229
+
230
+ export interface TransactionListParams extends CursorPageParams {
231
+ /**
232
+ * Header param: The ID of the EndUser to receive this request (e.g.,
233
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
234
+ */
235
+ conductorEndUserId: string;
236
+
237
+ /**
238
+ * Query param: Filter for transactions associated with these accounts.
239
+ *
240
+ * **NOTE**: To filter on transaction lines, you must specify the
241
+ * `transactionDetailLevel` parameter as `all` or `transaction_lines_only`.
242
+ */
243
+ accountIds?: Array<string>;
244
+
245
+ /**
246
+ * Query param: Filter for transactions of these classes. A class is a way
247
+ * end-users can categorize transactions in QuickBooks.
248
+ *
249
+ * **NOTE**: To filter on transaction lines, you must specify the
250
+ * `transactionDetailLevel` parameter as `all` or `transaction_lines_only`.
251
+ */
252
+ classIds?: Array<string>;
253
+
254
+ /**
255
+ * Query param: Filter for transactions in these currencies.
256
+ */
257
+ currencyIds?: Array<string>;
258
+
259
+ /**
260
+ * Query param: Specify whether to return all matching transaction and
261
+ * transaction-line objects (`all`), only transaction objects
262
+ * (`transactions_without_lines`, the default), or only transaction-line objects
263
+ * (`transaction_lines_only`.
264
+ */
265
+ detailLevel?: 'all' | 'transaction_lines_only' | 'transactions_without_lines';
266
+
267
+ /**
268
+ * Query param: Filter for transactions associated with these entities (customers,
269
+ * vendors, employees, etc.).
270
+ *
271
+ * **NOTE**: To filter on transaction lines, you must specify the
272
+ * `transactionDetailLevel` parameter as `all` or `transaction_lines_only`.
273
+ */
274
+ entityIds?: Array<string>;
275
+
276
+ /**
277
+ * Query param: Filter for specific transactions by their QuickBooks-assigned
278
+ * unique identifier(s).
279
+ *
280
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
281
+ * query parameters for this request.
282
+ *
283
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
284
+ * request will return an error.
285
+ *
286
+ * **NOTE**: You cannot supply the ID of a time tracking activity to this request.
287
+ * If you do, you get an error stating that no such record could be found, even
288
+ * though the transaction is in QuickBooks. This limitation is enforced by
289
+ * QuickBooks.
290
+ */
291
+ ids?: Array<string>;
292
+
293
+ /**
294
+ * Query param: Filter for transactions associated with these items.
295
+ *
296
+ * **NOTE**: To filter on transaction lines, you must specify the
297
+ * `transactionDetailLevel` parameter as `all` or `transaction_lines_only`.
298
+ */
299
+ itemIds?: Array<string>;
300
+
301
+ /**
302
+ * Query param: Filter for transactions that are open, closed, or either. Open
303
+ * transactions have a remaining balance, such as credits not fully applied or
304
+ * invoices not fully paid.
305
+ */
306
+ paymentStatus?: 'closed' | 'either' | 'open';
307
+
308
+ /**
309
+ * Query param: Filter for transactions that are posting, non-posting, or either.
310
+ * Posting status refers to whether QuickBooks records the transaction in an
311
+ * account register.
312
+ */
313
+ postingStatus?: 'either' | 'non_posting' | 'posting';
314
+
315
+ /**
316
+ * Query param: Filter for transactions whose `refNumber` contains this substring.
317
+ * NOTE: If you use this parameter, you cannot also use `refNumberStartsWith` or
318
+ * `refNumberEndsWith`.
319
+ */
320
+ refNumberContains?: string;
321
+
322
+ /**
323
+ * Query param: Filter for transactions whose `refNumber` ends with this substring.
324
+ * NOTE: If you use this parameter, you cannot also use `refNumberContains` or
325
+ * `refNumberStartsWith`.
326
+ */
327
+ refNumberEndsWith?: string;
328
+
329
+ /**
330
+ * Query param: Filter for transactions whose `refNumber` is greater than or equal
331
+ * to this value. If omitted, the range will begin with the first number of the
332
+ * list. Uses a numerical comparison for values that contain only digits;
333
+ * otherwise, uses a lexicographical comparison.
334
+ */
335
+ refNumberFrom?: string;
336
+
337
+ /**
338
+ * Query param: Filter for specific transactions by their ref-number(s),
339
+ * case-sensitive. In QuickBooks, ref-numbers are not required to be unique and can
340
+ * be arbitrarily changed by the QuickBooks user.
341
+ *
342
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
343
+ * query parameters for this request.
344
+ *
345
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
346
+ * request will return an error.
347
+ */
348
+ refNumbers?: Array<string>;
349
+
350
+ /**
351
+ * Query param: Filter for transactions whose `refNumber` starts with this
352
+ * substring. NOTE: If you use this parameter, you cannot also use
353
+ * `refNumberContains` or `refNumberEndsWith`.
354
+ */
355
+ refNumberStartsWith?: string;
356
+
357
+ /**
358
+ * Query param: Filter for transactions whose `refNumber` is less than or equal to
359
+ * this value. If omitted, the range will end with the last number of the list.
360
+ * Uses a numerical comparison for values that contain only digits; otherwise, uses
361
+ * a lexicographical comparison.
362
+ */
363
+ refNumberTo?: string;
364
+
365
+ /**
366
+ * Query param: Filter for transactions whose `date` field is on or after this
367
+ * date, in ISO 8601 format (YYYY-MM-DD).
368
+ */
369
+ transactionDateFrom?: string;
370
+
371
+ /**
372
+ * Query param: Filter for transactions whose `date` field is on or before this
373
+ * date, in ISO 8601 format (YYYY-MM-DD).
374
+ */
375
+ transactionDateTo?: string;
376
+
377
+ /**
378
+ * Query param: Filter for transactions by their type. You can specify one or more
379
+ * transaction types.
380
+ *
381
+ * **NOTE**: Filtering for time tracking activities is not supported by QuickBooks
382
+ * for this endpoint.
383
+ */
384
+ transactionType?: Array<
385
+ | 'all'
386
+ | 'ar_refund_credit_card'
387
+ | 'bill'
388
+ | 'bill_payment_check'
389
+ | 'bill_payment_credit_card'
390
+ | 'build_assembly'
391
+ | 'charge'
392
+ | 'check'
393
+ | 'credit_card_charge'
394
+ | 'credit_card_credit'
395
+ | 'credit_memo'
396
+ | 'deposit'
397
+ | 'estimate'
398
+ | 'inventory_adjustment'
399
+ | 'invoice'
400
+ | 'item_receipt'
401
+ | 'journal_entry'
402
+ | 'liability_adjustment'
403
+ | 'paycheck'
404
+ | 'payroll_liability_check'
405
+ | 'purchase_order'
406
+ | 'receive_payment'
407
+ | 'sales_order'
408
+ | 'sales_receipt'
409
+ | 'sales_tax_payment_check'
410
+ | 'transfer'
411
+ | 'vendor_credit'
412
+ | 'ytd_adjustment'
413
+ >;
414
+
415
+ /**
416
+ * Query param: Filter for transactions updated on or after this date and time, in
417
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
418
+ * the time is assumed to be 00:00:00 of that day.
419
+ */
420
+ updatedAfter?: string;
421
+
422
+ /**
423
+ * Query param: Filter for transactions updated on or before this date and time, in
424
+ * ISO 8601 format (YYYY-MM-DDTHH:mm:ss). If you only provide a date (YYYY-MM-DD),
425
+ * the time is assumed to be 23:59:59 of that day.
426
+ */
427
+ updatedBefore?: string;
428
+ }
429
+
430
+ Transactions.TransactionsCursorPage = TransactionsCursorPage;
431
+
432
+ export declare namespace Transactions {
433
+ export {
434
+ type Transaction as Transaction,
435
+ TransactionsCursorPage as TransactionsCursorPage,
436
+ type TransactionRetrieveParams as TransactionRetrieveParams,
437
+ type TransactionListParams as TransactionListParams,
438
+ };
439
+ }
@@ -319,14 +319,14 @@ export interface TransferListParams extends CursorPageParams {
319
319
  ids?: Array<string>;
320
320
 
321
321
  /**
322
- * Query param: Filter for transfers created on or after this date, in ISO 8601
323
- * format (YYYY-MM-DD).
322
+ * Query param: Filter for transfers whose `date` field is on or after this date,
323
+ * in ISO 8601 format (YYYY-MM-DD).
324
324
  */
325
325
  transactionDateFrom?: string;
326
326
 
327
327
  /**
328
- * Query param: Filter for transfers created on or before this date, in ISO 8601
329
- * format (YYYY-MM-DD).
328
+ * Query param: Filter for transfers whose `date` field is on or before this date,
329
+ * in ISO 8601 format (YYYY-MM-DD).
330
330
  */
331
331
  transactionDateTo?: string;
332
332
 
@@ -2686,14 +2686,14 @@ export interface VendorCreditListParams extends CursorPageParams {
2686
2686
  refNumberTo?: string;
2687
2687
 
2688
2688
  /**
2689
- * Query param: Filter for vendor credits created on or after this date, in ISO
2690
- * 8601 format (YYYY-MM-DD).
2689
+ * Query param: Filter for vendor credits whose `date` field is on or after this
2690
+ * date, in ISO 8601 format (YYYY-MM-DD).
2691
2691
  */
2692
2692
  transactionDateFrom?: string;
2693
2693
 
2694
2694
  /**
2695
- * Query param: Filter for vendor credits created on or before this date, in ISO
2696
- * 8601 format (YYYY-MM-DD).
2695
+ * Query param: Filter for vendor credits whose `date` field is on or before this
2696
+ * date, in ISO 8601 format (YYYY-MM-DD).
2697
2697
  */
2698
2698
  transactionDateTo?: string;
2699
2699
 
@@ -106,7 +106,7 @@ export interface Vendor {
106
106
 
107
107
  /**
108
108
  * The vendor's billing rate, used to override service item rates in time tracking
109
- * transactions.
109
+ * activities.
110
110
  */
111
111
  billingRate: Vendor.BillingRate | null;
112
112
 
@@ -457,7 +457,7 @@ export namespace Vendor {
457
457
  /**
458
458
  * The date this note was last updated, in ISO 8601 format (YYYY-MM-DD).
459
459
  */
460
- date: string;
460
+ date: string | null;
461
461
 
462
462
  /**
463
463
  * The text of this note.
@@ -524,7 +524,7 @@ export namespace Vendor {
524
524
 
525
525
  /**
526
526
  * The vendor's billing rate, used to override service item rates in time tracking
527
- * transactions.
527
+ * activities.
528
528
  */
529
529
  export interface BillingRate {
530
530
  /**
@@ -889,7 +889,7 @@ export interface VendorCreateParams {
889
889
 
890
890
  /**
891
891
  * Body param: The vendor's billing rate, used to override service item rates in
892
- * time tracking transactions.
892
+ * time tracking activities.
893
893
  */
894
894
  billingRateId?: string;
895
895
 
@@ -1407,7 +1407,7 @@ export interface VendorUpdateParams {
1407
1407
 
1408
1408
  /**
1409
1409
  * Body param: The vendor's billing rate, used to override service item rates in
1410
- * time tracking transactions.
1410
+ * time tracking activities.
1411
1411
  */
1412
1412
  billingRateId?: string;
1413
1413
 
@@ -1711,7 +1711,7 @@ export namespace VendorUpdateParams {
1711
1711
  /**
1712
1712
  * The text of this note.
1713
1713
  */
1714
- note?: string;
1714
+ note: string;
1715
1715
  }
1716
1716
 
1717
1717
  /**
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './qbd/index';
@@ -0,0 +1 @@
1
+ export * from './resources/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '12.0.0-beta.9'; // x-release-please-version
1
+ export const VERSION = '12.0.1'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "12.0.0-beta.9";
1
+ export declare const VERSION = "12.0.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '12.0.0-beta.9'; // x-release-please-version
4
+ exports.VERSION = '12.0.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '12.0.0-beta.9'; // x-release-please-version
1
+ export const VERSION = '12.0.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}