@delopay/sdk 0.9.0 → 0.11.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/README.md +8 -6
- package/dist/{chunk-WTVISXEY.js → chunk-VQPHGGNQ.js} +106 -55
- package/dist/chunk-VQPHGGNQ.js.map +1 -0
- package/dist/index.cjs +105 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +113 -38
- package/dist/index.d.ts +113 -38
- package/dist/index.js +1 -1
- package/dist/internal.cjs +105 -54
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +1 -1
- package/package.json +16 -16
- package/dist/chunk-WTVISXEY.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -335,6 +335,14 @@ interface PaymentListParams {
|
|
|
335
335
|
'created.lte'?: string | null;
|
|
336
336
|
'created.gte'?: string | null;
|
|
337
337
|
}
|
|
338
|
+
/** Optional query flags for `payments.retrieve`. See the method's JSDoc. */
|
|
339
|
+
interface PaymentRetrieveOptions {
|
|
340
|
+
/** Reconcile intent state with the connector before responding. */
|
|
341
|
+
force_sync?: boolean;
|
|
342
|
+
/** Bypass the backend's `should_call_connector` gate so even a
|
|
343
|
+
* `requires_payment_method` intent triggers a sync. */
|
|
344
|
+
all_keys_required?: boolean;
|
|
345
|
+
}
|
|
338
346
|
interface PaymentListResponse {
|
|
339
347
|
size: number;
|
|
340
348
|
data: PaymentResponse[];
|
|
@@ -726,6 +734,34 @@ interface ProfileLogoUploadResponse {
|
|
|
726
734
|
/** Publicly-reachable HTTPS URL of the uploaded logo. */
|
|
727
735
|
logo_url: string;
|
|
728
736
|
}
|
|
737
|
+
/**
|
|
738
|
+
* Event scope when registering a connector webhook.
|
|
739
|
+
* - `'all_events'`: wildcard registration (cheapest default).
|
|
740
|
+
* - `{ specific_event: '<EventType>' }`: register only one event type.
|
|
741
|
+
* Matches the backend's internally-tagged `ConnectorWebhookEventType`.
|
|
742
|
+
*/
|
|
743
|
+
type ConnectorWebhookEventType = 'all_events' | {
|
|
744
|
+
specific_event: string;
|
|
745
|
+
};
|
|
746
|
+
/** Body for `POST /account/{merchantId}/connectors/webhooks/{connectorId}`. */
|
|
747
|
+
interface ConnectorWebhookRegisterRequest {
|
|
748
|
+
event_type?: ConnectorWebhookEventType;
|
|
749
|
+
}
|
|
750
|
+
interface ConnectorWebhookRegisterResponse {
|
|
751
|
+
event_type: ConnectorWebhookEventType;
|
|
752
|
+
connector_webhook_id: string | null;
|
|
753
|
+
webhook_registration_status: 'success' | 'failure';
|
|
754
|
+
error_code: string | null;
|
|
755
|
+
error_message: string | null;
|
|
756
|
+
}
|
|
757
|
+
interface ConnectorWebhookEntry {
|
|
758
|
+
event_type: ConnectorWebhookEventType;
|
|
759
|
+
connector_webhook_id: string;
|
|
760
|
+
}
|
|
761
|
+
interface ConnectorWebhookListResponse {
|
|
762
|
+
connector: string;
|
|
763
|
+
webhooks: ConnectorWebhookEntry[];
|
|
764
|
+
}
|
|
729
765
|
interface PaymentLinkBackgroundImageConfig {
|
|
730
766
|
url: string;
|
|
731
767
|
position?: 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | null;
|
|
@@ -1214,6 +1250,15 @@ interface Terminate2faQueryParams {
|
|
|
1214
1250
|
*/
|
|
1215
1251
|
skip_two_factor_auth?: boolean;
|
|
1216
1252
|
}
|
|
1253
|
+
/** Optional query params for `GET /user/role/list/invite`. */
|
|
1254
|
+
interface ListInvitableRolesParams {
|
|
1255
|
+
/**
|
|
1256
|
+
* Scope the listing to roles invitable for a given entity. The dashboard
|
|
1257
|
+
* passes `'merchant'` when populating an invite-employee dialog so admin/
|
|
1258
|
+
* platform-only roles don't leak into a merchant-side list.
|
|
1259
|
+
*/
|
|
1260
|
+
entity_type?: string;
|
|
1261
|
+
}
|
|
1217
1262
|
interface PhoneOtpRequest {
|
|
1218
1263
|
phone_number: string;
|
|
1219
1264
|
}
|
|
@@ -1783,10 +1828,17 @@ declare class Connectors {
|
|
|
1783
1828
|
delete(accountId: string, connectorId: string): Promise<ConnectorResponse>;
|
|
1784
1829
|
/** Verify connector credentials. `POST /account/connectors/verify` */
|
|
1785
1830
|
verify(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1786
|
-
/**
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1831
|
+
/**
|
|
1832
|
+
* Register a webhook for a connector.
|
|
1833
|
+
* `POST /account/{merchantId}/connectors/webhooks/{connectorId}`
|
|
1834
|
+
*
|
|
1835
|
+
* @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`
|
|
1836
|
+
* on the backend when omitted; pass `{ event_type: { specific_event: '…' } }`
|
|
1837
|
+
* to scope to a single event.
|
|
1838
|
+
*/
|
|
1839
|
+
registerWebhook(merchantId: string, connectorId: string, params?: ConnectorWebhookRegisterRequest): Promise<ConnectorWebhookRegisterResponse>;
|
|
1840
|
+
/** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */
|
|
1841
|
+
getWebhook(merchantId: string, connectorId: string): Promise<ConnectorWebhookListResponse>;
|
|
1790
1842
|
/** List available payment methods. `GET /account/payment_methods` */
|
|
1791
1843
|
listPaymentMethods(): Promise<Record<string, unknown>[]>;
|
|
1792
1844
|
}
|
|
@@ -2197,14 +2249,25 @@ declare class Payments {
|
|
|
2197
2249
|
* Retrieve a payment by its ID.
|
|
2198
2250
|
*
|
|
2199
2251
|
* @param paymentId - The unique payment intent ID.
|
|
2252
|
+
* @param options - Optional query flags. `force_sync` asks the backend to
|
|
2253
|
+
* reconcile state with the connector before returning (used to recover a
|
|
2254
|
+
* stuck intent when a webhook was lost). `all_keys_required` lifts the
|
|
2255
|
+
* backend's `should_call_connector` gate so a `requires_payment_method`
|
|
2256
|
+
* intent can still trigger a sync — without it the backend short-circuits
|
|
2257
|
+
* and returns the local snapshot. Both flags are JWT-authenticated dashboard
|
|
2258
|
+
* helpers; API-key callers can use them too where the backend allows.
|
|
2200
2259
|
* @returns The payment intent.
|
|
2201
2260
|
*
|
|
2202
2261
|
* @example
|
|
2203
2262
|
* ```typescript
|
|
2204
2263
|
* const payment = await delopay.payments.retrieve('pay_abc123');
|
|
2264
|
+
* const synced = await delopay.payments.retrieve('pay_abc123', {
|
|
2265
|
+
* force_sync: true,
|
|
2266
|
+
* all_keys_required: true,
|
|
2267
|
+
* });
|
|
2205
2268
|
* ```
|
|
2206
2269
|
*/
|
|
2207
|
-
retrieve(paymentId: string): Promise<PaymentResponse>;
|
|
2270
|
+
retrieve(paymentId: string, options?: PaymentRetrieveOptions): Promise<PaymentResponse>;
|
|
2208
2271
|
/**
|
|
2209
2272
|
* Update an existing payment intent before it is confirmed.
|
|
2210
2273
|
*
|
|
@@ -2419,24 +2482,30 @@ declare class Projects {
|
|
|
2419
2482
|
* Retrieve a project by its ID.
|
|
2420
2483
|
*
|
|
2421
2484
|
* @param projectId - The unique project ID.
|
|
2485
|
+
* @param merchantId - Optional merchant scope. When provided, sent as
|
|
2486
|
+
* `?merchant_id=…` — required by dashboards that authenticate with a JWT
|
|
2487
|
+
* spanning multiple merchants and need to disambiguate which one this
|
|
2488
|
+
* call applies to. API-key callers can omit it.
|
|
2422
2489
|
* @returns The project.
|
|
2423
2490
|
*/
|
|
2424
|
-
retrieve(projectId: string): Promise<ProjectResponse>;
|
|
2491
|
+
retrieve(projectId: string, merchantId?: string): Promise<ProjectResponse>;
|
|
2425
2492
|
/**
|
|
2426
2493
|
* Update a project's details.
|
|
2427
2494
|
*
|
|
2428
2495
|
* @param projectId - The project ID to update.
|
|
2429
2496
|
* @param params - Fields to update.
|
|
2497
|
+
* @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.
|
|
2430
2498
|
* @returns The updated project.
|
|
2431
2499
|
*/
|
|
2432
|
-
update(projectId: string, params: ProjectUpdateRequest): Promise<ProjectResponse>;
|
|
2500
|
+
update(projectId: string, params: ProjectUpdateRequest, merchantId?: string): Promise<ProjectResponse>;
|
|
2433
2501
|
/**
|
|
2434
2502
|
* Delete a project.
|
|
2435
2503
|
*
|
|
2436
2504
|
* @param projectId - The project ID to delete.
|
|
2505
|
+
* @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.
|
|
2437
2506
|
* @returns The deleted project object.
|
|
2438
2507
|
*/
|
|
2439
|
-
delete(projectId: string): Promise<ProjectResponse>;
|
|
2508
|
+
delete(projectId: string, merchantId?: string): Promise<ProjectResponse>;
|
|
2440
2509
|
/**
|
|
2441
2510
|
* List all projects for a merchant.
|
|
2442
2511
|
*
|
|
@@ -2863,8 +2932,14 @@ declare class Users {
|
|
|
2863
2932
|
getRoleV3(): Promise<Record<string, unknown>>;
|
|
2864
2933
|
/** List roles (v2). `GET /user/role/v2/list` */
|
|
2865
2934
|
listRolesV2(): Promise<Record<string, unknown>[]>;
|
|
2866
|
-
/**
|
|
2867
|
-
|
|
2935
|
+
/**
|
|
2936
|
+
* List invitable roles. `GET /user/role/list/invite`
|
|
2937
|
+
*
|
|
2938
|
+
* @param params - Optional query. `entity_type` scopes the role list to a
|
|
2939
|
+
* particular entity (e.g. `'merchant'` to list only merchant-scoped roles
|
|
2940
|
+
* when inviting employees from the merchant dashboard).
|
|
2941
|
+
*/
|
|
2942
|
+
listInvitableRoles(params?: ListInvitableRolesParams): Promise<Record<string, unknown>[]>;
|
|
2868
2943
|
/** List updatable roles. `GET /user/role/list/update` */
|
|
2869
2944
|
listUpdatableRoles(): Promise<Record<string, unknown>[]>;
|
|
2870
2945
|
/** Get permission info. `GET /user/permission_info` */
|
|
@@ -3097,7 +3172,7 @@ type RequestFn = <T>(method: string, path: string, options?: RequestOptions) =>
|
|
|
3097
3172
|
declare class Delopay {
|
|
3098
3173
|
/** Utility for verifying incoming webhook signatures (static, no instance needed). */
|
|
3099
3174
|
static webhooks: {
|
|
3100
|
-
verify(rawBody: string, signatureHeader: string, secret: string
|
|
3175
|
+
verify(rawBody: string | Uint8Array, signatureHeader: string, secret: string): Promise<WebhookEvent>;
|
|
3101
3176
|
};
|
|
3102
3177
|
/** The resolved base URL used for all API requests. */
|
|
3103
3178
|
readonly baseUrl: string;
|
|
@@ -3261,58 +3336,58 @@ declare class DelopayAuthenticationError extends DelopayError {
|
|
|
3261
3336
|
/**
|
|
3262
3337
|
* A parsed and verified Delopay webhook event.
|
|
3263
3338
|
*
|
|
3264
|
-
* The `type` field identifies the event (e.g. `'
|
|
3339
|
+
* The `type` field identifies the event (e.g. `'payment_succeeded'`).
|
|
3265
3340
|
* Specific event payload shapes are nested under `data`.
|
|
3266
3341
|
*/
|
|
3267
3342
|
interface WebhookEvent {
|
|
3268
|
-
/** Event type identifier, e.g. `'
|
|
3343
|
+
/** Event type identifier, e.g. `'payment_succeeded'` or `'refund_succeeded'`. */
|
|
3269
3344
|
type: string;
|
|
3270
3345
|
/** Event payload. Shape depends on `type`. */
|
|
3271
3346
|
data: Record<string, unknown>;
|
|
3272
3347
|
[key: string]: unknown;
|
|
3273
3348
|
}
|
|
3274
|
-
/**
|
|
3275
|
-
* Options for webhook signature verification.
|
|
3276
|
-
*/
|
|
3277
|
-
interface VerifyOptions {
|
|
3278
|
-
/**
|
|
3279
|
-
* Maximum age of the webhook timestamp in seconds before the event is rejected.
|
|
3280
|
-
* Defaults to `300` (5 minutes). Prevents replay attacks.
|
|
3281
|
-
*/
|
|
3282
|
-
tolerance?: number;
|
|
3283
|
-
}
|
|
3284
3349
|
declare const Webhooks: {
|
|
3285
3350
|
/**
|
|
3286
3351
|
* Verify the signature of an incoming Delopay webhook and return the parsed event.
|
|
3287
3352
|
*
|
|
3353
|
+
* Delopay signs each outgoing webhook with HMAC-SHA512 over the raw request body,
|
|
3354
|
+
* using your shop's webhook secret (the *payment response hash key* configured on
|
|
3355
|
+
* the shop). The hex-encoded digest is delivered in the `X-Webhook-Signature-512`
|
|
3356
|
+
* HTTP header.
|
|
3357
|
+
*
|
|
3288
3358
|
* Uses the Web Crypto API (`globalThis.crypto.subtle`), so it runs unchanged in
|
|
3289
3359
|
* Node 18+, modern browsers, Deno, Bun, and edge runtimes (Cloudflare Workers, Vercel Edge).
|
|
3290
3360
|
*
|
|
3291
|
-
*
|
|
3361
|
+
* Available as a static property on the `Delopay` class
|
|
3292
3362
|
* (`Delopay.webhooks.verify`) and does not require a client instance.
|
|
3293
3363
|
*
|
|
3294
|
-
* @param rawBody - The raw request body
|
|
3295
|
-
*
|
|
3296
|
-
*
|
|
3297
|
-
* @param
|
|
3364
|
+
* @param rawBody - The raw request body. Pass the original bytes (`Uint8Array` /
|
|
3365
|
+
* `Buffer`) when possible; if you pass a string, it must be the unmodified UTF-8
|
|
3366
|
+
* text of the request body. Do **not** parse it before passing.
|
|
3367
|
+
* @param signatureHeader - The value of the `X-Webhook-Signature-512` HTTP header.
|
|
3368
|
+
* @param secret - Your shop's webhook signing secret.
|
|
3298
3369
|
* @returns Promise that resolves to the parsed webhook event.
|
|
3299
|
-
* @throws {Error} When the signature
|
|
3370
|
+
* @throws {Error} When the signature header is malformed or does not match the body.
|
|
3300
3371
|
*
|
|
3301
3372
|
* @example
|
|
3302
3373
|
* ```typescript
|
|
3303
3374
|
* // Express example
|
|
3304
3375
|
* app.post('/webhook', express.raw({ type: 'application/json' }), async (req, res) => {
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3307
|
-
*
|
|
3308
|
-
*
|
|
3309
|
-
*
|
|
3310
|
-
*
|
|
3311
|
-
*
|
|
3376
|
+
* try {
|
|
3377
|
+
* const event = await Delopay.webhooks.verify(
|
|
3378
|
+
* req.body, // Buffer from express.raw()
|
|
3379
|
+
* req.header('x-webhook-signature-512') ?? '',
|
|
3380
|
+
* process.env.DELOPAY_WEBHOOK_SECRET!,
|
|
3381
|
+
* );
|
|
3382
|
+
* console.log(event.type, event.data);
|
|
3383
|
+
* res.sendStatus(200);
|
|
3384
|
+
* } catch {
|
|
3385
|
+
* res.status(400).send('Invalid signature');
|
|
3386
|
+
* }
|
|
3312
3387
|
* });
|
|
3313
3388
|
* ```
|
|
3314
3389
|
*/
|
|
3315
|
-
verify(rawBody: string, signatureHeader: string, secret: string
|
|
3390
|
+
verify(rawBody: string | Uint8Array, signatureHeader: string, secret: string): Promise<WebhookEvent>;
|
|
3316
3391
|
};
|
|
3317
3392
|
|
|
3318
|
-
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BusinessPaymentLinkConfig, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LedgerEntry, type LedgerListParams, type LedgerResponse, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutingConfigCreateRequest, type RoutingConfigResponse, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type UpdateUserDetailsRequest, type UserResponse, type
|
|
3393
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BusinessPaymentLinkConfig, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LedgerEntry, type LedgerListParams, type LedgerResponse, type ListInvitableRolesParams, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutingConfigCreateRequest, type RoutingConfigResponse, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type UpdateUserDetailsRequest, type UserResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks };
|
package/dist/index.d.ts
CHANGED
|
@@ -335,6 +335,14 @@ interface PaymentListParams {
|
|
|
335
335
|
'created.lte'?: string | null;
|
|
336
336
|
'created.gte'?: string | null;
|
|
337
337
|
}
|
|
338
|
+
/** Optional query flags for `payments.retrieve`. See the method's JSDoc. */
|
|
339
|
+
interface PaymentRetrieveOptions {
|
|
340
|
+
/** Reconcile intent state with the connector before responding. */
|
|
341
|
+
force_sync?: boolean;
|
|
342
|
+
/** Bypass the backend's `should_call_connector` gate so even a
|
|
343
|
+
* `requires_payment_method` intent triggers a sync. */
|
|
344
|
+
all_keys_required?: boolean;
|
|
345
|
+
}
|
|
338
346
|
interface PaymentListResponse {
|
|
339
347
|
size: number;
|
|
340
348
|
data: PaymentResponse[];
|
|
@@ -726,6 +734,34 @@ interface ProfileLogoUploadResponse {
|
|
|
726
734
|
/** Publicly-reachable HTTPS URL of the uploaded logo. */
|
|
727
735
|
logo_url: string;
|
|
728
736
|
}
|
|
737
|
+
/**
|
|
738
|
+
* Event scope when registering a connector webhook.
|
|
739
|
+
* - `'all_events'`: wildcard registration (cheapest default).
|
|
740
|
+
* - `{ specific_event: '<EventType>' }`: register only one event type.
|
|
741
|
+
* Matches the backend's internally-tagged `ConnectorWebhookEventType`.
|
|
742
|
+
*/
|
|
743
|
+
type ConnectorWebhookEventType = 'all_events' | {
|
|
744
|
+
specific_event: string;
|
|
745
|
+
};
|
|
746
|
+
/** Body for `POST /account/{merchantId}/connectors/webhooks/{connectorId}`. */
|
|
747
|
+
interface ConnectorWebhookRegisterRequest {
|
|
748
|
+
event_type?: ConnectorWebhookEventType;
|
|
749
|
+
}
|
|
750
|
+
interface ConnectorWebhookRegisterResponse {
|
|
751
|
+
event_type: ConnectorWebhookEventType;
|
|
752
|
+
connector_webhook_id: string | null;
|
|
753
|
+
webhook_registration_status: 'success' | 'failure';
|
|
754
|
+
error_code: string | null;
|
|
755
|
+
error_message: string | null;
|
|
756
|
+
}
|
|
757
|
+
interface ConnectorWebhookEntry {
|
|
758
|
+
event_type: ConnectorWebhookEventType;
|
|
759
|
+
connector_webhook_id: string;
|
|
760
|
+
}
|
|
761
|
+
interface ConnectorWebhookListResponse {
|
|
762
|
+
connector: string;
|
|
763
|
+
webhooks: ConnectorWebhookEntry[];
|
|
764
|
+
}
|
|
729
765
|
interface PaymentLinkBackgroundImageConfig {
|
|
730
766
|
url: string;
|
|
731
767
|
position?: 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | null;
|
|
@@ -1214,6 +1250,15 @@ interface Terminate2faQueryParams {
|
|
|
1214
1250
|
*/
|
|
1215
1251
|
skip_two_factor_auth?: boolean;
|
|
1216
1252
|
}
|
|
1253
|
+
/** Optional query params for `GET /user/role/list/invite`. */
|
|
1254
|
+
interface ListInvitableRolesParams {
|
|
1255
|
+
/**
|
|
1256
|
+
* Scope the listing to roles invitable for a given entity. The dashboard
|
|
1257
|
+
* passes `'merchant'` when populating an invite-employee dialog so admin/
|
|
1258
|
+
* platform-only roles don't leak into a merchant-side list.
|
|
1259
|
+
*/
|
|
1260
|
+
entity_type?: string;
|
|
1261
|
+
}
|
|
1217
1262
|
interface PhoneOtpRequest {
|
|
1218
1263
|
phone_number: string;
|
|
1219
1264
|
}
|
|
@@ -1783,10 +1828,17 @@ declare class Connectors {
|
|
|
1783
1828
|
delete(accountId: string, connectorId: string): Promise<ConnectorResponse>;
|
|
1784
1829
|
/** Verify connector credentials. `POST /account/connectors/verify` */
|
|
1785
1830
|
verify(params: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
1786
|
-
/**
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1831
|
+
/**
|
|
1832
|
+
* Register a webhook for a connector.
|
|
1833
|
+
* `POST /account/{merchantId}/connectors/webhooks/{connectorId}`
|
|
1834
|
+
*
|
|
1835
|
+
* @param params - Optional event scope. Defaults to `{ event_type: 'all_events' }`
|
|
1836
|
+
* on the backend when omitted; pass `{ event_type: { specific_event: '…' } }`
|
|
1837
|
+
* to scope to a single event.
|
|
1838
|
+
*/
|
|
1839
|
+
registerWebhook(merchantId: string, connectorId: string, params?: ConnectorWebhookRegisterRequest): Promise<ConnectorWebhookRegisterResponse>;
|
|
1840
|
+
/** Get registered webhooks for a connector. `GET /account/{merchantId}/connectors/webhooks/{connectorId}` */
|
|
1841
|
+
getWebhook(merchantId: string, connectorId: string): Promise<ConnectorWebhookListResponse>;
|
|
1790
1842
|
/** List available payment methods. `GET /account/payment_methods` */
|
|
1791
1843
|
listPaymentMethods(): Promise<Record<string, unknown>[]>;
|
|
1792
1844
|
}
|
|
@@ -2197,14 +2249,25 @@ declare class Payments {
|
|
|
2197
2249
|
* Retrieve a payment by its ID.
|
|
2198
2250
|
*
|
|
2199
2251
|
* @param paymentId - The unique payment intent ID.
|
|
2252
|
+
* @param options - Optional query flags. `force_sync` asks the backend to
|
|
2253
|
+
* reconcile state with the connector before returning (used to recover a
|
|
2254
|
+
* stuck intent when a webhook was lost). `all_keys_required` lifts the
|
|
2255
|
+
* backend's `should_call_connector` gate so a `requires_payment_method`
|
|
2256
|
+
* intent can still trigger a sync — without it the backend short-circuits
|
|
2257
|
+
* and returns the local snapshot. Both flags are JWT-authenticated dashboard
|
|
2258
|
+
* helpers; API-key callers can use them too where the backend allows.
|
|
2200
2259
|
* @returns The payment intent.
|
|
2201
2260
|
*
|
|
2202
2261
|
* @example
|
|
2203
2262
|
* ```typescript
|
|
2204
2263
|
* const payment = await delopay.payments.retrieve('pay_abc123');
|
|
2264
|
+
* const synced = await delopay.payments.retrieve('pay_abc123', {
|
|
2265
|
+
* force_sync: true,
|
|
2266
|
+
* all_keys_required: true,
|
|
2267
|
+
* });
|
|
2205
2268
|
* ```
|
|
2206
2269
|
*/
|
|
2207
|
-
retrieve(paymentId: string): Promise<PaymentResponse>;
|
|
2270
|
+
retrieve(paymentId: string, options?: PaymentRetrieveOptions): Promise<PaymentResponse>;
|
|
2208
2271
|
/**
|
|
2209
2272
|
* Update an existing payment intent before it is confirmed.
|
|
2210
2273
|
*
|
|
@@ -2419,24 +2482,30 @@ declare class Projects {
|
|
|
2419
2482
|
* Retrieve a project by its ID.
|
|
2420
2483
|
*
|
|
2421
2484
|
* @param projectId - The unique project ID.
|
|
2485
|
+
* @param merchantId - Optional merchant scope. When provided, sent as
|
|
2486
|
+
* `?merchant_id=…` — required by dashboards that authenticate with a JWT
|
|
2487
|
+
* spanning multiple merchants and need to disambiguate which one this
|
|
2488
|
+
* call applies to. API-key callers can omit it.
|
|
2422
2489
|
* @returns The project.
|
|
2423
2490
|
*/
|
|
2424
|
-
retrieve(projectId: string): Promise<ProjectResponse>;
|
|
2491
|
+
retrieve(projectId: string, merchantId?: string): Promise<ProjectResponse>;
|
|
2425
2492
|
/**
|
|
2426
2493
|
* Update a project's details.
|
|
2427
2494
|
*
|
|
2428
2495
|
* @param projectId - The project ID to update.
|
|
2429
2496
|
* @param params - Fields to update.
|
|
2497
|
+
* @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.
|
|
2430
2498
|
* @returns The updated project.
|
|
2431
2499
|
*/
|
|
2432
|
-
update(projectId: string, params: ProjectUpdateRequest): Promise<ProjectResponse>;
|
|
2500
|
+
update(projectId: string, params: ProjectUpdateRequest, merchantId?: string): Promise<ProjectResponse>;
|
|
2433
2501
|
/**
|
|
2434
2502
|
* Delete a project.
|
|
2435
2503
|
*
|
|
2436
2504
|
* @param projectId - The project ID to delete.
|
|
2505
|
+
* @param merchantId - Optional merchant scope. See {@link Projects.retrieve}.
|
|
2437
2506
|
* @returns The deleted project object.
|
|
2438
2507
|
*/
|
|
2439
|
-
delete(projectId: string): Promise<ProjectResponse>;
|
|
2508
|
+
delete(projectId: string, merchantId?: string): Promise<ProjectResponse>;
|
|
2440
2509
|
/**
|
|
2441
2510
|
* List all projects for a merchant.
|
|
2442
2511
|
*
|
|
@@ -2863,8 +2932,14 @@ declare class Users {
|
|
|
2863
2932
|
getRoleV3(): Promise<Record<string, unknown>>;
|
|
2864
2933
|
/** List roles (v2). `GET /user/role/v2/list` */
|
|
2865
2934
|
listRolesV2(): Promise<Record<string, unknown>[]>;
|
|
2866
|
-
/**
|
|
2867
|
-
|
|
2935
|
+
/**
|
|
2936
|
+
* List invitable roles. `GET /user/role/list/invite`
|
|
2937
|
+
*
|
|
2938
|
+
* @param params - Optional query. `entity_type` scopes the role list to a
|
|
2939
|
+
* particular entity (e.g. `'merchant'` to list only merchant-scoped roles
|
|
2940
|
+
* when inviting employees from the merchant dashboard).
|
|
2941
|
+
*/
|
|
2942
|
+
listInvitableRoles(params?: ListInvitableRolesParams): Promise<Record<string, unknown>[]>;
|
|
2868
2943
|
/** List updatable roles. `GET /user/role/list/update` */
|
|
2869
2944
|
listUpdatableRoles(): Promise<Record<string, unknown>[]>;
|
|
2870
2945
|
/** Get permission info. `GET /user/permission_info` */
|
|
@@ -3097,7 +3172,7 @@ type RequestFn = <T>(method: string, path: string, options?: RequestOptions) =>
|
|
|
3097
3172
|
declare class Delopay {
|
|
3098
3173
|
/** Utility for verifying incoming webhook signatures (static, no instance needed). */
|
|
3099
3174
|
static webhooks: {
|
|
3100
|
-
verify(rawBody: string, signatureHeader: string, secret: string
|
|
3175
|
+
verify(rawBody: string | Uint8Array, signatureHeader: string, secret: string): Promise<WebhookEvent>;
|
|
3101
3176
|
};
|
|
3102
3177
|
/** The resolved base URL used for all API requests. */
|
|
3103
3178
|
readonly baseUrl: string;
|
|
@@ -3261,58 +3336,58 @@ declare class DelopayAuthenticationError extends DelopayError {
|
|
|
3261
3336
|
/**
|
|
3262
3337
|
* A parsed and verified Delopay webhook event.
|
|
3263
3338
|
*
|
|
3264
|
-
* The `type` field identifies the event (e.g. `'
|
|
3339
|
+
* The `type` field identifies the event (e.g. `'payment_succeeded'`).
|
|
3265
3340
|
* Specific event payload shapes are nested under `data`.
|
|
3266
3341
|
*/
|
|
3267
3342
|
interface WebhookEvent {
|
|
3268
|
-
/** Event type identifier, e.g. `'
|
|
3343
|
+
/** Event type identifier, e.g. `'payment_succeeded'` or `'refund_succeeded'`. */
|
|
3269
3344
|
type: string;
|
|
3270
3345
|
/** Event payload. Shape depends on `type`. */
|
|
3271
3346
|
data: Record<string, unknown>;
|
|
3272
3347
|
[key: string]: unknown;
|
|
3273
3348
|
}
|
|
3274
|
-
/**
|
|
3275
|
-
* Options for webhook signature verification.
|
|
3276
|
-
*/
|
|
3277
|
-
interface VerifyOptions {
|
|
3278
|
-
/**
|
|
3279
|
-
* Maximum age of the webhook timestamp in seconds before the event is rejected.
|
|
3280
|
-
* Defaults to `300` (5 minutes). Prevents replay attacks.
|
|
3281
|
-
*/
|
|
3282
|
-
tolerance?: number;
|
|
3283
|
-
}
|
|
3284
3349
|
declare const Webhooks: {
|
|
3285
3350
|
/**
|
|
3286
3351
|
* Verify the signature of an incoming Delopay webhook and return the parsed event.
|
|
3287
3352
|
*
|
|
3353
|
+
* Delopay signs each outgoing webhook with HMAC-SHA512 over the raw request body,
|
|
3354
|
+
* using your shop's webhook secret (the *payment response hash key* configured on
|
|
3355
|
+
* the shop). The hex-encoded digest is delivered in the `X-Webhook-Signature-512`
|
|
3356
|
+
* HTTP header.
|
|
3357
|
+
*
|
|
3288
3358
|
* Uses the Web Crypto API (`globalThis.crypto.subtle`), so it runs unchanged in
|
|
3289
3359
|
* Node 18+, modern browsers, Deno, Bun, and edge runtimes (Cloudflare Workers, Vercel Edge).
|
|
3290
3360
|
*
|
|
3291
|
-
*
|
|
3361
|
+
* Available as a static property on the `Delopay` class
|
|
3292
3362
|
* (`Delopay.webhooks.verify`) and does not require a client instance.
|
|
3293
3363
|
*
|
|
3294
|
-
* @param rawBody - The raw request body
|
|
3295
|
-
*
|
|
3296
|
-
*
|
|
3297
|
-
* @param
|
|
3364
|
+
* @param rawBody - The raw request body. Pass the original bytes (`Uint8Array` /
|
|
3365
|
+
* `Buffer`) when possible; if you pass a string, it must be the unmodified UTF-8
|
|
3366
|
+
* text of the request body. Do **not** parse it before passing.
|
|
3367
|
+
* @param signatureHeader - The value of the `X-Webhook-Signature-512` HTTP header.
|
|
3368
|
+
* @param secret - Your shop's webhook signing secret.
|
|
3298
3369
|
* @returns Promise that resolves to the parsed webhook event.
|
|
3299
|
-
* @throws {Error} When the signature
|
|
3370
|
+
* @throws {Error} When the signature header is malformed or does not match the body.
|
|
3300
3371
|
*
|
|
3301
3372
|
* @example
|
|
3302
3373
|
* ```typescript
|
|
3303
3374
|
* // Express example
|
|
3304
3375
|
* app.post('/webhook', express.raw({ type: 'application/json' }), async (req, res) => {
|
|
3305
|
-
*
|
|
3306
|
-
*
|
|
3307
|
-
*
|
|
3308
|
-
*
|
|
3309
|
-
*
|
|
3310
|
-
*
|
|
3311
|
-
*
|
|
3376
|
+
* try {
|
|
3377
|
+
* const event = await Delopay.webhooks.verify(
|
|
3378
|
+
* req.body, // Buffer from express.raw()
|
|
3379
|
+
* req.header('x-webhook-signature-512') ?? '',
|
|
3380
|
+
* process.env.DELOPAY_WEBHOOK_SECRET!,
|
|
3381
|
+
* );
|
|
3382
|
+
* console.log(event.type, event.data);
|
|
3383
|
+
* res.sendStatus(200);
|
|
3384
|
+
* } catch {
|
|
3385
|
+
* res.status(400).send('Invalid signature');
|
|
3386
|
+
* }
|
|
3312
3387
|
* });
|
|
3313
3388
|
* ```
|
|
3314
3389
|
*/
|
|
3315
|
-
verify(rawBody: string, signatureHeader: string, secret: string
|
|
3390
|
+
verify(rawBody: string | Uint8Array, signatureHeader: string, secret: string): Promise<WebhookEvent>;
|
|
3316
3391
|
};
|
|
3317
3392
|
|
|
3318
|
-
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BusinessPaymentLinkConfig, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LedgerEntry, type LedgerListParams, type LedgerResponse, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutingConfigCreateRequest, type RoutingConfigResponse, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type UpdateUserDetailsRequest, type UserResponse, type
|
|
3393
|
+
export { type Address, type AddressDetails, type AllocationListResponse, type AllocationResponse, type AllocationTransferRequest, type AllocationTransferResponse, Analytics, AnalyticsDashboard, type ApiKeyCreateRequest, type ApiKeyCreateResponse, type ApiKeyExpiration, type ApiKeyResponse, type ApiKeyRevokeResponse, type ApiKeyUpdateRequest, type ApplePayVerificationRequest, type ApplePayVerificationResponse, type ApplePayVerifiedDomainsResponse, type AuthResponse, type AuthenticationCreateRequest, type AuthenticationResponse, type AuthenticationStatus, type AuthenticationType, type AutoRechargeConfig, type AutoRechargeUpdateRequest, type BillingCompleteSetupRequest, type BillingProfileResponse, type BillingSetupRequest, type BillingSetupResponse, type BlocklistAddRequest, type BlocklistDataKind, type BlocklistResponse, type BusinessPaymentLinkConfig, type CaptureMethod, type CardDetail, type CardDetailFromLocker, Cards, type ChangePasswordRequest, type ConnectorCreateRequest, type ConnectorListResponse, type ConnectorResponse, type ConnectorType, type ConnectorUpdateRequest, type ConnectorWebhookEntry, type ConnectorWebhookEventType, type ConnectorWebhookListResponse, type ConnectorWebhookRegisterRequest, type ConnectorWebhookRegisterResponse, type Currency, type CustomerCreateRequest, type CustomerListParams, type CustomerPaymentMethodsListParams, type CustomerPaymentMethodsListResponse, type CustomerResponse, type CustomerUpdateRequest, Delopay, DelopayAuthenticationError, DelopayError, type DelopayLogger, type DelopayOptions, type DisputeEvidenceRequest, type DisputeListParams, type DisputeResponse, type DisputeStage, type DisputeStatus, type EphemeralKeyCreateRequest, type EphemeralKeyCreateResponse, type EventClass, type EventDeliveryAttemptResponse, type EventDetailResponse, type EventListParams, type EventListResponse, type EventResponse, type EventType, Export, FeatureMatrix, type FeeOwner, type FeeScheduleCreateRequest, type FeeScheduleResponse, type FeeScheduleUpdateRequest, type FeeType, Files, Forex, type ForgotPasswordRequest, type FromEmailRequest, type GatewayConnectRequest, type GatewayResponse, type IntentStatus, type InviteUsersRequest, type InviteUsersResponse, type LedgerEntry, type LedgerListParams, type LedgerResponse, type ListInvitableRolesParams, type MandateListParams, type MandateResponse, type MandateRevokedResponse, type MandateStatus, type MandateType, type MerchantAccountCreateRequest, type MerchantAccountResponse, type MerchantAccountType, type MerchantAccountUpdateRequest, type MerchantOverviewResponse, type MerchantOverviewStat, type PaymentCancelRequest, type PaymentCaptureRequest, type PaymentConfirmRequest, type PaymentCreateRequest, type PaymentLinkBackgroundImageConfig, type PaymentLinkConfigRequest, type PaymentLinkListParams, type PaymentLinkListResponse, type PaymentLinkResponse, type PaymentLinkTransactionDetails, type PaymentListParams, type PaymentListResponse, type PaymentMethod, type PaymentMethodCreateRequest, type PaymentMethodDeleteResponse, type PaymentMethodListParams, type PaymentMethodResponse, type PaymentMethodType, type PaymentMethodUpdateRequest, type PaymentResponse, type PaymentRetrieveOptions, type PaymentUpdateRequest, type PayoutCreateRequest, type PayoutListParams, type PayoutListResponse, type PayoutResponse, type PayoutStatus, type PayoutType, type PayoutUpdateRequest, type PhoneDetails, type PhoneOtpRequest, type PhoneOtpResponse, type PhoneOtpVerifyRequest, type PhoneOtpVerifyResponse, type PollStatus, type PollStatusResponse, type ProfileAcquirerCreateRequest, type ProfileAcquirerResponse, type ProfileAcquirerUpdateRequest, type ProfileCreateRequest, type ProfileLogoUploadResponse, type ProfileResponse, type ProfileUpdateRequest, type ProjectCreateRequest, type ProjectResponse, type ProjectStats, type ProjectStatsResponse, type ProjectUpdateRequest, type RecoveryCodesResponse, type RefundCreateRequest, type RefundListParams, type RefundListResponse, type RefundResponse, type RefundStatus, type RefundType, type RefundUpdateRequest, type RegionCreateRequest, type RegionResponse, type RegionUpdateRequest, Regions, type RelayRequest, type RelayResponse, type RelayStatus, type RelayType, type RequestFn, type RequestOptions, type ResetPasswordRequest, type RoutingConfigCreateRequest, type RoutingConfigResponse, type ShopCreateRequest, type ShopResponse, type ShopStats, type ShopUpdateRequest, type SignInRequest, type SignUpRequest, type SignUpWithMerchantIdRequest, type SignUpWithMerchantRequest, type StripeConnectAccountRequest, type StripeConnectAccountResponse, type StripeConnectLinkRequest, type StripeConnectLinkResponse, type SubscriptionCreateRequest, type SubscriptionListParams, type SubscriptionListResponse, type SubscriptionResponse, type SubscriptionUpdateRequest, Subscriptions, type SwitchMerchantRequest, type SwitchProfileRequest, type Terminate2faQueryParams, type ThreeDSDecision, type ThreeDsRuleExecuteRequest, type ThreeDsRuleResponse, type TierSummary, type TokenPurpose, type TokenResponse, type TopupRequest, type TopupResponse, type TotpResponse, type TransactionType, type UpdateUserDetailsRequest, type UserResponse, type VerifyTotpRequest, type WebhookDeliveryAttempt, type WebhookEvent, Webhooks };
|