increase 0.10.1 → 0.10.3

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 (162) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/core.d.ts +7 -4
  3. package/core.d.ts.map +1 -1
  4. package/core.js +13 -6
  5. package/core.js.map +1 -1
  6. package/core.mjs +13 -6
  7. package/core.mjs.map +1 -1
  8. package/index.d.mts +8 -9
  9. package/index.d.ts +8 -9
  10. package/index.d.ts.map +1 -1
  11. package/index.js +6 -6
  12. package/index.js.map +1 -1
  13. package/index.mjs +6 -6
  14. package/index.mjs.map +1 -1
  15. package/package.json +1 -1
  16. package/resources/account-transfers.d.ts +8 -1
  17. package/resources/account-transfers.d.ts.map +1 -1
  18. package/resources/account-transfers.js.map +1 -1
  19. package/resources/account-transfers.mjs.map +1 -1
  20. package/resources/ach-prenotifications.d.ts +2 -2
  21. package/resources/ach-transfers.d.ts +11 -4
  22. package/resources/ach-transfers.d.ts.map +1 -1
  23. package/resources/ach-transfers.js.map +1 -1
  24. package/resources/ach-transfers.mjs.map +1 -1
  25. package/resources/card-purchase-supplements.d.ts +1 -1
  26. package/resources/check-transfers.d.ts +6 -3
  27. package/resources/check-transfers.d.ts.map +1 -1
  28. package/resources/check-transfers.js.map +1 -1
  29. package/resources/check-transfers.mjs.map +1 -1
  30. package/resources/declined-transactions.d.ts +92 -18
  31. package/resources/declined-transactions.d.ts.map +1 -1
  32. package/resources/declined-transactions.js.map +1 -1
  33. package/resources/declined-transactions.mjs.map +1 -1
  34. package/resources/digital-wallet-tokens.d.ts +1 -1
  35. package/resources/entities/beneficial-owners.d.ts +24 -5
  36. package/resources/entities/beneficial-owners.d.ts.map +1 -1
  37. package/resources/entities/beneficial-owners.js +8 -2
  38. package/resources/entities/beneficial-owners.js.map +1 -1
  39. package/resources/entities/beneficial-owners.mjs +8 -2
  40. package/resources/entities/beneficial-owners.mjs.map +1 -1
  41. package/resources/entities/entities.d.ts +19 -14
  42. package/resources/entities/entities.d.ts.map +1 -1
  43. package/resources/entities/entities.js.map +1 -1
  44. package/resources/entities/entities.mjs.map +1 -1
  45. package/resources/entities/index.d.ts +5 -1
  46. package/resources/entities/index.d.ts.map +1 -1
  47. package/resources/entities/index.js.map +1 -1
  48. package/resources/entities/index.mjs.map +1 -1
  49. package/resources/entities/supplemental-documents.d.ts +1 -1
  50. package/resources/entities/supplemental-documents.js +1 -1
  51. package/resources/entities/supplemental-documents.mjs +1 -1
  52. package/resources/event-subscriptions.d.ts +22 -10
  53. package/resources/event-subscriptions.d.ts.map +1 -1
  54. package/resources/event-subscriptions.js.map +1 -1
  55. package/resources/event-subscriptions.mjs.map +1 -1
  56. package/resources/events.d.ts +13 -5
  57. package/resources/events.d.ts.map +1 -1
  58. package/resources/events.js.map +1 -1
  59. package/resources/events.mjs.map +1 -1
  60. package/resources/external-accounts.d.ts +2 -2
  61. package/resources/inbound-ach-transfers.d.ts +303 -0
  62. package/resources/inbound-ach-transfers.d.ts.map +1 -0
  63. package/resources/inbound-ach-transfers.js +40 -0
  64. package/resources/inbound-ach-transfers.js.map +1 -0
  65. package/resources/inbound-ach-transfers.mjs +33 -0
  66. package/resources/inbound-ach-transfers.mjs.map +1 -0
  67. package/resources/index.d.ts +6 -7
  68. package/resources/index.d.ts.map +1 -1
  69. package/resources/index.js +7 -35
  70. package/resources/index.js.map +1 -1
  71. package/resources/index.mjs +1 -2
  72. package/resources/index.mjs.map +1 -1
  73. package/resources/pending-transactions.d.ts +50 -8
  74. package/resources/pending-transactions.d.ts.map +1 -1
  75. package/resources/pending-transactions.js.map +1 -1
  76. package/resources/pending-transactions.mjs.map +1 -1
  77. package/resources/real-time-decisions.d.ts +33 -4
  78. package/resources/real-time-decisions.d.ts.map +1 -1
  79. package/resources/real-time-decisions.js.map +1 -1
  80. package/resources/real-time-decisions.mjs.map +1 -1
  81. package/resources/real-time-payments-transfers.d.ts +49 -42
  82. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  83. package/resources/real-time-payments-transfers.js +2 -2
  84. package/resources/real-time-payments-transfers.js.map +1 -1
  85. package/resources/real-time-payments-transfers.mjs +2 -2
  86. package/resources/real-time-payments-transfers.mjs.map +1 -1
  87. package/resources/routing-numbers.d.ts +1 -1
  88. package/resources/simulations/ach-transfers.d.ts +93 -35
  89. package/resources/simulations/ach-transfers.d.ts.map +1 -1
  90. package/resources/simulations/ach-transfers.js.map +1 -1
  91. package/resources/simulations/ach-transfers.mjs.map +1 -1
  92. package/resources/simulations/cards.d.ts +108 -25
  93. package/resources/simulations/cards.d.ts.map +1 -1
  94. package/resources/simulations/cards.js.map +1 -1
  95. package/resources/simulations/cards.mjs.map +1 -1
  96. package/resources/simulations/inbound-wire-drawdown-requests.d.ts +1 -1
  97. package/resources/simulations/inbound-wire-drawdown-requests.js +1 -1
  98. package/resources/simulations/inbound-wire-drawdown-requests.mjs +1 -1
  99. package/resources/simulations/interest-payments.d.ts +16 -16
  100. package/resources/simulations/interest-payments.d.ts.map +1 -1
  101. package/resources/simulations/real-time-payments-transfers.d.ts +124 -66
  102. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  103. package/resources/simulations/real-time-payments-transfers.js +2 -2
  104. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  105. package/resources/simulations/real-time-payments-transfers.mjs +2 -2
  106. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  107. package/resources/simulations/wire-transfers.d.ts +16 -16
  108. package/resources/simulations/wire-transfers.d.ts.map +1 -1
  109. package/resources/transactions.d.ts +16 -16
  110. package/resources/transactions.d.ts.map +1 -1
  111. package/resources/wire-transfers.d.ts +9 -2
  112. package/resources/wire-transfers.d.ts.map +1 -1
  113. package/resources/wire-transfers.js.map +1 -1
  114. package/resources/wire-transfers.mjs.map +1 -1
  115. package/src/core.ts +19 -7
  116. package/src/index.ts +10 -12
  117. package/src/resources/account-transfers.ts +9 -1
  118. package/src/resources/ach-prenotifications.ts +2 -2
  119. package/src/resources/ach-transfers.ts +12 -4
  120. package/src/resources/card-purchase-supplements.ts +1 -1
  121. package/src/resources/check-transfers.ts +6 -3
  122. package/src/resources/declined-transactions.ts +96 -18
  123. package/src/resources/digital-wallet-tokens.ts +1 -1
  124. package/src/resources/entities/beneficial-owners.ts +31 -6
  125. package/src/resources/entities/entities.ts +20 -14
  126. package/src/resources/entities/index.ts +5 -1
  127. package/src/resources/entities/supplemental-documents.ts +1 -1
  128. package/src/resources/event-subscriptions.ts +22 -10
  129. package/src/resources/events.ts +13 -5
  130. package/src/resources/external-accounts.ts +2 -2
  131. package/src/resources/inbound-ach-transfers.ts +359 -0
  132. package/src/resources/index.ts +6 -7
  133. package/src/resources/pending-transactions.ts +52 -8
  134. package/src/resources/real-time-decisions.ts +34 -4
  135. package/src/resources/real-time-payments-transfers.ts +50 -42
  136. package/src/resources/routing-numbers.ts +1 -1
  137. package/src/resources/simulations/ach-transfers.ts +95 -35
  138. package/src/resources/simulations/cards.ts +110 -25
  139. package/src/resources/simulations/inbound-wire-drawdown-requests.ts +1 -1
  140. package/src/resources/simulations/interest-payments.ts +16 -16
  141. package/src/resources/simulations/real-time-payments-transfers.ts +126 -66
  142. package/src/resources/simulations/wire-transfers.ts +16 -16
  143. package/src/resources/transactions.ts +16 -16
  144. package/src/resources/wire-transfers.ts +10 -2
  145. package/src/version.ts +1 -1
  146. package/version.d.ts +1 -1
  147. package/version.js +1 -1
  148. package/version.mjs +1 -1
  149. package/resources/inbound-ach-transfer-returns.d.ts +0 -161
  150. package/resources/inbound-ach-transfer-returns.d.ts.map +0 -1
  151. package/resources/inbound-ach-transfer-returns.js +0 -37
  152. package/resources/inbound-ach-transfer-returns.js.map +0 -1
  153. package/resources/inbound-ach-transfer-returns.mjs +0 -30
  154. package/resources/inbound-ach-transfer-returns.mjs.map +0 -1
  155. package/resources/shared.d.ts +0 -31
  156. package/resources/shared.d.ts.map +0 -1
  157. package/resources/shared.js +0 -4
  158. package/resources/shared.js.map +0 -1
  159. package/resources/shared.mjs +0 -3
  160. package/resources/shared.mjs.map +0 -1
  161. package/src/resources/inbound-ach-transfer-returns.ts +0 -196
  162. package/src/resources/shared.ts +0 -32
