@havenpay/server 1.0.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/LICENSE +22 -0
- package/README.md +160 -0
- package/dist/index.cjs +1083 -0
- package/dist/index.d.cts +479 -0
- package/dist/index.d.ts +479 -0
- package/dist/index.js +1054 -0
- package/package.json +63 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
import { AccountRole, AccountCapabilities, AccountStatus, Environment, Currency, LedgerEntryType, ProviderId, PaymentMethodType, ProjectAppearance, WebhookEventType, WebhookEndpointStatus, WebhookEventStatus, PaymentIntentStatus, ProjectStatus, ProviderCredentialStatus, RefundStatus } from '@havenpay/core';
|
|
2
|
+
import { ApiV1OperationId } from '@havenpay/core/api-v1';
|
|
3
|
+
|
|
4
|
+
interface HavenpayApiErrorDetails {
|
|
5
|
+
code?: string;
|
|
6
|
+
message?: string;
|
|
7
|
+
requestId?: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
}
|
|
10
|
+
interface HavenpayApiErrorOptions {
|
|
11
|
+
body: string;
|
|
12
|
+
error?: HavenpayApiErrorDetails;
|
|
13
|
+
requestId?: string;
|
|
14
|
+
status: number;
|
|
15
|
+
}
|
|
16
|
+
declare class HavenpayApiError extends Error {
|
|
17
|
+
readonly body: string;
|
|
18
|
+
readonly code?: string;
|
|
19
|
+
readonly error?: HavenpayApiErrorDetails;
|
|
20
|
+
readonly requestId?: string;
|
|
21
|
+
readonly status: number;
|
|
22
|
+
readonly type?: string;
|
|
23
|
+
constructor(options: HavenpayApiErrorOptions);
|
|
24
|
+
}
|
|
25
|
+
declare class HavenpayTimeoutError extends Error {
|
|
26
|
+
readonly timeoutMs: number;
|
|
27
|
+
constructor(timeoutMs: number);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface HavenpayConfig {
|
|
31
|
+
secretKey: string;
|
|
32
|
+
apiVersion?: string;
|
|
33
|
+
baseUrl?: string;
|
|
34
|
+
onRequestEvent?: (event: HavenpayRequestEvent) => void;
|
|
35
|
+
retry?: HavenpayRetryConfig;
|
|
36
|
+
timeoutMs?: number;
|
|
37
|
+
}
|
|
38
|
+
interface HavenpayRequestEvent {
|
|
39
|
+
attempt: number;
|
|
40
|
+
errorKind?: 'api_error' | 'network_error' | 'timeout';
|
|
41
|
+
method: string;
|
|
42
|
+
operationName?: ApiV1OperationId;
|
|
43
|
+
path: string;
|
|
44
|
+
requestId?: string;
|
|
45
|
+
status?: number;
|
|
46
|
+
type: 'request_error' | 'request_retry' | 'request_start' | 'request_success';
|
|
47
|
+
}
|
|
48
|
+
interface HavenpayRetryConfig {
|
|
49
|
+
initialDelayMs?: number;
|
|
50
|
+
maxAttempts?: number;
|
|
51
|
+
maxDelayMs?: number;
|
|
52
|
+
sleep?: (delayMs: number) => Promise<void>;
|
|
53
|
+
}
|
|
54
|
+
interface CreatePaymentIntentParams {
|
|
55
|
+
projectId: string;
|
|
56
|
+
amount: number;
|
|
57
|
+
currency: Currency;
|
|
58
|
+
customer: {
|
|
59
|
+
phone?: string;
|
|
60
|
+
email?: string;
|
|
61
|
+
};
|
|
62
|
+
metadata?: Record<string, string>;
|
|
63
|
+
mobileMoney: {
|
|
64
|
+
provider: ProviderId;
|
|
65
|
+
phone: string;
|
|
66
|
+
};
|
|
67
|
+
idempotencyKey?: string;
|
|
68
|
+
}
|
|
69
|
+
interface PaymentIntentResponse {
|
|
70
|
+
id: string;
|
|
71
|
+
amount: number;
|
|
72
|
+
currency: Currency;
|
|
73
|
+
status: PaymentIntentStatus;
|
|
74
|
+
clientSecret: string;
|
|
75
|
+
requestId?: string;
|
|
76
|
+
customer?: {
|
|
77
|
+
phone?: string;
|
|
78
|
+
email?: string;
|
|
79
|
+
};
|
|
80
|
+
nextAction?: Record<string, unknown>;
|
|
81
|
+
}
|
|
82
|
+
interface CreateRefundParams {
|
|
83
|
+
paymentIntentId: string;
|
|
84
|
+
amount?: number;
|
|
85
|
+
reason?: string;
|
|
86
|
+
idempotencyKey?: string;
|
|
87
|
+
}
|
|
88
|
+
interface RetrieveRefundParams {
|
|
89
|
+
projectId?: string;
|
|
90
|
+
}
|
|
91
|
+
interface ListRefundsParams {
|
|
92
|
+
idempotencyKey?: string;
|
|
93
|
+
limit?: number;
|
|
94
|
+
projectId?: string;
|
|
95
|
+
providerRefundReference?: string;
|
|
96
|
+
startingAfter?: string;
|
|
97
|
+
}
|
|
98
|
+
interface RefundResponse {
|
|
99
|
+
id: string;
|
|
100
|
+
amount: number;
|
|
101
|
+
currency: Currency;
|
|
102
|
+
idempotencyKey: string;
|
|
103
|
+
ledgerEntryId: string | null;
|
|
104
|
+
paymentIntentId: string;
|
|
105
|
+
projectId: string;
|
|
106
|
+
provider: ProviderId;
|
|
107
|
+
providerErrorCode: string | null;
|
|
108
|
+
providerExecution: 'attempted' | 'disabled';
|
|
109
|
+
providerRefundReference: string | null;
|
|
110
|
+
reason: string | null;
|
|
111
|
+
requestId?: string;
|
|
112
|
+
status: RefundStatus;
|
|
113
|
+
}
|
|
114
|
+
interface RefundListResponse {
|
|
115
|
+
data: RefundResponse[];
|
|
116
|
+
hasMore: boolean;
|
|
117
|
+
nextCursor?: string;
|
|
118
|
+
requestId?: string;
|
|
119
|
+
}
|
|
120
|
+
interface CreateProviderAccountParams {
|
|
121
|
+
encryptedCredentialRef: string;
|
|
122
|
+
keyFingerprint: string;
|
|
123
|
+
metadata?: Record<string, unknown>;
|
|
124
|
+
projectId: string;
|
|
125
|
+
provider: ProviderId;
|
|
126
|
+
}
|
|
127
|
+
interface RotateProviderAccountParams {
|
|
128
|
+
encryptedCredentialRef: string;
|
|
129
|
+
keyFingerprint: string;
|
|
130
|
+
metadata?: Record<string, unknown>;
|
|
131
|
+
}
|
|
132
|
+
interface ListProviderAccountsParams {
|
|
133
|
+
limit?: number;
|
|
134
|
+
projectId?: string;
|
|
135
|
+
startingAfter?: string;
|
|
136
|
+
}
|
|
137
|
+
interface ProviderAccountResponse {
|
|
138
|
+
accountId: string;
|
|
139
|
+
createdAt: string;
|
|
140
|
+
environment: Environment;
|
|
141
|
+
id: string;
|
|
142
|
+
keyFingerprint: string;
|
|
143
|
+
metadata: Record<string, unknown>;
|
|
144
|
+
projectId: string;
|
|
145
|
+
provider: ProviderId;
|
|
146
|
+
requestId?: string;
|
|
147
|
+
revokedAt: string | null;
|
|
148
|
+
rotatedFrom?: string;
|
|
149
|
+
status: ProviderCredentialStatus;
|
|
150
|
+
updatedAt: string;
|
|
151
|
+
}
|
|
152
|
+
interface ProviderAccountListResponse {
|
|
153
|
+
data: ProviderAccountResponse[];
|
|
154
|
+
hasMore: boolean;
|
|
155
|
+
nextCursor?: string;
|
|
156
|
+
requestId?: string;
|
|
157
|
+
}
|
|
158
|
+
interface ListBalanceTransactionsParams {
|
|
159
|
+
currency?: Currency;
|
|
160
|
+
limit?: number;
|
|
161
|
+
paymentIntentId?: string;
|
|
162
|
+
projectId?: string;
|
|
163
|
+
startingAfter?: string;
|
|
164
|
+
}
|
|
165
|
+
interface BalanceTransactionResponse {
|
|
166
|
+
accountId: string;
|
|
167
|
+
amount: number;
|
|
168
|
+
balanceAfter: number;
|
|
169
|
+
balanceBefore: number;
|
|
170
|
+
createdAt: string;
|
|
171
|
+
currency: Currency;
|
|
172
|
+
description: string;
|
|
173
|
+
id: string;
|
|
174
|
+
metadata: Record<string, unknown>;
|
|
175
|
+
paymentIntentId: string | null;
|
|
176
|
+
projectId: string | null;
|
|
177
|
+
requestId?: string;
|
|
178
|
+
type: LedgerEntryType;
|
|
179
|
+
}
|
|
180
|
+
interface BalanceTransactionListResponse {
|
|
181
|
+
data: BalanceTransactionResponse[];
|
|
182
|
+
hasMore: boolean;
|
|
183
|
+
nextCursor?: string;
|
|
184
|
+
requestId?: string;
|
|
185
|
+
}
|
|
186
|
+
interface CreateProjectParams {
|
|
187
|
+
allowedBundleIds?: string[];
|
|
188
|
+
allowedCurrencies?: Currency[];
|
|
189
|
+
allowedOrigins?: string[];
|
|
190
|
+
allowedPaymentMethods?: PaymentMethodType[];
|
|
191
|
+
allowedReturnUrls?: string[];
|
|
192
|
+
appearance?: ProjectAppearance;
|
|
193
|
+
displayName: string;
|
|
194
|
+
environment: Environment;
|
|
195
|
+
rateLimitProfile?: string;
|
|
196
|
+
}
|
|
197
|
+
interface UpdateProjectParams {
|
|
198
|
+
allowedBundleIds?: string[];
|
|
199
|
+
allowedCurrencies?: Currency[];
|
|
200
|
+
allowedOrigins?: string[];
|
|
201
|
+
allowedPaymentMethods?: PaymentMethodType[];
|
|
202
|
+
allowedReturnUrls?: string[];
|
|
203
|
+
appearance?: ProjectAppearance;
|
|
204
|
+
displayName?: string;
|
|
205
|
+
rateLimitProfile?: string;
|
|
206
|
+
status?: ProjectStatus;
|
|
207
|
+
}
|
|
208
|
+
interface ListProjectsParams {
|
|
209
|
+
limit?: number;
|
|
210
|
+
startingAfter?: string;
|
|
211
|
+
}
|
|
212
|
+
interface ProjectResponse {
|
|
213
|
+
accountId?: string;
|
|
214
|
+
allowedBundleIds?: string[];
|
|
215
|
+
allowedCurrencies: Currency[];
|
|
216
|
+
allowedOrigins?: string[];
|
|
217
|
+
allowedPaymentMethods: PaymentMethodType[];
|
|
218
|
+
allowedReturnUrls?: string[];
|
|
219
|
+
appearance: ProjectAppearance;
|
|
220
|
+
archived?: boolean;
|
|
221
|
+
createdAt?: string;
|
|
222
|
+
deleted?: boolean;
|
|
223
|
+
displayName: string;
|
|
224
|
+
environment: Environment;
|
|
225
|
+
id: string;
|
|
226
|
+
paymentHistoryCount?: number;
|
|
227
|
+
rateLimitProfile?: string;
|
|
228
|
+
requestId?: string;
|
|
229
|
+
status: ProjectStatus;
|
|
230
|
+
updatedAt?: string;
|
|
231
|
+
}
|
|
232
|
+
interface ProjectListResponse {
|
|
233
|
+
data: ProjectResponse[];
|
|
234
|
+
hasMore: boolean;
|
|
235
|
+
nextCursor?: string;
|
|
236
|
+
requestId?: string;
|
|
237
|
+
}
|
|
238
|
+
interface CreateApiKeyParams {
|
|
239
|
+
displayName: string;
|
|
240
|
+
scopes?: string[];
|
|
241
|
+
}
|
|
242
|
+
interface ListApiKeysParams {
|
|
243
|
+
accountId?: string;
|
|
244
|
+
limit?: number;
|
|
245
|
+
startingAfter?: string;
|
|
246
|
+
}
|
|
247
|
+
interface ApiKeyResponse {
|
|
248
|
+
accountId: string;
|
|
249
|
+
createdAt: string;
|
|
250
|
+
displayName: string;
|
|
251
|
+
environment: Environment;
|
|
252
|
+
expiresAt: string | null;
|
|
253
|
+
id: string;
|
|
254
|
+
lastUsedAt: string | null;
|
|
255
|
+
prefix: string;
|
|
256
|
+
requestId?: string;
|
|
257
|
+
revokedAt: string | null;
|
|
258
|
+
scopes: string[];
|
|
259
|
+
secretKey?: string;
|
|
260
|
+
}
|
|
261
|
+
interface ApiKeyListResponse {
|
|
262
|
+
data: ApiKeyResponse[];
|
|
263
|
+
hasMore: boolean;
|
|
264
|
+
nextCursor?: string;
|
|
265
|
+
requestId?: string;
|
|
266
|
+
}
|
|
267
|
+
interface CreateAccountParams {
|
|
268
|
+
capabilities?: Partial<AccountCapabilities>;
|
|
269
|
+
displayName: string;
|
|
270
|
+
email: string;
|
|
271
|
+
metadata?: Record<string, unknown>;
|
|
272
|
+
}
|
|
273
|
+
interface UpdateAccountParams {
|
|
274
|
+
capabilities?: Partial<AccountCapabilities>;
|
|
275
|
+
displayName?: string;
|
|
276
|
+
email?: string;
|
|
277
|
+
livemode?: boolean;
|
|
278
|
+
metadata?: Record<string, unknown>;
|
|
279
|
+
status?: AccountStatus;
|
|
280
|
+
}
|
|
281
|
+
interface ListAccountsParams {
|
|
282
|
+
limit?: number;
|
|
283
|
+
startingAfter?: string;
|
|
284
|
+
}
|
|
285
|
+
interface AccountResponse {
|
|
286
|
+
accountRole: AccountRole;
|
|
287
|
+
capabilities: AccountCapabilities;
|
|
288
|
+
createdAt: string;
|
|
289
|
+
displayName: string;
|
|
290
|
+
email: string;
|
|
291
|
+
id: string;
|
|
292
|
+
livemode: boolean;
|
|
293
|
+
metadata: Record<string, unknown>;
|
|
294
|
+
ownerAccountId: string | null;
|
|
295
|
+
requestId?: string;
|
|
296
|
+
status: AccountStatus;
|
|
297
|
+
updatedAt: string;
|
|
298
|
+
}
|
|
299
|
+
interface AccountListResponse {
|
|
300
|
+
data: AccountResponse[];
|
|
301
|
+
hasMore: boolean;
|
|
302
|
+
nextCursor?: string;
|
|
303
|
+
requestId?: string;
|
|
304
|
+
}
|
|
305
|
+
interface CreateWebhookEndpointParams {
|
|
306
|
+
apiVersion?: string;
|
|
307
|
+
description?: string;
|
|
308
|
+
enabledEvents?: WebhookEventType[];
|
|
309
|
+
status?: WebhookEndpointStatus;
|
|
310
|
+
url: string;
|
|
311
|
+
}
|
|
312
|
+
interface UpdateWebhookEndpointParams {
|
|
313
|
+
apiVersion?: string;
|
|
314
|
+
description?: string;
|
|
315
|
+
enabledEvents?: WebhookEventType[];
|
|
316
|
+
status?: WebhookEndpointStatus;
|
|
317
|
+
url?: string;
|
|
318
|
+
}
|
|
319
|
+
interface ListWebhookEndpointsParams {
|
|
320
|
+
accountId?: string;
|
|
321
|
+
limit?: number;
|
|
322
|
+
startingAfter?: string;
|
|
323
|
+
}
|
|
324
|
+
interface WebhookEndpointResponse {
|
|
325
|
+
accountId: string;
|
|
326
|
+
apiVersion: string;
|
|
327
|
+
createdAt: string;
|
|
328
|
+
deleted?: boolean;
|
|
329
|
+
description?: string;
|
|
330
|
+
enabledEvents: WebhookEventType[];
|
|
331
|
+
id: string;
|
|
332
|
+
requestId?: string;
|
|
333
|
+
signingSecret?: string;
|
|
334
|
+
status: WebhookEndpointStatus;
|
|
335
|
+
updatedAt: string;
|
|
336
|
+
url: string;
|
|
337
|
+
}
|
|
338
|
+
interface WebhookEndpointListResponse {
|
|
339
|
+
data: WebhookEndpointResponse[];
|
|
340
|
+
hasMore: boolean;
|
|
341
|
+
nextCursor?: string;
|
|
342
|
+
requestId?: string;
|
|
343
|
+
}
|
|
344
|
+
interface ListEventsParams {
|
|
345
|
+
limit?: number;
|
|
346
|
+
projectId?: string;
|
|
347
|
+
startingAfter?: string;
|
|
348
|
+
}
|
|
349
|
+
interface EventResponse {
|
|
350
|
+
accountId: string;
|
|
351
|
+
apiVersion: string;
|
|
352
|
+
created: string;
|
|
353
|
+
data: Record<string, unknown>;
|
|
354
|
+
id: string;
|
|
355
|
+
livemode: boolean;
|
|
356
|
+
objectId: string;
|
|
357
|
+
pendingWebhookEndpoints: string[];
|
|
358
|
+
projectId: string;
|
|
359
|
+
requestId?: string;
|
|
360
|
+
status: WebhookEventStatus;
|
|
361
|
+
type: WebhookEventType;
|
|
362
|
+
}
|
|
363
|
+
interface EventListResponse {
|
|
364
|
+
data: EventResponse[];
|
|
365
|
+
hasMore: boolean;
|
|
366
|
+
nextCursor?: string;
|
|
367
|
+
requestId?: string;
|
|
368
|
+
}
|
|
369
|
+
interface ReplayEventResponse {
|
|
370
|
+
id: string;
|
|
371
|
+
requestId?: string;
|
|
372
|
+
status: WebhookEventStatus;
|
|
373
|
+
}
|
|
374
|
+
interface ConstructWebhookEventParams {
|
|
375
|
+
rawBody: string;
|
|
376
|
+
signature: string;
|
|
377
|
+
secret: string;
|
|
378
|
+
toleranceSeconds?: number;
|
|
379
|
+
}
|
|
380
|
+
interface WebhookEvent {
|
|
381
|
+
id: string;
|
|
382
|
+
type: string;
|
|
383
|
+
created: string;
|
|
384
|
+
data: Record<string, unknown>;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
declare class Accounts {
|
|
388
|
+
private config;
|
|
389
|
+
constructor(config: HavenpayConfig);
|
|
390
|
+
create(params: CreateAccountParams): Promise<AccountResponse>;
|
|
391
|
+
list(params?: ListAccountsParams): Promise<AccountListResponse>;
|
|
392
|
+
update(id: string, params: UpdateAccountParams): Promise<AccountResponse>;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
declare class ApiKeys {
|
|
396
|
+
private config;
|
|
397
|
+
constructor(config: HavenpayConfig);
|
|
398
|
+
create(params: CreateApiKeyParams): Promise<ApiKeyResponse>;
|
|
399
|
+
list(params?: ListApiKeysParams): Promise<ApiKeyListResponse>;
|
|
400
|
+
revoke(id: string): Promise<ApiKeyResponse>;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
declare class BalanceTransactions {
|
|
404
|
+
private config;
|
|
405
|
+
constructor(config: HavenpayConfig);
|
|
406
|
+
list(params?: ListBalanceTransactionsParams): Promise<BalanceTransactionListResponse>;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
declare class Events {
|
|
410
|
+
private config;
|
|
411
|
+
constructor(config: HavenpayConfig);
|
|
412
|
+
list(params?: ListEventsParams): Promise<EventListResponse>;
|
|
413
|
+
replay(id: string): Promise<ReplayEventResponse>;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare class PaymentIntents {
|
|
417
|
+
private config;
|
|
418
|
+
constructor(config: HavenpayConfig);
|
|
419
|
+
create(params: CreatePaymentIntentParams): Promise<PaymentIntentResponse>;
|
|
420
|
+
retrieve(id: string): Promise<PaymentIntentResponse>;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
declare class Projects {
|
|
424
|
+
private config;
|
|
425
|
+
constructor(config: HavenpayConfig);
|
|
426
|
+
create(params: CreateProjectParams): Promise<ProjectResponse>;
|
|
427
|
+
list(params?: ListProjectsParams): Promise<ProjectListResponse>;
|
|
428
|
+
update(id: string, params: UpdateProjectParams): Promise<ProjectResponse>;
|
|
429
|
+
archive(id: string): Promise<ProjectResponse>;
|
|
430
|
+
getConfig(id: string): Promise<ProjectResponse>;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
declare class ProviderAccounts {
|
|
434
|
+
private config;
|
|
435
|
+
constructor(config: HavenpayConfig);
|
|
436
|
+
create(params: CreateProviderAccountParams): Promise<ProviderAccountResponse>;
|
|
437
|
+
list(params?: ListProviderAccountsParams): Promise<ProviderAccountListResponse>;
|
|
438
|
+
rotate(id: string, params: RotateProviderAccountParams): Promise<ProviderAccountResponse>;
|
|
439
|
+
revoke(id: string): Promise<ProviderAccountResponse>;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
declare class Refunds {
|
|
443
|
+
private config;
|
|
444
|
+
constructor(config: HavenpayConfig);
|
|
445
|
+
create(params: CreateRefundParams): Promise<RefundResponse>;
|
|
446
|
+
retrieve(id: string, params?: RetrieveRefundParams): Promise<RefundResponse>;
|
|
447
|
+
list(params?: ListRefundsParams): Promise<RefundListResponse>;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
declare class WebhookEndpoints {
|
|
451
|
+
private config;
|
|
452
|
+
constructor(config: HavenpayConfig);
|
|
453
|
+
create(params: CreateWebhookEndpointParams): Promise<WebhookEndpointResponse>;
|
|
454
|
+
list(params?: ListWebhookEndpointsParams): Promise<WebhookEndpointListResponse>;
|
|
455
|
+
update(id: string, params: UpdateWebhookEndpointParams): Promise<WebhookEndpointResponse>;
|
|
456
|
+
rotateSecret(id: string): Promise<WebhookEndpointResponse>;
|
|
457
|
+
delete(id: string): Promise<WebhookEndpointResponse>;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
declare class Webhooks {
|
|
461
|
+
constructEvent(params: ConstructWebhookEventParams): WebhookEvent;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
declare class Havenpay {
|
|
465
|
+
private config;
|
|
466
|
+
accounts: Accounts;
|
|
467
|
+
apiKeys: ApiKeys;
|
|
468
|
+
balanceTransactions: BalanceTransactions;
|
|
469
|
+
events: Events;
|
|
470
|
+
paymentIntents: PaymentIntents;
|
|
471
|
+
projects: Projects;
|
|
472
|
+
providerAccounts: ProviderAccounts;
|
|
473
|
+
refunds: Refunds;
|
|
474
|
+
webhookEndpoints: WebhookEndpoints;
|
|
475
|
+
webhooks: Webhooks;
|
|
476
|
+
constructor(config: HavenpayConfig);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
export { type AccountListResponse, type AccountResponse, type ApiKeyListResponse, type ApiKeyResponse, type BalanceTransactionListResponse, type BalanceTransactionResponse, type ConstructWebhookEventParams, type CreateAccountParams, type CreateApiKeyParams, type CreatePaymentIntentParams, type CreateProjectParams, type CreateProviderAccountParams, type CreateRefundParams, type CreateWebhookEndpointParams, type EventListResponse, type EventResponse, Havenpay, HavenpayApiError, type HavenpayConfig, type HavenpayRequestEvent, type HavenpayRetryConfig, HavenpayTimeoutError, type ListAccountsParams, type ListApiKeysParams, type ListBalanceTransactionsParams, type ListEventsParams, type ListProjectsParams, type ListProviderAccountsParams, type ListRefundsParams, type ListWebhookEndpointsParams, type PaymentIntentResponse, type ProjectListResponse, type ProjectResponse, type ProviderAccountListResponse, type ProviderAccountResponse, type RefundListResponse, type RefundResponse, type ReplayEventResponse, type RetrieveRefundParams, type RotateProviderAccountParams, type UpdateAccountParams, type UpdateProjectParams, type UpdateWebhookEndpointParams, type WebhookEndpointListResponse, type WebhookEndpointResponse, type WebhookEvent };
|