conductor-node 12.31.1 → 12.33.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.
Files changed (93) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +1 -1
  3. package/resources/qbd/bill-check-payments.d.ts +1 -1
  4. package/resources/qbd/bill-check-payments.d.ts.map +1 -1
  5. package/resources/qbd/bill-check-payments.js.map +1 -1
  6. package/resources/qbd/bill-check-payments.mjs.map +1 -1
  7. package/resources/qbd/bill-credit-card-payments.d.ts +1 -1
  8. package/resources/qbd/bill-credit-card-payments.d.ts.map +1 -1
  9. package/resources/qbd/bill-credit-card-payments.js.map +1 -1
  10. package/resources/qbd/bill-credit-card-payments.mjs.map +1 -1
  11. package/resources/qbd/bills.d.ts +1 -1
  12. package/resources/qbd/bills.d.ts.map +1 -1
  13. package/resources/qbd/bills.js.map +1 -1
  14. package/resources/qbd/bills.mjs.map +1 -1
  15. package/resources/qbd/checks.d.ts +1 -1
  16. package/resources/qbd/checks.d.ts.map +1 -1
  17. package/resources/qbd/checks.js.map +1 -1
  18. package/resources/qbd/checks.mjs.map +1 -1
  19. package/resources/qbd/credit-card-refunds.d.ts +1011 -0
  20. package/resources/qbd/credit-card-refunds.d.ts.map +1 -0
  21. package/resources/qbd/credit-card-refunds.js +105 -0
  22. package/resources/qbd/credit-card-refunds.js.map +1 -0
  23. package/resources/qbd/credit-card-refunds.mjs +100 -0
  24. package/resources/qbd/credit-card-refunds.mjs.map +1 -0
  25. package/resources/qbd/credit-memos.d.ts +5 -13
  26. package/resources/qbd/credit-memos.d.ts.map +1 -1
  27. package/resources/qbd/credit-memos.js.map +1 -1
  28. package/resources/qbd/credit-memos.mjs.map +1 -1
  29. package/resources/qbd/employees.d.ts +8 -21
  30. package/resources/qbd/employees.d.ts.map +1 -1
  31. package/resources/qbd/estimates.d.ts +1 -1
  32. package/resources/qbd/estimates.d.ts.map +1 -1
  33. package/resources/qbd/estimates.js.map +1 -1
  34. package/resources/qbd/estimates.mjs.map +1 -1
  35. package/resources/qbd/index.d.ts +1 -0
  36. package/resources/qbd/index.d.ts.map +1 -1
  37. package/resources/qbd/index.js +5 -2
  38. package/resources/qbd/index.js.map +1 -1
  39. package/resources/qbd/index.mjs +1 -0
  40. package/resources/qbd/index.mjs.map +1 -1
  41. package/resources/qbd/inventory-adjustments.d.ts +1 -1
  42. package/resources/qbd/inventory-adjustments.d.ts.map +1 -1
  43. package/resources/qbd/invoices.d.ts +5 -13
  44. package/resources/qbd/invoices.d.ts.map +1 -1
  45. package/resources/qbd/invoices.js.map +1 -1
  46. package/resources/qbd/invoices.mjs.map +1 -1
  47. package/resources/qbd/item-receipts.d.ts +1 -1
  48. package/resources/qbd/item-receipts.d.ts.map +1 -1
  49. package/resources/qbd/item-receipts.js.map +1 -1
  50. package/resources/qbd/item-receipts.mjs.map +1 -1
  51. package/resources/qbd/purchase-orders.d.ts +1 -1
  52. package/resources/qbd/purchase-orders.d.ts.map +1 -1
  53. package/resources/qbd/purchase-orders.js.map +1 -1
  54. package/resources/qbd/purchase-orders.mjs.map +1 -1
  55. package/resources/qbd/qbd.d.ts +4 -0
  56. package/resources/qbd/qbd.d.ts.map +1 -1
  57. package/resources/qbd/qbd.js +5 -0
  58. package/resources/qbd/qbd.js.map +1 -1
  59. package/resources/qbd/qbd.mjs +5 -0
  60. package/resources/qbd/qbd.mjs.map +1 -1
  61. package/resources/qbd/receive-payments.d.ts +5 -13
  62. package/resources/qbd/receive-payments.d.ts.map +1 -1
  63. package/resources/qbd/receive-payments.js.map +1 -1
  64. package/resources/qbd/receive-payments.mjs.map +1 -1
  65. package/resources/qbd/sales-orders.d.ts +1 -1
  66. package/resources/qbd/sales-orders.d.ts.map +1 -1
  67. package/resources/qbd/sales-orders.js.map +1 -1
  68. package/resources/qbd/sales-orders.mjs.map +1 -1
  69. package/resources/qbd/vendor-credits.d.ts +1 -1
  70. package/resources/qbd/vendor-credits.d.ts.map +1 -1
  71. package/resources/qbd/vendor-credits.js.map +1 -1
  72. package/resources/qbd/vendor-credits.mjs.map +1 -1
  73. package/src/resources/qbd/bill-check-payments.ts +2 -1
  74. package/src/resources/qbd/bill-credit-card-payments.ts +2 -1
  75. package/src/resources/qbd/bills.ts +2 -1
  76. package/src/resources/qbd/checks.ts +2 -1
  77. package/src/resources/qbd/credit-card-refunds.ts +1252 -0
  78. package/src/resources/qbd/credit-memos.ts +6 -13
  79. package/src/resources/qbd/employees.ts +8 -21
  80. package/src/resources/qbd/estimates.ts +2 -1
  81. package/src/resources/qbd/index.ts +10 -0
  82. package/src/resources/qbd/inventory-adjustments.ts +1 -1
  83. package/src/resources/qbd/invoices.ts +6 -13
  84. package/src/resources/qbd/item-receipts.ts +2 -1
  85. package/src/resources/qbd/purchase-orders.ts +2 -1
  86. package/src/resources/qbd/qbd.ts +27 -0
  87. package/src/resources/qbd/receive-payments.ts +6 -13
  88. package/src/resources/qbd/sales-orders.ts +2 -1
  89. package/src/resources/qbd/vendor-credits.ts +2 -1
  90. package/src/version.ts +1 -1
  91. package/version.d.ts +1 -1
  92. package/version.js +1 -1
  93. package/version.mjs +1 -1