@@ -1,196 +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 { isRequestOptions } from '../core';
6
- import * as API from './index';
7
- import { Page, PageParams } from '../pagination';
8
-
9
- export class InboundACHTransferReturns extends APIResource {
10
- /**
11
- * Create an ACH Return
12
- */
13
- create(
14
- body: InboundACHTransferReturnCreateParams,
15
- options?: Core.RequestOptions,
16
- ): Core.APIPromise<InboundACHTransferReturn> {
17
- return this.post('/inbound_ach_transfer_returns', { body, ...options });
18
- }
19
-
20
- /**
21
- * Retrieve an Inbound ACH Transfer Return
22
- */
23
- retrieve(
24
- inboundACHTransferReturnId: string,
25
- options?: Core.RequestOptions,
26
- ): Core.APIPromise<InboundACHTransferReturn> {
27
- return this.get(`/inbound_ach_transfer_returns/${inboundACHTransferReturnId}`, options);
28
- }
29
-
30
- /**
31
- * List Inbound ACH Transfer Returns
32
- */
33
- list(
34
- query?: InboundACHTransferReturnListParams,
35
- options?: Core.RequestOptions,
36
- ): Core.PagePromise<InboundACHTransferReturnsPage, InboundACHTransferReturn>;
37
- list(
38
- options?: Core.RequestOptions,
39
- ): Core.PagePromise<InboundACHTransferReturnsPage, InboundACHTransferReturn>;
40
- list(
41
- query: InboundACHTransferReturnListParams | Core.RequestOptions = {},
42
- options?: Core.RequestOptions,
43
- ): Core.PagePromise<InboundACHTransferReturnsPage, InboundACHTransferReturn> {
44
- if (isRequestOptions(query)) {
45
- return this.list({}, query);
46
- }
47
- return this.getAPIList('/inbound_ach_transfer_returns', InboundACHTransferReturnsPage, {
48
- query,
49
- ...options,
50
- });
51
- }
52
- }
53
-
54
- export class InboundACHTransferReturnsPage extends Page<InboundACHTransferReturn> {}
55
- // alias so we can export it in the namespace
56
- type _InboundACHTransferReturnsPage = InboundACHTransferReturnsPage;
57
-
58
- /**
59
- * If unauthorized activity occurs via ACH, you can create an Inbound ACH Transfer
60
- * Return and we'll reverse the transaction. You can create an Inbound ACH Transfer
61
- * return the first two days after receiving an Inbound ACH Transfer.
62
- */
63
- export interface InboundACHTransferReturn {
64
- /**
65
- * The ID of the Inbound ACH Transfer Return.
66
- */
67
- id: string;
68
-
69
- /**
70
- * The ID for the Transaction that is being returned.
71
- */
72
- inbound_ach_transfer_transaction_id: string;
73
-
74
- /**
75
- * The reason why this transfer will be returned. This is sent to the initiating
76
- * bank.
77
- *
78
- * - `authorization_revoked_by_customer` - The customer no longer authorizes this
79
- * transaction. The Nacha return code is R07.
80
- * - `payment_stopped` - The customer asked for the payment to be stopped. This
81
- * reason is only allowed for debits. The Nacha return code is R08.
82
- * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
83
- * customer advises that the debit was unauthorized. The Nacha return code is
84
- * R10.
85
- * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
86
- * payee is deceased. The Nacha return code is R14.
87
- * - `beneficiary_or_account_holder_deceased` - The account holder is deceased. The
88
- * Nacha return code is R15.
89
- * - `credit_entry_refused_by_receiver` - The customer refused a credit entry. This
90
- * reason is only allowed for credits. The Nacha return code is R23.
91
- * - `duplicate_entry` - The account holder identified this transaction as a
92
- * duplicate. The Nacha return code is R24.
93
- * - `corporate_customer_advised_not_authorized` - The corporate customer no longer
94
- * authorizes this transaction. The Nacha return code is R29.
95
- */
96
- reason:
97
- | 'authorization_revoked_by_customer'
98
- | 'payment_stopped'
99
- | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
100
- | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
101
- | 'beneficiary_or_account_holder_deceased'
102
- | 'credit_entry_refused_by_receiver'
103
- | 'duplicate_entry'
104
- | 'corporate_customer_advised_not_authorized';
105
-
106
- /**
107
- * The lifecycle status of the transfer.
108
- *
109
- * - `pending_submitting` - The transfer return is pending submission to the
110
- * Federal Reserve.
111
- * - `submitted` - The transfer has been submitted to the Federal Reserve.
112
- */
113
- status: 'pending_submitting' | 'submitted';
114
-
115
- /**
116
- * After the return is submitted to FedACH, this will contain supplemental details.
117
- */
118
- submission: InboundACHTransferReturn.Submission | null;
119
-
120
- /**
121
- * The ID for the transaction refunding the transfer.
122
- */
123
- transaction_id: string | null;
124
-
125
- /**
126
- * A constant representing the object's type. For this resource it will always be
127
- * `inbound_ach_transfer_return`.
128
- */
129
- type: 'inbound_ach_transfer_return';
130
- }
131
-
132
- export namespace InboundACHTransferReturn {
133
- /**
134
- * After the return is submitted to FedACH, this will contain supplemental details.
135
- */
136
- export interface Submission {
137
- /**
138
- * When the ACH transfer return was sent to FedACH.
139
- */
140
- submitted_at: string;
141
-
142
- /**
143
- * The trace number for the submission.
144
- */
145
- trace_number: string;
146
- }
147
- }
148
-
149
- export interface InboundACHTransferReturnCreateParams {
150
- /**
151
- * The reason why this transfer will be returned. The most usual return codes are
152
- * `payment_stopped` for debits and `credit_entry_refused_by_receiver` for credits.
153
- *
154
- * - `authorization_revoked_by_customer` - The customer no longer authorizes this
155
- * transaction. The Nacha return code is R07.
156
- * - `payment_stopped` - The customer asked for the payment to be stopped. This
157
- * reason is only allowed for debits. The Nacha return code is R08.
158
- * - `customer_advised_unauthorized_improper_ineligible_or_incomplete` - The
159
- * customer advises that the debit was unauthorized. The Nacha return code is
160
- * R10.
161
- * - `representative_payee_deceased_or_unable_to_continue_in_that_capacity` - The
162
- * payee is deceased. The Nacha return code is R14.
163
- * - `beneficiary_or_account_holder_deceased` - The account holder is deceased. The
164
- * Nacha return code is R15.
165
- * - `credit_entry_refused_by_receiver` - The customer refused a credit entry. This
166
- * reason is only allowed for credits. The Nacha return code is R23.
167
- * - `duplicate_entry` - The account holder identified this transaction as a
168
- * duplicate. The Nacha return code is R24.
169
- * - `corporate_customer_advised_not_authorized` - The corporate customer no longer
170
- * authorizes this transaction. The Nacha return code is R29.
171
- */
172
- reason:
173
- | 'authorization_revoked_by_customer'
174
- | 'payment_stopped'
175
- | 'customer_advised_unauthorized_improper_ineligible_or_incomplete'
176
- | 'representative_payee_deceased_or_unable_to_continue_in_that_capacity'
177
- | 'beneficiary_or_account_holder_deceased'
178
- | 'credit_entry_refused_by_receiver'
179
- | 'duplicate_entry'
180
- | 'corporate_customer_advised_not_authorized';
181
-
182
- /**
183
- * The transaction identifier of the Inbound ACH Transfer to return to the
184
- * originating financial institution.
185
- */
186
- transaction_id: string;
187
- }
188
-
189
- export interface InboundACHTransferReturnListParams extends PageParams {}
190
-
191
- export namespace InboundACHTransferReturns {
192
- export import InboundACHTransferReturn = API.InboundACHTransferReturn;
193
- export type InboundACHTransferReturnsPage = _InboundACHTransferReturnsPage;
194
- export import InboundACHTransferReturnCreateParams = API.InboundACHTransferReturnCreateParams;
195
- export import InboundACHTransferReturnListParams = API.InboundACHTransferReturnListParams;
196
- }
@@ -1,32 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless.
2
-
3
- /**
4
- * The method used to enter the cardholder's primary account number and card
5
- * expiration date
6
- *
7
- * - `unknown` - Unknown
8
- * - `manual` - Manual key entry
9
- * - `magnetic_stripe_no_cvv` - Magnetic stripe read, without card verification
10
- * value
11
- * - `optical_code` - Optical code
12
- * - `integrated_circuit_card` - Contact chip card
13
- * - `contactless` - Contactless read of chip card
14
- * - `credential_on_file` - Transaction iniated using a credential that has
15
- * previously been stored on file
16
- * - `magnetic_stripe` - Magnetic stripe read
17
- * - `contactless_magnetic_stripe` - Contactless read of magnetic stripe data
18
- * - `integrated_circuit_card_no_cvv` - Contact chip card, without card
19
- * verification value
20
- */
21
- export type PointOfServiceEntryMode =
22
- | 'unknown'
23
- | 'manual'
24
- | 'magnetic_stripe_no_cvv'
25
- | 'optical_code'
26
- | 'integrated_circuit_card'
27
- | 'contactless'
28
- | 'credential_on_file'
29
- | 'magnetic_stripe'
30
- | 'contactless_magnetic_stripe'
31
- | 'integrated_circuit_card_no_cvv'
32
- | null;