increase 0.11.2 → 0.11.4
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.
- package/CHANGELOG.md +25 -0
- package/README.md +2 -2
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +31 -22
- package/core.js.map +1 -1
- package/core.mjs +32 -23
- package/core.mjs.map +1 -1
- package/error.d.ts +3 -1
- package/error.d.ts.map +1 -1
- package/error.js +5 -2
- package/error.js.map +1 -1
- package/error.mjs +3 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +14 -1
- package/index.d.ts +14 -1
- package/index.d.ts.map +1 -1
- package/index.js +10 -3
- package/index.js.map +1 -1
- package/index.mjs +9 -2
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-numbers.d.ts +40 -0
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/card-payments.d.ts +1797 -0
- package/resources/card-payments.d.ts.map +1 -0
- package/resources/card-payments.js +28 -0
- package/resources/card-payments.js.map +1 -0
- package/resources/card-payments.mjs +23 -0
- package/resources/card-payments.mjs.map +1 -0
- package/resources/cards.d.ts +7 -1
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +5 -0
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/event-subscriptions.d.ts +26 -2
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/event-subscriptions.js.map +1 -1
- package/resources/event-subscriptions.mjs.map +1 -1
- package/resources/events.d.ts +14 -2
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js.map +1 -1
- package/resources/events.mjs.map +1 -1
- package/resources/files.d.ts +4 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js.map +1 -1
- package/resources/files.mjs.map +1 -1
- package/resources/inbound-ach-transfers.d.ts +5 -0
- package/resources/inbound-ach-transfers.d.ts.map +1 -1
- package/resources/inbound-ach-transfers.js.map +1 -1
- package/resources/inbound-ach-transfers.mjs.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/physical-cards.d.ts +318 -0
- package/resources/physical-cards.d.ts.map +1 -0
- package/resources/physical-cards.js +40 -0
- package/resources/physical-cards.js.map +1 -0
- package/resources/physical-cards.mjs +35 -0
- package/resources/physical-cards.mjs.map +1 -0
- package/resources/simulations/ach-transfers.d.ts +35 -5
- package/resources/simulations/ach-transfers.d.ts.map +1 -1
- package/resources/simulations/ach-transfers.js.map +1 -1
- package/resources/simulations/ach-transfers.mjs.map +1 -1
- package/resources/simulations/cards.d.ts +5 -0
- package/resources/simulations/cards.d.ts.map +1 -1
- package/resources/simulations/cards.js.map +1 -1
- package/resources/simulations/cards.mjs.map +1 -1
- package/resources/simulations/index.d.ts +1 -0
- package/resources/simulations/index.d.ts.map +1 -1
- package/resources/simulations/index.js +3 -1
- package/resources/simulations/index.js.map +1 -1
- package/resources/simulations/index.mjs +1 -0
- package/resources/simulations/index.mjs.map +1 -1
- package/resources/simulations/interest-payments.d.ts +25 -5
- package/resources/simulations/interest-payments.d.ts.map +1 -1
- package/resources/simulations/interest-payments.js.map +1 -1
- package/resources/simulations/interest-payments.mjs.map +1 -1
- package/resources/simulations/physical-cards.d.ts +34 -0
- package/resources/simulations/physical-cards.d.ts.map +1 -0
- package/resources/simulations/physical-cards.js +19 -0
- package/resources/simulations/physical-cards.js.map +1 -0
- package/resources/simulations/physical-cards.mjs +15 -0
- package/resources/simulations/physical-cards.mjs.map +1 -0
- package/resources/simulations/real-time-payments-transfers.d.ts +30 -5
- package/resources/simulations/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/simulations/real-time-payments-transfers.js.map +1 -1
- package/resources/simulations/real-time-payments-transfers.mjs.map +1 -1
- package/resources/simulations/simulations.d.ts +4 -0
- package/resources/simulations/simulations.d.ts.map +1 -1
- package/resources/simulations/simulations.js +3 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +3 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/resources/simulations/wire-transfers.d.ts +30 -5
- package/resources/simulations/wire-transfers.d.ts.map +1 -1
- package/resources/simulations/wire-transfers.js.map +1 -1
- package/resources/simulations/wire-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +26 -6
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +5 -0
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/core.ts +39 -28
- package/src/error.ts +3 -1
- package/src/index.ts +17 -1
- package/src/resources/account-numbers.ts +44 -0
- package/src/resources/card-payments.ts +2284 -0
- package/src/resources/cards.ts +8 -1
- package/src/resources/declined-transactions.ts +6 -0
- package/src/resources/event-subscriptions.ts +44 -0
- package/src/resources/events.ts +32 -0
- package/src/resources/files.ts +5 -0
- package/src/resources/inbound-ach-transfers.ts +6 -0
- package/src/resources/index.ts +9 -0
- package/src/resources/physical-cards.ts +394 -0
- package/src/resources/simulations/ach-transfers.ts +42 -6
- package/src/resources/simulations/cards.ts +6 -0
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/interest-payments.ts +30 -6
- package/src/resources/simulations/physical-cards.ts +51 -0
- package/src/resources/simulations/real-time-payments-transfers.ts +36 -6
- package/src/resources/simulations/simulations.ts +5 -0
- package/src/resources/simulations/wire-transfers.ts +36 -6
- package/src/resources/transactions.ts +32 -8
- package/src/resources/wire-transfers.ts +6 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../e/core";
|
|
4
|
+
import { APIResource } from "../e/resource";
|
|
5
|
+
import { isRequestOptions } from "../e/core";
|
|
6
|
+
import * as API from './index';
|
|
7
|
+
import { Page, PageParams } from "../e/pagination";
|
|
8
|
+
|
|
9
|
+
export class PhysicalCards extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a Physical Card
|
|
12
|
+
*/
|
|
13
|
+
create(body: PhysicalCardCreateParams, options?: Core.RequestOptions): Core.APIPromise<PhysicalCard> {
|
|
14
|
+
return this.post('/physical_cards', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Retrieve a Physical Card
|
|
19
|
+
*/
|
|
20
|
+
retrieve(physicalCardId: string, options?: Core.RequestOptions): Core.APIPromise<PhysicalCard> {
|
|
21
|
+
return this.get(`/physical_cards/${physicalCardId}`, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Update a Physical Card
|
|
26
|
+
*/
|
|
27
|
+
update(
|
|
28
|
+
physicalCardId: string,
|
|
29
|
+
body: PhysicalCardUpdateParams,
|
|
30
|
+
options?: Core.RequestOptions,
|
|
31
|
+
): Core.APIPromise<PhysicalCard> {
|
|
32
|
+
return this.patch(`/physical_cards/${physicalCardId}`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* List Physical Cards
|
|
37
|
+
*/
|
|
38
|
+
list(
|
|
39
|
+
query?: PhysicalCardListParams,
|
|
40
|
+
options?: Core.RequestOptions,
|
|
41
|
+
): Core.PagePromise<PhysicalCardsPage, PhysicalCard>;
|
|
42
|
+
list(options?: Core.RequestOptions): Core.PagePromise<PhysicalCardsPage, PhysicalCard>;
|
|
43
|
+
list(
|
|
44
|
+
query: PhysicalCardListParams | Core.RequestOptions = {},
|
|
45
|
+
options?: Core.RequestOptions,
|
|
46
|
+
): Core.PagePromise<PhysicalCardsPage, PhysicalCard> {
|
|
47
|
+
if (isRequestOptions(query)) {
|
|
48
|
+
return this.list({}, query);
|
|
49
|
+
}
|
|
50
|
+
return this.getAPIList('/physical_cards', PhysicalCardsPage, { query, ...options });
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export class PhysicalCardsPage extends Page<PhysicalCard> {}
|
|
55
|
+
// alias so we can export it in the namespace
|
|
56
|
+
type _PhysicalCardsPage = PhysicalCardsPage;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Custom physical Visa cards that are shipped to your customers. The artwork is
|
|
60
|
+
* configurable by a connected [Card Profile](/documentation/api#card-profiles).
|
|
61
|
+
* The same Card can be used for multiple Physical Cards. Printing cards incurs a
|
|
62
|
+
* fee. Please contact [support@increase.com](mailto:support@increase.com) for
|
|
63
|
+
* pricing!
|
|
64
|
+
*/
|
|
65
|
+
export interface PhysicalCard {
|
|
66
|
+
/**
|
|
67
|
+
* The physical card identifier.
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The identifier for the Card this Physical Card represents.
|
|
73
|
+
*/
|
|
74
|
+
card_id: string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The Card Profile used for this Physical Card.
|
|
78
|
+
*/
|
|
79
|
+
card_profile_id: string | null;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Details about the cardholder, as it appears on the printed card.
|
|
83
|
+
*/
|
|
84
|
+
cardholder: PhysicalCard.Cardholder | null;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
88
|
+
* the Physical Card was created.
|
|
89
|
+
*/
|
|
90
|
+
created_at: string;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The details used to ship this physical card.
|
|
94
|
+
*/
|
|
95
|
+
shipment: PhysicalCard.Shipment;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The status of the Physical Card.
|
|
99
|
+
*
|
|
100
|
+
* - `active` - The physical card is active.
|
|
101
|
+
* - `disabled` - The physical card is temporarily disabled.
|
|
102
|
+
* - `canceled` - The physical card is permanently canceled.
|
|
103
|
+
*/
|
|
104
|
+
status: 'active' | 'disabled' | 'canceled';
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* A constant representing the object's type. For this resource it will always be
|
|
108
|
+
* `physical_card`.
|
|
109
|
+
*/
|
|
110
|
+
type: 'physical_card';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export namespace PhysicalCard {
|
|
114
|
+
/**
|
|
115
|
+
* Details about the cardholder, as it appears on the printed card.
|
|
116
|
+
*/
|
|
117
|
+
export interface Cardholder {
|
|
118
|
+
/**
|
|
119
|
+
* The cardholder's first name.
|
|
120
|
+
*/
|
|
121
|
+
first_name: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* The cardholder's last name.
|
|
125
|
+
*/
|
|
126
|
+
last_name: string;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* The details used to ship this physical card.
|
|
131
|
+
*/
|
|
132
|
+
export interface Shipment {
|
|
133
|
+
/**
|
|
134
|
+
* The location to where the card's packing label is addressed.
|
|
135
|
+
*/
|
|
136
|
+
address: Shipment.Address;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* The shipping method.
|
|
140
|
+
*
|
|
141
|
+
* - `usps` - USPS Post with tracking.
|
|
142
|
+
* - `fedex_priority_overnight` - FedEx Priority Overnight, no signature.
|
|
143
|
+
* - `fedex_2_day` - FedEx 2-day.
|
|
144
|
+
*/
|
|
145
|
+
method: 'usps' | 'fedex_priority_overnight' | 'fedex_2_day';
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* The status of this shipment.
|
|
149
|
+
*
|
|
150
|
+
* - `pending` - The physical card has not yet been shipped.
|
|
151
|
+
* - `canceled` - The physical card shipment was canceled prior to submission.
|
|
152
|
+
* - `submitted` - The physical card shipment has been submitted to the card
|
|
153
|
+
* fulfillment provider.
|
|
154
|
+
* - `acknowledged` - The physical card shipment has been acknowledged by the card
|
|
155
|
+
* fulfillment provider and will be processed in their next batch.
|
|
156
|
+
* - `rejected` - The physical card shipment was rejected by the card printer due
|
|
157
|
+
* to an error.
|
|
158
|
+
* - `shipped` - The physical card has been shipped.
|
|
159
|
+
* - `returned` - The physical card shipment was returned to the sender and
|
|
160
|
+
* destroyed by the production facility.
|
|
161
|
+
*/
|
|
162
|
+
status: 'pending' | 'canceled' | 'submitted' | 'acknowledged' | 'rejected' | 'shipped' | 'returned';
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Tracking details for the shipment.
|
|
166
|
+
*/
|
|
167
|
+
tracking: Shipment.Tracking | null;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export namespace Shipment {
|
|
171
|
+
/**
|
|
172
|
+
* The location to where the card's packing label is addressed.
|
|
173
|
+
*/
|
|
174
|
+
export interface Address {
|
|
175
|
+
/**
|
|
176
|
+
* The city of the shipping address.
|
|
177
|
+
*/
|
|
178
|
+
city: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The first line of the shipping address.
|
|
182
|
+
*/
|
|
183
|
+
line1: string;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* The second line of the shipping address.
|
|
187
|
+
*/
|
|
188
|
+
line2: string | null;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The third line of the shipping address.
|
|
192
|
+
*/
|
|
193
|
+
line3: string | null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The name of the recipient.
|
|
197
|
+
*/
|
|
198
|
+
name: string;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* The postal code of the shipping address.
|
|
202
|
+
*/
|
|
203
|
+
postal_code: string;
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* The US state of the shipping address.
|
|
207
|
+
*/
|
|
208
|
+
state: string;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* Tracking details for the shipment.
|
|
213
|
+
*/
|
|
214
|
+
export interface Tracking {
|
|
215
|
+
/**
|
|
216
|
+
* The tracking number.
|
|
217
|
+
*/
|
|
218
|
+
number: string;
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* For returned shipments, this describes why the package was returned.
|
|
222
|
+
*/
|
|
223
|
+
return_reason: string | null;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
227
|
+
* the fulfillment provider marked the card as ready for pick-up by the shipment
|
|
228
|
+
* carrier.
|
|
229
|
+
*/
|
|
230
|
+
shipped_at: string;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface PhysicalCardCreateParams {
|
|
236
|
+
/**
|
|
237
|
+
* The underlying card representing this physical card.
|
|
238
|
+
*/
|
|
239
|
+
card_id: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The card profile to use for this physical card.
|
|
243
|
+
*/
|
|
244
|
+
card_profile_id: string;
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Details about the cardholder, as it will appear on the physical card.
|
|
248
|
+
*/
|
|
249
|
+
cardholder: PhysicalCardCreateParams.Cardholder;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* The details used to ship this physical card.
|
|
253
|
+
*/
|
|
254
|
+
shipment: PhysicalCardCreateParams.Shipment;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export namespace PhysicalCardCreateParams {
|
|
258
|
+
/**
|
|
259
|
+
* Details about the cardholder, as it will appear on the physical card.
|
|
260
|
+
*/
|
|
261
|
+
export interface Cardholder {
|
|
262
|
+
/**
|
|
263
|
+
* The cardholder's first name.
|
|
264
|
+
*/
|
|
265
|
+
first_name: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The cardholder's last name.
|
|
269
|
+
*/
|
|
270
|
+
last_name: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* The details used to ship this physical card.
|
|
275
|
+
*/
|
|
276
|
+
export interface Shipment {
|
|
277
|
+
/**
|
|
278
|
+
* The address to where the card should be shipped.
|
|
279
|
+
*/
|
|
280
|
+
address: Shipment.Address;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* The shipping method to use.
|
|
284
|
+
*
|
|
285
|
+
* - `usps` - USPS Post with tracking.
|
|
286
|
+
* - `fedex_priority_overnight` - FedEx Priority Overnight, no signature.
|
|
287
|
+
* - `fedex_2_day` - FedEx 2-day.
|
|
288
|
+
*/
|
|
289
|
+
method: 'usps' | 'fedex_priority_overnight' | 'fedex_2_day';
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
export namespace Shipment {
|
|
293
|
+
/**
|
|
294
|
+
* The address to where the card should be shipped.
|
|
295
|
+
*/
|
|
296
|
+
export interface Address {
|
|
297
|
+
/**
|
|
298
|
+
* The city of the shipping address.
|
|
299
|
+
*/
|
|
300
|
+
city: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The first line of the shipping address.
|
|
304
|
+
*/
|
|
305
|
+
line1: string;
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* The name of the recipient.
|
|
309
|
+
*/
|
|
310
|
+
name: string;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* The postal code of the shipping address.
|
|
314
|
+
*/
|
|
315
|
+
postal_code: string;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* The US state of the shipping address.
|
|
319
|
+
*/
|
|
320
|
+
state: string;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* The second line of the shipping address.
|
|
324
|
+
*/
|
|
325
|
+
line2?: string;
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The third line of the shipping address.
|
|
329
|
+
*/
|
|
330
|
+
line3?: string;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* The phone number of the receipient.
|
|
334
|
+
*/
|
|
335
|
+
phone_number?: string;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export interface PhysicalCardUpdateParams {
|
|
341
|
+
/**
|
|
342
|
+
* The status to update the Physical Card to.
|
|
343
|
+
*
|
|
344
|
+
* - `active` - The physical card is active.
|
|
345
|
+
* - `disabled` - The physical card is temporarily disabled.
|
|
346
|
+
* - `canceled` - The physical card is permanently canceled.
|
|
347
|
+
*/
|
|
348
|
+
status: 'active' | 'disabled' | 'canceled';
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export interface PhysicalCardListParams extends PageParams {
|
|
352
|
+
/**
|
|
353
|
+
* Filter Physical Cards to ones belonging to the specified Card.
|
|
354
|
+
*/
|
|
355
|
+
card_id?: string;
|
|
356
|
+
|
|
357
|
+
created_at?: PhysicalCardListParams.CreatedAt;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
export namespace PhysicalCardListParams {
|
|
361
|
+
export interface CreatedAt {
|
|
362
|
+
/**
|
|
363
|
+
* Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
364
|
+
* timestamp.
|
|
365
|
+
*/
|
|
366
|
+
after?: string;
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
370
|
+
* timestamp.
|
|
371
|
+
*/
|
|
372
|
+
before?: string;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Return results on or after this
|
|
376
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
377
|
+
*/
|
|
378
|
+
on_or_after?: string;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Return results on or before this
|
|
382
|
+
* [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
383
|
+
*/
|
|
384
|
+
on_or_before?: string;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export namespace PhysicalCards {
|
|
389
|
+
export import PhysicalCard = API.PhysicalCard;
|
|
390
|
+
export type PhysicalCardsPage = _PhysicalCardsPage;
|
|
391
|
+
export import PhysicalCardCreateParams = API.PhysicalCardCreateParams;
|
|
392
|
+
export import PhysicalCardUpdateParams = API.PhysicalCardUpdateParams;
|
|
393
|
+
export import PhysicalCardListParams = API.PhysicalCardListParams;
|
|
394
|
+
}
|
|
@@ -1047,6 +1047,12 @@ export namespace ACHTransferSimulation {
|
|
|
1047
1047
|
*/
|
|
1048
1048
|
originator_name: string | null;
|
|
1049
1049
|
|
|
1050
|
+
/**
|
|
1051
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
1052
|
+
* the transfer.
|
|
1053
|
+
*/
|
|
1054
|
+
originator_routing_number: string | null;
|
|
1055
|
+
|
|
1050
1056
|
/**
|
|
1051
1057
|
* A free-form message set by the wire originator.
|
|
1052
1058
|
*/
|
|
@@ -1238,10 +1244,10 @@ export namespace ACHTransferSimulation {
|
|
|
1238
1244
|
* - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
|
|
1239
1245
|
* `card_dispute_acceptance` object.
|
|
1240
1246
|
* - `card_refund` - Card Refund: details will be under the `card_refund` object.
|
|
1241
|
-
* - `card_revenue_payment` - Card Revenue Payment: details will be under the
|
|
1242
|
-
* `card_revenue_payment` object.
|
|
1243
1247
|
* - `card_settlement` - Card Settlement: details will be under the
|
|
1244
1248
|
* `card_settlement` object.
|
|
1249
|
+
* - `card_revenue_payment` - Card Revenue Payment: details will be under the
|
|
1250
|
+
* `card_revenue_payment` object.
|
|
1245
1251
|
* - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
|
|
1246
1252
|
* the `check_deposit_acceptance` object.
|
|
1247
1253
|
* - `check_deposit_return` - Check Deposit Return: details will be under the
|
|
@@ -1265,11 +1271,11 @@ export namespace ACHTransferSimulation {
|
|
|
1265
1271
|
* - `inbound_real_time_payments_transfer_confirmation` - Inbound Real-Time
|
|
1266
1272
|
* Payments Transfer Confirmation: details will be under the
|
|
1267
1273
|
* `inbound_real_time_payments_transfer_confirmation` object.
|
|
1268
|
-
* - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
|
|
1269
|
-
* be under the `inbound_wire_drawdown_payment` object.
|
|
1270
1274
|
* - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
|
|
1271
1275
|
* Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
|
|
1272
1276
|
* object.
|
|
1277
|
+
* - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
|
|
1278
|
+
* be under the `inbound_wire_drawdown_payment` object.
|
|
1273
1279
|
* - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
|
|
1274
1280
|
* `inbound_wire_reversal` object.
|
|
1275
1281
|
* - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
|
|
@@ -1296,8 +1302,8 @@ export namespace ACHTransferSimulation {
|
|
|
1296
1302
|
| 'ach_transfer_return'
|
|
1297
1303
|
| 'card_dispute_acceptance'
|
|
1298
1304
|
| 'card_refund'
|
|
1299
|
-
| 'card_revenue_payment'
|
|
1300
1305
|
| 'card_settlement'
|
|
1306
|
+
| 'card_revenue_payment'
|
|
1301
1307
|
| 'check_deposit_acceptance'
|
|
1302
1308
|
| 'check_deposit_return'
|
|
1303
1309
|
| 'check_transfer_deposit'
|
|
@@ -1309,8 +1315,8 @@ export namespace ACHTransferSimulation {
|
|
|
1309
1315
|
| 'inbound_check'
|
|
1310
1316
|
| 'inbound_international_ach_transfer'
|
|
1311
1317
|
| 'inbound_real_time_payments_transfer_confirmation'
|
|
1312
|
-
| 'inbound_wire_drawdown_payment'
|
|
1313
1318
|
| 'inbound_wire_drawdown_payment_reversal'
|
|
1319
|
+
| 'inbound_wire_drawdown_payment'
|
|
1314
1320
|
| 'inbound_wire_reversal'
|
|
1315
1321
|
| 'inbound_wire_transfer'
|
|
1316
1322
|
| 'interest_payment'
|
|
@@ -3908,6 +3914,12 @@ export namespace ACHTransferSimulation {
|
|
|
3908
3914
|
*/
|
|
3909
3915
|
originator_name: string | null;
|
|
3910
3916
|
|
|
3917
|
+
/**
|
|
3918
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
3919
|
+
* the transfer.
|
|
3920
|
+
*/
|
|
3921
|
+
originator_routing_number: string | null;
|
|
3922
|
+
|
|
3911
3923
|
/**
|
|
3912
3924
|
* An Increase-created concatenation of the Originator-to-Beneficiary lines.
|
|
3913
3925
|
*/
|
|
@@ -3970,6 +3982,12 @@ export namespace ACHTransferSimulation {
|
|
|
3970
3982
|
*/
|
|
3971
3983
|
input_source: string;
|
|
3972
3984
|
|
|
3985
|
+
/**
|
|
3986
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
3987
|
+
* the transfer.
|
|
3988
|
+
*/
|
|
3989
|
+
originator_routing_number: string | null;
|
|
3990
|
+
|
|
3973
3991
|
/**
|
|
3974
3992
|
* The Fedwire cycle date for the wire transfer that was reversed.
|
|
3975
3993
|
*/
|
|
@@ -4038,6 +4056,12 @@ export namespace ACHTransferSimulation {
|
|
|
4038
4056
|
*/
|
|
4039
4057
|
input_source: string;
|
|
4040
4058
|
|
|
4059
|
+
/**
|
|
4060
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
4061
|
+
* the transfer.
|
|
4062
|
+
*/
|
|
4063
|
+
originator_routing_number: string | null;
|
|
4064
|
+
|
|
4041
4065
|
/**
|
|
4042
4066
|
* The Fedwire cycle date for the wire transfer that is being reversed by this
|
|
4043
4067
|
* message.
|
|
@@ -4143,6 +4167,12 @@ export namespace ACHTransferSimulation {
|
|
|
4143
4167
|
*/
|
|
4144
4168
|
originator_name: string | null;
|
|
4145
4169
|
|
|
4170
|
+
/**
|
|
4171
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
4172
|
+
* the transfer.
|
|
4173
|
+
*/
|
|
4174
|
+
originator_routing_number: string | null;
|
|
4175
|
+
|
|
4146
4176
|
/**
|
|
4147
4177
|
* An Increase-created concatenation of the Originator-to-Beneficiary lines.
|
|
4148
4178
|
*/
|
|
@@ -4427,6 +4457,12 @@ export namespace ACHTransferSimulation {
|
|
|
4427
4457
|
*/
|
|
4428
4458
|
originator_company_name: string;
|
|
4429
4459
|
|
|
4460
|
+
/**
|
|
4461
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
4462
|
+
* the transfer.
|
|
4463
|
+
*/
|
|
4464
|
+
originator_routing_number: string;
|
|
4465
|
+
|
|
4430
4466
|
/**
|
|
4431
4467
|
* The id of the receiver of the transfer.
|
|
4432
4468
|
*/
|
|
@@ -1028,6 +1028,12 @@ export namespace CardAuthorizationSimulation {
|
|
|
1028
1028
|
*/
|
|
1029
1029
|
originator_name: string | null;
|
|
1030
1030
|
|
|
1031
|
+
/**
|
|
1032
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
1033
|
+
* the transfer.
|
|
1034
|
+
*/
|
|
1035
|
+
originator_routing_number: string | null;
|
|
1036
|
+
|
|
1031
1037
|
/**
|
|
1032
1038
|
* A free-form message set by the wire originator.
|
|
1033
1039
|
*/
|
|
@@ -36,6 +36,7 @@ export {
|
|
|
36
36
|
InterestPaymentCreateParams,
|
|
37
37
|
InterestPayments,
|
|
38
38
|
} from './interest-payments';
|
|
39
|
+
export { PhysicalCardShipmentAdvanceParams, PhysicalCards } from './physical-cards';
|
|
39
40
|
export { ProgramCreateParams, Programs } from './programs';
|
|
40
41
|
export { Simulations } from './simulations';
|
|
41
42
|
export { WireTransferSimulation, WireTransferCreateInboundParams, WireTransfers } from './wire-transfers';
|
|
@@ -183,10 +183,10 @@ export namespace InterestPaymentSimulationResult {
|
|
|
183
183
|
* - `card_dispute_acceptance` - Card Dispute Acceptance: details will be under the
|
|
184
184
|
* `card_dispute_acceptance` object.
|
|
185
185
|
* - `card_refund` - Card Refund: details will be under the `card_refund` object.
|
|
186
|
-
* - `card_revenue_payment` - Card Revenue Payment: details will be under the
|
|
187
|
-
* `card_revenue_payment` object.
|
|
188
186
|
* - `card_settlement` - Card Settlement: details will be under the
|
|
189
187
|
* `card_settlement` object.
|
|
188
|
+
* - `card_revenue_payment` - Card Revenue Payment: details will be under the
|
|
189
|
+
* `card_revenue_payment` object.
|
|
190
190
|
* - `check_deposit_acceptance` - Check Deposit Acceptance: details will be under
|
|
191
191
|
* the `check_deposit_acceptance` object.
|
|
192
192
|
* - `check_deposit_return` - Check Deposit Return: details will be under the
|
|
@@ -210,11 +210,11 @@ export namespace InterestPaymentSimulationResult {
|
|
|
210
210
|
* - `inbound_real_time_payments_transfer_confirmation` - Inbound Real-Time
|
|
211
211
|
* Payments Transfer Confirmation: details will be under the
|
|
212
212
|
* `inbound_real_time_payments_transfer_confirmation` object.
|
|
213
|
-
* - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
|
|
214
|
-
* be under the `inbound_wire_drawdown_payment` object.
|
|
215
213
|
* - `inbound_wire_drawdown_payment_reversal` - Inbound Wire Drawdown Payment
|
|
216
214
|
* Reversal: details will be under the `inbound_wire_drawdown_payment_reversal`
|
|
217
215
|
* object.
|
|
216
|
+
* - `inbound_wire_drawdown_payment` - Inbound Wire Drawdown Payment: details will
|
|
217
|
+
* be under the `inbound_wire_drawdown_payment` object.
|
|
218
218
|
* - `inbound_wire_reversal` - Inbound Wire Reversal: details will be under the
|
|
219
219
|
* `inbound_wire_reversal` object.
|
|
220
220
|
* - `inbound_wire_transfer` - Inbound Wire Transfer: details will be under the
|
|
@@ -241,8 +241,8 @@ export namespace InterestPaymentSimulationResult {
|
|
|
241
241
|
| 'ach_transfer_return'
|
|
242
242
|
| 'card_dispute_acceptance'
|
|
243
243
|
| 'card_refund'
|
|
244
|
-
| 'card_revenue_payment'
|
|
245
244
|
| 'card_settlement'
|
|
245
|
+
| 'card_revenue_payment'
|
|
246
246
|
| 'check_deposit_acceptance'
|
|
247
247
|
| 'check_deposit_return'
|
|
248
248
|
| 'check_transfer_deposit'
|
|
@@ -254,8 +254,8 @@ export namespace InterestPaymentSimulationResult {
|
|
|
254
254
|
| 'inbound_check'
|
|
255
255
|
| 'inbound_international_ach_transfer'
|
|
256
256
|
| 'inbound_real_time_payments_transfer_confirmation'
|
|
257
|
-
| 'inbound_wire_drawdown_payment'
|
|
258
257
|
| 'inbound_wire_drawdown_payment_reversal'
|
|
258
|
+
| 'inbound_wire_drawdown_payment'
|
|
259
259
|
| 'inbound_wire_reversal'
|
|
260
260
|
| 'inbound_wire_transfer'
|
|
261
261
|
| 'interest_payment'
|
|
@@ -2853,6 +2853,12 @@ export namespace InterestPaymentSimulationResult {
|
|
|
2853
2853
|
*/
|
|
2854
2854
|
originator_name: string | null;
|
|
2855
2855
|
|
|
2856
|
+
/**
|
|
2857
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
2858
|
+
* the transfer.
|
|
2859
|
+
*/
|
|
2860
|
+
originator_routing_number: string | null;
|
|
2861
|
+
|
|
2856
2862
|
/**
|
|
2857
2863
|
* An Increase-created concatenation of the Originator-to-Beneficiary lines.
|
|
2858
2864
|
*/
|
|
@@ -2915,6 +2921,12 @@ export namespace InterestPaymentSimulationResult {
|
|
|
2915
2921
|
*/
|
|
2916
2922
|
input_source: string;
|
|
2917
2923
|
|
|
2924
|
+
/**
|
|
2925
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
2926
|
+
* the transfer.
|
|
2927
|
+
*/
|
|
2928
|
+
originator_routing_number: string | null;
|
|
2929
|
+
|
|
2918
2930
|
/**
|
|
2919
2931
|
* The Fedwire cycle date for the wire transfer that was reversed.
|
|
2920
2932
|
*/
|
|
@@ -2983,6 +2995,12 @@ export namespace InterestPaymentSimulationResult {
|
|
|
2983
2995
|
*/
|
|
2984
2996
|
input_source: string;
|
|
2985
2997
|
|
|
2998
|
+
/**
|
|
2999
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
3000
|
+
* the transfer.
|
|
3001
|
+
*/
|
|
3002
|
+
originator_routing_number: string | null;
|
|
3003
|
+
|
|
2986
3004
|
/**
|
|
2987
3005
|
* The Fedwire cycle date for the wire transfer that is being reversed by this
|
|
2988
3006
|
* message.
|
|
@@ -3088,6 +3106,12 @@ export namespace InterestPaymentSimulationResult {
|
|
|
3088
3106
|
*/
|
|
3089
3107
|
originator_name: string | null;
|
|
3090
3108
|
|
|
3109
|
+
/**
|
|
3110
|
+
* The American Banking Association (ABA) routing number of the bank originating
|
|
3111
|
+
* the transfer.
|
|
3112
|
+
*/
|
|
3113
|
+
originator_routing_number: string | null;
|
|
3114
|
+
|
|
3091
3115
|
/**
|
|
3092
3116
|
* An Increase-created concatenation of the Originator-to-Beneficiary lines.
|
|
3093
3117
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless.
|
|
2
|
+
|
|
3
|
+
import * as Core from "../../e/core";
|
|
4
|
+
import { APIResource } from "../../e/resource";
|
|
5
|
+
import * as PhysicalCards_ from "../../e/resources/physical-cards";
|
|
6
|
+
import * as API from './index';
|
|
7
|
+
|
|
8
|
+
export class PhysicalCards extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* This endpoint allows you to simulate advancing the shipment status of a Physical
|
|
11
|
+
* Card, to simulate e.g., that a physical card was attempted shipped but then
|
|
12
|
+
* failed delivery.
|
|
13
|
+
*/
|
|
14
|
+
shipmentAdvance(
|
|
15
|
+
physicalCardId: string,
|
|
16
|
+
body: PhysicalCardShipmentAdvanceParams,
|
|
17
|
+
options?: Core.RequestOptions,
|
|
18
|
+
): Core.APIPromise<PhysicalCards_.PhysicalCard> {
|
|
19
|
+
return this.post(`/simulations/physical_cards/${physicalCardId}/shipment_advance`, { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface PhysicalCardShipmentAdvanceParams {
|
|
24
|
+
/**
|
|
25
|
+
* The shipment status to move the Physical Card to.
|
|
26
|
+
*
|
|
27
|
+
* - `pending` - The physical card has not yet been shipped.
|
|
28
|
+
* - `canceled` - The physical card shipment was canceled prior to submission.
|
|
29
|
+
* - `submitted` - The physical card shipment has been submitted to the card
|
|
30
|
+
* fulfillment provider.
|
|
31
|
+
* - `acknowledged` - The physical card shipment has been acknowledged by the card
|
|
32
|
+
* fulfillment provider and will be processed in their next batch.
|
|
33
|
+
* - `rejected` - The physical card shipment was rejected by the card printer due
|
|
34
|
+
* to an error.
|
|
35
|
+
* - `shipped` - The physical card has been shipped.
|
|
36
|
+
* - `returned` - The physical card shipment was returned to the sender and
|
|
37
|
+
* destroyed by the production facility.
|
|
38
|
+
*/
|
|
39
|
+
shipment_status:
|
|
40
|
+
| 'pending'
|
|
41
|
+
| 'canceled'
|
|
42
|
+
| 'submitted'
|
|
43
|
+
| 'acknowledged'
|
|
44
|
+
| 'rejected'
|
|
45
|
+
| 'shipped'
|
|
46
|
+
| 'returned';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace PhysicalCards {
|
|
50
|
+
export import PhysicalCardShipmentAdvanceParams = API.PhysicalCardShipmentAdvanceParams;
|
|
51
|
+
}
|