increase 0.207.0 → 0.208.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 (71) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +1 -1
  3. package/index.d.mts +2 -8
  4. package/index.d.ts +2 -8
  5. package/index.d.ts.map +1 -1
  6. package/index.js +0 -8
  7. package/index.js.map +1 -1
  8. package/index.mjs +0 -8
  9. package/index.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/check-transfers.d.ts +6 -6
  12. package/resources/check-transfers.d.ts.map +1 -1
  13. package/resources/event-subscriptions.d.ts +2 -10
  14. package/resources/event-subscriptions.d.ts.map +1 -1
  15. package/resources/event-subscriptions.js.map +1 -1
  16. package/resources/event-subscriptions.mjs.map +1 -1
  17. package/resources/events.d.ts +2 -6
  18. package/resources/events.d.ts.map +1 -1
  19. package/resources/events.js.map +1 -1
  20. package/resources/events.mjs.map +1 -1
  21. package/resources/inbound-wire-transfers.d.ts +41 -1
  22. package/resources/inbound-wire-transfers.d.ts.map +1 -1
  23. package/resources/inbound-wire-transfers.js +9 -0
  24. package/resources/inbound-wire-transfers.js.map +1 -1
  25. package/resources/inbound-wire-transfers.mjs +9 -0
  26. package/resources/inbound-wire-transfers.mjs.map +1 -1
  27. package/resources/index.d.ts +1 -3
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js +1 -8
  30. package/resources/index.js.map +1 -1
  31. package/resources/index.mjs +0 -2
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/pending-transactions.d.ts +19 -2
  34. package/resources/pending-transactions.d.ts.map +1 -1
  35. package/resources/pending-transactions.js.map +1 -1
  36. package/resources/pending-transactions.mjs.map +1 -1
  37. package/resources/physical-cards.d.ts +27 -0
  38. package/resources/physical-cards.d.ts.map +1 -1
  39. package/resources/physical-cards.js.map +1 -1
  40. package/resources/physical-cards.mjs.map +1 -1
  41. package/resources/transactions.d.ts +21 -2
  42. package/resources/transactions.d.ts.map +1 -1
  43. package/resources/transactions.js.map +1 -1
  44. package/resources/transactions.mjs.map +1 -1
  45. package/src/index.ts +2 -35
  46. package/src/resources/check-transfers.ts +7 -7
  47. package/src/resources/event-subscriptions.ts +0 -12
  48. package/src/resources/events.ts +0 -8
  49. package/src/resources/inbound-wire-transfers.ts +55 -0
  50. package/src/resources/index.ts +1 -13
  51. package/src/resources/pending-transactions.ts +21 -0
  52. package/src/resources/physical-cards.ts +31 -0
  53. package/src/resources/transactions.ts +23 -0
  54. package/src/version.ts +1 -1
  55. package/version.d.ts +1 -1
  56. package/version.js +1 -1
  57. package/version.mjs +1 -1
  58. package/resources/proof-of-authorization-request-submissions.d.ts +0 -188
  59. package/resources/proof-of-authorization-request-submissions.d.ts.map +0 -1
  60. package/resources/proof-of-authorization-request-submissions.js +0 -34
  61. package/resources/proof-of-authorization-request-submissions.js.map +0 -1
  62. package/resources/proof-of-authorization-request-submissions.mjs +0 -29
  63. package/resources/proof-of-authorization-request-submissions.mjs.map +0 -1
  64. package/resources/proof-of-authorization-requests.d.ts +0 -85
  65. package/resources/proof-of-authorization-requests.d.ts.map +0 -1
  66. package/resources/proof-of-authorization-requests.js +0 -30
  67. package/resources/proof-of-authorization-requests.js.map +0 -1
  68. package/resources/proof-of-authorization-requests.mjs +0 -25
  69. package/resources/proof-of-authorization-requests.mjs.map +0 -1
  70. package/src/resources/proof-of-authorization-request-submissions.ts +0 -266
  71. package/src/resources/proof-of-authorization-requests.ts +0 -130
