increase 0.28.0 → 0.30.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 (246) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +2 -2
  3. package/core.d.ts.map +1 -1
  4. package/core.js +2 -1
  5. package/core.js.map +1 -1
  6. package/core.mjs +2 -1
  7. package/core.mjs.map +1 -1
  8. package/error.d.ts +5 -5
  9. package/error.d.ts.map +1 -1
  10. package/error.js +9 -9
  11. package/error.js.map +1 -1
  12. package/error.mjs +6 -6
  13. package/error.mjs.map +1 -1
  14. package/index.d.mts +21 -9
  15. package/index.d.ts +21 -9
  16. package/index.d.ts.map +1 -1
  17. package/index.js +10 -7
  18. package/index.js.map +1 -1
  19. package/index.mjs +9 -6
  20. package/index.mjs.map +1 -1
  21. package/package.json +4 -1
  22. package/resources/account-numbers.d.ts +33 -14
  23. package/resources/account-numbers.d.ts.map +1 -1
  24. package/resources/account-numbers.js.map +1 -1
  25. package/resources/account-numbers.mjs.map +1 -1
  26. package/resources/account-transfers.d.ts +11 -12
  27. package/resources/account-transfers.d.ts.map +1 -1
  28. package/resources/account-transfers.js.map +1 -1
  29. package/resources/account-transfers.mjs.map +1 -1
  30. package/resources/accounts.d.ts +13 -0
  31. package/resources/accounts.d.ts.map +1 -1
  32. package/resources/accounts.js.map +1 -1
  33. package/resources/accounts.mjs.map +1 -1
  34. package/resources/ach-prenotifications.d.ts +13 -0
  35. package/resources/ach-prenotifications.d.ts.map +1 -1
  36. package/resources/ach-prenotifications.js.map +1 -1
  37. package/resources/ach-prenotifications.mjs.map +1 -1
  38. package/resources/ach-transfers.d.ts +168 -12
  39. package/resources/ach-transfers.d.ts.map +1 -1
  40. package/resources/ach-transfers.js.map +1 -1
  41. package/resources/ach-transfers.mjs.map +1 -1
  42. package/resources/bookkeeping-accounts.d.ts +13 -0
  43. package/resources/bookkeeping-accounts.d.ts.map +1 -1
  44. package/resources/bookkeeping-accounts.js.map +1 -1
  45. package/resources/bookkeeping-accounts.mjs.map +1 -1
  46. package/resources/bookkeeping-entry-sets.d.ts +13 -0
  47. package/resources/bookkeeping-entry-sets.d.ts.map +1 -1
  48. package/resources/bookkeeping-entry-sets.js.map +1 -1
  49. package/resources/bookkeeping-entry-sets.mjs.map +1 -1
  50. package/resources/card-disputes.d.ts +13 -0
  51. package/resources/card-disputes.d.ts.map +1 -1
  52. package/resources/card-disputes.js.map +1 -1
  53. package/resources/card-disputes.mjs.map +1 -1
  54. package/resources/cards.d.ts +17 -4
  55. package/resources/cards.d.ts.map +1 -1
  56. package/resources/cards.js.map +1 -1
  57. package/resources/cards.mjs.map +1 -1
  58. package/resources/check-deposits.d.ts +16 -2
  59. package/resources/check-deposits.d.ts.map +1 -1
  60. package/resources/check-deposits.js.map +1 -1
  61. package/resources/check-deposits.mjs.map +1 -1
  62. package/resources/check-transfers.d.ts +11 -12
  63. package/resources/check-transfers.d.ts.map +1 -1
  64. package/resources/check-transfers.js.map +1 -1
  65. package/resources/check-transfers.mjs.map +1 -1
  66. package/resources/declined-transactions.d.ts +4 -1
  67. package/resources/declined-transactions.d.ts.map +1 -1
  68. package/resources/declined-transactions.js.map +1 -1
  69. package/resources/declined-transactions.mjs.map +1 -1
  70. package/resources/digital-card-profiles.d.ts +268 -0
  71. package/resources/digital-card-profiles.d.ts.map +1 -0
  72. package/resources/digital-card-profiles.js +71 -0
  73. package/resources/digital-card-profiles.js.map +1 -0
  74. package/resources/digital-card-profiles.mjs +43 -0
  75. package/resources/digital-card-profiles.mjs.map +1 -0
  76. package/resources/entities/entities.d.ts +19 -0
  77. package/resources/entities/entities.d.ts.map +1 -1
  78. package/resources/entities/entities.js.map +1 -1
  79. package/resources/entities/entities.mjs.map +1 -1
  80. package/resources/entities/supplemental-documents.d.ts +13 -0
  81. package/resources/entities/supplemental-documents.d.ts.map +1 -1
  82. package/resources/entities/supplemental-documents.js.map +1 -1
  83. package/resources/entities/supplemental-documents.mjs.map +1 -1
  84. package/resources/event-subscriptions.d.ts +13 -0
  85. package/resources/event-subscriptions.d.ts.map +1 -1
  86. package/resources/event-subscriptions.js.map +1 -1
  87. package/resources/event-subscriptions.mjs.map +1 -1
  88. package/resources/exports.d.ts +6 -0
  89. package/resources/exports.d.ts.map +1 -1
  90. package/resources/exports.js.map +1 -1
  91. package/resources/exports.mjs.map +1 -1
  92. package/resources/external-accounts.d.ts +36 -0
  93. package/resources/external-accounts.d.ts.map +1 -1
  94. package/resources/external-accounts.js.map +1 -1
  95. package/resources/external-accounts.mjs.map +1 -1
  96. package/resources/files.d.ts +13 -0
  97. package/resources/files.d.ts.map +1 -1
  98. package/resources/files.js.map +1 -1
  99. package/resources/files.mjs.map +1 -1
  100. package/resources/inbound-ach-transfers.d.ts +4 -0
  101. package/resources/inbound-ach-transfers.d.ts.map +1 -1
  102. package/resources/inbound-ach-transfers.js.map +1 -1
  103. package/resources/inbound-ach-transfers.mjs.map +1 -1
  104. package/resources/inbound-wire-transfers.d.ts +4 -0
  105. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  106. package/resources/inbound-wire-transfers.js.map +1 -1
  107. package/resources/inbound-wire-transfers.mjs.map +1 -1
  108. package/resources/index.d.ts +3 -2
  109. package/resources/index.d.ts.map +1 -1
  110. package/resources/index.js +8 -5
  111. package/resources/index.js.map +1 -1
  112. package/resources/index.mjs +3 -2
  113. package/resources/index.mjs.map +1 -1
  114. package/resources/intrafi/account-enrollments.d.ts +13 -0
  115. package/resources/intrafi/account-enrollments.d.ts.map +1 -1
  116. package/resources/intrafi/account-enrollments.js.map +1 -1
  117. package/resources/intrafi/account-enrollments.mjs.map +1 -1
  118. package/resources/intrafi/exclusions.d.ts +13 -0
  119. package/resources/intrafi/exclusions.d.ts.map +1 -1
  120. package/resources/intrafi/exclusions.js.map +1 -1
  121. package/resources/intrafi/exclusions.mjs.map +1 -1
  122. package/resources/physical-card-profiles.d.ts +166 -0
  123. package/resources/physical-card-profiles.d.ts.map +1 -0
  124. package/resources/{card-profiles.js → physical-card-profiles.js} +27 -18
  125. package/resources/physical-card-profiles.js.map +1 -0
  126. package/resources/physical-card-profiles.mjs +46 -0
  127. package/resources/physical-card-profiles.mjs.map +1 -0
  128. package/resources/physical-cards.d.ts +19 -5
  129. package/resources/physical-cards.d.ts.map +1 -1
  130. package/resources/physical-cards.js.map +1 -1
  131. package/resources/physical-cards.mjs.map +1 -1
  132. package/resources/programs.d.ts +4 -0
  133. package/resources/programs.d.ts.map +1 -1
  134. package/resources/programs.js.map +1 -1
  135. package/resources/programs.mjs.map +1 -1
  136. package/resources/proof-of-authorization-request-submissions.d.ts +13 -0
  137. package/resources/proof-of-authorization-request-submissions.d.ts.map +1 -1
  138. package/resources/proof-of-authorization-request-submissions.js.map +1 -1
  139. package/resources/proof-of-authorization-request-submissions.mjs.map +1 -1
  140. package/resources/real-time-decisions.d.ts +6 -1
  141. package/resources/real-time-decisions.d.ts.map +1 -1
  142. package/resources/real-time-decisions.js.map +1 -1
  143. package/resources/real-time-decisions.mjs.map +1 -1
  144. package/resources/real-time-payments-request-for-payments.d.ts +13 -0
  145. package/resources/real-time-payments-request-for-payments.d.ts.map +1 -1
  146. package/resources/real-time-payments-request-for-payments.js.map +1 -1
  147. package/resources/real-time-payments-request-for-payments.mjs.map +1 -1
  148. package/resources/real-time-payments-transfers.d.ts +11 -12
  149. package/resources/real-time-payments-transfers.d.ts.map +1 -1
  150. package/resources/real-time-payments-transfers.js.map +1 -1
  151. package/resources/real-time-payments-transfers.mjs.map +1 -1
  152. package/resources/simulations/cards.d.ts +4 -1
  153. package/resources/simulations/cards.d.ts.map +1 -1
  154. package/resources/simulations/cards.js.map +1 -1
  155. package/resources/simulations/cards.mjs.map +1 -1
  156. package/resources/simulations/index.d.ts +2 -3
  157. package/resources/simulations/index.d.ts.map +1 -1
  158. package/resources/simulations/index.js +1 -3
  159. package/resources/simulations/index.js.map +1 -1
  160. package/resources/simulations/index.mjs +2 -3
  161. package/resources/simulations/index.mjs.map +1 -1
  162. package/resources/simulations/interest-payments.d.ts +2 -2745
  163. package/resources/simulations/interest-payments.d.ts.map +1 -1
  164. package/resources/simulations/interest-payments.js.map +1 -1
  165. package/resources/simulations/interest-payments.mjs.map +1 -1
  166. package/resources/simulations/real-time-payments-transfers.d.ts +6 -2
  167. package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
  168. package/resources/simulations/real-time-payments-transfers.js.map +1 -1
  169. package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
  170. package/resources/simulations/simulations.d.ts +74 -4
  171. package/resources/simulations/simulations.d.ts.map +1 -1
  172. package/resources/simulations/simulations.js +30 -3
  173. package/resources/simulations/simulations.js.map +1 -1
  174. package/resources/simulations/simulations.mjs +30 -3
  175. package/resources/simulations/simulations.mjs.map +1 -1
  176. package/resources/transactions.d.ts +2 -1
  177. package/resources/transactions.d.ts.map +1 -1
  178. package/resources/transactions.js.map +1 -1
  179. package/resources/transactions.mjs.map +1 -1
  180. package/resources/wire-drawdown-requests.d.ts +6 -0
  181. package/resources/wire-drawdown-requests.d.ts.map +1 -1
  182. package/resources/wire-drawdown-requests.js.map +1 -1
  183. package/resources/wire-drawdown-requests.mjs.map +1 -1
  184. package/resources/wire-transfers.d.ts +11 -12
  185. package/resources/wire-transfers.d.ts.map +1 -1
  186. package/resources/wire-transfers.js.map +1 -1
  187. package/resources/wire-transfers.mjs.map +1 -1
  188. package/src/core.ts +3 -1
  189. package/src/error.ts +11 -11
  190. package/src/index.ts +23 -10
  191. package/src/resources/account-numbers.ts +37 -17
  192. package/src/resources/account-transfers.ts +12 -14
  193. package/src/resources/accounts.ts +15 -0
  194. package/src/resources/ach-prenotifications.ts +15 -0
  195. package/src/resources/ach-transfers.ts +186 -13
  196. package/src/resources/bookkeeping-accounts.ts +16 -1
  197. package/src/resources/bookkeeping-entry-sets.ts +15 -0
  198. package/src/resources/card-disputes.ts +15 -0
  199. package/src/resources/cards.ts +20 -5
  200. package/src/resources/check-deposits.ts +18 -1
  201. package/src/resources/check-transfers.ts +12 -14
  202. package/src/resources/declined-transactions.ts +6 -1
  203. package/src/resources/digital-card-profiles.ts +348 -0
  204. package/src/resources/entities/entities.ts +22 -0
  205. package/src/resources/entities/supplemental-documents.ts +15 -0
  206. package/src/resources/event-subscriptions.ts +16 -1
  207. package/src/resources/exports.ts +7 -0
  208. package/src/resources/external-accounts.ts +41 -0
  209. package/src/resources/files.ts +15 -0
  210. package/src/resources/inbound-ach-transfers.ts +5 -0
  211. package/src/resources/inbound-wire-transfers.ts +5 -0
  212. package/src/resources/index.ts +23 -8
  213. package/src/resources/intrafi/account-enrollments.ts +15 -0
  214. package/src/resources/intrafi/exclusions.ts +15 -0
  215. package/src/resources/physical-card-profiles.ts +241 -0
  216. package/src/resources/physical-cards.ts +22 -6
  217. package/src/resources/programs.ts +5 -0
  218. package/src/resources/proof-of-authorization-request-submissions.ts +15 -0
  219. package/src/resources/real-time-decisions.ts +7 -1
  220. package/src/resources/real-time-payments-request-for-payments.ts +15 -0
  221. package/src/resources/real-time-payments-transfers.ts +12 -14
  222. package/src/resources/simulations/cards.ts +6 -1
  223. package/src/resources/simulations/index.ts +8 -7
  224. package/src/resources/simulations/interest-payments.ts +2 -3453
  225. package/src/resources/simulations/real-time-payments-transfers.ts +8 -1
  226. package/src/resources/simulations/simulations.ts +106 -4
  227. package/src/resources/transactions.ts +2 -0
  228. package/src/resources/wire-drawdown-requests.ts +7 -0
  229. package/src/resources/wire-transfers.ts +12 -14
  230. package/src/version.ts +1 -1
  231. package/version.d.ts +1 -1
  232. package/version.js +1 -1
  233. package/version.mjs +1 -1
  234. package/resources/card-profiles.d.ts +0 -287
  235. package/resources/card-profiles.d.ts.map +0 -1
  236. package/resources/card-profiles.js.map +0 -1
  237. package/resources/card-profiles.mjs +0 -37
  238. package/resources/card-profiles.mjs.map +0 -1
  239. package/resources/simulations/card-profiles.d.ts +0 -14
  240. package/resources/simulations/card-profiles.d.ts.map +0 -1
  241. package/resources/simulations/card-profiles.js +0 -19
  242. package/resources/simulations/card-profiles.js.map +0 -1
  243. package/resources/simulations/card-profiles.mjs +0 -15
  244. package/resources/simulations/card-profiles.mjs.map +0 -1
  245. package/src/resources/card-profiles.ts +0 -365
  246. package/src/resources/simulations/card-profiles.ts +0 -21
