@getivy/node-sdk 0.1.0-alpha.32 → 0.1.0-alpha.33
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 +8 -0
- package/index.d.mts +14 -14
- package/index.d.ts +14 -14
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/balance.d.ts +6 -3
- package/resources/balance.d.ts.map +1 -1
- package/resources/banks.d.ts +38 -59
- package/resources/banks.d.ts.map +1 -1
- package/resources/capabilities.d.ts +1 -10
- package/resources/capabilities.d.ts.map +1 -1
- package/resources/charges.d.ts +30 -21
- package/resources/charges.d.ts.map +1 -1
- package/resources/checkoutsession.d.ts +311 -803
- package/resources/checkoutsession.d.ts.map +1 -1
- package/resources/customers.d.ts +9 -12
- package/resources/customers.d.ts.map +1 -1
- package/resources/data/accounts.d.ts +0 -100
- package/resources/data/accounts.d.ts.map +1 -1
- package/resources/data/accounts.js +0 -6
- package/resources/data/accounts.js.map +1 -1
- package/resources/data/accounts.mjs +0 -6
- package/resources/data/accounts.mjs.map +1 -1
- package/resources/data/balances.d.ts +0 -41
- package/resources/data/balances.d.ts.map +1 -1
- package/resources/data/balances.js +0 -6
- package/resources/data/balances.js.map +1 -1
- package/resources/data/balances.mjs +0 -6
- package/resources/data/balances.mjs.map +1 -1
- package/resources/data/consent.d.ts +0 -76
- package/resources/data/consent.d.ts.map +1 -1
- package/resources/data/consent.js +0 -12
- package/resources/data/consent.js.map +1 -1
- package/resources/data/consent.mjs +0 -12
- package/resources/data/consent.mjs.map +1 -1
- package/resources/data/data.d.ts +10 -10
- package/resources/data/data.d.ts.map +1 -1
- package/resources/data/data.js.map +1 -1
- package/resources/data/data.mjs +2 -2
- package/resources/data/data.mjs.map +1 -1
- package/resources/data/index.d.ts +5 -5
- package/resources/data/index.d.ts.map +1 -1
- package/resources/data/index.js.map +1 -1
- package/resources/data/index.mjs +2 -2
- package/resources/data/index.mjs.map +1 -1
- package/resources/data/session.d.ts +0 -230
- package/resources/data/session.d.ts.map +1 -1
- package/resources/data/session.js +0 -12
- package/resources/data/session.js.map +1 -1
- package/resources/data/session.mjs +0 -12
- package/resources/data/session.mjs.map +1 -1
- package/resources/data/transactions.d.ts +0 -50
- package/resources/data/transactions.d.ts.map +1 -1
- package/resources/data/transactions.js +0 -7
- package/resources/data/transactions.js.map +1 -1
- package/resources/data/transactions.mjs +0 -7
- package/resources/data/transactions.mjs.map +1 -1
- package/resources/index.d.ts +7 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mandates.d.ts +55 -17
- package/resources/mandates.d.ts.map +1 -1
- package/resources/mandates.js.map +1 -1
- package/resources/mandates.mjs.map +1 -1
- package/resources/orders.d.ts +242 -524
- package/resources/orders.d.ts.map +1 -1
- package/resources/payouts.d.ts +146 -70
- package/resources/payouts.d.ts.map +1 -1
- package/resources/payouts.js.map +1 -1
- package/resources/payouts.mjs.map +1 -1
- package/resources/refunds.d.ts +16 -92
- package/resources/refunds.d.ts.map +1 -1
- package/resources/refunds.js +4 -4
- package/resources/refunds.js.map +1 -1
- package/resources/refunds.mjs +4 -4
- package/resources/refunds.mjs.map +1 -1
- package/resources/reports.d.ts +4 -78
- package/resources/reports.d.ts.map +1 -1
- package/resources/reports.js +5 -1
- package/resources/reports.js.map +1 -1
- package/resources/reports.mjs +5 -1
- package/resources/reports.mjs.map +1 -1
- package/resources/subaccounts.d.ts +19 -7
- package/resources/subaccounts.d.ts.map +1 -1
- package/resources/subaccounts.js.map +1 -1
- package/resources/subaccounts.mjs.map +1 -1
- package/resources/webhooksubscription.d.ts +0 -151
- package/resources/webhooksubscription.d.ts.map +1 -1
- package/resources/webhooksubscription.js +0 -33
- package/resources/webhooksubscription.js.map +1 -1
- package/resources/webhooksubscription.mjs +0 -33
- package/resources/webhooksubscription.mjs.map +1 -1
- package/src/index.ts +22 -38
- package/src/resources/balance.ts +6 -3
- package/src/resources/banks.ts +41 -59
- package/src/resources/capabilities.ts +1 -10
- package/src/resources/charges.ts +32 -23
- package/src/resources/checkoutsession.ts +1395 -999
- package/src/resources/customers.ts +9 -12
- package/src/resources/data/accounts.ts +1 -130
- package/src/resources/data/balances.ts +1 -53
- package/src/resources/data/consent.ts +1 -106
- package/src/resources/data/data.ts +10 -46
- package/src/resources/data/index.ts +5 -17
- package/src/resources/data/session.ts +1 -1295
- package/src/resources/data/transactions.ts +1 -67
- package/src/resources/index.ts +9 -19
- package/src/resources/mandates.ts +82 -17
- package/src/resources/orders.ts +1149 -805
- package/src/resources/payouts.ts +239 -70
- package/src/resources/refunds.ts +33 -94
- package/src/resources/reports.ts +8 -98
- package/src/resources/subaccounts.ts +36 -7
- package/src/resources/webhooksubscription.ts +1 -349
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,71 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../resource';
|
|
4
|
-
import * as Core from '../../core';
|
|
5
4
|
|
|
6
|
-
export class Transactions extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Retrieves the list of transactions for a given data session. Returns
|
|
9
|
-
* transactions from the last 3 months.
|
|
10
|
-
*/
|
|
11
|
-
list(body: TransactionListParams, options?: Core.RequestOptions): Core.APIPromise<TransactionListResponse> {
|
|
12
|
-
return this._client.post('/api/service/data/transactions/list', { body, ...options });
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface TransactionListResponse {
|
|
17
|
-
transactions: Array<TransactionListResponse.Transaction>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export namespace TransactionListResponse {
|
|
21
|
-
export interface Transaction {
|
|
22
|
-
/**
|
|
23
|
-
* The ID of the transaction.
|
|
24
|
-
*/
|
|
25
|
-
id: string;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The ID of the account the transaction belongs to.
|
|
29
|
-
*/
|
|
30
|
-
accountId: string;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* The amount of the transaction.
|
|
34
|
-
*/
|
|
35
|
-
amount: string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The currency of the transaction.
|
|
39
|
-
*/
|
|
40
|
-
currency: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* The date and time when the transaction occurred.
|
|
44
|
-
*/
|
|
45
|
-
timestamp: string;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* The type of transaction (debit or credit).
|
|
49
|
-
*/
|
|
50
|
-
type: 'debit' | 'credit';
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* The description of the transaction.
|
|
54
|
-
*/
|
|
55
|
-
description?: string;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export interface TransactionListParams {
|
|
60
|
-
/**
|
|
61
|
-
* The ID of the data session to retrieve transactions for.
|
|
62
|
-
*/
|
|
63
|
-
sessionId: string;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export declare namespace Transactions {
|
|
67
|
-
export {
|
|
68
|
-
type TransactionListResponse as TransactionListResponse,
|
|
69
|
-
type TransactionListParams as TransactionListParams,
|
|
70
|
-
};
|
|
71
|
-
}
|
|
5
|
+
export class Transactions extends APIResource {}
|
package/src/resources/index.ts
CHANGED
|
@@ -11,7 +11,7 @@ export {
|
|
|
11
11
|
type BankSearchParams,
|
|
12
12
|
} from './banks';
|
|
13
13
|
export { Capabilities, type CapabilityRetrieveResponse, type CapabilityRetrieveParams } from './capabilities';
|
|
14
|
-
export { Charges, type
|
|
14
|
+
export { Charges, type ChargeCreateResponse, type ChargeCreateParams } from './charges';
|
|
15
15
|
export {
|
|
16
16
|
Checkoutsession,
|
|
17
17
|
type CheckoutsessionCreateResponse,
|
|
@@ -31,7 +31,8 @@ export {
|
|
|
31
31
|
export { Data } from './data/data';
|
|
32
32
|
export {
|
|
33
33
|
Mandates,
|
|
34
|
-
type
|
|
34
|
+
type MandateRetrieveResponse,
|
|
35
|
+
type MandateLookupResponse,
|
|
35
36
|
type MandateRevokeResponse,
|
|
36
37
|
type MandateRetrieveParams,
|
|
37
38
|
type MandateLookupParams,
|
|
@@ -46,7 +47,8 @@ export {
|
|
|
46
47
|
} from './orders';
|
|
47
48
|
export {
|
|
48
49
|
Payouts,
|
|
49
|
-
type
|
|
50
|
+
type PayoutCreateResponse,
|
|
51
|
+
type PayoutRetrieveResponse,
|
|
50
52
|
type PayoutListResponse,
|
|
51
53
|
type PayoutCreateParams,
|
|
52
54
|
type PayoutRetrieveParams,
|
|
@@ -54,14 +56,13 @@ export {
|
|
|
54
56
|
} from './payouts';
|
|
55
57
|
export {
|
|
56
58
|
Refunds,
|
|
57
|
-
type
|
|
59
|
+
type RefundCreateResponse,
|
|
58
60
|
type RefundBatchResponse,
|
|
59
61
|
type RefundCreateParams,
|
|
60
62
|
type RefundBatchParams,
|
|
61
63
|
} from './refunds';
|
|
62
64
|
export {
|
|
63
65
|
Reports,
|
|
64
|
-
type PayoutReport,
|
|
65
66
|
type ReportCreateResponse,
|
|
66
67
|
type ReportRetrieveResponse,
|
|
67
68
|
type ReportCreateParams,
|
|
@@ -70,20 +71,9 @@ export {
|
|
|
70
71
|
} from './reports';
|
|
71
72
|
export {
|
|
72
73
|
Subaccounts,
|
|
73
|
-
type
|
|
74
|
+
type SubaccountCreateResponse,
|
|
75
|
+
type SubaccountRetrieveResponse,
|
|
74
76
|
type SubaccountCreateParams,
|
|
75
77
|
type SubaccountRetrieveParams,
|
|
76
78
|
} from './subaccounts';
|
|
77
|
-
export {
|
|
78
|
-
Webhooksubscription,
|
|
79
|
-
type WebhooksubscriptionCreateResponse,
|
|
80
|
-
type WebhooksubscriptionUpdateResponse,
|
|
81
|
-
type WebhooksubscriptionListResponse,
|
|
82
|
-
type WebhooksubscriptionDeleteResponse,
|
|
83
|
-
type WebhooksubscriptionPingResponse,
|
|
84
|
-
type WebhooksubscriptionCreateParams,
|
|
85
|
-
type WebhooksubscriptionUpdateParams,
|
|
86
|
-
type WebhooksubscriptionListParams,
|
|
87
|
-
type WebhooksubscriptionDeleteParams,
|
|
88
|
-
type WebhooksubscriptionPingParams,
|
|
89
|
-
} from './webhooksubscription';
|
|
79
|
+
export { Webhooksubscription } from './webhooksubscription';
|
|
@@ -7,14 +7,17 @@ export class Mandates extends APIResource {
|
|
|
7
7
|
/**
|
|
8
8
|
* Retrieves a direct debit mandate with mandate id.
|
|
9
9
|
*/
|
|
10
|
-
retrieve(
|
|
10
|
+
retrieve(
|
|
11
|
+
body: MandateRetrieveParams,
|
|
12
|
+
options?: Core.RequestOptions,
|
|
13
|
+
): Core.APIPromise<MandateRetrieveResponse> {
|
|
11
14
|
return this._client.post('/api/service/mandate/retrieve', { body, ...options });
|
|
12
15
|
}
|
|
13
16
|
|
|
14
17
|
/**
|
|
15
18
|
* Returns a Direct Debit Mandate when a valid mandate referenceId is given.
|
|
16
19
|
*/
|
|
17
|
-
lookup(body: MandateLookupParams, options?: Core.RequestOptions): Core.APIPromise<
|
|
20
|
+
lookup(body: MandateLookupParams, options?: Core.RequestOptions): Core.APIPromise<MandateLookupResponse> {
|
|
18
21
|
return this._client.post('/api/service/mandate/lookup', { body, ...options });
|
|
19
22
|
}
|
|
20
23
|
|
|
@@ -26,30 +29,91 @@ export class Mandates extends APIResource {
|
|
|
26
29
|
}
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
export interface
|
|
32
|
+
export interface MandateRetrieveResponse {
|
|
30
33
|
id: string;
|
|
31
34
|
|
|
32
|
-
creditor:
|
|
35
|
+
creditor: MandateRetrieveResponse.Creditor;
|
|
33
36
|
|
|
34
|
-
debtor:
|
|
37
|
+
debtor: MandateRetrieveResponse.Debtor;
|
|
35
38
|
|
|
36
39
|
reference: string;
|
|
37
40
|
|
|
38
41
|
referenceId: string;
|
|
39
42
|
|
|
40
|
-
signature:
|
|
43
|
+
signature: MandateRetrieveResponse.Signature;
|
|
41
44
|
|
|
42
45
|
status: 'pending' | 'active' | 'inactive';
|
|
43
46
|
|
|
44
|
-
|
|
47
|
+
revokedAt?: unknown;
|
|
45
48
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
userNotificationEmail?: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export namespace MandateRetrieveResponse {
|
|
53
|
+
export interface Creditor {
|
|
54
|
+
id: string;
|
|
55
|
+
|
|
56
|
+
address: Creditor.Address;
|
|
57
|
+
|
|
58
|
+
name: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace Creditor {
|
|
62
|
+
export interface Address {
|
|
63
|
+
city: string;
|
|
64
|
+
|
|
65
|
+
country: string;
|
|
66
|
+
|
|
67
|
+
postalCode: string;
|
|
68
|
+
|
|
69
|
+
street: string;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface Debtor {
|
|
74
|
+
account: Debtor.Account;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export namespace Debtor {
|
|
78
|
+
export interface Account {
|
|
79
|
+
accountHolderName: string;
|
|
80
|
+
|
|
81
|
+
iban: string;
|
|
82
|
+
|
|
83
|
+
bic?: string;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface Signature {
|
|
88
|
+
token: string;
|
|
89
|
+
|
|
90
|
+
ip: string;
|
|
91
|
+
|
|
92
|
+
signedAt: unknown;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export interface MandateLookupResponse {
|
|
97
|
+
id: string;
|
|
98
|
+
|
|
99
|
+
creditor: MandateLookupResponse.Creditor;
|
|
100
|
+
|
|
101
|
+
debtor: MandateLookupResponse.Debtor;
|
|
102
|
+
|
|
103
|
+
reference: string;
|
|
104
|
+
|
|
105
|
+
referenceId: string;
|
|
106
|
+
|
|
107
|
+
signature: MandateLookupResponse.Signature;
|
|
108
|
+
|
|
109
|
+
status: 'pending' | 'active' | 'inactive';
|
|
110
|
+
|
|
111
|
+
revokedAt?: unknown;
|
|
112
|
+
|
|
113
|
+
userNotificationEmail?: string;
|
|
50
114
|
}
|
|
51
115
|
|
|
52
|
-
export namespace
|
|
116
|
+
export namespace MandateLookupResponse {
|
|
53
117
|
export interface Creditor {
|
|
54
118
|
id: string;
|
|
55
119
|
|
|
@@ -76,9 +140,6 @@ export namespace MandateResponse {
|
|
|
76
140
|
|
|
77
141
|
export namespace Debtor {
|
|
78
142
|
export interface Account {
|
|
79
|
-
/**
|
|
80
|
-
* The name of the account holder.
|
|
81
|
-
*/
|
|
82
143
|
accountHolderName: string;
|
|
83
144
|
|
|
84
145
|
iban: string;
|
|
@@ -92,11 +153,14 @@ export namespace MandateResponse {
|
|
|
92
153
|
|
|
93
154
|
ip: string;
|
|
94
155
|
|
|
95
|
-
signedAt:
|
|
156
|
+
signedAt: unknown;
|
|
96
157
|
}
|
|
97
158
|
}
|
|
98
159
|
|
|
99
160
|
export interface MandateRevokeResponse {
|
|
161
|
+
/**
|
|
162
|
+
* Indicates whether the mandate was successfully revoked
|
|
163
|
+
*/
|
|
100
164
|
success: boolean;
|
|
101
165
|
}
|
|
102
166
|
|
|
@@ -126,7 +190,8 @@ export interface MandateRevokeParams {
|
|
|
126
190
|
|
|
127
191
|
export declare namespace Mandates {
|
|
128
192
|
export {
|
|
129
|
-
type
|
|
193
|
+
type MandateRetrieveResponse as MandateRetrieveResponse,
|
|
194
|
+
type MandateLookupResponse as MandateLookupResponse,
|
|
130
195
|
type MandateRevokeResponse as MandateRevokeResponse,
|
|
131
196
|
type MandateRetrieveParams as MandateRetrieveParams,
|
|
132
197
|
type MandateLookupParams as MandateLookupParams,
|