@getivy/node-sdk 0.1.0-alpha.31 → 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.
Files changed (123) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/index.d.mts +14 -14
  3. package/index.d.ts +14 -14
  4. package/index.d.ts.map +1 -1
  5. package/index.js.map +1 -1
  6. package/index.mjs +1 -1
  7. package/index.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/balance.d.ts +6 -3
  10. package/resources/balance.d.ts.map +1 -1
  11. package/resources/banks.d.ts +38 -59
  12. package/resources/banks.d.ts.map +1 -1
  13. package/resources/capabilities.d.ts +1 -10
  14. package/resources/capabilities.d.ts.map +1 -1
  15. package/resources/charges.d.ts +30 -21
  16. package/resources/charges.d.ts.map +1 -1
  17. package/resources/checkoutsession.d.ts +315 -807
  18. package/resources/checkoutsession.d.ts.map +1 -1
  19. package/resources/customers.d.ts +9 -12
  20. package/resources/customers.d.ts.map +1 -1
  21. package/resources/data/accounts.d.ts +0 -100
  22. package/resources/data/accounts.d.ts.map +1 -1
  23. package/resources/data/accounts.js +0 -6
  24. package/resources/data/accounts.js.map +1 -1
  25. package/resources/data/accounts.mjs +0 -6
  26. package/resources/data/accounts.mjs.map +1 -1
  27. package/resources/data/balances.d.ts +0 -41
  28. package/resources/data/balances.d.ts.map +1 -1
  29. package/resources/data/balances.js +0 -6
  30. package/resources/data/balances.js.map +1 -1
  31. package/resources/data/balances.mjs +0 -6
  32. package/resources/data/balances.mjs.map +1 -1
  33. package/resources/data/consent.d.ts +0 -76
  34. package/resources/data/consent.d.ts.map +1 -1
  35. package/resources/data/consent.js +0 -12
  36. package/resources/data/consent.js.map +1 -1
  37. package/resources/data/consent.mjs +0 -12
  38. package/resources/data/consent.mjs.map +1 -1
  39. package/resources/data/data.d.ts +10 -10
  40. package/resources/data/data.d.ts.map +1 -1
  41. package/resources/data/data.js.map +1 -1
  42. package/resources/data/data.mjs +2 -2
  43. package/resources/data/data.mjs.map +1 -1
  44. package/resources/data/index.d.ts +5 -5
  45. package/resources/data/index.d.ts.map +1 -1
  46. package/resources/data/index.js.map +1 -1
  47. package/resources/data/index.mjs +2 -2
  48. package/resources/data/index.mjs.map +1 -1
  49. package/resources/data/session.d.ts +0 -230
  50. package/resources/data/session.d.ts.map +1 -1
  51. package/resources/data/session.js +0 -12
  52. package/resources/data/session.js.map +1 -1
  53. package/resources/data/session.mjs +0 -12
  54. package/resources/data/session.mjs.map +1 -1
  55. package/resources/data/transactions.d.ts +0 -50
  56. package/resources/data/transactions.d.ts.map +1 -1
  57. package/resources/data/transactions.js +0 -7
  58. package/resources/data/transactions.js.map +1 -1
  59. package/resources/data/transactions.mjs +0 -7
  60. package/resources/data/transactions.mjs.map +1 -1
  61. package/resources/index.d.ts +7 -7
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js.map +1 -1
  64. package/resources/index.mjs +1 -1
  65. package/resources/index.mjs.map +1 -1
  66. package/resources/mandates.d.ts +55 -17
  67. package/resources/mandates.d.ts.map +1 -1
  68. package/resources/mandates.js.map +1 -1
  69. package/resources/mandates.mjs.map +1 -1
  70. package/resources/orders.d.ts +242 -524
  71. package/resources/orders.d.ts.map +1 -1
  72. package/resources/payouts.d.ts +146 -70
  73. package/resources/payouts.d.ts.map +1 -1
  74. package/resources/payouts.js.map +1 -1
  75. package/resources/payouts.mjs.map +1 -1
  76. package/resources/refunds.d.ts +16 -92
  77. package/resources/refunds.d.ts.map +1 -1
  78. package/resources/refunds.js +4 -4
  79. package/resources/refunds.js.map +1 -1
  80. package/resources/refunds.mjs +4 -4
  81. package/resources/refunds.mjs.map +1 -1
  82. package/resources/reports.d.ts +4 -78
  83. package/resources/reports.d.ts.map +1 -1
  84. package/resources/reports.js +5 -1
  85. package/resources/reports.js.map +1 -1
  86. package/resources/reports.mjs +5 -1
  87. package/resources/reports.mjs.map +1 -1
  88. package/resources/subaccounts.d.ts +19 -7
  89. package/resources/subaccounts.d.ts.map +1 -1
  90. package/resources/subaccounts.js.map +1 -1
  91. package/resources/subaccounts.mjs.map +1 -1
  92. package/resources/webhooksubscription.d.ts +0 -151
  93. package/resources/webhooksubscription.d.ts.map +1 -1
  94. package/resources/webhooksubscription.js +0 -33
  95. package/resources/webhooksubscription.js.map +1 -1
  96. package/resources/webhooksubscription.mjs +0 -33
  97. package/resources/webhooksubscription.mjs.map +1 -1
  98. package/src/index.ts +22 -38
  99. package/src/resources/balance.ts +6 -3
  100. package/src/resources/banks.ts +41 -59
  101. package/src/resources/capabilities.ts +1 -10
  102. package/src/resources/charges.ts +32 -23
  103. package/src/resources/checkoutsession.ts +1399 -1003
  104. package/src/resources/customers.ts +9 -12
  105. package/src/resources/data/accounts.ts +1 -130
  106. package/src/resources/data/balances.ts +1 -53
  107. package/src/resources/data/consent.ts +1 -106
  108. package/src/resources/data/data.ts +10 -46
  109. package/src/resources/data/index.ts +5 -17
  110. package/src/resources/data/session.ts +1 -1295
  111. package/src/resources/data/transactions.ts +1 -67
  112. package/src/resources/index.ts +9 -19
  113. package/src/resources/mandates.ts +82 -17
  114. package/src/resources/orders.ts +1149 -805
  115. package/src/resources/payouts.ts +239 -70
  116. package/src/resources/refunds.ts +33 -94
  117. package/src/resources/reports.ts +8 -98
  118. package/src/resources/subaccounts.ts +36 -7
  119. package/src/resources/webhooksubscription.ts +1 -349
  120. package/src/version.ts +1 -1
  121. package/version.d.ts +1 -1
  122. package/version.js +1 -1
  123. 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 {}
@@ -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 Charge, type ChargeCreateParams } from './charges';
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 MandateResponse,
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 PublicUserPayout,
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 RefundResponse,
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 Subaccount,
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(body: MandateRetrieveParams, options?: Core.RequestOptions): Core.APIPromise<MandateResponse> {
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<MandateResponse> {
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 MandateResponse {
32
+ export interface MandateRetrieveResponse {
30
33
  id: string;
31
34
 
32
- creditor: MandateResponse.Creditor;
35
+ creditor: MandateRetrieveResponse.Creditor;
33
36
 
34
- debtor: MandateResponse.Debtor;
37
+ debtor: MandateRetrieveResponse.Debtor;
35
38
 
36
39
  reference: string;
37
40
 
38
41
  referenceId: string;
39
42
 
40
- signature: MandateResponse.Signature;
43
+ signature: MandateRetrieveResponse.Signature;
41
44
 
42
45
  status: 'pending' | 'active' | 'inactive';
43
46
 
44
- userNotificationEmail: string;
47
+ revokedAt?: unknown;
45
48
 
46
- /**
47
- * Required if status is inactive
48
- */
49
- revokedAt?: string;
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 MandateResponse {
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: string;
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 MandateResponse as MandateResponse,
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,