increase 0.16.0 → 0.17.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 (104) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/README.md +39 -0
  3. package/core.d.ts +1 -0
  4. package/core.d.ts.map +1 -1
  5. package/core.js +5 -1
  6. package/core.js.map +1 -1
  7. package/core.mjs +5 -1
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +6 -4
  10. package/index.d.ts +6 -4
  11. package/index.d.ts.map +1 -1
  12. package/index.js +1 -2
  13. package/index.js.map +1 -1
  14. package/index.mjs +1 -2
  15. package/index.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/accounts.d.ts +38 -0
  18. package/resources/accounts.d.ts.map +1 -1
  19. package/resources/accounts.js +6 -0
  20. package/resources/accounts.js.map +1 -1
  21. package/resources/accounts.mjs +6 -0
  22. package/resources/accounts.mjs.map +1 -1
  23. package/resources/bookkeeping-accounts.d.ts +36 -1
  24. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  25. package/resources/bookkeeping-accounts.js +6 -0
  26. package/resources/bookkeeping-accounts.js.map +1 -1
  27. package/resources/bookkeeping-accounts.mjs +6 -0
  28. package/resources/bookkeeping-accounts.mjs.map +1 -1
  29. package/resources/bookkeeping-entries.d.ts +11 -1
  30. package/resources/bookkeeping-entries.d.ts.map +1 -1
  31. package/resources/bookkeeping-entries.js +6 -0
  32. package/resources/bookkeeping-entries.js.map +1 -1
  33. package/resources/bookkeeping-entries.mjs +6 -0
  34. package/resources/bookkeeping-entries.mjs.map +1 -1
  35. package/resources/bookkeeping-entry-sets.d.ts +28 -1
  36. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  37. package/resources/bookkeeping-entry-sets.js +43 -1
  38. package/resources/bookkeeping-entry-sets.js.map +1 -1
  39. package/resources/bookkeeping-entry-sets.mjs +18 -0
  40. package/resources/bookkeeping-entry-sets.mjs.map +1 -1
  41. package/resources/card-payments.d.ts +36 -0
  42. package/resources/card-payments.d.ts.map +1 -1
  43. package/resources/card-payments.js.map +1 -1
  44. package/resources/card-payments.mjs.map +1 -1
  45. package/resources/declined-transactions.d.ts +28 -0
  46. package/resources/declined-transactions.d.ts.map +1 -1
  47. package/resources/declined-transactions.js.map +1 -1
  48. package/resources/declined-transactions.mjs.map +1 -1
  49. package/resources/exports.d.ts +29 -2
  50. package/resources/exports.d.ts.map +1 -1
  51. package/resources/exports.js.map +1 -1
  52. package/resources/exports.mjs.map +1 -1
  53. package/resources/index.d.ts +3 -4
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +2 -3
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +1 -2
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/pending-transactions.d.ts +18 -0
  60. package/resources/pending-transactions.d.ts.map +1 -1
  61. package/resources/pending-transactions.js.map +1 -1
  62. package/resources/pending-transactions.mjs.map +1 -1
  63. package/resources/real-time-decisions.d.ts +18 -0
  64. package/resources/real-time-decisions.d.ts.map +1 -1
  65. package/resources/real-time-decisions.js.map +1 -1
  66. package/resources/real-time-decisions.mjs.map +1 -1
  67. package/resources/simulations/ach-transfers.d.ts +28 -0
  68. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  69. package/resources/simulations/ach-transfers.js.map +1 -1
  70. package/resources/simulations/ach-transfers.mjs.map +1 -1
  71. package/resources/simulations/cards.d.ts +46 -0
  72. package/resources/simulations/cards.d.ts.map +1 -1
  73. package/resources/simulations/cards.js.map +1 -1
  74. package/resources/simulations/cards.mjs.map +1 -1
  75. package/resources/simulations/real-time-payments-transfers.d.ts +28 -0
  76. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  77. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  78. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  79. package/src/core.ts +11 -2
  80. package/src/index.ts +6 -5
  81. package/src/resources/accounts.ts +58 -0
  82. package/src/resources/bookkeeping-accounts.ts +58 -1
  83. package/src/resources/bookkeeping-entries.ts +15 -1
  84. package/src/resources/bookkeeping-entry-sets.ts +50 -1
  85. package/src/resources/card-payments.ts +50 -0
  86. package/src/resources/declined-transactions.ts +37 -0
  87. package/src/resources/exports.ts +42 -2
  88. package/src/resources/index.ts +6 -1
  89. package/src/resources/pending-transactions.ts +25 -0
  90. package/src/resources/real-time-decisions.ts +25 -0
  91. package/src/resources/simulations/ach-transfers.ts +37 -0
  92. package/src/resources/simulations/cards.ts +62 -0
  93. package/src/resources/simulations/real-time-payments-transfers.ts +37 -0
  94. package/src/version.ts +1 -1
  95. package/version.d.ts +1 -1
  96. package/version.js +1 -1
  97. package/version.mjs +1 -1
  98. package/resources/balance-lookups.d.ts +0 -49
  99. package/resources/balance-lookups.d.ts.map +0 -1
  100. package/resources/balance-lookups.js +0 -17
  101. package/resources/balance-lookups.js.map +0 -1
  102. package/resources/balance-lookups.mjs +0 -13
  103. package/resources/balance-lookups.mjs.map +0 -1
  104. package/src/resources/balance-lookups.ts +0 -63
