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
@@ -294,9 +294,7 @@ export interface CreditMemo {
294
294
  * default A/R account.
295
295
  *
296
296
  * **IMPORTANT**: If this credit memo is linked to other transactions, this A/R
297
- * account must match the `receivablesAccount` used in all linked transactions. For
298
- * example, when refunding a credit card payment, the A/R account must match the
299
- * one used in the original credit transactions being refunded.
297
+ * account must match the `receivablesAccount` used in all linked transactions.
300
298
  */
301
299
  receivablesAccount: CreditMemo.ReceivablesAccount | null;
302
300
 
@@ -1505,7 +1503,8 @@ export namespace CreditMemo {
1505
1503
  | 'sales_tax_payment_check'
1506
1504
  | 'transfer'
1507
1505
  | 'vendor_credit'
1508
- | 'ytd_adjustment';
1506
+ | 'ytd_adjustment'
1507
+ | 'unknown';
1509
1508
  }
1510
1509
 
1511
1510
  /**
@@ -1514,9 +1513,7 @@ export namespace CreditMemo {
1514
1513
  * default A/R account.
1515
1514
  *
1516
1515
  * **IMPORTANT**: If this credit memo is linked to other transactions, this A/R
1517
- * account must match the `receivablesAccount` used in all linked transactions. For
1518
- * example, when refunding a credit card payment, the A/R account must match the
1519
- * one used in the original credit transactions being refunded.
1516
+ * account must match the `receivablesAccount` used in all linked transactions.
1520
1517
  */
1521
1518
  export interface ReceivablesAccount {
1522
1519
  /**
@@ -1851,9 +1848,7 @@ export interface CreditMemoCreateParams {
1851
1848
  * will use its default A/R account.
1852
1849
  *
1853
1850
  * **IMPORTANT**: If this credit memo is linked to other transactions, this A/R
1854
- * account must match the `receivablesAccount` used in all linked transactions. For
1855
- * example, when refunding a credit card payment, the A/R account must match the
1856
- * one used in the original credit transactions being refunded.
1851
+ * account must match the `receivablesAccount` used in all linked transactions.
1857
1852
  */
1858
1853
  receivablesAccountId?: string;
1859
1854
 
@@ -2460,9 +2455,7 @@ export interface CreditMemoUpdateParams {
2460
2455
  * will use its default A/R account.
2461
2456
  *
2462
2457
  * **IMPORTANT**: If this credit memo is linked to other transactions, this A/R
2463
- * account must match the `receivablesAccount` used in all linked transactions. For
2464
- * example, when refunding a credit card payment, the A/R account must match the
2465
- * one used in the original credit transactions being refunded.
2458
+ * account must match the `receivablesAccount` used in all linked transactions.
2466
2459
  */
2467
2460
  receivablesAccountId?: string;
2468
2461
 
@@ -474,14 +474,15 @@ export namespace Employee {
474
474
  postalCode: string | null;
475
475
 
476
476
  /**
477
- * The state, county, province, or region name of the employee address.
477
+ * The U.S. state of the employee address. QuickBooks requires this field to be a
478
+ * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
479
+ * values.
478
480
  *
479
- * **NOTE:** This `state` field is an enum when creating or updating an employee,
480
- * but a plain string when returning an employee. On input, QuickBooks Desktop
481
- * rejects any non-standard state values for employee addresses; hence, we must use
482
- * an enum for the input. However, when returning an employee address, we have seen
483
- * QuickBooks return non-standard state values (like 'ON') that do not conform to
484
- * the enum; hence, we use a plain string on return to support unexpected values.
481
+ * **NOTE:** This `state` field stays enum-constrained when creating or updating an
482
+ * employee because QuickBooks Desktop rejects non-standard values on input. In
483
+ * responses, though, we've seen QuickBooks return values outside its own enum
484
+ * (like 'ON'), so Conductor surfaces the raw QuickBooks string unchanged instead
485
+ * of enforcing the enum.
485
486
  */
486
487
  state: string | null;
487
488
  }
@@ -1228,13 +1229,6 @@ export namespace EmployeeCreateParams {
1228
1229
  * The U.S. state of the employee address. QuickBooks requires this field to be a
1229
1230
  * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
1230
1231
  * values.
1231
- *
1232
- * **NOTE:** This `state` field is an enum when creating or updating an employee,
1233
- * but a plain string when returning an employee. On input, QuickBooks Desktop
1234
- * rejects any non-standard state values for employee addresses; hence, we must use
1235
- * an enum for the input. However, when returning an employee address, we have seen
1236
- * QuickBooks return non-standard state values (like 'ON') that do not conform to
1237
- * the enum; hence, we use a plain string on return to support unexpected values.
1238
1232
  */
1239
1233
  state?:
1240
1234
  | 'none'
@@ -1896,13 +1890,6 @@ export namespace EmployeeUpdateParams {
1896
1890
  * The U.S. state of the employee address. QuickBooks requires this field to be a
1897
1891
  * U.S. state abbreviation (e.g., "CA" for California). See enum for all possible
1898
1892
  * values.
1899
- *
1900
- * **NOTE:** This `state` field is an enum when creating or updating an employee,
1901
- * but a plain string when returning an employee. On input, QuickBooks Desktop
1902
- * rejects any non-standard state values for employee addresses; hence, we must use
1903
- * an enum for the input. However, when returning an employee address, we have seen
1904
- * QuickBooks return non-standard state values (like 'ON') that do not conform to
1905
- * the enum; hence, we use a plain string on return to support unexpected values.
1906
1893
  */
1907
1894
  state?:
1908
1895
  | 'none'
@@ -1438,7 +1438,8 @@ export namespace Estimate {
1438
1438
  | 'sales_tax_payment_check'
1439
1439
  | 'transfer'
1440
1440
  | 'vendor_credit'
1441
- | 'ytd_adjustment';
1441
+ | 'ytd_adjustment'
1442
+ | 'unknown';
1442
1443
  }
1443
1444
 
1444
1445
  /**
@@ -101,6 +101,16 @@ export {
101
101
  type CreditCardCreditListParams,
102
102
  type CreditCardCreditDeleteParams,
103
103
  } from "./credit-card-credits.js";
104
+ export {
105
+ CreditCardRefundsCursorPage,
106
+ CreditCardRefunds,
107
+ type CreditCardRefund,
108
+ type CreditCardRefundDeleteResponse,
109
+ type CreditCardRefundCreateParams,
110
+ type CreditCardRefundRetrieveParams,
111
+ type CreditCardRefundListParams,
112
+ type CreditCardRefundDeleteParams,
113
+ } from "./credit-card-refunds.js";
104
114
  export {
105
115
  CreditMemosCursorPage,
106
116
  CreditMemos,
@@ -375,7 +375,7 @@ export namespace InventoryAdjustment {
375
375
  /**
376
376
  * The inventory item associated with this inventory adjustment line.
377
377
  */
378
- item: Line.Item;
378
+ item: Line.Item | null;
379
379
 
380
380
  /**
381
381
  * The lot number of the item associated with this inventory adjustment line. Used
@@ -305,9 +305,7 @@ export interface Invoice {
305
305
  * A/R account.
306
306
  *
307
307
  * **IMPORTANT**: If this invoice is linked to other transactions, this A/R account
308
- * must match the `receivablesAccount` used in all linked transactions. For
309
- * example, when refunding a credit card payment, the A/R account must match the
310
- * one used in the original credit transactions being refunded.
308
+ * must match the `receivablesAccount` used in all linked transactions.
311
309
  */
312
310
  receivablesAccount: Invoice.ReceivablesAccount | null;
313
311
 
@@ -1527,7 +1525,8 @@ export namespace Invoice {
1527
1525
  | 'sales_tax_payment_check'
1528
1526
  | 'transfer'
1529
1527
  | 'vendor_credit'
1530
- | 'ytd_adjustment';
1528
+ | 'ytd_adjustment'
1529
+ | 'unknown';
1531
1530
  }
1532
1531
 
1533
1532
  /**
@@ -1536,9 +1535,7 @@ export namespace Invoice {
1536
1535
  * A/R account.
1537
1536
  *
1538
1537
  * **IMPORTANT**: If this invoice is linked to other transactions, this A/R account
1539
- * must match the `receivablesAccount` used in all linked transactions. For
1540
- * example, when refunding a credit card payment, the A/R account must match the
1541
- * one used in the original credit transactions being refunded.
1538
+ * must match the `receivablesAccount` used in all linked transactions.
1542
1539
  */
1543
1540
  export interface ReceivablesAccount {
1544
1541
  /**
@@ -1925,9 +1922,7 @@ export interface InvoiceCreateParams {
1925
1922
  * will use its default A/R account.
1926
1923
  *
1927
1924
  * **IMPORTANT**: If this invoice is linked to other transactions, this A/R account
1928
- * must match the `receivablesAccount` used in all linked transactions. For
1929
- * example, when refunding a credit card payment, the A/R account must match the
1930
- * one used in the original credit transactions being refunded.
1925
+ * must match the `receivablesAccount` used in all linked transactions.
1931
1926
  */
1932
1927
  receivablesAccountId?: string;
1933
1928
 
@@ -2658,9 +2653,7 @@ export interface InvoiceUpdateParams {
2658
2653
  * will use its default A/R account.
2659
2654
  *
2660
2655
  * **IMPORTANT**: If this invoice is linked to other transactions, this A/R account
2661
- * must match the `receivablesAccount` used in all linked transactions. For
2662
- * example, when refunding a credit card payment, the A/R account must match the
2663
- * one used in the original credit transactions being refunded.
2656
+ * must match the `receivablesAccount` used in all linked transactions.
2664
2657
  */
2665
2658
  receivablesAccountId?: string;
2666
2659
 
@@ -1527,7 +1527,8 @@ export namespace ItemReceipt {
1527
1527
  | 'sales_tax_payment_check'
1528
1528
  | 'transfer'
1529
1529
  | 'vendor_credit'
1530
- | 'ytd_adjustment';
1530
+ | 'ytd_adjustment'
1531
+ | 'unknown';
1531
1532
  }
1532
1533
 
1533
1534
  /**
@@ -1421,7 +1421,8 @@ export namespace PurchaseOrder {
1421
1421
  | 'sales_tax_payment_check'
1422
1422
  | 'transfer'
1423
1423
  | 'vendor_credit'
1424
- | 'ytd_adjustment';
1424
+ | 'ytd_adjustment'
1425
+ | 'unknown';
1425
1426
  }
1426
1427
 
1427
1428
  /**
@@ -114,6 +114,17 @@ import {
114
114
  CreditCardCredits,
115
115
  CreditCardCreditsCursorPage,
116
116
  } from "./credit-card-credits.js";
117
+ import * as CreditCardRefundsAPI from "./credit-card-refunds.js";
118
+ import {
119
+ CreditCardRefund,
120
+ CreditCardRefundCreateParams,
121
+ CreditCardRefundDeleteParams,
122
+ CreditCardRefundDeleteResponse,
123
+ CreditCardRefundListParams,
124
+ CreditCardRefundRetrieveParams,
125
+ CreditCardRefunds,
126
+ CreditCardRefundsCursorPage,
127
+ } from "./credit-card-refunds.js";
117
128
  import * as CreditMemosAPI from "./credit-memos.js";
118
129
  import {
119
130
  CreditMemo,
@@ -547,6 +558,9 @@ export class Qbd extends APIResource {
547
558
  creditCardCredits: CreditCardCreditsAPI.CreditCardCredits = new CreditCardCreditsAPI.CreditCardCredits(
548
559
  this._client,
549
560
  );
561
+ creditCardRefunds: CreditCardRefundsAPI.CreditCardRefunds = new CreditCardRefundsAPI.CreditCardRefunds(
562
+ this._client,
563
+ );
550
564
  creditMemos: CreditMemosAPI.CreditMemos = new CreditMemosAPI.CreditMemos(this._client);
551
565
  currencies: CurrenciesAPI.Currencies = new CurrenciesAPI.Currencies(this._client);
552
566
  customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
@@ -670,6 +684,8 @@ Qbd.CreditCardCharges = CreditCardCharges;
670
684
  Qbd.CreditCardChargesCursorPage = CreditCardChargesCursorPage;
671
685
  Qbd.CreditCardCredits = CreditCardCredits;
672
686
  Qbd.CreditCardCreditsCursorPage = CreditCardCreditsCursorPage;
687
+ Qbd.CreditCardRefunds = CreditCardRefunds;
688
+ Qbd.CreditCardRefundsCursorPage = CreditCardRefundsCursorPage;
673
689
  Qbd.CreditMemos = CreditMemos;
674
690
  Qbd.CreditMemosCursorPage = CreditMemosCursorPage;
675
691
  Qbd.Currencies = Currencies;
@@ -860,6 +876,17 @@ export declare namespace Qbd {
860
876
  type CreditCardCreditDeleteParams as CreditCardCreditDeleteParams,
861
877
  };
862
878
 
879
+ export {
880
+ CreditCardRefunds as CreditCardRefunds,
881
+ type CreditCardRefund as CreditCardRefund,
882
+ type CreditCardRefundDeleteResponse as CreditCardRefundDeleteResponse,
883
+ CreditCardRefundsCursorPage as CreditCardRefundsCursorPage,
884
+ type CreditCardRefundCreateParams as CreditCardRefundCreateParams,
885
+ type CreditCardRefundRetrieveParams as CreditCardRefundRetrieveParams,
886
+ type CreditCardRefundListParams as CreditCardRefundListParams,
887
+ type CreditCardRefundDeleteParams as CreditCardRefundDeleteParams,
888
+ };
889
+
863
890
  export {
864
891
  CreditMemos as CreditMemos,
865
892
  type CreditMemo as CreditMemo,
@@ -221,9 +221,7 @@ export interface ReceivePayment {
221
221
  * default A/R account.
222
222
  *
223
223
  * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
224
- * account must match the `receivablesAccount` used in all linked transactions. For
225
- * example, when refunding a credit card payment, the A/R account must match the
226
- * one used in the original credit transactions being refunded.
224
+ * account must match the `receivablesAccount` used in all linked transactions.
227
225
  */
228
226
  receivablesAccount: ReceivePayment.ReceivablesAccount | null;
229
227
 
@@ -482,7 +480,8 @@ export namespace ReceivePayment {
482
480
  | 'sales_tax_payment_check'
483
481
  | 'transfer'
484
482
  | 'vendor_credit'
485
- | 'ytd_adjustment';
483
+ | 'ytd_adjustment'
484
+ | 'unknown';
486
485
  }
487
486
  }
488
487
 
@@ -775,9 +774,7 @@ export namespace ReceivePayment {
775
774
  * default A/R account.
776
775
  *
777
776
  * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
778
- * account must match the `receivablesAccount` used in all linked transactions. For
779
- * example, when refunding a credit card payment, the A/R account must match the
780
- * one used in the original credit transactions being refunded.
777
+ * account must match the `receivablesAccount` used in all linked transactions.
781
778
  */
782
779
  export interface ReceivablesAccount {
783
780
  /**
@@ -929,9 +926,7 @@ export interface ReceivePaymentCreateParams {
929
926
  * will use its default A/R account.
930
927
  *
931
928
  * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
932
- * account must match the `receivablesAccount` used in all linked transactions. For
933
- * example, when refunding a credit card payment, the A/R account must match the
934
- * one used in the original credit transactions being refunded.
929
+ * account must match the `receivablesAccount` used in all linked transactions.
935
930
  */
936
931
  receivablesAccountId?: string;
937
932
 
@@ -1259,9 +1254,7 @@ export interface ReceivePaymentUpdateParams {
1259
1254
  * will use its default A/R account.
1260
1255
  *
1261
1256
  * **IMPORTANT**: If this receive-payment is linked to other transactions, this A/R
1262
- * account must match the `receivablesAccount` used in all linked transactions. For
1263
- * example, when refunding a credit card payment, the A/R account must match the
1264
- * one used in the original credit transactions being refunded.
1257
+ * account must match the `receivablesAccount` used in all linked transactions.
1265
1258
  */
1266
1259
  receivablesAccountId?: string;
1267
1260
 
@@ -1517,7 +1517,8 @@ export namespace SalesOrder {
1517
1517
  | 'sales_tax_payment_check'
1518
1518
  | 'transfer'
1519
1519
  | 'vendor_credit'
1520
- | 'ytd_adjustment';
1520
+ | 'ytd_adjustment'
1521
+ | 'unknown';
1521
1522
  }
1522
1523
 
1523
1524
  /**
@@ -1510,7 +1510,8 @@ export namespace VendorCredit {
1510
1510
  | 'sales_tax_payment_check'
1511
1511
  | 'transfer'
1512
1512
  | 'vendor_credit'
1513
- | 'ytd_adjustment';
1513
+ | 'ytd_adjustment'
1514
+ | 'unknown';
1514
1515
  }
1515
1516
 
1516
1517
  /**
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '12.31.1'; // x-release-please-version
1
+ export const VERSION = '12.33.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "12.31.1";
1
+ export declare const VERSION = "12.33.0";
2
2
  //# sourceMappingURL=version.d.ts.map
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.31.1'; // x-release-please-version
4
+ exports.VERSION = '12.33.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '12.31.1'; // x-release-please-version
1
+ export const VERSION = '12.33.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map