@@ -0,0 +1,1252 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from "../../resource.js";
4
+ import * as Core from "../../core.js";
5
+ import { CursorPage, type CursorPageParams } from "../../pagination.js";
6
+
7
+ export class CreditCardRefunds extends APIResource {
8
+ /**
9
+ * Creates a credit card refund linked to one or more existing credit transactions,
10
+ * such as credit memos or overpayments. You must supply at least one entry in
11
+ * `refundAppliedToTransactions`, and the refund amount cannot exceed the available
12
+ * balance on the linked credits.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const creditCardRefund =
17
+ * await conductor.qbd.creditCardRefunds.create({
18
+ * customerId: '80000001-1234567890',
19
+ * refundAppliedToTransactions: [
20
+ * {
21
+ * refundAmount: '15.00',
22
+ * transactionId: '123ABC-1234567890',
23
+ * },
24
+ * ],
25
+ * transactionDate: '2024-10-01',
26
+ * conductorEndUserId: 'end_usr_1234567abcdefg',
27
+ * });
28
+ * ```
29
+ */
30
+ create(
31
+ params: CreditCardRefundCreateParams,
32
+ options?: Core.RequestOptions,
33
+ ): Core.APIPromise<CreditCardRefund> {
34
+ const { conductorEndUserId, ...body } = params;
35
+ return this._client.post('/quickbooks-desktop/credit-card-refunds', {
36
+ body,
37
+ ...options,
38
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
39
+ });
40
+ }
41
+
42
+ /**
43
+ * Retrieves a credit card refund by ID.
44
+ *
45
+ * @example
46
+ * ```ts
47
+ * const creditCardRefund =
48
+ * await conductor.qbd.creditCardRefunds.retrieve(
49
+ * '123ABC-1234567890',
50
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
51
+ * );
52
+ * ```
53
+ */
54
+ retrieve(
55
+ id: string,
56
+ params: CreditCardRefundRetrieveParams,
57
+ options?: Core.RequestOptions,
58
+ ): Core.APIPromise<CreditCardRefund> {
59
+ const { conductorEndUserId } = params;
60
+ return this._client.get(`/quickbooks-desktop/credit-card-refunds/${id}`, {
61
+ ...options,
62
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
63
+ });
64
+ }
65
+
66
+ /**
67
+ * Returns a list of credit card refunds. Use the `cursor` parameter to paginate
68
+ * through the results.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * // Automatically fetches more pages as needed.
73
+ * for await (const creditCardRefund of conductor.qbd.creditCardRefunds.list(
74
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
75
+ * )) {
76
+ * // ...
77
+ * }
78
+ * ```
79
+ */
80
+ list(
81
+ params: CreditCardRefundListParams,
82
+ options?: Core.RequestOptions,
83
+ ): Core.PagePromise<CreditCardRefundsCursorPage, CreditCardRefund> {
84
+ const { conductorEndUserId, ...query } = params;
85
+ return this._client.getAPIList('/quickbooks-desktop/credit-card-refunds', CreditCardRefundsCursorPage, {
86
+ query,
87
+ ...options,
88
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
89
+ });
90
+ }
91
+
92
+ /**
93
+ * Permanently deletes a a credit card refund. The deletion will fail if the credit
94
+ * card refund is currently in use or has any linked transactions that are in use.
95
+ *
96
+ * @example
97
+ * ```ts
98
+ * const creditCardRefund =
99
+ * await conductor.qbd.creditCardRefunds.delete(
100
+ * '123ABC-1234567890',
101
+ * { conductorEndUserId: 'end_usr_1234567abcdefg' },
102
+ * );
103
+ * ```
104
+ */
105
+ delete(
106
+ id: string,
107
+ params: CreditCardRefundDeleteParams,
108
+ options?: Core.RequestOptions,
109
+ ): Core.APIPromise<CreditCardRefundDeleteResponse> {
110
+ const { conductorEndUserId } = params;
111
+ return this._client.delete(`/quickbooks-desktop/credit-card-refunds/${id}`, {
112
+ ...options,
113
+ headers: { 'Conductor-End-User-Id': conductorEndUserId, ...options?.headers },
114
+ });
115
+ }
116
+ }
117
+
118
+ export class CreditCardRefundsCursorPage extends CursorPage<CreditCardRefund> {}
119
+
120
+ export interface CreditCardRefund {
121
+ /**
122
+ * The unique identifier assigned by QuickBooks to this credit card refund. This ID
123
+ * is unique across all transaction types.
124
+ */
125
+ id: string;
126
+
127
+ /**
128
+ * The address that is printed on the credit card refund.
129
+ */
130
+ address: CreditCardRefund.Address | null;
131
+
132
+ /**
133
+ * The date and time when this credit card refund was created, in ISO 8601 format
134
+ * (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the local
135
+ * timezone of the end-user's computer.
136
+ */
137
+ createdAt: string;
138
+
139
+ /**
140
+ * The credit card transaction data for this credit card refund's payment when
141
+ * using QuickBooks Merchant Services (QBMS).
142
+ */
143
+ creditCardTransaction: CreditCardRefund.CreditCardTransaction | null;
144
+
145
+ /**
146
+ * The credit card refund's currency. For built-in currencies, the name and code
147
+ * are standard international values. For user-defined currencies, all values are
148
+ * editable.
149
+ */
150
+ currency: CreditCardRefund.Currency | null;
151
+
152
+ /**
153
+ * The customer or customer-job associated with this credit card refund.
154
+ */
155
+ customer: CreditCardRefund.Customer;
156
+
157
+ /**
158
+ * The custom fields for the credit card refund object, added as user-defined data
159
+ * extensions, not included in the standard QuickBooks object.
160
+ */
161
+ customFields: Array<CreditCardRefund.CustomField>;
162
+
163
+ /**
164
+ * The market exchange rate between this credit card refund's currency and the home
165
+ * currency in QuickBooks at the time of this transaction. Represented as a decimal
166
+ * value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home currency).
167
+ */
168
+ exchangeRate: number | null;
169
+
170
+ /**
171
+ * A globally unique identifier (GUID) you, the developer, can provide for tracking
172
+ * this object in your external system. This field is immutable and can only be set
173
+ * during object creation.
174
+ */
175
+ externalId: string | null;
176
+
177
+ /**
178
+ * A memo or note for this credit card refund.
179
+ */
180
+ memo: string | null;
181
+
182
+ /**
183
+ * The type of object. This value is always `"qbd_credit_card_refund"`.
184
+ */
185
+ objectType: 'qbd_credit_card_refund';
186
+
187
+ /**
188
+ * The credit card refund's payment method (e.g., cash, check, credit card).
189
+ */
190
+ paymentMethod: CreditCardRefund.PaymentMethod | null;
191
+
192
+ /**
193
+ * The Accounts-Receivable (A/R) account to which this credit card refund is
194
+ * assigned, used to track the amount owed. If not specified, QuickBooks Desktop
195
+ * will use its default A/R account.
196
+ *
197
+ * **IMPORTANT**: If this credit card refund is linked to other transactions, this
198
+ * A/R account must match the `receivablesAccount` used in all linked transactions.
199
+ * For example, when refunding a credit card payment, the A/R account must match
200
+ * the one used in each linked credit transaction being refunded.
201
+ */
202
+ receivablesAccount: CreditCardRefund.ReceivablesAccount | null;
203
+
204
+ /**
205
+ * The case-sensitive user-defined reference number for this credit card refund,
206
+ * which can be used to identify the transaction in QuickBooks. This value is not
207
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
208
+ */
209
+ refNumber: string | null;
210
+
211
+ /**
212
+ * The credit transactions refunded by this credit card refund.
213
+ */
214
+ refundAppliedToTransactions: Array<CreditCardRefund.RefundAppliedToTransaction>;
215
+
216
+ /**
217
+ * The account providing funds for this credit card refund. This is typically the
218
+ * Undeposited Funds account used to hold customer payments.
219
+ */
220
+ refundFromAccount: CreditCardRefund.RefundFromAccount | null;
221
+
222
+ /**
223
+ * The current QuickBooks-assigned revision number of this credit card refund
224
+ * object, which changes each time the object is modified. When updating this
225
+ * object, you must provide the most recent `revisionNumber` to ensure you're
226
+ * working with the latest data; otherwise, the update will return an error.
227
+ */
228
+ revisionNumber: string;
229
+
230
+ /**
231
+ * The total monetary amount of this credit card refund, represented as a decimal
232
+ * string.
233
+ */
234
+ totalAmount: string;
235
+
236
+ /**
237
+ * The total monetary amount of this credit card refund converted to the home
238
+ * currency of the QuickBooks company file. Represented as a decimal string.
239
+ */
240
+ totalAmountInHomeCurrency: string | null;
241
+
242
+ /**
243
+ * The date of this credit card refund, in ISO 8601 format (YYYY-MM-DD).
244
+ */
245
+ transactionDate: string;
246
+
247
+ /**
248
+ * The date and time when this credit card refund was last updated, in ISO 8601
249
+ * format (YYYY-MM-DDThh:mm:ss±hh:mm), which QuickBooks Desktop interprets in the
250
+ * local timezone of the end-user's computer.
251
+ */
252
+ updatedAt: string;
253
+ }
254
+
255
+ export namespace CreditCardRefund {
256
+ /**
257
+ * The address that is printed on the credit card refund.
258
+ */
259
+ export interface Address {
260
+ /**
261
+ * The city, district, suburb, town, or village name of the address.
262
+ */
263
+ city: string | null;
264
+
265
+ /**
266
+ * The country name of the address.
267
+ */
268
+ country: string | null;
269
+
270
+ /**
271
+ * The first line of the address (e.g., street, PO Box, or company name).
272
+ */
273
+ line1: string | null;
274
+
275
+ /**
276
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
277
+ * building).
278
+ */
279
+ line2: string | null;
280
+
281
+ /**
282
+ * The third line of the address, if needed.
283
+ */
284
+ line3: string | null;
285
+
286
+ /**
287
+ * The fourth line of the address, if needed.
288
+ */
289
+ line4: string | null;
290
+
291
+ /**
292
+ * The fifth line of the address, if needed.
293
+ */
294
+ line5: string | null;
295
+
296
+ /**
297
+ * A note written at the bottom of the address in the form in which it appears,
298
+ * such as the invoice form.
299
+ */
300
+ note: string | null;
301
+
302
+ /**
303
+ * The postal code or ZIP code of the address.
304
+ */
305
+ postalCode: string | null;
306
+
307
+ /**
308
+ * The state, county, province, or region name of the address.
309
+ */
310
+ state: string | null;
311
+ }
312
+
313
+ /**
314
+ * The credit card transaction data for this credit card refund's payment when
315
+ * using QuickBooks Merchant Services (QBMS).
316
+ */
317
+ export interface CreditCardTransaction {
318
+ /**
319
+ * The transaction request data originally supplied for this credit card
320
+ * transaction when using QuickBooks Merchant Services (QBMS).
321
+ */
322
+ request: CreditCardTransaction.Request | null;
323
+
324
+ /**
325
+ * The transaction response data for this credit card transaction when using
326
+ * QuickBooks Merchant Services (QBMS).
327
+ */
328
+ response: CreditCardTransaction.Response | null;
329
+ }
330
+
331
+ export namespace CreditCardTransaction {
332
+ /**
333
+ * The transaction request data originally supplied for this credit card
334
+ * transaction when using QuickBooks Merchant Services (QBMS).
335
+ */
336
+ export interface Request {
337
+ /**
338
+ * The card's billing address.
339
+ */
340
+ address: string | null;
341
+
342
+ /**
343
+ * The commercial card code identifies the type of business credit card being used
344
+ * (purchase, corporate, or business) for Visa and Mastercard transactions only.
345
+ * When provided, this code may qualify the transaction for lower processing fees
346
+ * compared to the standard rates that apply when no code is specified.
347
+ */
348
+ commercialCardCode: string | null;
349
+
350
+ /**
351
+ * The month when the credit card expires.
352
+ */
353
+ expirationMonth: number;
354
+
355
+ /**
356
+ * The year when the credit card expires.
357
+ */
358
+ expirationYear: number;
359
+
360
+ /**
361
+ * The cardholder's name on the card.
362
+ */
363
+ name: string | null;
364
+
365
+ /**
366
+ * The credit card number. Must be masked with lower case "x" and no dashes.
367
+ */
368
+ number: string;
369
+
370
+ /**
371
+ * The card's billing address ZIP or postal code.
372
+ */
373
+ postalCode: string | null;
374
+
375
+ /**
376
+ * Indicates whether this credit card transaction came from a card swipe
377
+ * (`card_present`) or not (`card_not_present`).
378
+ */
379
+ transactionMode: 'card_not_present' | 'card_present' | null;
380
+
381
+ /**
382
+ * The QBMS transaction type from which the current transaction data originated.
383
+ */
384
+ transactionType: 'authorization' | 'capture' | 'charge' | 'refund' | 'voice_authorization' | null;
385
+ }
386
+
387
+ /**
388
+ * The transaction response data for this credit card transaction when using
389
+ * QuickBooks Merchant Services (QBMS).
390
+ */
391
+ export interface Response {
392
+ /**
393
+ * The authorization code returned from the credit card processor to indicate that
394
+ * this charge will be paid by the card issuer.
395
+ */
396
+ authorizationCode: string | null;
397
+
398
+ /**
399
+ * Indicates whether the street address supplied in the transaction request matches
400
+ * the customer's address on file at the card issuer.
401
+ */
402
+ avsStreetStatus: 'fail' | 'not_available' | 'pass' | null;
403
+
404
+ /**
405
+ * Indicates whether the customer postal ZIP code supplied in the transaction
406
+ * request matches the customer's postal code recognized at the card issuer.
407
+ */
408
+ avsZipStatus: 'fail' | 'not_available' | 'pass' | null;
409
+
410
+ /**
411
+ * Indicates whether the card security code supplied in the transaction request
412
+ * matches the card security code recognized for that credit card number at the
413
+ * card issuer.
414
+ */
415
+ cardSecurityCodeMatch: 'fail' | 'not_available' | 'pass' | null;
416
+
417
+ /**
418
+ * A value returned from QBMS transactions for future use by the QuickBooks
419
+ * Reconciliation feature.
420
+ */
421
+ clientTransactionId: string | null;
422
+
423
+ /**
424
+ * The ID returned from the credit card processor for this credit card transaction.
425
+ */
426
+ creditCardTransactionId: string;
427
+
428
+ /**
429
+ * The QBMS account number of the merchant who is running this transaction using
430
+ * the customer's credit card.
431
+ */
432
+ merchantAccountNumber: string;
433
+
434
+ /**
435
+ * An internal code returned by QuickBooks Merchant Services (QBMS) from the
436
+ * transaction request, needed for the QuickBooks reconciliation feature.
437
+ */
438
+ paymentGroupingCode: number | null;
439
+
440
+ /**
441
+ * Indicates whether this credit card transaction is known to have been
442
+ * successfully processed by the card issuer.
443
+ */
444
+ paymentStatus: 'completed' | 'unknown';
445
+
446
+ /**
447
+ * An internal ID returned by QuickBooks Merchant Services (QBMS) from the
448
+ * transaction request, needed for the QuickBooks reconciliation feature.
449
+ */
450
+ reconBatchId: string | null;
451
+
452
+ /**
453
+ * The status code returned in the original QBMS transaction response for this
454
+ * credit card transaction.
455
+ */
456
+ statusCode: number;
457
+
458
+ /**
459
+ * The status message returned in the original QBMS transaction response for this
460
+ * credit card transaction.
461
+ */
462
+ statusMessage: string;
463
+
464
+ /**
465
+ * An internal value for this credit card transaction, needed for the QuickBooks
466
+ * reconciliation feature.
467
+ */
468
+ transactionAuthorizationStamp: number | null;
469
+
470
+ /**
471
+ * The date and time when the credit card processor authorized this credit card
472
+ * transaction.
473
+ */
474
+ transactionAuthorizedAt: string;
475
+ }
476
+ }
477
+
478
+ /**
479
+ * The credit card refund's currency. For built-in currencies, the name and code
480
+ * are standard international values. For user-defined currencies, all values are
481
+ * editable.
482
+ */
483
+ export interface Currency {
484
+ /**
485
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
486
+ * across all objects of the same type, but not across different QuickBooks object
487
+ * types.
488
+ */
489
+ id: string | null;
490
+
491
+ /**
492
+ * The fully-qualified unique name for this object, formed by combining the names
493
+ * of its parent objects with its own `name`, separated by colons. Not
494
+ * case-sensitive.
495
+ */
496
+ fullName: string | null;
497
+ }
498
+
499
+ /**
500
+ * The customer or customer-job associated with this credit card refund.
501
+ */
502
+ export interface Customer {
503
+ /**
504
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
505
+ * across all objects of the same type, but not across different QuickBooks object
506
+ * types.
507
+ */
508
+ id: string | null;
509
+
510
+ /**
511
+ * The fully-qualified unique name for this object, formed by combining the names
512
+ * of its parent objects with its own `name`, separated by colons. Not
513
+ * case-sensitive.
514
+ */
515
+ fullName: string | null;
516
+ }
517
+
518
+ export interface CustomField {
519
+ /**
520
+ * The name of the custom field, unique for the specified `ownerId`. For public
521
+ * custom fields, this name is visible as a label in the QuickBooks UI.
522
+ */
523
+ name: string;
524
+
525
+ /**
526
+ * The identifier of the owner of the custom field, which QuickBooks internally
527
+ * calls a "data extension". For public custom fields visible in the UI, such as
528
+ * those added by the QuickBooks user, this is always "0". For private custom
529
+ * fields that are only visible to the application that created them, this is a
530
+ * valid GUID identifying the owning application. Internally, Conductor always
531
+ * fetches all public custom fields (those with an `ownerId` of "0") for all
532
+ * objects.
533
+ */
534
+ ownerId: string;
535
+
536
+ /**
537
+ * The data type of this custom field.
538
+ */
539
+ type:
540
+ | 'amount_type'
541
+ | 'date_time_type'
542
+ | 'integer_type'
543
+ | 'percent_type'
544
+ | 'price_type'
545
+ | 'quantity_type'
546
+ | 'string_1024_type'
547
+ | 'string_255_type';
548
+
549
+ /**
550
+ * The value of this custom field. The maximum length depends on the field's data
551
+ * type.
552
+ */
553
+ value: string;
554
+ }
555
+
556
+ /**
557
+ * The credit card refund's payment method (e.g., cash, check, credit card).
558
+ */
559
+ export interface PaymentMethod {
560
+ /**
561
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
562
+ * across all objects of the same type, but not across different QuickBooks object
563
+ * types.
564
+ */
565
+ id: string | null;
566
+
567
+ /**
568
+ * The fully-qualified unique name for this object, formed by combining the names
569
+ * of its parent objects with its own `name`, separated by colons. Not
570
+ * case-sensitive.
571
+ */
572
+ fullName: string | null;
573
+ }
574
+
575
+ /**
576
+ * The Accounts-Receivable (A/R) account to which this credit card refund is
577
+ * assigned, used to track the amount owed. If not specified, QuickBooks Desktop
578
+ * will use its default A/R account.
579
+ *
580
+ * **IMPORTANT**: If this credit card refund is linked to other transactions, this
581
+ * A/R account must match the `receivablesAccount` used in all linked transactions.
582
+ * For example, when refunding a credit card payment, the A/R account must match
583
+ * the one used in each linked credit transaction being refunded.
584
+ */
585
+ export interface ReceivablesAccount {
586
+ /**
587
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
588
+ * across all objects of the same type, but not across different QuickBooks object
589
+ * types.
590
+ */
591
+ id: string | null;
592
+
593
+ /**
594
+ * The fully-qualified unique name for this object, formed by combining the names
595
+ * of its parent objects with its own `name`, separated by colons. Not
596
+ * case-sensitive.
597
+ */
598
+ fullName: string | null;
599
+ }
600
+
601
+ export interface RefundAppliedToTransaction {
602
+ /**
603
+ * The remaining balance of this credit transaction that has not yet been applied
604
+ * to other transactions or refunded to the customer. Represented as a decimal
605
+ * string.
606
+ */
607
+ creditRemaining: string | null;
608
+
609
+ /**
610
+ * The remaining balance of this credit transaction converted to the home currency
611
+ * of the QuickBooks company file. Represented as a decimal string.
612
+ */
613
+ creditRemainingInHomeCurrency: string | null;
614
+
615
+ /**
616
+ * The case-sensitive user-defined reference number for this credit transaction,
617
+ * which can be used to identify the transaction in QuickBooks. This value is not
618
+ * required to be unique and can be arbitrarily changed by the QuickBooks user.
619
+ */
620
+ refNumber: string | null;
621
+
622
+ /**
623
+ * The monetary amount to refund from the linked credit transaction within this
624
+ * credit transaction, represented as a decimal string.
625
+ */
626
+ refundAmount: string;
627
+
628
+ /**
629
+ * The monetary amount to refund from the linked credit transaction in this credit
630
+ * transaction, converted to the home currency of the QuickBooks company file.
631
+ * Represented as a decimal string.
632
+ */
633
+ refundAmountInHomeCurrency: string | null;
634
+
635
+ /**
636
+ * The date of this credit transaction, in ISO 8601 format (YYYY-MM-DD).
637
+ */
638
+ transactionDate: string | null;
639
+
640
+ /**
641
+ * The ID of the credit transaction being refunded by this credit card refund.
642
+ */
643
+ transactionId: string;
644
+
645
+ /**
646
+ * The type of transaction for this credit transaction.
647
+ */
648
+ transactionType:
649
+ | 'ar_refund_credit_card'
650
+ | 'bill'
651
+ | 'bill_payment_check'
652
+ | 'bill_payment_credit_card'
653
+ | 'build_assembly'
654
+ | 'charge'
655
+ | 'check'
656
+ | 'credit_card_charge'
657
+ | 'credit_card_credit'
658
+ | 'credit_memo'
659
+ | 'deposit'
660
+ | 'estimate'
661
+ | 'inventory_adjustment'
662
+ | 'invoice'
663
+ | 'item_receipt'
664
+ | 'journal_entry'
665
+ | 'liability_adjustment'
666
+ | 'paycheck'
667
+ | 'payroll_liability_check'
668
+ | 'purchase_order'
669
+ | 'receive_payment'
670
+ | 'sales_order'
671
+ | 'sales_receipt'
672
+ | 'sales_tax_payment_check'
673
+ | 'transfer'
674
+ | 'vendor_credit'
675
+ | 'ytd_adjustment';
676
+ }
677
+
678
+ /**
679
+ * The account providing funds for this credit card refund. This is typically the
680
+ * Undeposited Funds account used to hold customer payments.
681
+ */
682
+ export interface RefundFromAccount {
683
+ /**
684
+ * The unique identifier assigned by QuickBooks to this object. This ID is unique
685
+ * across all objects of the same type, but not across different QuickBooks object
686
+ * types.
687
+ */
688
+ id: string | null;
689
+
690
+ /**
691
+ * The fully-qualified unique name for this object, formed by combining the names
692
+ * of its parent objects with its own `name`, separated by colons. Not
693
+ * case-sensitive.
694
+ */
695
+ fullName: string | null;
696
+ }
697
+ }
698
+
699
+ export interface CreditCardRefundDeleteResponse {
700
+ /**
701
+ * The QuickBooks-assigned unique identifier of the deleted credit card refund.
702
+ */
703
+ id: string;
704
+
705
+ /**
706
+ * Indicates whether the credit card refund was deleted.
707
+ */
708
+ deleted: boolean;
709
+
710
+ /**
711
+ * The type of object. This value is always `"qbd_credit_card_refund"`.
712
+ */
713
+ objectType: 'qbd_credit_card_refund';
714
+
715
+ /**
716
+ * The case-sensitive user-defined reference number of the deleted credit card
717
+ * refund.
718
+ */
719
+ refNumber: string | null;
720
+ }
721
+
722
+ export interface CreditCardRefundCreateParams {
723
+ /**
724
+ * Body param: The customer or customer-job associated with this credit card
725
+ * refund.
726
+ */
727
+ customerId: string;
728
+
729
+ /**
730
+ * Body param: The credit transactions to refund in this credit card refund. Each
731
+ * entry links this credit card refund to an existing credit (for example, a credit
732
+ * memo or unused receive-payment credit).
733
+ *
734
+ * **IMPORTANT**: The `refundAmount` for each linked credit cannot exceed that
735
+ * credit's remaining balance, and the combined `refundAmount` across all links
736
+ * cannot exceed this credit card refund's `totalAmount`.
737
+ */
738
+ refundAppliedToTransactions: Array<CreditCardRefundCreateParams.RefundAppliedToTransaction>;
739
+
740
+ /**
741
+ * Body param: The date of this credit card refund, in ISO 8601 format
742
+ * (YYYY-MM-DD).
743
+ */
744
+ transactionDate: string;
745
+
746
+ /**
747
+ * Header param: The ID of the EndUser to receive this request (e.g.,
748
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
749
+ */
750
+ conductorEndUserId: string;
751
+
752
+ /**
753
+ * Body param: The address that is printed on the credit card refund.
754
+ */
755
+ address?: CreditCardRefundCreateParams.Address;
756
+
757
+ /**
758
+ * Body param: The credit card transaction data for this credit card refund's
759
+ * payment when using QuickBooks Merchant Services (QBMS). If specifying this
760
+ * field, you must also specify the `paymentMethod` field.
761
+ */
762
+ creditCardTransaction?: CreditCardRefundCreateParams.CreditCardTransaction;
763
+
764
+ /**
765
+ * Body param: The market exchange rate between this credit card refund's currency
766
+ * and the home currency in QuickBooks at the time of this transaction. Represented
767
+ * as a decimal value (e.g., 1.2345 for 1 EUR = 1.2345 USD if USD is the home
768
+ * currency).
769
+ */
770
+ exchangeRate?: number;
771
+
772
+ /**
773
+ * Body param: A globally unique identifier (GUID) you, the developer, can provide
774
+ * for tracking this object in your external system. This field is immutable and
775
+ * can only be set during object creation.
776
+ *
777
+ * **IMPORTANT**: This field must be formatted as a valid GUID; otherwise,
778
+ * QuickBooks will return an error.
779
+ */
780
+ externalId?: string;
781
+
782
+ /**
783
+ * Body param: A memo or note for this credit card refund.
784
+ */
785
+ memo?: string;
786
+
787
+ /**
788
+ * Body param: The credit card refund's payment method (e.g., cash, check, credit
789
+ * card).
790
+ *
791
+ * **NOTE**: If this credit card refund contains credit card transaction data
792
+ * supplied from QuickBooks Merchant Services (QBMS) transaction responses, you
793
+ * must specify a credit card payment method (e.g., "Visa", "MasterCard", etc.).
794
+ */
795
+ paymentMethodId?: string;
796
+
797
+ /**
798
+ * Body param: The Accounts-Receivable (A/R) account to which this credit card
799
+ * refund is assigned, used to track the amount owed. If not specified, QuickBooks
800
+ * Desktop will use its default A/R account.
801
+ *
802
+ * **IMPORTANT**: If this credit card refund is linked to other transactions, this
803
+ * A/R account must match the `receivablesAccount` used in all linked transactions.
804
+ * For example, when refunding a credit card payment, the A/R account must match
805
+ * the one used in each linked credit transaction being refunded.
806
+ */
807
+ receivablesAccountId?: string;
808
+
809
+ /**
810
+ * Body param: The case-sensitive user-defined reference number for this credit
811
+ * card refund, which can be used to identify the transaction in QuickBooks. This
812
+ * value is not required to be unique and can be arbitrarily changed by the
813
+ * QuickBooks user. When left blank in this create request, this field will be left
814
+ * blank in QuickBooks (i.e., it does _not_ auto-increment).
815
+ */
816
+ refNumber?: string;
817
+
818
+ /**
819
+ * Body param: The account providing funds for this credit card refund. This is
820
+ * typically the Undeposited Funds account used to hold customer payments. If
821
+ * omitted, QuickBooks Desktop will use the default Undeposited Funds account.
822
+ */
823
+ refundFromAccountId?: string;
824
+ }
825
+
826
+ export namespace CreditCardRefundCreateParams {
827
+ export interface RefundAppliedToTransaction {
828
+ /**
829
+ * The monetary amount to refund from the linked credit transaction within this
830
+ * credit transaction, represented as a decimal string.
831
+ */
832
+ refundAmount: string;
833
+
834
+ /**
835
+ * The ID of the credit transaction being refunded by this credit card refund.
836
+ */
837
+ transactionId: string;
838
+ }
839
+
840
+ /**
841
+ * The address that is printed on the credit card refund.
842
+ */
843
+ export interface Address {
844
+ /**
845
+ * The city, district, suburb, town, or village name of the address.
846
+ *
847
+ * Maximum length: 31 characters.
848
+ */
849
+ city?: string;
850
+
851
+ /**
852
+ * The country name of the address.
853
+ */
854
+ country?: string;
855
+
856
+ /**
857
+ * The first line of the address (e.g., street, PO Box, or company name).
858
+ *
859
+ * Maximum length: 41 characters.
860
+ */
861
+ line1?: string;
862
+
863
+ /**
864
+ * The second line of the address, if needed (e.g., apartment, suite, unit, or
865
+ * building).
866
+ *
867
+ * Maximum length: 41 characters.
868
+ */
869
+ line2?: string;
870
+
871
+ /**
872
+ * The third line of the address, if needed.
873
+ *
874
+ * Maximum length: 41 characters.
875
+ */
876
+ line3?: string;
877
+
878
+ /**
879
+ * The fourth line of the address, if needed.
880
+ *
881
+ * Maximum length: 41 characters.
882
+ */
883
+ line4?: string;
884
+
885
+ /**
886
+ * The fifth line of the address, if needed.
887
+ *
888
+ * Maximum length: 41 characters.
889
+ */
890
+ line5?: string;
891
+
892
+ /**
893
+ * A note written at the bottom of the address in the form in which it appears,
894
+ * such as the invoice form.
895
+ */
896
+ note?: string;
897
+
898
+ /**
899
+ * The postal code or ZIP code of the address.
900
+ *
901
+ * Maximum length: 13 characters.
902
+ */
903
+ postalCode?: string;
904
+
905
+ /**
906
+ * The state, county, province, or region name of the address.
907
+ *
908
+ * Maximum length: 21 characters.
909
+ */
910
+ state?: string;
911
+ }
912
+
913
+ /**
914
+ * The credit card transaction data for this credit card refund's payment when
915
+ * using QuickBooks Merchant Services (QBMS). If specifying this field, you must
916
+ * also specify the `paymentMethod` field.
917
+ */
918
+ export interface CreditCardTransaction {
919
+ /**
920
+ * The transaction request data originally supplied for this credit card
921
+ * transaction when using QuickBooks Merchant Services (QBMS).
922
+ */
923
+ request?: CreditCardTransaction.Request;
924
+
925
+ /**
926
+ * The transaction response data for this credit card transaction when using
927
+ * QuickBooks Merchant Services (QBMS).
928
+ */
929
+ response?: CreditCardTransaction.Response;
930
+ }
931
+
932
+ export namespace CreditCardTransaction {
933
+ /**
934
+ * The transaction request data originally supplied for this credit card
935
+ * transaction when using QuickBooks Merchant Services (QBMS).
936
+ */
937
+ export interface Request {
938
+ /**
939
+ * The month when the credit card expires.
940
+ */
941
+ expirationMonth: number;
942
+
943
+ /**
944
+ * The year when the credit card expires.
945
+ */
946
+ expirationYear: number;
947
+
948
+ /**
949
+ * The cardholder's name on the card.
950
+ */
951
+ name: string;
952
+
953
+ /**
954
+ * The credit card number. Must be masked with lower case "x" and no dashes.
955
+ */
956
+ number: string;
957
+
958
+ /**
959
+ * The card's billing address.
960
+ */
961
+ address?: string;
962
+
963
+ /**
964
+ * The commercial card code identifies the type of business credit card being used
965
+ * (purchase, corporate, or business) for Visa and Mastercard transactions only.
966
+ * When provided, this code may qualify the transaction for lower processing fees
967
+ * compared to the standard rates that apply when no code is specified.
968
+ */
969
+ commercialCardCode?: string;
970
+
971
+ /**
972
+ * The card's billing address ZIP or postal code.
973
+ */
974
+ postalCode?: string;
975
+
976
+ /**
977
+ * Indicates whether this credit card transaction came from a card swipe
978
+ * (`card_present`) or not (`card_not_present`).
979
+ */
980
+ transactionMode?: 'card_not_present' | 'card_present';
981
+
982
+ /**
983
+ * The QBMS transaction type from which the current transaction data originated.
984
+ */
985
+ transactionType?: 'authorization' | 'capture' | 'charge' | 'refund' | 'voice_authorization';
986
+ }
987
+
988
+ /**
989
+ * The transaction response data for this credit card transaction when using
990
+ * QuickBooks Merchant Services (QBMS).
991
+ */
992
+ export interface Response {
993
+ /**
994
+ * The ID returned from the credit card processor for this credit card transaction.
995
+ */
996
+ creditCardTransactionId: string;
997
+
998
+ /**
999
+ * The QBMS account number of the merchant who is running this transaction using
1000
+ * the customer's credit card.
1001
+ */
1002
+ merchantAccountNumber: string;
1003
+
1004
+ /**
1005
+ * Indicates whether this credit card transaction is known to have been
1006
+ * successfully processed by the card issuer.
1007
+ */
1008
+ paymentStatus: 'completed' | 'unknown';
1009
+
1010
+ /**
1011
+ * The status code returned in the original QBMS transaction response for this
1012
+ * credit card transaction.
1013
+ */
1014
+ statusCode: number;
1015
+
1016
+ /**
1017
+ * The status message returned in the original QBMS transaction response for this
1018
+ * credit card transaction.
1019
+ */
1020
+ statusMessage: string;
1021
+
1022
+ /**
1023
+ * The date and time when the credit card processor authorized this credit card
1024
+ * transaction.
1025
+ */
1026
+ transactionAuthorizedAt: string;
1027
+
1028
+ /**
1029
+ * The authorization code returned from the credit card processor to indicate that
1030
+ * this charge will be paid by the card issuer.
1031
+ */
1032
+ authorizationCode?: string;
1033
+
1034
+ /**
1035
+ * Indicates whether the street address supplied in the transaction request matches
1036
+ * the customer's address on file at the card issuer.
1037
+ */
1038
+ avsStreetStatus?: 'fail' | 'not_available' | 'pass';
1039
+
1040
+ /**
1041
+ * Indicates whether the customer postal ZIP code supplied in the transaction
1042
+ * request matches the customer's postal code recognized at the card issuer.
1043
+ */
1044
+ avsZipStatus?: 'fail' | 'not_available' | 'pass';
1045
+
1046
+ /**
1047
+ * Indicates whether the card security code supplied in the transaction request
1048
+ * matches the card security code recognized for that credit card number at the
1049
+ * card issuer.
1050
+ */
1051
+ cardSecurityCodeMatch?: 'fail' | 'not_available' | 'pass';
1052
+
1053
+ /**
1054
+ * A value returned from QBMS transactions for future use by the QuickBooks
1055
+ * Reconciliation feature.
1056
+ */
1057
+ clientTransactionId?: string;
1058
+
1059
+ /**
1060
+ * An internal code returned by QuickBooks Merchant Services (QBMS) from the
1061
+ * transaction request, needed for the QuickBooks reconciliation feature.
1062
+ */
1063
+ paymentGroupingCode?: number;
1064
+
1065
+ /**
1066
+ * An internal ID returned by QuickBooks Merchant Services (QBMS) from the
1067
+ * transaction request, needed for the QuickBooks reconciliation feature.
1068
+ */
1069
+ reconBatchId?: string;
1070
+
1071
+ /**
1072
+ * An internal value for this credit card transaction, needed for the QuickBooks
1073
+ * reconciliation feature.
1074
+ */
1075
+ transactionAuthorizationStamp?: number;
1076
+ }
1077
+ }
1078
+ }
1079
+
1080
+ export interface CreditCardRefundRetrieveParams {
1081
+ /**
1082
+ * The ID of the EndUser to receive this request (e.g.,
1083
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1084
+ */
1085
+ conductorEndUserId: string;
1086
+ }
1087
+
1088
+ export interface CreditCardRefundListParams extends CursorPageParams {
1089
+ /**
1090
+ * Header param: The ID of the EndUser to receive this request (e.g.,
1091
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1092
+ */
1093
+ conductorEndUserId: string;
1094
+
1095
+ /**
1096
+ * Query param: Filter for credit card refunds associated with these accounts.
1097
+ */
1098
+ accountIds?: Array<string>;
1099
+
1100
+ /**
1101
+ * Query param: Filter for credit card refunds in these currencies.
1102
+ */
1103
+ currencyIds?: Array<string>;
1104
+
1105
+ /**
1106
+ * Query param: Filter for credit card refunds refunded to these customers.
1107
+ */
1108
+ customerIds?: Array<string>;
1109
+
1110
+ /**
1111
+ * Query param: Filter for specific credit card refunds by their
1112
+ * QuickBooks-assigned unique identifier(s).
1113
+ *
1114
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1115
+ * query parameters for this request.
1116
+ *
1117
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1118
+ * request will return an error.
1119
+ */
1120
+ ids?: Array<string>;
1121
+
1122
+ /**
1123
+ * Query param: Whether to include line items in the response. Defaults to `true`.
1124
+ */
1125
+ includeLineItems?: boolean;
1126
+
1127
+ /**
1128
+ * Query param: Filter for credit card refunds whose `refNumber` contains this
1129
+ * substring.
1130
+ *
1131
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberStartsWith`
1132
+ * or `refNumberEndsWith`.
1133
+ */
1134
+ refNumberContains?: string;
1135
+
1136
+ /**
1137
+ * Query param: Filter for credit card refunds whose `refNumber` ends with this
1138
+ * substring.
1139
+ *
1140
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberContains` or
1141
+ * `refNumberStartsWith`.
1142
+ */
1143
+ refNumberEndsWith?: string;
1144
+
1145
+ /**
1146
+ * Query param: Filter for credit card refunds whose `refNumber` is greater than or
1147
+ * equal to this value. If omitted, the range will begin with the first number of
1148
+ * the list. Uses a numerical comparison for values that contain only digits;
1149
+ * otherwise, uses a lexicographical comparison.
1150
+ */
1151
+ refNumberFrom?: string;
1152
+
1153
+ /**
1154
+ * Query param: Filter for specific credit card refunds by their ref-number(s),
1155
+ * case-sensitive. In QuickBooks, ref-numbers are not required to be unique and can
1156
+ * be arbitrarily changed by the QuickBooks user.
1157
+ *
1158
+ * **IMPORTANT**: If you include this parameter, QuickBooks will ignore all other
1159
+ * query parameters for this request.
1160
+ *
1161
+ * **NOTE**: If any of the values you specify in this parameter are not found, the
1162
+ * request will return an error.
1163
+ */
1164
+ refNumbers?: Array<string>;
1165
+
1166
+ /**
1167
+ * Query param: Filter for credit card refunds whose `refNumber` starts with this
1168
+ * substring.
1169
+ *
1170
+ * **NOTE**: If you use this parameter, you cannot also use `refNumberContains` or
1171
+ * `refNumberEndsWith`.
1172
+ */
1173
+ refNumberStartsWith?: string;
1174
+
1175
+ /**
1176
+ * Query param: Filter for credit card refunds whose `refNumber` is less than or
1177
+ * equal to this value. If omitted, the range will end with the last number of the
1178
+ * list. Uses a numerical comparison for values that contain only digits;
1179
+ * otherwise, uses a lexicographical comparison.
1180
+ */
1181
+ refNumberTo?: string;
1182
+
1183
+ /**
1184
+ * Query param: Filter for credit card refunds whose `date` field is on or after
1185
+ * this date, in ISO 8601 format (YYYY-MM-DD).
1186
+ *
1187
+ * **NOTE:** QuickBooks Desktop interprets this date as the **start of the
1188
+ * specified day** in the local timezone of the end-user's computer (e.g.,
1189
+ * `2025-01-01` → `2025-01-01T00:00:00`).
1190
+ */
1191
+ transactionDateFrom?: string;
1192
+
1193
+ /**
1194
+ * Query param: Filter for credit card refunds whose `date` field is on or before
1195
+ * this date, in ISO 8601 format (YYYY-MM-DD).
1196
+ *
1197
+ * **NOTE:** QuickBooks Desktop interprets this date as the **end of the specified
1198
+ * day** in the local timezone of the end-user's computer (e.g., `2025-01-01` →
1199
+ * `2025-01-01T23:59:59`).
1200
+ */
1201
+ transactionDateTo?: string;
1202
+
1203
+ /**
1204
+ * Query param: Filter for credit card refunds updated on or after this date/time.
1205
+ * Accepts the following ISO 8601 formats:
1206
+ *
1207
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
1208
+ * **start of the specified day** in the local timezone of the end-user's
1209
+ * computer (e.g., `2025-01-01` → `2025-01-01T00:00:00`).
1210
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
1211
+ * interprets the timestamp in the local timezone of the end-user's computer.
1212
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
1213
+ * interprets the timestamp using the specified timezone.
1214
+ */
1215
+ updatedAfter?: string;
1216
+
1217
+ /**
1218
+ * Query param: Filter for credit card refunds updated on or before this date/time.
1219
+ * Accepts the following ISO 8601 formats:
1220
+ *
1221
+ * - **date-only** (YYYY-MM-DD) - QuickBooks Desktop interprets the date as the
1222
+ * **end of the specified day** in the local timezone of the end-user's computer
1223
+ * (e.g., `2025-01-01` → `2025-01-01T23:59:59`).
1224
+ * - **datetime without timezone** (YYYY-MM-DDTHH:mm:ss) - QuickBooks Desktop
1225
+ * interprets the timestamp in the local timezone of the end-user's computer.
1226
+ * - **datetime with timezone** (YYYY-MM-DDTHH:mm:ss±HH:mm) - QuickBooks Desktop
1227
+ * interprets the timestamp using the specified timezone.
1228
+ */
1229
+ updatedBefore?: string;
1230
+ }
1231
+
1232
+ export interface CreditCardRefundDeleteParams {
1233
+ /**
1234
+ * The ID of the EndUser to receive this request (e.g.,
1235
+ * `"Conductor-End-User-Id: {{END_USER_ID}}"`).
1236
+ */
1237
+ conductorEndUserId: string;
1238
+ }
1239
+
1240
+ CreditCardRefunds.CreditCardRefundsCursorPage = CreditCardRefundsCursorPage;
1241
+
1242
+ export declare namespace CreditCardRefunds {
1243
+ export {
1244
+ type CreditCardRefund as CreditCardRefund,
1245
+ type CreditCardRefundDeleteResponse as CreditCardRefundDeleteResponse,
1246
+ CreditCardRefundsCursorPage as CreditCardRefundsCursorPage,
1247
+ type CreditCardRefundCreateParams as CreditCardRefundCreateParams,
1248
+ type CreditCardRefundRetrieveParams as CreditCardRefundRetrieveParams,
1249
+ type CreditCardRefundListParams as CreditCardRefundListParams,
1250
+ type CreditCardRefundDeleteParams as CreditCardRefundDeleteParams,
1251
+ };
1252
+ }