@@ -378,6 +378,31 @@ export namespace DeclinedTransaction {
378
378
  */
379
379
  physical_card_id: string | null;
380
380
 
381
+ /**
382
+ * The processing category describes the intent behind the authorization, such as
383
+ * whether it was used for bill payments or an automatic fuel dispenser.
384
+ *
385
+ * - `account_funding` - Account funding transactions are transactions used to
386
+ * e.g., fund an account or transfer funds between accounts.
387
+ * - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
388
+ * when a card is used at a gas pump, prior to the actual transaction amount
389
+ * being known. They are followed by an advice message that updates the amount of
390
+ * the pending transaction.
391
+ * - `bill_payment` - A transaction used to pay a bill.
392
+ * - `purchase` - A regular purchase.
393
+ * - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
394
+ * be convertible to cash.
395
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
396
+ * voucher authorization, where funds are credited to the cardholder.
397
+ */
398
+ processing_category:
399
+ | 'account_funding'
400
+ | 'automatic_fuel_dispenser'
401
+ | 'bill_payment'
402
+ | 'purchase'
403
+ | 'quasi_cash'
404
+ | 'refund';
405
+
381
406
  /**
382
407
  * The identifier of the Real-Time Decision sent to approve or decline this
383
408
  * transaction.
@@ -658,6 +683,18 @@ export namespace DeclinedTransaction {
658
683
  */
659
684
  auxiliary_on_us: string | null;
660
685
 
686
+ /**
687
+ * The identifier of the API File object containing an image of the back of the
688
+ * declined check.
689
+ */
690
+ back_image_file_id: string | null;
691
+
692
+ /**
693
+ * The identifier of the API File object containing an image of the front of the
694
+ * declined check.
695
+ */
696
+ front_image_file_id: string | null;
697
+
661
698
  /**
662
699
  * Why the check was declined.
663
700
  *
@@ -63,8 +63,14 @@ export interface Export {
63
63
  * range.
64
64
  * - `bookkeeping_account_balance_csv` - Export a CSV of bookkeeping account
65
65
  * balances for the dates in a given range.
66
+ * - `entity_csv` - Export a CSV of entities with a given status.
66
67
  */
67
- category: 'account_statement_ofx' | 'transaction_csv' | 'balance_csv' | 'bookkeeping_account_balance_csv';
68
+ category:
69
+ | 'account_statement_ofx'
70
+ | 'transaction_csv'
71
+ | 'balance_csv'
72
+ | 'bookkeeping_account_balance_csv'
73
+ | 'entity_csv';
68
74
 
69
75
  /**
70
76
  * The time the Export was created.
@@ -111,8 +117,14 @@ export interface ExportCreateParams {
111
117
  * range.
112
118
  * - `bookkeeping_account_balance_csv` - Export a CSV of bookkeeping account
113
119
  * balances for the dates in a given range.
120
+ * - `entity_csv` - Export a CSV of entities with a given status.
114
121
  */
115
- category: 'account_statement_ofx' | 'transaction_csv' | 'balance_csv' | 'bookkeeping_account_balance_csv';
122
+ category:
123
+ | 'account_statement_ofx'
124
+ | 'transaction_csv'
125
+ | 'balance_csv'
126
+ | 'bookkeeping_account_balance_csv'
127
+ | 'entity_csv';
116
128
 
117
129
  /**
118
130
  * Options for the created export. Required if `category` is equal to
@@ -132,6 +144,11 @@ export interface ExportCreateParams {
132
144
  */
133
145
  bookkeeping_account_balance_csv?: ExportCreateParams.BookkeepingAccountBalanceCsv;
134
146
 
147
+ /**
148
+ * Options for the created export. Required if `category` is equal to `entity_csv`.
149
+ */
150
+ entity_csv?: ExportCreateParams.EntityCsv;
151
+
135
152
  /**
136
153
  * Options for the created export. Required if `category` is equal to
137
154
  * `transaction_csv`.
@@ -281,6 +298,29 @@ export namespace ExportCreateParams {
281
298
  }
282
299
  }
283
300
 
301
+ /**
302
+ * Options for the created export. Required if `category` is equal to `entity_csv`.
303
+ */
304
+ export interface EntityCsv {
305
+ /**
306
+ * Entity statuses to filter by.
307
+ */
308
+ status?: EntityCsv.Status;
309
+ }
310
+
311
+ export namespace EntityCsv {
312
+ /**
313
+ * Entity statuses to filter by.
314
+ */
315
+ export interface Status {
316
+ /**
317
+ * Entity statuses to filter by. For GET requests, this should be encoded as a
318
+ * comma-delimited string, such as `?in=one,two,three`.
319
+ */
320
+ in: Array<'active' | 'archived' | 'disabled'>;
321
+ }
322
+ }
323
+
284
324
  /**
285
325
  * Options for the created export. Required if `category` is equal to
286
326
  * `transaction_csv`.
@@ -16,9 +16,11 @@ export {
16
16
  } from './ach-transfers';
17
17
  export {
18
18
  Account,
19
+ BalanceLookup,
19
20
  AccountCreateParams,
20
21
  AccountUpdateParams,
21
22
  AccountListParams,
23
+ AccountBalanceParams,
22
24
  AccountsPage,
23
25
  Accounts,
24
26
  } from './accounts';
@@ -43,12 +45,13 @@ export {
43
45
  AccountTransfersPage,
44
46
  AccountTransfers,
45
47
  } from './account-transfers';
46
- export { BalanceLookupLookupResponse, BalanceLookupLookupParams, BalanceLookups } from './balance-lookups';
47
48
  export {
48
49
  BookkeepingAccount,
50
+ BookkeepingBalanceLookup,
49
51
  BookkeepingAccountCreateParams,
50
52
  BookkeepingAccountUpdateParams,
51
53
  BookkeepingAccountListParams,
54
+ BookkeepingAccountBalanceParams,
52
55
  BookkeepingAccountsPage,
53
56
  BookkeepingAccounts,
54
57
  } from './bookkeeping-accounts';
@@ -61,6 +64,8 @@ export {
61
64
  export {
62
65
  BookkeepingEntrySet,
63
66
  BookkeepingEntrySetCreateParams,
67
+ BookkeepingEntrySetListParams,
68
+ BookkeepingEntrySetsPage,
64
69
  BookkeepingEntrySets,
65
70
  } from './bookkeeping-entry-sets';
66
71
  export {
@@ -373,6 +373,31 @@ export namespace PendingTransaction {
373
373
  */
374
374
  physical_card_id: string | null;
375
375
 
376
+ /**
377
+ * The processing category describes the intent behind the authorization, such as
378
+ * whether it was used for bill payments or an automatic fuel dispenser.
379
+ *
380
+ * - `account_funding` - Account funding transactions are transactions used to
381
+ * e.g., fund an account or transfer funds between accounts.
382
+ * - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
383
+ * when a card is used at a gas pump, prior to the actual transaction amount
384
+ * being known. They are followed by an advice message that updates the amount of
385
+ * the pending transaction.
386
+ * - `bill_payment` - A transaction used to pay a bill.
387
+ * - `purchase` - A regular purchase.
388
+ * - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
389
+ * be convertible to cash.
390
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
391
+ * voucher authorization, where funds are credited to the cardholder.
392
+ */
393
+ processing_category:
394
+ | 'account_funding'
395
+ | 'automatic_fuel_dispenser'
396
+ | 'bill_payment'
397
+ | 'purchase'
398
+ | 'quasi_cash'
399
+ | 'refund';
400
+
376
401
  /**
377
402
  * The identifier of the Real-Time Decision sent to approve or decline this
378
403
  * transaction.
@@ -178,6 +178,31 @@ export namespace RealTimeDecision {
178
178
  */
179
179
  presentment_currency: string;
180
180
 
181
+ /**
182
+ * The processing category describes the intent behind the authorization, such as
183
+ * whether it was used for bill payments or an automatic fuel dispenser.
184
+ *
185
+ * - `account_funding` - Account funding transactions are transactions used to
186
+ * e.g., fund an account or transfer funds between accounts.
187
+ * - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
188
+ * when a card is used at a gas pump, prior to the actual transaction amount
189
+ * being known. They are followed by an advice message that updates the amount of
190
+ * the pending transaction.
191
+ * - `bill_payment` - A transaction used to pay a bill.
192
+ * - `purchase` - A regular purchase.
193
+ * - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
194
+ * be convertible to cash.
195
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
196
+ * voucher authorization, where funds are credited to the cardholder.
197
+ */
198
+ processing_category:
199
+ | 'account_funding'
200
+ | 'automatic_fuel_dispenser'
201
+ | 'bill_payment'
202
+ | 'purchase'
203
+ | 'quasi_cash'
204
+ | 'refund';
205
+
181
206
  /**
182
207
  * Fields specific to the type of request, such as an incremental authorization.
183
208
  */
@@ -422,6 +422,31 @@ export namespace ACHTransferSimulation {
422
422
  */
423
423
  physical_card_id: string | null;
424
424
 
425
+ /**
426
+ * The processing category describes the intent behind the authorization, such as
427
+ * whether it was used for bill payments or an automatic fuel dispenser.
428
+ *
429
+ * - `account_funding` - Account funding transactions are transactions used to
430
+ * e.g., fund an account or transfer funds between accounts.
431
+ * - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
432
+ * when a card is used at a gas pump, prior to the actual transaction amount
433
+ * being known. They are followed by an advice message that updates the amount of
434
+ * the pending transaction.
435
+ * - `bill_payment` - A transaction used to pay a bill.
436
+ * - `purchase` - A regular purchase.
437
+ * - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
438
+ * be convertible to cash.
439
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
440
+ * voucher authorization, where funds are credited to the cardholder.
441
+ */
442
+ processing_category:
443
+ | 'account_funding'
444
+ | 'automatic_fuel_dispenser'
445
+ | 'bill_payment'
446
+ | 'purchase'
447
+ | 'quasi_cash'
448
+ | 'refund';
449
+
425
450
  /**
426
451
  * The identifier of the Real-Time Decision sent to approve or decline this
427
452
  * transaction.
@@ -702,6 +727,18 @@ export namespace ACHTransferSimulation {
702
727
  */
703
728
  auxiliary_on_us: string | null;
704
729
 
730
+ /**
731
+ * The identifier of the API File object containing an image of the back of the
732
+ * declined check.
733
+ */
734
+ back_image_file_id: string | null;
735
+
736
+ /**
737
+ * The identifier of the API File object containing an image of the front of the
738
+ * declined check.
739
+ */
740
+ front_image_file_id: string | null;
741
+
705
742
  /**
706
743
  * Why the check was declined.
707
744
  *
@@ -403,6 +403,31 @@ export namespace CardAuthorizationSimulation {
403
403
  */
404
404
  physical_card_id: string | null;
405
405
 
406
+ /**
407
+ * The processing category describes the intent behind the authorization, such as
408
+ * whether it was used for bill payments or an automatic fuel dispenser.
409
+ *
410
+ * - `account_funding` - Account funding transactions are transactions used to
411
+ * e.g., fund an account or transfer funds between accounts.
412
+ * - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
413
+ * when a card is used at a gas pump, prior to the actual transaction amount
414
+ * being known. They are followed by an advice message that updates the amount of
415
+ * the pending transaction.
416
+ * - `bill_payment` - A transaction used to pay a bill.
417
+ * - `purchase` - A regular purchase.
418
+ * - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
419
+ * be convertible to cash.
420
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
421
+ * voucher authorization, where funds are credited to the cardholder.
422
+ */
423
+ processing_category:
424
+ | 'account_funding'
425
+ | 'automatic_fuel_dispenser'
426
+ | 'bill_payment'
427
+ | 'purchase'
428
+ | 'quasi_cash'
429
+ | 'refund';
430
+
406
431
  /**
407
432
  * The identifier of the Real-Time Decision sent to approve or decline this
408
433
  * transaction.
@@ -683,6 +708,18 @@ export namespace CardAuthorizationSimulation {
683
708
  */
684
709
  auxiliary_on_us: string | null;
685
710
 
711
+ /**
712
+ * The identifier of the API File object containing an image of the back of the
713
+ * declined check.
714
+ */
715
+ back_image_file_id: string | null;
716
+
717
+ /**
718
+ * The identifier of the API File object containing an image of the front of the
719
+ * declined check.
720
+ */
721
+ front_image_file_id: string | null;
722
+
686
723
  /**
687
724
  * Why the check was declined.
688
725
  *
@@ -1535,6 +1572,31 @@ export namespace CardAuthorizationSimulation {
1535
1572
  */
1536
1573
  physical_card_id: string | null;
1537
1574
 
1575
+ /**
1576
+ * The processing category describes the intent behind the authorization, such as
1577
+ * whether it was used for bill payments or an automatic fuel dispenser.
1578
+ *
1579
+ * - `account_funding` - Account funding transactions are transactions used to
1580
+ * e.g., fund an account or transfer funds between accounts.
1581
+ * - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
1582
+ * when a card is used at a gas pump, prior to the actual transaction amount
1583
+ * being known. They are followed by an advice message that updates the amount of
1584
+ * the pending transaction.
1585
+ * - `bill_payment` - A transaction used to pay a bill.
1586
+ * - `purchase` - A regular purchase.
1587
+ * - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
1588
+ * be convertible to cash.
1589
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
1590
+ * voucher authorization, where funds are credited to the cardholder.
1591
+ */
1592
+ processing_category:
1593
+ | 'account_funding'
1594
+ | 'automatic_fuel_dispenser'
1595
+ | 'bill_payment'
1596
+ | 'purchase'
1597
+ | 'quasi_cash'
1598
+ | 'refund';
1599
+
1538
1600
  /**
1539
1601
  * The identifier of the Real-Time Decision sent to approve or decline this
1540
1602
  * transaction.
@@ -402,6 +402,31 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
402
402
  */
403
403
  physical_card_id: string | null;
404
404
 
405
+ /**
406
+ * The processing category describes the intent behind the authorization, such as
407
+ * whether it was used for bill payments or an automatic fuel dispenser.
408
+ *
409
+ * - `account_funding` - Account funding transactions are transactions used to
410
+ * e.g., fund an account or transfer funds between accounts.
411
+ * - `automatic_fuel_dispenser` - Automatic fuel dispenser authorizations occur
412
+ * when a card is used at a gas pump, prior to the actual transaction amount
413
+ * being known. They are followed by an advice message that updates the amount of
414
+ * the pending transaction.
415
+ * - `bill_payment` - A transaction used to pay a bill.
416
+ * - `purchase` - A regular purchase.
417
+ * - `quasi_cash` - Quasi-cash transactions represent purchases of items which may
418
+ * be convertible to cash.
419
+ * - `refund` - A refund card authorization, sometimes referred to as a credit
420
+ * voucher authorization, where funds are credited to the cardholder.
421
+ */
422
+ processing_category:
423
+ | 'account_funding'
424
+ | 'automatic_fuel_dispenser'
425
+ | 'bill_payment'
426
+ | 'purchase'
427
+ | 'quasi_cash'
428
+ | 'refund';
429
+
405
430
  /**
406
431
  * The identifier of the Real-Time Decision sent to approve or decline this
407
432
  * transaction.
@@ -682,6 +707,18 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
682
707
  */
683
708
  auxiliary_on_us: string | null;
684
709
 
710
+ /**
711
+ * The identifier of the API File object containing an image of the back of the
712
+ * declined check.
713
+ */
714
+ back_image_file_id: string | null;
715
+
716
+ /**
717
+ * The identifier of the API File object containing an image of the front of the
718
+ * declined check.
719
+ */
720
+ front_image_file_id: string | null;
721
+
685
722
  /**
686
723
  * Why the check was declined.
687
724
  *
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.17.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.16.0";
1
+ export declare const VERSION = "0.17.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 = '0.16.0'; // x-release-please-version
4
+ exports.VERSION = '0.17.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.16.0'; // x-release-please-version
1
+ export const VERSION = '0.17.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,49 +0,0 @@
1
- import * as Core from 'increase/core';
2
- import { APIResource } from 'increase/resource';
3
- import * as BalanceLookupsAPI from 'increase/resources/balance-lookups';
4
- export declare class BalanceLookups extends APIResource {
5
- /**
6
- * Look up the balance for an Account
7
- */
8
- lookup(body: BalanceLookupLookupParams, options?: Core.RequestOptions): Core.APIPromise<BalanceLookupLookupResponse>;
9
- }
10
- /**
11
- * Represents a request to lookup the balance of an Account at a given point in
12
- * time.
13
- */
14
- export interface BalanceLookupLookupResponse {
15
- /**
16
- * The identifier for the account for which the balance was queried.
17
- */
18
- account_id: string;
19
- /**
20
- * The Account's available balance, representing the current balance less any open
21
- * Pending Transactions on the Account.
22
- */
23
- available_balance: number;
24
- /**
25
- * The Account's current balance, representing the sum of all posted Transactions
26
- * on the Account.
27
- */
28
- current_balance: number;
29
- /**
30
- * A constant representing the object's type. For this resource it will always be
31
- * `balance_lookup`.
32
- */
33
- type: 'balance_lookup';
34
- }
35
- export interface BalanceLookupLookupParams {
36
- /**
37
- * The Account to query the balance for.
38
- */
39
- account_id: string;
40
- /**
41
- * The moment to query the balance at. If not set, returns the current balances.
42
- */
43
- at_time?: string;
44
- }
45
- export declare namespace BalanceLookups {
46
- export import BalanceLookupLookupResponse = BalanceLookupsAPI.BalanceLookupLookupResponse;
47
- export import BalanceLookupLookupParams = BalanceLookupsAPI.BalanceLookupLookupParams;
48
- }
49
- //# sourceMappingURL=balance-lookups.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance-lookups.d.ts","sourceRoot":"","sources":["../src/resources/balance-lookups.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,iBAAiB,MAAM,oCAAoC,CAAC;AAExE,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAGhD;AAED;;;GAGG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,yBAAiB,cAAc,CAAC;IAC9B,MAAM,QAAQ,2BAA2B,GAAG,iBAAiB,CAAC,2BAA2B,CAAC;IAC1F,MAAM,QAAQ,yBAAyB,GAAG,iBAAiB,CAAC,yBAAyB,CAAC;CACvF"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.BalanceLookups = void 0;
5
- const resource_1 = require("increase/resource");
6
- class BalanceLookups extends resource_1.APIResource {
7
- /**
8
- * Look up the balance for an Account
9
- */
10
- lookup(body, options) {
11
- return this.post('/balance_lookups', { body, ...options });
12
- }
13
- }
14
- exports.BalanceLookups = BalanceLookups;
15
- (function (BalanceLookups) {
16
- })(BalanceLookups = exports.BalanceLookups || (exports.BalanceLookups = {}));
17
- //# sourceMappingURL=balance-lookups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance-lookups.js","sourceRoot":"","sources":["../src/resources/balance-lookups.ts"],"names":[],"mappings":";AAAA,qDAAqD;;;AAGrD,gDAAgD;AAGhD,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AAVD,wCAUC;AA2CD,WAAiB,cAAc;AAG/B,CAAC,EAHgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAG9B"}
@@ -1,13 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless.
2
- import { APIResource } from 'increase/resource';
3
- export class BalanceLookups extends APIResource {
4
- /**
5
- * Look up the balance for an Account
6
- */
7
- lookup(body, options) {
8
- return this.post('/balance_lookups', { body, ...options });
9
- }
10
- }
11
- (function (BalanceLookups) {
12
- })(BalanceLookups || (BalanceLookups = {}));
13
- //# sourceMappingURL=balance-lookups.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"balance-lookups.mjs","sourceRoot":"","sources":["../src/resources/balance-lookups.ts"],"names":[],"mappings":"AAAA,qDAAqD;OAG9C,EAAE,WAAW,EAAE,MAAM,mBAAmB;AAG/C,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;OAEG;IACH,MAAM,CACJ,IAA+B,EAC/B,OAA6B;QAE7B,OAAO,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;CACF;AA2CD,WAAiB,cAAc;AAG/B,CAAC,EAHgB,cAAc,KAAd,cAAc,QAG9B"}
@@ -1,63 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless.
2
-
3
- import * as Core from "../core";
4
- import { APIResource } from "../resource";
5
- import * as BalanceLookupsAPI from "./balance-lookups";
6
-
7
- export class BalanceLookups extends APIResource {
8
- /**
9
- * Look up the balance for an Account
10
- */
11
- lookup(
12
- body: BalanceLookupLookupParams,
13
- options?: Core.RequestOptions,
14
- ): Core.APIPromise<BalanceLookupLookupResponse> {
15
- return this.post('/balance_lookups', { body, ...options });
16
- }
17
- }
18
-
19
- /**
20
- * Represents a request to lookup the balance of an Account at a given point in
21
- * time.
22
- */
23
- export interface BalanceLookupLookupResponse {
24
- /**
25
- * The identifier for the account for which the balance was queried.
26
- */
27
- account_id: string;
28
-
29
- /**
30
- * The Account's available balance, representing the current balance less any open
31
- * Pending Transactions on the Account.
32
- */
33
- available_balance: number;
34
-
35
- /**
36
- * The Account's current balance, representing the sum of all posted Transactions
37
- * on the Account.
38
- */
39
- current_balance: number;
40
-
41
- /**
42
- * A constant representing the object's type. For this resource it will always be
43
- * `balance_lookup`.
44
- */
45
- type: 'balance_lookup';
46
- }
47
-
48
- export interface BalanceLookupLookupParams {
49
- /**
50
- * The Account to query the balance for.
51
- */
52
- account_id: string;
53
-
54
- /**
55
- * The moment to query the balance at. If not set, returns the current balances.
56
- */
57
- at_time?: string;
58
- }
59
-
60
- export namespace BalanceLookups {
61
- export import BalanceLookupLookupResponse = BalanceLookupsAPI.BalanceLookupLookupResponse;
62
- export import BalanceLookupLookupParams = BalanceLookupsAPI.BalanceLookupLookupParams;
63
- }