increase 0.316.0 → 0.317.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.317.0 (2025-09-24)
4
+
5
+ Full Changelog: [v0.316.0...v0.317.0](https://github.com/Increase/increase-node/compare/v0.316.0...v0.317.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([2026a63](https://github.com/Increase/increase-node/commit/2026a637cb268b6278368a04a25e5148b2914e32))
10
+
3
11
  ## 0.316.0 (2025-09-23)
4
12
 
5
13
  Full Changelog: [v0.315.0...v0.316.0](https://github.com/Increase/increase-node/compare/v0.315.0...v0.316.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "increase",
3
- "version": "0.316.0",
3
+ "version": "0.317.0",
4
4
  "description": "The official TypeScript library for the Increase API",
5
5
  "author": "Increase <dev-feedback@increase.com>",
6
6
  "types": "./index.d.ts",
@@ -43,7 +43,7 @@ export declare class AccountTransfers extends APIResource {
43
43
  list(query?: AccountTransferListParams, options?: Core.RequestOptions): Core.PagePromise<AccountTransfersPage, AccountTransfer>;
44
44
  list(options?: Core.RequestOptions): Core.PagePromise<AccountTransfersPage, AccountTransfer>;
45
45
  /**
46
- * Approve an Account Transfer
46
+ * Approves an Account Transfer in status `pending_approval`.
47
47
  *
48
48
  * @example
49
49
  * ```ts
@@ -55,7 +55,7 @@ export declare class AccountTransfers extends APIResource {
55
55
  */
56
56
  approve(accountTransferId: string, options?: Core.RequestOptions): Core.APIPromise<AccountTransfer>;
57
57
  /**
58
- * Cancel an Account Transfer
58
+ * Cancels an Account Transfer in status `pending_approval`.
59
59
  *
60
60
  * @example
61
61
  * ```ts
@@ -70,20 +70,25 @@ export declare class AccountTransfers extends APIResource {
70
70
  export declare class AccountTransfersPage extends Page<AccountTransfer> {
71
71
  }
72
72
  /**
73
- * Account transfers move funds between your own accounts at Increase.
73
+ * Account transfers move funds between your own accounts at Increase (accounting
74
+ * systems often refer to these as Book Transfers). Account Transfers are free and
75
+ * synchronous. Upon creation they create two Transactions, one negative on the
76
+ * originating account and one positive on the destination account (unless the
77
+ * transfer requires approval, in which case the Transactions will be created when
78
+ * the transfer is approved).
74
79
  */
75
80
  export interface AccountTransfer {
76
81
  /**
77
- * The account transfer's identifier.
82
+ * The Account Transfer's identifier.
78
83
  */
79
84
  id: string;
80
85
  /**
81
- * The Account to which the transfer belongs.
86
+ * The Account from which the transfer originated.
82
87
  */
83
88
  account_id: string;
84
89
  /**
85
- * The transfer amount in the minor unit of the destination account currency. For
86
- * dollars, for example, this is cents.
90
+ * The transfer amount in cents. This will always be positive and indicates the
91
+ * amount of money leaving the originating account.
87
92
  */
88
93
  amount: number;
89
94
  /**
@@ -106,8 +111,8 @@ export interface AccountTransfer {
106
111
  */
107
112
  created_by: AccountTransfer.CreatedBy | null;
108
113
  /**
109
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
110
- * account currency.
114
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
115
+ * currency.
111
116
  *
112
117
  * - `CAD` - Canadian Dollar (CAD)
113
118
  * - `CHF` - Swiss Franc (CHF)
@@ -118,15 +123,17 @@ export interface AccountTransfer {
118
123
  */
119
124
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
120
125
  /**
121
- * The description that will show on the transactions.
126
+ * An internal-facing description for the transfer for display in the API and
127
+ * dashboard. This will also show in the description of the created Transactions.
122
128
  */
123
129
  description: string;
124
130
  /**
125
- * The destination account's identifier.
131
+ * The destination Account's identifier.
126
132
  */
127
133
  destination_account_id: string;
128
134
  /**
129
- * The ID for the transaction receiving the transfer.
135
+ * The identifier of the Transaction on the destination Account representing the
136
+ * received funds.
130
137
  */
131
138
  destination_transaction_id: string | null;
132
139
  /**
@@ -135,10 +142,6 @@ export interface AccountTransfer {
135
142
  * about [idempotency](https://increase.com/documentation/idempotency-keys).
136
143
  */
137
144
  idempotency_key: string | null;
138
- /**
139
- * The transfer's network.
140
- */
141
- network: 'account';
142
145
  /**
143
146
  * The ID for the pending transaction representing the transfer. A pending
144
147
  * transaction is created when the transfer
@@ -149,13 +152,15 @@ export interface AccountTransfer {
149
152
  /**
150
153
  * The lifecycle status of the transfer.
151
154
  *
152
- * - `pending_approval` - The transfer is pending approval.
153
- * - `canceled` - The transfer has been canceled.
155
+ * - `pending_approval` - The transfer is pending approval from your team.
156
+ * - `canceled` - The transfer was pending approval from your team and has been
157
+ * canceled.
154
158
  * - `complete` - The transfer has been completed.
155
159
  */
156
160
  status: 'pending_approval' | 'canceled' | 'complete';
157
161
  /**
158
- * The ID for the transaction funding the transfer.
162
+ * The identifier of the Transaction on the originating account representing the
163
+ * transferred funds.
159
164
  */
160
165
  transaction_id: string | null;
161
166
  /**
@@ -256,7 +261,7 @@ export declare namespace AccountTransfer {
256
261
  }
257
262
  export interface AccountTransferCreateParams {
258
263
  /**
259
- * The identifier for the account that will send the transfer.
264
+ * The identifier for the originating Account that will send the transfer.
260
265
  */
261
266
  account_id: string;
262
267
  /**
@@ -265,15 +270,18 @@ export interface AccountTransferCreateParams {
265
270
  */
266
271
  amount: number;
267
272
  /**
268
- * The description you choose to give the transfer.
273
+ * An internal-facing description for the transfer for display in the API and
274
+ * dashboard. This will also show in the description of the created Transactions.
269
275
  */
270
276
  description: string;
271
277
  /**
272
- * The identifier for the account that will receive the transfer.
278
+ * The identifier for the destination Account that will receive the transfer.
273
279
  */
274
280
  destination_account_id: string;
275
281
  /**
276
- * Whether the transfer requires explicit approval via the dashboard or API.
282
+ * Whether the transfer should require explicit approval via the dashboard or API.
283
+ * For more information, see
284
+ * [Transfer Approvals](/documentation/transfer-approvals).
277
285
  */
278
286
  require_approval?: boolean;
279
287
  }
@@ -1 +1 @@
1
- {"version":3,"file":"account-transfers.d.ts","sourceRoot":"","sources":["../src/resources/account-transfers.ts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IAC3D;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,EAAE,yBAAyB,CAAC,SAAS,CAAC;IAEjD;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,SAAS;QACxB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;WAGG;QACH,MAAM,CAAC,EAAE,MAAM,CAAC;QAEhB;;;WAGG;QACH,WAAW,CAAC,EAAE,MAAM,CAAC;QAErB;;;WAGG;QACH,YAAY,CAAC,EAAE,MAAM,CAAC;KACvB;CACF;AAID,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,oBAAoB,IAAI,oBAAoB,EAC5C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -44,7 +44,7 @@ class AccountTransfers extends resource_1.APIResource {
44
44
  return this._client.getAPIList('/account_transfers', AccountTransfersPage, { query, ...options });
45
45
  }
46
46
  /**
47
- * Approve an Account Transfer
47
+ * Approves an Account Transfer in status `pending_approval`.
48
48
  *
49
49
  * @example
50
50
  * ```ts
@@ -58,7 +58,7 @@ class AccountTransfers extends resource_1.APIResource {
58
58
  return this._client.post(`/account_transfers/${accountTransferId}/approve`, options);
59
59
  }
60
60
  /**
61
- * Cancel an Account Transfer
61
+ * Cancels an Account Transfer in status `pending_approval`.
62
62
  *
63
63
  * @example
64
64
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"account-transfers.js","sourceRoot":"","sources":["../src/resources/account-transfers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAC1C,qCAA2C;AAE3C,iDAAsD;AAEtD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;OAaG;IACH,MAAM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('/account_transfers', AccountTransfersPage, { query, ...options });
42
42
  }
43
43
  /**
44
- * Approve an Account Transfer
44
+ * Approves an Account Transfer in status `pending_approval`.
45
45
  *
46
46
  * @example
47
47
  * ```ts
@@ -55,7 +55,7 @@ export class AccountTransfers extends APIResource {
55
55
  return this._client.post(`/account_transfers/${accountTransferId}/approve`, options);
56
56
  }
57
57
  /**
58
- * Cancel an Account Transfer
58
+ * Cancels an Account Transfer in status `pending_approval`.
59
59
  *
60
60
  * @example
61
61
  * ```ts
@@ -1 +1 @@
1
- {"version":3,"file":"account-transfers.mjs","sourceRoot":"","sources":["../src/resources/account-transfers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,EAAE,gBAAgB,EAAE;OAEpB,EAAE,IAAI,EAAmB;AAEhC,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAiC,EAAE,OAA6B;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvE,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,iBAAyB,EAAE,OAA6B;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,sBAAsB,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IAC9E,CAAC;IAkBD,IAAI,CACF,QAAyD,EAAE,EAC3D,OAA6B;QAE7B,IAAI,gBAAgB,CAAC,KAAK,CAAC,EAAE;YAC3B,OAAO,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SAC7B;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,oBAAoB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,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AAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,iBAAyB,EAAE,OAA6B;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,iBAAiB,UAAU,EAAE,OAAO,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,iBAAyB,EAAE,OAA6B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,iBAAiB,SAAS,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;CACF;AAED,MAAM,OAAO,oBAAqB,SAAQ,IAAqB;CAAG;AAuSlE,gBAAgB,CAAC,oBAAoB,GAAG,oBAAoB,CAAC"}
@@ -66,7 +66,7 @@ export class AccountTransfers extends APIResource {
66
66
  }
67
67
 
68
68
  /**
69
- * Approve an Account Transfer
69
+ * Approves an Account Transfer in status `pending_approval`.
70
70
  *
71
71
  * @example
72
72
  * ```ts
@@ -81,7 +81,7 @@ export class AccountTransfers extends APIResource {
81
81
  }
82
82
 
83
83
  /**
84
- * Cancel an Account Transfer
84
+ * Cancels an Account Transfer in status `pending_approval`.
85
85
  *
86
86
  * @example
87
87
  * ```ts
@@ -99,22 +99,27 @@ export class AccountTransfers extends APIResource {
99
99
  export class AccountTransfersPage extends Page<AccountTransfer> {}
100
100
 
101
101
  /**
102
- * Account transfers move funds between your own accounts at Increase.
102
+ * Account transfers move funds between your own accounts at Increase (accounting
103
+ * systems often refer to these as Book Transfers). Account Transfers are free and
104
+ * synchronous. Upon creation they create two Transactions, one negative on the
105
+ * originating account and one positive on the destination account (unless the
106
+ * transfer requires approval, in which case the Transactions will be created when
107
+ * the transfer is approved).
103
108
  */
104
109
  export interface AccountTransfer {
105
110
  /**
106
- * The account transfer's identifier.
111
+ * The Account Transfer's identifier.
107
112
  */
108
113
  id: string;
109
114
 
110
115
  /**
111
- * The Account to which the transfer belongs.
116
+ * The Account from which the transfer originated.
112
117
  */
113
118
  account_id: string;
114
119
 
115
120
  /**
116
- * The transfer amount in the minor unit of the destination account currency. For
117
- * dollars, for example, this is cents.
121
+ * The transfer amount in cents. This will always be positive and indicates the
122
+ * amount of money leaving the originating account.
118
123
  */
119
124
  amount: number;
120
125
 
@@ -142,8 +147,8 @@ export interface AccountTransfer {
142
147
  created_by: AccountTransfer.CreatedBy | null;
143
148
 
144
149
  /**
145
- * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
146
- * account currency.
150
+ * The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
151
+ * currency.
147
152
  *
148
153
  * - `CAD` - Canadian Dollar (CAD)
149
154
  * - `CHF` - Swiss Franc (CHF)
@@ -155,17 +160,19 @@ export interface AccountTransfer {
155
160
  currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
156
161
 
157
162
  /**
158
- * The description that will show on the transactions.
163
+ * An internal-facing description for the transfer for display in the API and
164
+ * dashboard. This will also show in the description of the created Transactions.
159
165
  */
160
166
  description: string;
161
167
 
162
168
  /**
163
- * The destination account's identifier.
169
+ * The destination Account's identifier.
164
170
  */
165
171
  destination_account_id: string;
166
172
 
167
173
  /**
168
- * The ID for the transaction receiving the transfer.
174
+ * The identifier of the Transaction on the destination Account representing the
175
+ * received funds.
169
176
  */
170
177
  destination_transaction_id: string | null;
171
178
 
@@ -176,11 +183,6 @@ export interface AccountTransfer {
176
183
  */
177
184
  idempotency_key: string | null;
178
185
 
179
- /**
180
- * The transfer's network.
181
- */
182
- network: 'account';
183
-
184
186
  /**
185
187
  * The ID for the pending transaction representing the transfer. A pending
186
188
  * transaction is created when the transfer
@@ -192,14 +194,16 @@ export interface AccountTransfer {
192
194
  /**
193
195
  * The lifecycle status of the transfer.
194
196
  *
195
- * - `pending_approval` - The transfer is pending approval.
196
- * - `canceled` - The transfer has been canceled.
197
+ * - `pending_approval` - The transfer is pending approval from your team.
198
+ * - `canceled` - The transfer was pending approval from your team and has been
199
+ * canceled.
197
200
  * - `complete` - The transfer has been completed.
198
201
  */
199
202
  status: 'pending_approval' | 'canceled' | 'complete';
200
203
 
201
204
  /**
202
- * The ID for the transaction funding the transfer.
205
+ * The identifier of the Transaction on the originating account representing the
206
+ * transferred funds.
203
207
  */
204
208
  transaction_id: string | null;
205
209
 
@@ -313,7 +317,7 @@ export namespace AccountTransfer {
313
317
 
314
318
  export interface AccountTransferCreateParams {
315
319
  /**
316
- * The identifier for the account that will send the transfer.
320
+ * The identifier for the originating Account that will send the transfer.
317
321
  */
318
322
  account_id: string;
319
323
 
@@ -324,17 +328,20 @@ export interface AccountTransferCreateParams {
324
328
  amount: number;
325
329
 
326
330
  /**
327
- * The description you choose to give the transfer.
331
+ * An internal-facing description for the transfer for display in the API and
332
+ * dashboard. This will also show in the description of the created Transactions.
328
333
  */
329
334
  description: string;
330
335
 
331
336
  /**
332
- * The identifier for the account that will receive the transfer.
337
+ * The identifier for the destination Account that will receive the transfer.
333
338
  */
334
339
  destination_account_id: string;
335
340
 
336
341
  /**
337
- * Whether the transfer requires explicit approval via the dashboard or API.
342
+ * Whether the transfer should require explicit approval via the dashboard or API.
343
+ * For more information, see
344
+ * [Transfer Approvals](/documentation/transfer-approvals).
338
345
  */
339
346
  require_approval?: boolean;
340
347
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.316.0'; // x-release-please-version
1
+ export const VERSION = '0.317.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.316.0";
1
+ export declare const VERSION = "0.317.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.316.0'; // x-release-please-version
4
+ exports.VERSION = '0.317.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.316.0'; // x-release-please-version
1
+ export const VERSION = '0.317.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map