increase 0.543.0 → 0.545.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 +21 -0
- package/bin/cli +12 -5
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/event-subscriptions.d.mts +2 -10
- package/resources/event-subscriptions.d.mts.map +1 -1
- package/resources/event-subscriptions.d.ts +2 -10
- package/resources/event-subscriptions.d.ts.map +1 -1
- package/resources/events.d.mts +3 -11
- package/resources/events.d.mts.map +1 -1
- package/resources/events.d.ts +3 -11
- package/resources/events.d.ts.map +1 -1
- package/resources/simulations/account-revenue-payments.d.mts +49 -0
- package/resources/simulations/account-revenue-payments.d.mts.map +1 -0
- package/resources/simulations/account-revenue-payments.d.ts +49 -0
- package/resources/simulations/account-revenue-payments.d.ts.map +1 -0
- package/resources/simulations/account-revenue-payments.js +25 -0
- package/resources/simulations/account-revenue-payments.js.map +1 -0
- package/resources/simulations/account-revenue-payments.mjs +21 -0
- package/resources/simulations/account-revenue-payments.mjs.map +1 -0
- package/resources/simulations/index.d.mts +1 -0
- package/resources/simulations/index.d.mts.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/simulations.d.mts +4 -0
- package/resources/simulations/simulations.d.mts.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 +4 -0
- package/resources/simulations/simulations.js.map +1 -1
- package/resources/simulations/simulations.mjs +4 -0
- package/resources/simulations/simulations.mjs.map +1 -1
- package/src/internal/types.ts +6 -8
- package/src/resources/event-subscriptions.ts +0 -12
- package/src/resources/events.ts +0 -14
- package/src/resources/simulations/account-revenue-payments.ts +62 -0
- package/src/resources/simulations/index.ts +1 -0
- package/src/resources/simulations/simulations.ts +10 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/internal/types.ts
CHANGED
|
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
|
|
|
40
40
|
: T extends (...args: infer A) => unknown ? A
|
|
41
41
|
: never;
|
|
42
42
|
|
|
43
|
-
/* eslint-disable */
|
|
44
43
|
/**
|
|
45
44
|
* These imports attempt to get types from a parent package's dependencies.
|
|
46
45
|
* Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
|
|
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
|
|
|
63
62
|
*
|
|
64
63
|
* [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
|
|
65
64
|
*/
|
|
66
|
-
/** @ts-ignore For users with \@types/node */
|
|
65
|
+
/** @ts-ignore For users with \@types/node */ /* prettier-ignore */
|
|
67
66
|
type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
|
|
68
|
-
/** @ts-ignore For users with undici */
|
|
67
|
+
/** @ts-ignore For users with undici */ /* prettier-ignore */
|
|
69
68
|
type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
|
|
70
|
-
/** @ts-ignore For users with \@types/bun */
|
|
69
|
+
/** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
|
|
71
70
|
type BunRequestInit = globalThis.FetchRequestInit;
|
|
72
|
-
/** @ts-ignore For users with node-fetch@2 */
|
|
71
|
+
/** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
|
|
73
72
|
type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
|
|
74
|
-
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
|
|
73
|
+
/** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
|
|
75
74
|
type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
|
|
76
|
-
/** @ts-ignore For users who use Deno */
|
|
75
|
+
/** @ts-ignore For users who use Deno */ /* prettier-ignore */
|
|
77
76
|
type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
|
|
78
|
-
/* eslint-enable */
|
|
79
77
|
|
|
80
78
|
type RequestInits =
|
|
81
79
|
| NotAny<UndiciTypesRequestInit>
|
|
@@ -253,10 +253,6 @@ export namespace EventSubscription {
|
|
|
253
253
|
* Enrollment is updated.
|
|
254
254
|
* - `intrafi_exclusion.created` - Occurs whenever an IntraFi Exclusion is created.
|
|
255
255
|
* - `intrafi_exclusion.updated` - Occurs whenever an IntraFi Exclusion is updated.
|
|
256
|
-
* - `legacy_card_dispute.created` - Occurs whenever a Legacy Card Dispute is
|
|
257
|
-
* created.
|
|
258
|
-
* - `legacy_card_dispute.updated` - Occurs whenever a Legacy Card Dispute is
|
|
259
|
-
* updated.
|
|
260
256
|
* - `lockbox.created` - Occurs whenever a Lockbox is created.
|
|
261
257
|
* - `lockbox.updated` - Occurs whenever a Lockbox is updated.
|
|
262
258
|
* - `oauth_connection.created` - Occurs whenever an OAuth Connection is created.
|
|
@@ -390,8 +386,6 @@ export namespace EventSubscription {
|
|
|
390
386
|
| 'intrafi_account_enrollment.updated'
|
|
391
387
|
| 'intrafi_exclusion.created'
|
|
392
388
|
| 'intrafi_exclusion.updated'
|
|
393
|
-
| 'legacy_card_dispute.created'
|
|
394
|
-
| 'legacy_card_dispute.updated'
|
|
395
389
|
| 'lockbox.created'
|
|
396
390
|
| 'lockbox.updated'
|
|
397
391
|
| 'oauth_connection.created'
|
|
@@ -581,10 +575,6 @@ export namespace EventSubscriptionCreateParams {
|
|
|
581
575
|
* Enrollment is updated.
|
|
582
576
|
* - `intrafi_exclusion.created` - Occurs whenever an IntraFi Exclusion is created.
|
|
583
577
|
* - `intrafi_exclusion.updated` - Occurs whenever an IntraFi Exclusion is updated.
|
|
584
|
-
* - `legacy_card_dispute.created` - Occurs whenever a Legacy Card Dispute is
|
|
585
|
-
* created.
|
|
586
|
-
* - `legacy_card_dispute.updated` - Occurs whenever a Legacy Card Dispute is
|
|
587
|
-
* updated.
|
|
588
578
|
* - `lockbox.created` - Occurs whenever a Lockbox is created.
|
|
589
579
|
* - `lockbox.updated` - Occurs whenever a Lockbox is updated.
|
|
590
580
|
* - `oauth_connection.created` - Occurs whenever an OAuth Connection is created.
|
|
@@ -718,8 +708,6 @@ export namespace EventSubscriptionCreateParams {
|
|
|
718
708
|
| 'intrafi_account_enrollment.updated'
|
|
719
709
|
| 'intrafi_exclusion.created'
|
|
720
710
|
| 'intrafi_exclusion.updated'
|
|
721
|
-
| 'legacy_card_dispute.created'
|
|
722
|
-
| 'legacy_card_dispute.updated'
|
|
723
711
|
| 'lockbox.created'
|
|
724
712
|
| 'lockbox.updated'
|
|
725
713
|
| 'oauth_connection.created'
|
package/src/resources/events.ts
CHANGED
|
@@ -189,10 +189,6 @@ export interface Event {
|
|
|
189
189
|
* Enrollment is updated.
|
|
190
190
|
* - `intrafi_exclusion.created` - Occurs whenever an IntraFi Exclusion is created.
|
|
191
191
|
* - `intrafi_exclusion.updated` - Occurs whenever an IntraFi Exclusion is updated.
|
|
192
|
-
* - `legacy_card_dispute.created` - Occurs whenever a Legacy Card Dispute is
|
|
193
|
-
* created.
|
|
194
|
-
* - `legacy_card_dispute.updated` - Occurs whenever a Legacy Card Dispute is
|
|
195
|
-
* updated.
|
|
196
192
|
* - `lockbox.created` - Occurs whenever a Lockbox is created.
|
|
197
193
|
* - `lockbox.updated` - Occurs whenever a Lockbox is updated.
|
|
198
194
|
* - `oauth_connection.created` - Occurs whenever an OAuth Connection is created.
|
|
@@ -326,8 +322,6 @@ export interface Event {
|
|
|
326
322
|
| 'intrafi_account_enrollment.updated'
|
|
327
323
|
| 'intrafi_exclusion.created'
|
|
328
324
|
| 'intrafi_exclusion.updated'
|
|
329
|
-
| 'legacy_card_dispute.created'
|
|
330
|
-
| 'legacy_card_dispute.updated'
|
|
331
325
|
| 'lockbox.created'
|
|
332
326
|
| 'lockbox.updated'
|
|
333
327
|
| 'oauth_connection.created'
|
|
@@ -510,10 +504,6 @@ export interface UnwrapWebhookEvent {
|
|
|
510
504
|
* Enrollment is updated.
|
|
511
505
|
* - `intrafi_exclusion.created` - Occurs whenever an IntraFi Exclusion is created.
|
|
512
506
|
* - `intrafi_exclusion.updated` - Occurs whenever an IntraFi Exclusion is updated.
|
|
513
|
-
* - `legacy_card_dispute.created` - Occurs whenever a Legacy Card Dispute is
|
|
514
|
-
* created.
|
|
515
|
-
* - `legacy_card_dispute.updated` - Occurs whenever a Legacy Card Dispute is
|
|
516
|
-
* updated.
|
|
517
507
|
* - `lockbox.created` - Occurs whenever a Lockbox is created.
|
|
518
508
|
* - `lockbox.updated` - Occurs whenever a Lockbox is updated.
|
|
519
509
|
* - `oauth_connection.created` - Occurs whenever an OAuth Connection is created.
|
|
@@ -647,8 +637,6 @@ export interface UnwrapWebhookEvent {
|
|
|
647
637
|
| 'intrafi_account_enrollment.updated'
|
|
648
638
|
| 'intrafi_exclusion.created'
|
|
649
639
|
| 'intrafi_exclusion.updated'
|
|
650
|
-
| 'legacy_card_dispute.created'
|
|
651
|
-
| 'legacy_card_dispute.updated'
|
|
652
640
|
| 'lockbox.created'
|
|
653
641
|
| 'lockbox.updated'
|
|
654
642
|
| 'oauth_connection.created'
|
|
@@ -791,8 +779,6 @@ export namespace EventListParams {
|
|
|
791
779
|
| 'intrafi_account_enrollment.updated'
|
|
792
780
|
| 'intrafi_exclusion.created'
|
|
793
781
|
| 'intrafi_exclusion.updated'
|
|
794
|
-
| 'legacy_card_dispute.created'
|
|
795
|
-
| 'legacy_card_dispute.updated'
|
|
796
782
|
| 'lockbox.created'
|
|
797
783
|
| 'lockbox.updated'
|
|
798
784
|
| 'oauth_connection.created'
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as TransactionsAPI from '../transactions';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class AccountRevenuePayments extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Simulates an account revenue payment to your account. In production, this
|
|
11
|
+
* happens automatically on the first of each month.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const transaction =
|
|
16
|
+
* await client.simulations.accountRevenuePayments.create({
|
|
17
|
+
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
18
|
+
* amount: 1000,
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(
|
|
23
|
+
body: AccountRevenuePaymentCreateParams,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): APIPromise<TransactionsAPI.Transaction> {
|
|
26
|
+
return this._client.post('/simulations/account_revenue_payments', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface AccountRevenuePaymentCreateParams {
|
|
31
|
+
/**
|
|
32
|
+
* The identifier of the Account the Account Revenue Payment should be paid to.
|
|
33
|
+
*/
|
|
34
|
+
account_id: string;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The account revenue amount in cents. Must be positive.
|
|
38
|
+
*/
|
|
39
|
+
amount: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* The identifier of the Account the account revenue accrued on. Defaults to
|
|
43
|
+
* `account_id`.
|
|
44
|
+
*/
|
|
45
|
+
accrued_on_account_id?: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The end of the account revenue period. If not provided, defaults to the current
|
|
49
|
+
* time.
|
|
50
|
+
*/
|
|
51
|
+
period_end?: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* The start of the account revenue period. If not provided, defaults to the
|
|
55
|
+
* current time.
|
|
56
|
+
*/
|
|
57
|
+
period_start?: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export declare namespace AccountRevenuePayments {
|
|
61
|
+
export { type AccountRevenuePaymentCreateParams as AccountRevenuePaymentCreateParams };
|
|
62
|
+
}
|
|
@@ -6,6 +6,7 @@ export {
|
|
|
6
6
|
type ACHTransferReturnParams,
|
|
7
7
|
type ACHTransferSettleParams,
|
|
8
8
|
} from './ach-transfers';
|
|
9
|
+
export { AccountRevenuePayments, type AccountRevenuePaymentCreateParams } from './account-revenue-payments';
|
|
9
10
|
export { AccountStatements, type AccountStatementCreateParams } from './account-statements';
|
|
10
11
|
export {
|
|
11
12
|
CardAuthentications,
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as AccountRevenuePaymentsAPI from './account-revenue-payments';
|
|
5
|
+
import { AccountRevenuePaymentCreateParams, AccountRevenuePayments } from './account-revenue-payments';
|
|
4
6
|
import * as AccountStatementsAPI from './account-statements';
|
|
5
7
|
import { AccountStatementCreateParams, AccountStatements } from './account-statements';
|
|
6
8
|
import * as ACHTransfersAPI from './ach-transfers';
|
|
@@ -105,6 +107,8 @@ export class Simulations extends APIResource {
|
|
|
105
107
|
interestPayments: InterestPaymentsAPI.InterestPayments = new InterestPaymentsAPI.InterestPayments(
|
|
106
108
|
this._client,
|
|
107
109
|
);
|
|
110
|
+
accountRevenuePayments: AccountRevenuePaymentsAPI.AccountRevenuePayments =
|
|
111
|
+
new AccountRevenuePaymentsAPI.AccountRevenuePayments(this._client);
|
|
108
112
|
cardAuthorizations: CardAuthorizationsAPI.CardAuthorizations = new CardAuthorizationsAPI.CardAuthorizations(
|
|
109
113
|
this._client,
|
|
110
114
|
);
|
|
@@ -162,6 +166,7 @@ export class Simulations extends APIResource {
|
|
|
162
166
|
}
|
|
163
167
|
|
|
164
168
|
Simulations.InterestPayments = InterestPayments;
|
|
169
|
+
Simulations.AccountRevenuePayments = AccountRevenuePayments;
|
|
165
170
|
Simulations.CardAuthorizations = CardAuthorizations;
|
|
166
171
|
Simulations.CardBalanceInquiries = CardBalanceInquiries;
|
|
167
172
|
Simulations.CardAuthorizationExpirations = CardAuthorizationExpirations;
|
|
@@ -201,6 +206,11 @@ export declare namespace Simulations {
|
|
|
201
206
|
type InterestPaymentCreateParams as InterestPaymentCreateParams,
|
|
202
207
|
};
|
|
203
208
|
|
|
209
|
+
export {
|
|
210
|
+
AccountRevenuePayments as AccountRevenuePayments,
|
|
211
|
+
type AccountRevenuePaymentCreateParams as AccountRevenuePaymentCreateParams,
|
|
212
|
+
};
|
|
213
|
+
|
|
204
214
|
export {
|
|
205
215
|
CardAuthorizations as CardAuthorizations,
|
|
206
216
|
type CardAuthorizationCreateResponse as CardAuthorizationCreateResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.545.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.545.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.545.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.545.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|