@@ -737,6 +737,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
737
737
  * Increase.
738
738
  * - `no_account_number_found` - The account number on the check does not exist at
739
739
  * Increase.
740
+ * - `refer_to_image` - The check is not readable. Please refer to the image.
741
+ * - `unable_to_process` - The check cannot be processed. This is rare: please
742
+ * contact support.
740
743
  */
741
744
  reason:
742
745
  | 'ach_route_disabled'
@@ -750,7 +753,9 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
750
753
  | 'not_authorized'
751
754
  | 'amount_mismatch'
752
755
  | 'not_our_item'
753
- | 'no_account_number_found';
756
+ | 'no_account_number_found'
757
+ | 'refer_to_image'
758
+ | 'unable_to_process';
754
759
  }
755
760
 
756
761
  /**
@@ -4468,6 +4473,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
4468
4473
  * - `bank_migration` - Bank migration
4469
4474
  * - `cashback` - Cashback
4470
4475
  * - `check_adjustment` - Check adjustment
4476
+ * - `collection_payment` - Collection payment
4471
4477
  * - `collection_receivable` - Collection receivable
4472
4478
  * - `empyreal_adjustment` - Empyreal adjustment
4473
4479
  * - `error` - Error
@@ -4483,6 +4489,7 @@ export namespace InboundRealTimePaymentsTransferSimulationResult {
4483
4489
  | 'bank_migration'
4484
4490
  | 'cashback'
4485
4491
  | 'check_adjustment'
4492
+ | 'collection_payment'
4486
4493
  | 'collection_receivable'
4487
4494
  | 'empyreal_adjustment'
4488
4495
  | 'error'
@@ -1,11 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless.
2
2
 
3
+ import * as Core from "../../core";
3
4
  import { APIResource } from "../../resource";
5
+ import * as SimulationsAPI from "./simulations";
6
+ import * as CardPaymentsAPI from "../card-payments";
4
7
  import * as AccountStatementsAPI from "./account-statements";
5
8
  import * as AccountTransfersAPI from "./account-transfers";
6
9
  import * as ACHTransfersAPI from "./ach-transfers";
7
10
  import * as CardDisputesAPI from "./card-disputes";
8
- import * as CardProfilesAPI from "./card-profiles";
9
11
  import * as CardRefundsAPI from "./card-refunds";
10
12
  import * as CardsAPI from "./cards";
11
13
  import * as CheckDepositsAPI from "./check-deposits";
@@ -29,7 +31,6 @@ export class Simulations extends APIResource {
29
31
  );
30
32
  achTransfers: ACHTransfersAPI.ACHTransfers = new ACHTransfersAPI.ACHTransfers(this._client);
31
33
  cardDisputes: CardDisputesAPI.CardDisputes = new CardDisputesAPI.CardDisputes(this._client);
32
- cardProfiles: CardProfilesAPI.CardProfiles = new CardProfilesAPI.CardProfiles(this._client);
33
34
  cardRefunds: CardRefundsAPI.CardRefunds = new CardRefundsAPI.CardRefunds(this._client);
34
35
  checkTransfers: CheckTransfersAPI.CheckTransfers = new CheckTransfersAPI.CheckTransfers(this._client);
35
36
  documents: DocumentsAPI.Documents = new DocumentsAPI.Documents(this._client);
@@ -50,9 +51,112 @@ export class Simulations extends APIResource {
50
51
  realTimePaymentsTransfers: RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers =
51
52
  new RealTimePaymentsTransfersAPI.RealTimePaymentsTransfers(this._client);
52
53
  physicalCards: PhysicalCardsAPI.PhysicalCards = new PhysicalCardsAPI.PhysicalCards(this._client);
54
+
55
+ /**
56
+ * Simulates expiring a card authorization immediately.
57
+ */
58
+ cardAuthorizationExpirations(
59
+ body: SimulationCardAuthorizationExpirationsParams,
60
+ options?: Core.RequestOptions,
61
+ ): Core.APIPromise<CardPaymentsAPI.CardPayment> {
62
+ return this._client.post('/simulations/card_authorization_expirations', { body, ...options });
63
+ }
64
+
65
+ /**
66
+ * Simulates the fuel confirmation of an authorization by a card acquirer. This
67
+ * happens asynchronously right after a fuel pump transaction is completed. A fuel
68
+ * confirmation can only happen once per authorization.
69
+ */
70
+ cardFuelConfirmations(
71
+ body: SimulationCardFuelConfirmationsParams,
72
+ options?: Core.RequestOptions,
73
+ ): Core.APIPromise<CardPaymentsAPI.CardPayment> {
74
+ return this._client.post('/simulations/card_fuel_confirmations', { body, ...options });
75
+ }
76
+
77
+ /**
78
+ * Simulates the increment of an authorization by a card acquirer. An authorization
79
+ * can be incremented multiple times.
80
+ */
81
+ cardIncrements(
82
+ body: SimulationCardIncrementsParams,
83
+ options?: Core.RequestOptions,
84
+ ): Core.APIPromise<CardPaymentsAPI.CardPayment> {
85
+ return this._client.post('/simulations/card_increments', { body, ...options });
86
+ }
87
+
88
+ /**
89
+ * Simulates the reversal of an authorization by a card acquirer. An authorization
90
+ * can be partially reversed multiple times, up until the total authorized amount.
91
+ * Marks the pending transaction as complete if the authorization is fully
92
+ * reversed.
93
+ */
94
+ cardReversals(
95
+ body: SimulationCardReversalsParams,
96
+ options?: Core.RequestOptions,
97
+ ): Core.APIPromise<CardPaymentsAPI.CardPayment> {
98
+ return this._client.post('/simulations/card_reversals', { body, ...options });
99
+ }
100
+ }
101
+
102
+ export interface SimulationCardAuthorizationExpirationsParams {
103
+ /**
104
+ * The identifier of the Card Payment to expire.
105
+ */
106
+ card_payment_id: string;
107
+ }
108
+
109
+ export interface SimulationCardFuelConfirmationsParams {
110
+ /**
111
+ * The amount of the fuel_confirmation in minor units in the card authorization's
112
+ * currency.
113
+ */
114
+ amount: number;
115
+
116
+ /**
117
+ * The identifier of the Card Payment to create a fuel_confirmation on.
118
+ */
119
+ card_payment_id: string;
120
+ }
121
+
122
+ export interface SimulationCardIncrementsParams {
123
+ /**
124
+ * The amount of the increment in minor units in the card authorization's currency.
125
+ */
126
+ amount: number;
127
+
128
+ /**
129
+ * The identifier of the Card Payment to create a increment on.
130
+ */
131
+ card_payment_id: string;
132
+
133
+ /**
134
+ * The identifier of the Event Subscription to use. If provided, will override the
135
+ * default real time event subscription. Because you can only create one real time
136
+ * decision event subscription, you can use this field to route events to any
137
+ * specified event subscription for testing purposes.
138
+ */
139
+ event_subscription_id?: string;
140
+ }
141
+
142
+ export interface SimulationCardReversalsParams {
143
+ /**
144
+ * The identifier of the Card Payment to create a reversal on.
145
+ */
146
+ card_payment_id: string;
147
+
148
+ /**
149
+ * The amount of the reversal in minor units in the card authorization's currency.
150
+ * This defaults to the authorization amount.
151
+ */
152
+ amount?: number;
53
153
  }