@@ -1,266 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../resource';
4
- import { isRequestOptions } from '../core';
5
- import * as Core from '../core';
6
- import { Page, type PageParams } from '../pagination';
7
-
8
- export class ProofOfAuthorizationRequestSubmissions extends APIResource {
9
- /**
10
- * Submit Proof of Authorization
11
- */
12
- create(
13
- body: ProofOfAuthorizationRequestSubmissionCreateParams,
14
- options?: Core.RequestOptions,
15
- ): Core.APIPromise<ProofOfAuthorizationRequestSubmission> {
16
- return this._client.post('/proof_of_authorization_request_submissions', { body, ...options });
17
- }
18
-
19
- /**
20
- * Retrieve a Proof of Authorization Request Submission
21
- */
22
- retrieve(
23
- proofOfAuthorizationRequestSubmissionId: string,
24
- options?: Core.RequestOptions,
25
- ): Core.APIPromise<ProofOfAuthorizationRequestSubmission> {
26
- return this._client.get(
27
- `/proof_of_authorization_request_submissions/${proofOfAuthorizationRequestSubmissionId}`,
28
- options,
29
- );
30
- }
31
-
32
- /**
33
- * List Proof of Authorization Request Submissions
34
- */
35
- list(
36
- query?: ProofOfAuthorizationRequestSubmissionListParams,
37
- options?: Core.RequestOptions,
38
- ): Core.PagePromise<ProofOfAuthorizationRequestSubmissionsPage, ProofOfAuthorizationRequestSubmission>;
39
- list(
40
- options?: Core.RequestOptions,
41
- ): Core.PagePromise<ProofOfAuthorizationRequestSubmissionsPage, ProofOfAuthorizationRequestSubmission>;
42
- list(
43
- query: ProofOfAuthorizationRequestSubmissionListParams | Core.RequestOptions = {},
44
- options?: Core.RequestOptions,
45
- ): Core.PagePromise<ProofOfAuthorizationRequestSubmissionsPage, ProofOfAuthorizationRequestSubmission> {
46
- if (isRequestOptions(query)) {
47
- return this.list({}, query);
48
- }
49
- return this._client.getAPIList(
50
- '/proof_of_authorization_request_submissions',
51
- ProofOfAuthorizationRequestSubmissionsPage,
52
- { query, ...options },
53
- );
54
- }
55
- }
56
-
57
- export class ProofOfAuthorizationRequestSubmissionsPage extends Page<ProofOfAuthorizationRequestSubmission> {}
58
-
59
- /**
60
- * Information submitted in response to a proof of authorization request. Per
61
- * Nacha's guidance on proof of authorization, the originator must ensure that the
62
- * authorization complies with applicable legal requirements, is readily
63
- * identifiable as an authorization, and has clear and readily understandable
64
- * terms.
65
- */
66
- export interface ProofOfAuthorizationRequestSubmission {
67
- /**
68
- * The Proof of Authorization Request Submission identifier.
69
- */
70
- id: string;
71
-
72
- /**
73
- * Files containing additional evidence.
74
- */
75
- additional_evidence_files: Array<ProofOfAuthorizationRequestSubmission.AdditionalEvidenceFile>;
76
-
77
- /**
78
- * Terms of authorization.
79
- */
80
- authorization_terms: string;
81
-
82
- /**
83
- * Time of authorization.
84
- */
85
- authorized_at: string;
86
-
87
- /**
88
- * Company of the authorizer.
89
- */
90
- authorizer_company: string | null;
91
-
92
- /**
93
- * Email of the authorizer.
94
- */
95
- authorizer_email: string | null;
96
-
97
- /**
98
- * IP address of the authorizer.
99
- */
100
- authorizer_ip_address: string | null;
101
-
102
- /**
103
- * Name of the authorizer.
104
- */
105
- authorizer_name: string | null;
106
-
107
- /**
108
- * The time the Proof of Authorization Request Submission was created.
109
- */
110
- created_at: string;
111
-
112
- /**
113
- * Whether the customer has been offboarded.
114
- */
115
- customer_has_been_offboarded: boolean | null;
116
-
117
- /**
118
- * The idempotency key you chose for this object. This value is unique across
119
- * Increase and is used to ensure that a request is only processed once. Learn more
120
- * about [idempotency](https://increase.com/documentation/idempotency-keys).
121
- */
122
- idempotency_key: string | null;
123
-
124
- /**
125
- * ID of the proof of authorization request.
126
- */
127
- proof_of_authorization_request_id: string;
128
-
129
- /**
130
- * Status of the proof of authorization request submission.
131
- *
132
- * - `pending_review` - The proof of authorization request submission is pending
133
- * review.
134
- * - `rejected` - The proof of authorization request submission was rejected.
135
- * - `canceled` - The proof of authorization request submission was canceled and
136
- * replaced with another.
137
- * - `pending_sending` - The proof of authorization request submission is pending
138
- * sending.
139
- * - `sent` - The proof of authorization request submission was sent.
140
- */
141
- status: 'pending_review' | 'rejected' | 'canceled' | 'pending_sending' | 'sent';
142
-
143
- /**
144
- * A constant representing the object's type. For this resource it will always be
145
- * `proof_of_authorization_request_submission`.
146
- */
147
- type: 'proof_of_authorization_request_submission';
148
-
149
- /**
150
- * The time the Proof of Authorization Request Submission was last updated.
151
- */
152
- updated_at: string;
153
-
154
- /**
155
- * Whether account ownership was validated via credential (for instance, Plaid).
156
- */
157
- validated_account_ownership_via_credential: boolean | null;
158
-
159
- /**
160
- * Whether account ownership was validated with an account statement.
161
- */
162
- validated_account_ownership_with_account_statement: boolean | null;
163
-
164
- /**
165
- * Whether account ownership was validated with microdeposit.
166
- */
167
- validated_account_ownership_with_microdeposit: boolean | null;
168
- }
169
-
170
- export namespace ProofOfAuthorizationRequestSubmission {
171
- export interface AdditionalEvidenceFile {
172
- /**
173
- * The File identifier.
174
- */
175
- file_id: string;
176
- }
177
- }
178
-
179
- export interface ProofOfAuthorizationRequestSubmissionCreateParams {
180
- /**
181
- * Terms of authorization.
182
- */
183
- authorization_terms: string;
184
-
185
- /**
186
- * Time of authorization.
187
- */
188
- authorized_at: string;
189
-
190
- /**
191
- * Email of the authorizer.
192
- */
193
- authorizer_email: string;
194
-
195
- /**
196
- * Name of the authorizer.
197
- */
198
- authorizer_name: string;
199
-
200
- /**
201
- * Whether the customer has been offboarded or suspended.
202
- */
203
- customer_has_been_offboarded: boolean;
204
-
205
- /**
206
- * ID of the proof of authorization request.
207
- */
208
- proof_of_authorization_request_id: string;
209
-
210
- /**
211
- * Whether the account ownership was validated via credential (e.g. Plaid).
212
- */
213
- validated_account_ownership_via_credential: boolean;
214
-
215
- /**
216
- * Whether the account ownership was validated with an account statement.
217
- */
218
- validated_account_ownership_with_account_statement: boolean;
219
-
220
- /**
221
- * Whether the account ownership was validated with a microdeposit.
222
- */
223
- validated_account_ownership_with_microdeposit: boolean;
224
-
225
- /**
226
- * File containing additional evidence.
227
- */
228
- additional_evidence_file_id?: string;
229
-
230
- /**
231
- * Company of the authorizer.
232
- */
233
- authorizer_company?: string;
234
-
235
- /**
236
- * IP address of the authorizer.
237
- */
238
- authorizer_ip_address?: string;
239
- }
240
-
241
- export interface ProofOfAuthorizationRequestSubmissionListParams extends PageParams {
242
- /**
243
- * Filter records to the one with the specified `idempotency_key` you chose for
244
- * that object. This value is unique across Increase and is used to ensure that a
245
- * request is only processed once. Learn more about
246
- * [idempotency](https://increase.com/documentation/idempotency-keys).
247
- */
248
- idempotency_key?: string;
249
-
250
- /**
251
- * ID of the proof of authorization request.
252
- */
253
- proof_of_authorization_request_id?: string;
254
- }
255
-
256
- ProofOfAuthorizationRequestSubmissions.ProofOfAuthorizationRequestSubmissionsPage =
257
- ProofOfAuthorizationRequestSubmissionsPage;
258
-
259
- export declare namespace ProofOfAuthorizationRequestSubmissions {
260
- export {
261
- type ProofOfAuthorizationRequestSubmission as ProofOfAuthorizationRequestSubmission,
262
- ProofOfAuthorizationRequestSubmissionsPage as ProofOfAuthorizationRequestSubmissionsPage,
263
- type ProofOfAuthorizationRequestSubmissionCreateParams as ProofOfAuthorizationRequestSubmissionCreateParams,
264
- type ProofOfAuthorizationRequestSubmissionListParams as ProofOfAuthorizationRequestSubmissionListParams,
265
- };
266
- }
@@ -1,130 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../resource';
4
- import { isRequestOptions } from '../core';
5
- import * as Core from '../core';
6
- import { Page, type PageParams } from '../pagination';
7
-
8
- export class ProofOfAuthorizationRequests extends APIResource {
9
- /**
10
- * Retrieve a Proof of Authorization Request
11
- */
12
- retrieve(
13
- proofOfAuthorizationRequestId: string,
14
- options?: Core.RequestOptions,
15
- ): Core.APIPromise<ProofOfAuthorizationRequest> {
16
- return this._client.get(`/proof_of_authorization_requests/${proofOfAuthorizationRequestId}`, options);
17
- }
18
-
19
- /**
20
- * List Proof of Authorization Requests
21
- */
22
- list(
23
- query?: ProofOfAuthorizationRequestListParams,
24
- options?: Core.RequestOptions,
25
- ): Core.PagePromise<ProofOfAuthorizationRequestsPage, ProofOfAuthorizationRequest>;
26
- list(
27
- options?: Core.RequestOptions,
28
- ): Core.PagePromise<ProofOfAuthorizationRequestsPage, ProofOfAuthorizationRequest>;
29
- list(
30
- query: ProofOfAuthorizationRequestListParams | Core.RequestOptions = {},
31
- options?: Core.RequestOptions,
32
- ): Core.PagePromise<ProofOfAuthorizationRequestsPage, ProofOfAuthorizationRequest> {
33
- if (isRequestOptions(query)) {
34
- return this.list({}, query);
35
- }
36
- return this._client.getAPIList('/proof_of_authorization_requests', ProofOfAuthorizationRequestsPage, {
37
- query,
38
- ...options,
39
- });
40
- }
41
- }
42
-
43
- export class ProofOfAuthorizationRequestsPage extends Page<ProofOfAuthorizationRequest> {}
44
-
45
- /**
46
- * A request for proof of authorization for one or more ACH debit transfers.
47
- */
48
- export interface ProofOfAuthorizationRequest {
49
- /**
50
- * The Proof of Authorization Request identifier.
51
- */
52
- id: string;
53
-
54
- /**
55
- * The ACH Transfers associated with the request.
56
- */
57
- ach_transfers: Array<ProofOfAuthorizationRequest.ACHTransfer>;
58
-
59
- /**
60
- * The time the Proof of Authorization Request was created.
61
- */
62
- created_at: string;
63
-
64
- /**
65
- * The time the Proof of Authorization Request is due.
66
- */
67
- due_on: string;
68
-
69
- /**
70
- * A constant representing the object's type. For this resource it will always be
71
- * `proof_of_authorization_request`.
72
- */
73
- type: 'proof_of_authorization_request';
74
-
75
- /**
76
- * The time the Proof of Authorization Request was last updated.
77
- */
78
- updated_at: string;
79
- }
80
-
81
- export namespace ProofOfAuthorizationRequest {
82
- export interface ACHTransfer {
83
- /**
84
- * The ACH Transfer identifier.
85
- */
86
- id: string;
87
- }
88
- }
89
-
90
- export interface ProofOfAuthorizationRequestListParams extends PageParams {
91
- created_at?: ProofOfAuthorizationRequestListParams.CreatedAt;
92
- }
93
-
94
- export namespace ProofOfAuthorizationRequestListParams {
95
- export interface CreatedAt {
96
- /**
97
- * Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
98
- * timestamp.
99
- */
100
- after?: string;
101
-
102
- /**
103
- * Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
104
- * timestamp.
105
- */
106
- before?: string;
107
-
108
- /**
109
- * Return results on or after this
110
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
111
- */
112
- on_or_after?: string;
113
-
114
- /**
115
- * Return results on or before this
116
- * [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
117
- */
118
- on_or_before?: string;
119
- }
120
- }
121
-
122
- ProofOfAuthorizationRequests.ProofOfAuthorizationRequestsPage = ProofOfAuthorizationRequestsPage;
123
-
124
- export declare namespace ProofOfAuthorizationRequests {
125
- export {
126
- type ProofOfAuthorizationRequest as ProofOfAuthorizationRequest,
127
- ProofOfAuthorizationRequestsPage as ProofOfAuthorizationRequestsPage,
128
- type ProofOfAuthorizationRequestListParams as ProofOfAuthorizationRequestListParams,
129
- };
130
- }