54
154
 
55
155
  export namespace Simulations {
156
+ export import SimulationCardAuthorizationExpirationsParams = SimulationsAPI.SimulationCardAuthorizationExpirationsParams;
157
+ export import SimulationCardFuelConfirmationsParams = SimulationsAPI.SimulationCardFuelConfirmationsParams;
158
+ export import SimulationCardIncrementsParams = SimulationsAPI.SimulationCardIncrementsParams;
159
+ export import SimulationCardReversalsParams = SimulationsAPI.SimulationCardReversalsParams;
56
160
  export import AccountTransfers = AccountTransfersAPI.AccountTransfers;
57
161
  export import AccountStatements = AccountStatementsAPI.AccountStatements;
58
162
  export import AccountStatementCreateParams = AccountStatementsAPI.AccountStatementCreateParams;
@@ -61,7 +165,6 @@ export namespace Simulations {
61
165
  export import ACHTransferReturnParams = ACHTransfersAPI.ACHTransferReturnParams;
62
166
  export import CardDisputes = CardDisputesAPI.CardDisputes;
63
167
  export import CardDisputeActionParams = CardDisputesAPI.CardDisputeActionParams;
64
- export import CardProfiles = CardProfilesAPI.CardProfiles;
65
168
  export import CardRefunds = CardRefundsAPI.CardRefunds;
66
169
  export import CardRefundCreateParams = CardRefundsAPI.CardRefundCreateParams;
67
170
  export import CheckTransfers = CheckTransfersAPI.CheckTransfers;
@@ -78,7 +181,6 @@ export namespace Simulations {
78
181
  export import InboundFundsHolds = InboundFundsHoldsAPI.InboundFundsHolds;
79
182
  export import InboundFundsHoldReleaseResponse = InboundFundsHoldsAPI.InboundFundsHoldReleaseResponse;
80
183
  export import InterestPayments = InterestPaymentsAPI.InterestPayments;
81
- export import InterestPaymentSimulationResult = InterestPaymentsAPI.InterestPaymentSimulationResult;
82
184
  export import InterestPaymentCreateParams = InterestPaymentsAPI.InterestPaymentCreateParams;
83
185
  export import WireTransfers = WireTransfersAPI.WireTransfers;
84
186
  export import WireTransferCreateInboundParams = WireTransfersAPI.WireTransferCreateInboundParams;
@@ -3354,6 +3354,7 @@ export namespace Transaction {
3354
3354
  * - `bank_migration` - Bank migration
3355
3355
  * - `cashback` - Cashback
3356
3356
  * - `check_adjustment` - Check adjustment
3357
+ * - `collection_payment` - Collection payment
3357
3358
  * - `collection_receivable` - Collection receivable
3358
3359
  * - `empyreal_adjustment` - Empyreal adjustment
3359
3360
  * - `error` - Error
@@ -3369,6 +3370,7 @@ export namespace Transaction {
3369
3370
  | 'bank_migration'
3370
3371
  | 'cashback'
3371
3372
  | 'check_adjustment'
3373
+ | 'collection_payment'
3372
3374
  | 'collection_receivable'
3373
3375
  | 'empyreal_adjustment'
3374
3376
  | 'error'
@@ -85,6 +85,13 @@ export interface WireDrawdownRequest {
85
85
  */
86
86
  fulfillment_transaction_id: string | null;
87
87
 
88
+ /**
89
+ * The idempotency key you chose for this object. This value is unique across
90
+ * Increase and is used to ensure that a request is only processed once. Learn more
91
+ * about [idempotency](https://increase.com/documentation/idempotency-keys).
92
+ */
93
+ idempotency_key: string | null;
94
+
88
95
  /**
89
96
  * The message the recipient will see as part of the drawdown request.
90
97
  */
@@ -156,6 +156,13 @@ export interface WireTransfer {
156
156
  */
157
157
  external_account_id: string | null;
158
158
 
159
+ /**
160
+ * The idempotency key you chose for this object. This value is unique across
161
+ * Increase and is used to ensure that a request is only processed once. Learn more
162
+ * about [idempotency](https://increase.com/documentation/idempotency-keys).
163
+ */
164
+ idempotency_key: string | null;
165
+
159
166
  /**
160
167
  * The message that will show on the recipient's bank statement.
161
168
  */
@@ -241,11 +248,6 @@ export interface WireTransfer {
241
248
  * `wire_transfer`.
242
249
  */
243
250
  type: 'wire_transfer';
244
-
245
- /**
246
- * The unique identifier you chose for this object.
247
- */
248
- unique_identifier: string | null;
249
251
  }
250
252
 
251
253
  export namespace WireTransfer {
@@ -473,13 +475,6 @@ export interface WireTransferCreateParams {
473
475
  * destination account.
474
476
  */
475
477
  routing_number?: string;
476
-
477
- /**
478
- * A unique identifier you choose for the transfer. Reusing this identifier for
479
- * another transfer will result in an error. You can query for the transfer
480
- * associated with this identifier using the List endpoint.
481
- */
482
- unique_identifier?: string;
483
478
  }
484
479
 
485
480
  export interface WireTransferListParams extends PageParams {
@@ -496,9 +491,12 @@ export interface WireTransferListParams extends PageParams {
496
491
  external_account_id?: string;
497
492
 
498
493
  /**
499
- * Filter records to the one with the specified `unique_identifier`.
494
+ * Filter records to the one with the specified `idempotency_key` you chose for
495
+ * that object. This value is unique across Increase and is used to ensure that a
496
+ * request is only processed once. Learn more about
497
+ * [idempotency](https://increase.com/documentation/idempotency-keys).
500
498
  */
501
- unique_identifier?: string;
499
+ idempotency_key?: string;
502
500
  }
503
501
 
504
502
  export namespace WireTransferListParams {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.28.0'; // x-release-please-version
1
+ export const VERSION = '0.30.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.28.0";
1
+ export declare const VERSION = "0.30.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.28.0'; // x-release-please-version
4
+ exports.VERSION = '0.30.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.28.0'; // x-release-please-version
1
+ export const VERSION = '0.30.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,287 +0,0 @@
1
- import * as Core from 'increase/core';
2
- import { APIResource } from 'increase/resource';
3
- import * as CardProfilesAPI from 'increase/resources/card-profiles';
4
- import { Page, type PageParams } from 'increase/pagination';
5
- export declare class CardProfiles extends APIResource {
6
- /**
7
- * Create a Card Profile
8
- */
9
- create(body: CardProfileCreateParams, options?: Core.RequestOptions): Core.APIPromise<CardProfile>;
10
- /**
11
- * Retrieve a Card Profile
12
- */
13
- retrieve(cardProfileId: string, options?: Core.RequestOptions): Core.APIPromise<CardProfile>;
14
- /**
15
- * List Card Profiles
16
- */
17
- list(query?: CardProfileListParams, options?: Core.RequestOptions): Core.PagePromise<CardProfilesPage, CardProfile>;
18
- list(options?: Core.RequestOptions): Core.PagePromise<CardProfilesPage, CardProfile>;
19
- /**
20
- * Archive an Card Profile
21
- */
22
- archive(cardProfileId: string, options?: Core.RequestOptions): Core.APIPromise<CardProfile>;
23
- }
24
- export declare class CardProfilesPage extends Page<CardProfile> {
25
- }
26
- /**
27
- * This contains artwork and metadata relating to a Card's appearance in digital
28
- * wallet apps like Apple Pay and Google Pay. For more information, see our guide
29
- * on [digital card artwork](https://increase.com/documentation/card-art).
30
- */
31
- export interface CardProfile {
32
- /**
33
- * The Card Profile identifier.
34
- */
35
- id: string;
36
- /**
37
- * The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
38
- * the Card Dispute was created.
39
- */
40
- created_at: string;
41
- /**
42
- * A description you can use to identify the Card Profile.
43
- */
44
- description: string;
45
- /**
46
- * How Cards should appear in digital wallets such as Apple Pay. Different wallets
47
- * will use these values to render card artwork appropriately for their app.
48
- */
49
- digital_wallets: CardProfile.DigitalWallets;
50
- /**
51
- * Whether this Card Profile is the default for all cards in its Increase group.
52
- */
53
- is_default: boolean;
54
- /**
55
- * How physical cards should be designed and shipped.
56
- */
57
- physical_cards: CardProfile.PhysicalCards | null;
58
- /**
59
- * The status of the Card Profile.
60
- *
61
- * - `pending` - The Card Profile is awaiting review from Increase and/or
62
- * processing by card networks.
63
- * - `rejected` - There is an issue with the Card Profile preventing it from use.
64
- * - `active` - The Card Profile can be assigned to Cards.
65
- * - `archived` - The Card Profile is no longer in use.
66
- */
67
- status: 'pending' | 'rejected' | 'active' | 'archived';
68
- /**
69
- * A constant representing the object's type. For this resource it will always be
70
- * `card_profile`.
71
- */
72
- type: 'card_profile';
73
- }
74
- export declare namespace CardProfile {
75
- /**
76
- * How Cards should appear in digital wallets such as Apple Pay. Different wallets
77
- * will use these values to render card artwork appropriately for their app.
78
- */
79
- interface DigitalWallets {
80
- /**
81
- * The identifier of the File containing the card's icon image.
82
- */
83
- app_icon_file_id: string;
84
- /**
85
- * The identifier of the File containing the card's front image.
86
- */
87
- background_image_file_id: string;
88
- /**
89
- * A user-facing description for the card itself.
90
- */
91
- card_description: string;
92
- /**
93
- * An email address the user can contact to receive support for their card.
94
- */
95
- contact_email: string | null;
96
- /**
97
- * A phone number the user can contact to receive support for their card.
98
- */
99
- contact_phone: string | null;
100
- /**
101
- * A website the user can visit to view and receive support for their card.
102
- */
103
- contact_website: string | null;
104
- /**
105
- * A user-facing description for whoever is issuing the card.
106
- */
107
- issuer_name: string;
108
- /**
109
- * The Card's text color, specified as an RGB triple.
110
- */
111
- text_color: DigitalWallets.TextColor;
112
- }
113
- namespace DigitalWallets {
114
- /**
115
- * The Card's text color, specified as an RGB triple.
116
- */
117
- interface TextColor {
118
- /**
119
- * The value of the blue channel in the RGB color.
120
- */
121
- blue: number;
122
- /**
123
- * The value of the green channel in the RGB color.
124
- */
125
- green: number;
126
- /**
127
- * The value of the red channel in the RGB color.
128
- */
129
- red: number;
130
- }
131
- }
132
- /**
133
- * How physical cards should be designed and shipped.
134
- */
135
- interface PhysicalCards {
136
- /**
137
- * The identifier of the File containing the physical card's back image.
138
- */
139
- back_image_file_id: string | null;
140
- /**
141
- * The identifier of the File containing the physical card's carrier image.
142
- */
143
- carrier_image_file_id: string | null;
144
- /**
145
- * A phone number the user can contact to receive support for their card.
146
- */
147
- contact_phone: string | null;
148
- /**
149
- * The identifier of the File containing the physical card's front image.
150
- */
151
- front_image_file_id: string | null;
152
- /**
153
- * The status of the Physical Card Profile.
154
- *
155
- * - `not_eligible` - The Card Profile is not eligible for physical cards.
156
- * - `rejected` - There is an issue with the Physical Card Profile preventing it
157
- * from use.
158
- * - `pending_creating` - The Card Profile has not yet been processed by Increase.
159
- * - `pending_reviewing` - The card profile is awaiting review by Increase.
160
- * - `pending_submitting` - The card profile is awaiting submission to the
161
- * fulfillment provider.
162
- * - `active` - The Physical Card Profile has been submitted to the fulfillment
163
- * provider and is ready to use.
164
- */
165
- status: 'not_eligible' | 'rejected' | 'pending_creating' | 'pending_reviewing' | 'pending_submitting' | 'active';
166
- }
167
- }
168
- export interface CardProfileCreateParams {
169
- /**
170
- * A description you can use to identify the Card Profile.
171
- */
172
- description: string;
173
- /**
174
- * How Cards should appear in digital wallets such as Apple Pay. Different wallets
175
- * will use these values to render card artwork appropriately for their app.
176
- */
177
- digital_wallets: CardProfileCreateParams.DigitalWallets;
178
- /**
179
- * How physical cards should be designed and shipped.
180
- */
181
- physical_cards?: CardProfileCreateParams.PhysicalCards;
182
- }
183
- export declare namespace CardProfileCreateParams {
184
- /**
185
- * How Cards should appear in digital wallets such as Apple Pay. Different wallets
186
- * will use these values to render card artwork appropriately for their app.
187
- */
188
- interface DigitalWallets {
189
- /**
190
- * The identifier of the File containing the card's icon image.
191
- */
192
- app_icon_file_id: string;
193
- /**
194
- * The identifier of the File containing the card's front image.
195
- */
196
- background_image_file_id: string;
197
- /**
198
- * A user-facing description for the card itself.
199
- */
200
- card_description: string;
201
- /**
202
- * A user-facing description for whoever is issuing the card.
203
- */
204
- issuer_name: string;
205
- /**
206
- * An email address the user can contact to receive support for their card.
207
- */
208
- contact_email?: string;
209
- /**
210
- * A phone number the user can contact to receive support for their card.
211
- */
212
- contact_phone?: string;
213
- /**
214
- * A website the user can visit to view and receive support for their card.
215
- */
216
- contact_website?: string;
217
- /**
218
- * The Card's text color, specified as an RGB triple. The default is white.
219
- */
220
- text_color?: DigitalWallets.TextColor;
221
- }
222
- namespace DigitalWallets {
223
- /**
224
- * The Card's text color, specified as an RGB triple. The default is white.
225
- */
226
- interface TextColor {
227
- /**
228
- * The value of the blue channel in the RGB color.
229
- */
230
- blue: number;
231
- /**
232
- * The value of the green channel in the RGB color.
233
- */
234
- green: number;
235
- /**
236
- * The value of the red channel in the RGB color.
237
- */
238
- red: number;
239
- }
240
- }
241
- /**
242
- * How physical cards should be designed and shipped.
243
- */
244
- interface PhysicalCards {
245
- /**
246
- * The identifier of the File containing the physical card's carrier image.
247
- */
248
- carrier_image_file_id: string;
249
- /**
250
- * A phone number the user can contact to receive support for their card.
251
- */
252
- contact_phone: string;
253
- /**
254
- * The identifier of the File containing the physical card's front image.
255
- */
256
- front_image_file_id: string;
257
- }
258
- }
259
- export interface CardProfileListParams extends PageParams {
260
- physical_cards_status?: CardProfileListParams.PhysicalCardsStatus;
261
- status?: CardProfileListParams.Status;
262
- }
263
- export declare namespace CardProfileListParams {
264
- interface PhysicalCardsStatus {
265
- /**
266
- * Filter Card Profiles for those with the specified physical card status or
267
- * statuses. For GET requests, this should be encoded as a comma-delimited string,
268
- * such as `?in=one,two,three`.
269
- */
270
- in?: Array<'not_eligible' | 'rejected' | 'pending_creating' | 'pending_reviewing' | 'pending_submitting' | 'active'>;
271
- }
272
- interface Status {
273
- /**
274
- * Filter Card Profiles for those with the specified digital wallet status or
275
- * statuses. For GET requests, this should be encoded as a comma-delimited string,
276
- * such as `?in=one,two,three`.
277
- */
278
- in?: Array<'pending' | 'rejected' | 'active' | 'archived'>;
279
- }
280
- }
281
- export declare namespace CardProfiles {
282
- export import CardProfile = CardProfilesAPI.CardProfile;
283
- export import CardProfilesPage = CardProfilesAPI.CardProfilesPage;
284
- export import CardProfileCreateParams = CardProfilesAPI.CardProfileCreateParams;
285
- export import CardProfileListParams = CardProfilesAPI.CardProfileListParams;
286
- }
287
- //# sourceMappingURL=card-profiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card-profiles.d.ts","sourceRoot":"","sources":["../src/resources/card-profiles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBA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I,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,aAAqB,EAAE,OAA6B;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,aAAa,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;CACF;AAvCD,oCAuCC;AAED,MAAa,gBAAiB,SAAQ,iBAAiB;CAAG;AAA1D,4CAA0D;AAsT1D,WAAiB,YAAY;IAEb,6BAAgB,GAAG,eAAe,CAAC,gBAAgB,CAAC;AAGpE,CAAC,EALgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAK5B"}
@@ -1,37 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless.
2
- import { APIResource } from 'increase/resource';
3
- import { isRequestOptions } from 'increase/core';
4
- import * as CardProfilesAPI from 'increase/resources/card-profiles';
5
- import { Page } from 'increase/pagination';
6
- export class CardProfiles extends APIResource {
7
- /**
8
- * Create a Card Profile
9
- */
10
- create(body, options) {
11
- return this._client.post('/card_profiles', { body, ...options });
12
- }
13
- /**
14
- * Retrieve a Card Profile
15
- */
16
- retrieve(cardProfileId, options) {
17
- return this._client.get(`/card_profiles/${cardProfileId}`, options);
18
- }
19
- list(query = {}, options) {
20
- if (isRequestOptions(query)) {
21
- return this.list({}, query);
22
- }
23
- return this._client.getAPIList('/card_profiles', CardProfilesPage, { query, ...options });
24
- }
25
- /**
26
- * Archive an Card Profile
27
- */
28
- archive(cardProfileId, options) {
29
- return this._client.post(`/card_profiles/${cardProfileId}/archive`, options);
30
- }
31
- }
32
- export class CardProfilesPage extends Page {
33
- }
34
- (function (CardProfiles) {
35
- CardProfiles.CardProfilesPage = CardProfilesAPI.CardProfilesPage;
36
- })(CardProfiles || (CardProfiles = {}));
37
- //# sourceMappingURL=card-profiles.mjs.map
@@ -1 +0,0 @@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B"}
@@ -1,14 +0,0 @@
1
- import * as Core from 'increase/core';
2
- import { APIResource } from 'increase/resource';
3
- import * as CardProfilesAPI from 'increase/resources/card-profiles';
4
- export declare class CardProfiles extends APIResource {
5
- /**
6
- * After a [Card Profile](#card-profile) is created in production, the images will
7
- * be uploaded to Visa within one day. Since Card Profiles are not uploaded to Visa
8
- * in sandbox, this endpoint simulates that step. Invoking this simulation triggers
9
- * the webhooks Increase sends when the Card Profile is approved and updates the
10
- * status of the Card Profile.
11
- */
12
- approve(cardProfileId: string, options?: Core.RequestOptions): Core.APIPromise<CardProfilesAPI.CardProfile>;
13
- }
14
- //# sourceMappingURL=card-profiles.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"card-profiles.d.ts","sourceRoot":"","sources":["../../src/resources/simulations/card-profiles.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,IAAI,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,eAAe,MAAM,kCAAkC,CAAC;AAEpE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;OAMG;IACH,OAAO,CACL,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAC5B,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC;CAGhD"}