@metamask/ramps-controller 8.0.0 → 9.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/CHANGELOG.md +26 -1
- package/dist/RampsController.cjs +646 -116
- package/dist/RampsController.cjs.map +1 -1
- package/dist/RampsController.d.cts +284 -13
- package/dist/RampsController.d.cts.map +1 -1
- package/dist/RampsController.d.mts +284 -13
- package/dist/RampsController.d.mts.map +1 -1
- package/dist/RampsController.mjs +646 -116
- package/dist/RampsController.mjs.map +1 -1
- package/dist/RampsService-method-action-types.cjs.map +1 -1
- package/dist/RampsService-method-action-types.d.cts +32 -1
- package/dist/RampsService-method-action-types.d.cts.map +1 -1
- package/dist/RampsService-method-action-types.d.mts +32 -1
- package/dist/RampsService-method-action-types.d.mts.map +1 -1
- package/dist/RampsService-method-action-types.mjs.map +1 -1
- package/dist/RampsService.cjs +83 -1
- package/dist/RampsService.cjs.map +1 -1
- package/dist/RampsService.d.cts +126 -0
- package/dist/RampsService.d.cts.map +1 -1
- package/dist/RampsService.d.mts +126 -0
- package/dist/RampsService.d.mts.map +1 -1
- package/dist/RampsService.mjs +82 -0
- package/dist/RampsService.mjs.map +1 -1
- package/dist/RequestCache.cjs.map +1 -1
- package/dist/RequestCache.d.cts +2 -0
- package/dist/RequestCache.d.cts.map +1 -1
- package/dist/RequestCache.d.mts +2 -0
- package/dist/RequestCache.d.mts.map +1 -1
- package/dist/RequestCache.mjs.map +1 -1
- package/dist/TransakService-method-action-types.cjs +7 -0
- package/dist/TransakService-method-action-types.cjs.map +1 -0
- package/dist/TransakService-method-action-types.d.cts +106 -0
- package/dist/TransakService-method-action-types.d.cts.map +1 -0
- package/dist/TransakService-method-action-types.d.mts +106 -0
- package/dist/TransakService-method-action-types.d.mts.map +1 -0
- package/dist/TransakService-method-action-types.mjs +6 -0
- package/dist/TransakService-method-action-types.mjs.map +1 -0
- package/dist/TransakService.cjs +588 -0
- package/dist/TransakService.cjs.map +1 -0
- package/dist/TransakService.d.cts +329 -0
- package/dist/TransakService.d.cts.map +1 -0
- package/dist/TransakService.d.mts +329 -0
- package/dist/TransakService.d.mts.map +1 -0
- package/dist/TransakService.mjs +582 -0
- package/dist/TransakService.mjs.map +1 -0
- package/dist/index.cjs +7 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { ControllerGetStateAction, ControllerStateChangeEvent } from "@metamask/base-controller";
|
|
2
2
|
import { BaseController } from "@metamask/base-controller";
|
|
3
3
|
import type { Messenger } from "@metamask/messenger";
|
|
4
|
-
import type { Country, TokensResponse, Provider, State, RampAction, PaymentMethod, PaymentMethodsResponse, QuotesResponse, Quote, RampsToken, RampsServiceActions } from "./RampsService.mjs";
|
|
5
|
-
import type { RampsServiceGetGeolocationAction, RampsServiceGetCountriesAction, RampsServiceGetTokensAction, RampsServiceGetProvidersAction, RampsServiceGetPaymentMethodsAction, RampsServiceGetQuotesAction, RampsServiceGetBuyWidgetUrlAction } from "./RampsService-method-action-types.mjs";
|
|
4
|
+
import type { Country, TokensResponse, Provider, State, RampAction, PaymentMethod, PaymentMethodsResponse, QuotesResponse, Quote, BuyWidget, RampsToken, RampsServiceActions, RampsOrder } from "./RampsService.mjs";
|
|
5
|
+
import type { RampsServiceGetGeolocationAction, RampsServiceGetCountriesAction, RampsServiceGetTokensAction, RampsServiceGetProvidersAction, RampsServiceGetPaymentMethodsAction, RampsServiceGetQuotesAction, RampsServiceGetBuyWidgetUrlAction, RampsServiceGetOrderAction, RampsServiceGetOrderFromCallbackAction } from "./RampsService-method-action-types.mjs";
|
|
6
6
|
import type { RequestCache as RequestCacheType, RequestState, ExecuteRequestOptions } from "./RequestCache.mjs";
|
|
7
|
+
import type { TransakAccessToken, TransakUserDetails, TransakBuyQuote, TransakKycRequirement, TransakAdditionalRequirementsResponse, TransakDepositOrder, TransakUserLimits, TransakOttResponse, TransakQuoteTranslation, TransakTranslationRequest, TransakIdProofStatus, TransakOrderPaymentMethod, PatchUserRequestBody, TransakOrder } from "./TransakService.mjs";
|
|
8
|
+
import type { TransakServiceActions } from "./TransakService.mjs";
|
|
9
|
+
import type { TransakServiceSetApiKeyAction, TransakServiceSetAccessTokenAction, TransakServiceClearAccessTokenAction, TransakServiceSendUserOtpAction, TransakServiceVerifyUserOtpAction, TransakServiceLogoutAction, TransakServiceGetUserDetailsAction, TransakServiceGetBuyQuoteAction, TransakServiceGetKycRequirementAction, TransakServiceGetAdditionalRequirementsAction, TransakServiceCreateOrderAction, TransakServiceGetOrderAction, TransakServiceGetUserLimitsAction, TransakServiceRequestOttAction, TransakServiceGeneratePaymentWidgetUrlAction, TransakServiceSubmitPurposeOfUsageFormAction, TransakServicePatchUserAction, TransakServiceSubmitSsnDetailsAction, TransakServiceConfirmPaymentAction, TransakServiceGetTranslationAction, TransakServiceGetIdProofStatusAction, TransakServiceCancelOrderAction, TransakServiceCancelAllActiveOrdersAction, TransakServiceGetActiveOrdersAction } from "./TransakService-method-action-types.mjs";
|
|
7
10
|
/**
|
|
8
11
|
* The name of the {@link RampsController}, used to namespace the
|
|
9
12
|
* controller's actions and events and to namespace the controller's state data
|
|
@@ -15,7 +18,7 @@ export declare const controllerName = "RampsController";
|
|
|
15
18
|
* Any host (e.g. mobile) that creates a RampsController messenger must delegate
|
|
16
19
|
* these actions from the root messenger so the controller can function.
|
|
17
20
|
*/
|
|
18
|
-
export declare const RAMPS_CONTROLLER_REQUIRED_SERVICE_ACTIONS: readonly RampsServiceActions['type'][];
|
|
21
|
+
export declare const RAMPS_CONTROLLER_REQUIRED_SERVICE_ACTIONS: readonly (RampsServiceActions['type'] | TransakServiceActions['type'])[];
|
|
19
22
|
/**
|
|
20
23
|
* Represents the user's selected region with full country and state objects.
|
|
21
24
|
*/
|
|
@@ -57,6 +60,23 @@ export type ResourceState<TData, TSelected = null> = {
|
|
|
57
60
|
*/
|
|
58
61
|
error: string | null;
|
|
59
62
|
};
|
|
63
|
+
/**
|
|
64
|
+
* Describes the transak-specific state managed by the RampsController.
|
|
65
|
+
* This state is used by the unified V2 native flow.
|
|
66
|
+
*/
|
|
67
|
+
export type TransakState = {
|
|
68
|
+
isAuthenticated: boolean;
|
|
69
|
+
userDetails: ResourceState<TransakUserDetails | null>;
|
|
70
|
+
buyQuote: ResourceState<TransakBuyQuote | null>;
|
|
71
|
+
kycRequirement: ResourceState<TransakKycRequirement | null>;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Describes the state for all native providers managed by the RampsController.
|
|
75
|
+
* Each native provider has its own nested state object.
|
|
76
|
+
*/
|
|
77
|
+
export type NativeProvidersState = {
|
|
78
|
+
transak: TransakState;
|
|
79
|
+
};
|
|
60
80
|
/**
|
|
61
81
|
* Describes the shape of the state object for {@link RampsController}.
|
|
62
82
|
*/
|
|
@@ -92,11 +112,23 @@ export type RampsControllerState = {
|
|
|
92
112
|
* Selected contains the currently selected quote for the user.
|
|
93
113
|
*/
|
|
94
114
|
quotes: ResourceState<QuotesResponse | null, Quote | null>;
|
|
115
|
+
/**
|
|
116
|
+
* Widget URL resource state with data, loading, and error.
|
|
117
|
+
* Contains the buy widget data (URL, browser type, order ID) for the currently selected quote.
|
|
118
|
+
* Automatically fetched whenever a selected quote changes.
|
|
119
|
+
*/
|
|
120
|
+
widgetUrl: ResourceState<BuyWidget | null>;
|
|
95
121
|
/**
|
|
96
122
|
* Cache of request states, keyed by cache key.
|
|
97
123
|
* This stores loading, success, and error states for API requests.
|
|
98
124
|
*/
|
|
99
125
|
requests: RequestCacheType;
|
|
126
|
+
/**
|
|
127
|
+
* State for native providers in the unified V2 flow.
|
|
128
|
+
* Each provider has its own nested state containing authentication,
|
|
129
|
+
* user details, quote, and KYC data.
|
|
130
|
+
*/
|
|
131
|
+
nativeProviders: NativeProvidersState;
|
|
100
132
|
};
|
|
101
133
|
/**
|
|
102
134
|
* Constructs the default {@link RampsController} state. This allows
|
|
@@ -118,7 +150,7 @@ export type RampsControllerActions = RampsControllerGetStateAction;
|
|
|
118
150
|
/**
|
|
119
151
|
* Actions from other messengers that {@link RampsController} calls.
|
|
120
152
|
*/
|
|
121
|
-
type AllowedActions = RampsServiceGetGeolocationAction | RampsServiceGetCountriesAction | RampsServiceGetTokensAction | RampsServiceGetProvidersAction | RampsServiceGetPaymentMethodsAction | RampsServiceGetQuotesAction | RampsServiceGetBuyWidgetUrlAction;
|
|
153
|
+
type AllowedActions = RampsServiceGetGeolocationAction | RampsServiceGetCountriesAction | RampsServiceGetTokensAction | RampsServiceGetProvidersAction | RampsServiceGetPaymentMethodsAction | RampsServiceGetQuotesAction | RampsServiceGetBuyWidgetUrlAction | RampsServiceGetOrderAction | RampsServiceGetOrderFromCallbackAction | TransakServiceSetApiKeyAction | TransakServiceSetAccessTokenAction | TransakServiceClearAccessTokenAction | TransakServiceSendUserOtpAction | TransakServiceVerifyUserOtpAction | TransakServiceLogoutAction | TransakServiceGetUserDetailsAction | TransakServiceGetBuyQuoteAction | TransakServiceGetKycRequirementAction | TransakServiceGetAdditionalRequirementsAction | TransakServiceCreateOrderAction | TransakServiceGetOrderAction | TransakServiceGetUserLimitsAction | TransakServiceRequestOttAction | TransakServiceGeneratePaymentWidgetUrlAction | TransakServiceSubmitPurposeOfUsageFormAction | TransakServicePatchUserAction | TransakServiceSubmitSsnDetailsAction | TransakServiceConfirmPaymentAction | TransakServiceGetTranslationAction | TransakServiceGetIdProofStatusAction | TransakServiceCancelOrderAction | TransakServiceCancelAllActiveOrdersAction | TransakServiceGetActiveOrdersAction;
|
|
122
154
|
/**
|
|
123
155
|
* Published when the state of {@link RampsController} changes.
|
|
124
156
|
*/
|
|
@@ -173,16 +205,28 @@ export declare class RampsController extends BaseController<typeof controllerNam
|
|
|
173
205
|
*/
|
|
174
206
|
constructor({ messenger, state, requestCacheTTL, requestCacheMaxSize, }: RampsControllerOptions);
|
|
175
207
|
/**
|
|
176
|
-
* Executes a request with caching and
|
|
208
|
+
* Executes a request with caching, deduplication, and at most one in-flight
|
|
209
|
+
* request per resource type.
|
|
177
210
|
*
|
|
178
|
-
* If a request with
|
|
179
|
-
*
|
|
180
|
-
* a new request.
|
|
211
|
+
* 1. **Same cache key in flight** – If a request with this cache key is
|
|
212
|
+
* already pending, returns that promise (deduplication; no second request).
|
|
181
213
|
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
214
|
+
* 2. **Cache hit** – If valid, non-expired data exists in state.requests for
|
|
215
|
+
* this key and forceRefresh is not set, returns that data without fetching.
|
|
216
|
+
*
|
|
217
|
+
* 3. **New request** – Creates an AbortController and fires the fetcher.
|
|
218
|
+
* If options.resourceType is set, tags the pending request with that
|
|
219
|
+
* resource type (so #abortDependentRequests can cancel it on region
|
|
220
|
+
* change or cleanup) and ref-counts resource-level loading state.
|
|
221
|
+
* On success or error, updates request state and resource error;
|
|
222
|
+
* in finally, clears resource loading only if this request was not
|
|
223
|
+
* aborted.
|
|
224
|
+
*
|
|
225
|
+
* @param cacheKey - Unique identifier for this request (e.g. from createCacheKey).
|
|
226
|
+
* @param fetcher - Async function that performs the fetch. Receives an AbortSignal
|
|
227
|
+
* that is aborted when this request is superseded by another for the same resource.
|
|
228
|
+
* @param options - Optional forceRefresh, ttl, and resourceType for loading/error state.
|
|
229
|
+
* @returns The result of the request (from cache, joined promise, or fetcher).
|
|
186
230
|
*/
|
|
187
231
|
executeRequest<TResult>(cacheKey: string, fetcher: (signal: AbortSignal) => Promise<TResult>, options?: ExecuteRequestOptions): Promise<TResult>;
|
|
188
232
|
/**
|
|
@@ -341,11 +385,14 @@ export declare class RampsController extends BaseController<typeof controllerNam
|
|
|
341
385
|
* If the response contains exactly one quote, it is auto-selected.
|
|
342
386
|
* If multiple quotes are returned, the existing selection is preserved if still valid.
|
|
343
387
|
*
|
|
388
|
+
* Returns early (no-op) if the selected payment method is not yet set,
|
|
389
|
+
* allowing callers to invoke this before payment-method selection is finalized.
|
|
390
|
+
*
|
|
344
391
|
* @param options - Parameters for fetching quotes.
|
|
345
392
|
* @param options.walletAddress - The destination wallet address.
|
|
346
393
|
* @param options.amount - The amount (in fiat for buy, crypto for sell).
|
|
347
394
|
* @param options.redirectUrl - Optional redirect URL after order completion.
|
|
348
|
-
* @throws If required dependencies (region, token, provider
|
|
395
|
+
* @throws If required dependencies (region, token, provider) are not set.
|
|
349
396
|
*/
|
|
350
397
|
startQuotePolling(options: {
|
|
351
398
|
walletAddress: string;
|
|
@@ -359,6 +406,7 @@ export declare class RampsController extends BaseController<typeof controllerNam
|
|
|
359
406
|
stopQuotePolling(): void;
|
|
360
407
|
/**
|
|
361
408
|
* Manually sets the selected quote.
|
|
409
|
+
* Automatically triggers a widget URL fetch for the new quote.
|
|
362
410
|
*
|
|
363
411
|
* @param quote - The quote to select, or null to clear the selection.
|
|
364
412
|
*/
|
|
@@ -376,8 +424,231 @@ export declare class RampsController extends BaseController<typeof controllerNam
|
|
|
376
424
|
*
|
|
377
425
|
* @param quote - The quote to fetch the widget URL from.
|
|
378
426
|
* @returns Promise resolving to the widget URL string, or null if not available.
|
|
427
|
+
* @deprecated Read `state.widgetUrl` instead. The widget URL is now automatically
|
|
428
|
+
* fetched and stored in state whenever the selected quote changes.
|
|
379
429
|
*/
|
|
380
430
|
getWidgetUrl(quote: Quote): Promise<string | null>;
|
|
431
|
+
/**
|
|
432
|
+
* Fetches an order from the unified V2 API endpoint.
|
|
433
|
+
* Returns a normalized RampsOrder for all provider types (aggregator and native).
|
|
434
|
+
*
|
|
435
|
+
* @param providerCode - The provider code (e.g., "transak", "transak-native", "moonpay").
|
|
436
|
+
* @param orderCode - The order identifier.
|
|
437
|
+
* @param wallet - The wallet address associated with the order.
|
|
438
|
+
* @returns The unified order data.
|
|
439
|
+
*/
|
|
440
|
+
getOrder(providerCode: string, orderCode: string, wallet: string): Promise<RampsOrder>;
|
|
441
|
+
/**
|
|
442
|
+
* Extracts an order from a provider callback URL.
|
|
443
|
+
* Sends the callback URL to the V2 backend for provider-specific parsing,
|
|
444
|
+
* then fetches the full order. This is the V2 equivalent of the aggregator
|
|
445
|
+
* SDK's `getOrderFromCallback`.
|
|
446
|
+
*
|
|
447
|
+
* @param providerCode - The provider code (e.g., "transak", "moonpay").
|
|
448
|
+
* @param callbackUrl - The full callback URL the provider redirected to.
|
|
449
|
+
* @param wallet - The wallet address associated with the order.
|
|
450
|
+
* @returns The unified order data.
|
|
451
|
+
*/
|
|
452
|
+
getOrderFromCallback(providerCode: string, callbackUrl: string, wallet: string): Promise<RampsOrder>;
|
|
453
|
+
/**
|
|
454
|
+
* Sets the Transak API key used for all Transak API requests.
|
|
455
|
+
*
|
|
456
|
+
* @param apiKey - The Transak API key.
|
|
457
|
+
*/
|
|
458
|
+
transakSetApiKey(apiKey: string): void;
|
|
459
|
+
/**
|
|
460
|
+
* Sets the Transak access token and marks the user as authenticated.
|
|
461
|
+
*
|
|
462
|
+
* @param token - The access token received from Transak auth.
|
|
463
|
+
*/
|
|
464
|
+
transakSetAccessToken(token: TransakAccessToken): void;
|
|
465
|
+
/**
|
|
466
|
+
* Clears the Transak access token and marks the user as unauthenticated.
|
|
467
|
+
*/
|
|
468
|
+
transakClearAccessToken(): void;
|
|
469
|
+
/**
|
|
470
|
+
* Updates the Transak authentication flag in controller state.
|
|
471
|
+
*
|
|
472
|
+
* @param isAuthenticated - Whether the user is authenticated with Transak.
|
|
473
|
+
*/
|
|
474
|
+
transakSetAuthenticated(isAuthenticated: boolean): void;
|
|
475
|
+
/**
|
|
476
|
+
* Resets all Transak state back to defaults (unauthenticated, no data).
|
|
477
|
+
*/
|
|
478
|
+
transakResetState(): void;
|
|
479
|
+
/**
|
|
480
|
+
* Sends a one-time password to the user's email for Transak authentication.
|
|
481
|
+
*
|
|
482
|
+
* @param email - The user's email address.
|
|
483
|
+
* @returns The OTP response containing a state token for verification.
|
|
484
|
+
*/
|
|
485
|
+
transakSendUserOtp(email: string): Promise<{
|
|
486
|
+
isTncAccepted: boolean;
|
|
487
|
+
stateToken: string;
|
|
488
|
+
email: string;
|
|
489
|
+
expiresIn: number;
|
|
490
|
+
}>;
|
|
491
|
+
/**
|
|
492
|
+
* Verifies a one-time password and authenticates the user with Transak.
|
|
493
|
+
* Updates the controller's authentication state on success.
|
|
494
|
+
*
|
|
495
|
+
* @param email - The user's email address.
|
|
496
|
+
* @param verificationCode - The OTP code entered by the user.
|
|
497
|
+
* @param stateToken - The state token from the sendUserOtp response.
|
|
498
|
+
* @returns The access token for subsequent authenticated requests.
|
|
499
|
+
*/
|
|
500
|
+
transakVerifyUserOtp(email: string, verificationCode: string, stateToken: string): Promise<TransakAccessToken>;
|
|
501
|
+
/**
|
|
502
|
+
* Logs the user out of Transak. Clears authentication state and user details
|
|
503
|
+
* regardless of whether the API call succeeds or fails.
|
|
504
|
+
*
|
|
505
|
+
* @returns A message indicating the logout result.
|
|
506
|
+
*/
|
|
507
|
+
transakLogout(): Promise<string>;
|
|
508
|
+
/**
|
|
509
|
+
* Fetches the authenticated user's details from Transak.
|
|
510
|
+
* Updates the userDetails resource state with loading/success/error states.
|
|
511
|
+
*
|
|
512
|
+
* @returns The user's profile and KYC details.
|
|
513
|
+
*/
|
|
514
|
+
transakGetUserDetails(): Promise<TransakUserDetails>;
|
|
515
|
+
/**
|
|
516
|
+
* Fetches a buy quote from Transak for the given parameters.
|
|
517
|
+
* Updates the buyQuote resource state with loading/success/error states.
|
|
518
|
+
*
|
|
519
|
+
* @param fiatCurrency - The fiat currency code (e.g., "USD").
|
|
520
|
+
* @param cryptoCurrency - The cryptocurrency identifier.
|
|
521
|
+
* @param network - The blockchain network identifier.
|
|
522
|
+
* @param paymentMethod - The payment method identifier.
|
|
523
|
+
* @param fiatAmount - The fiat amount as a string.
|
|
524
|
+
* @returns The buy quote with pricing and fee details.
|
|
525
|
+
*/
|
|
526
|
+
transakGetBuyQuote(fiatCurrency: string, cryptoCurrency: string, network: string, paymentMethod: string, fiatAmount: string): Promise<TransakBuyQuote>;
|
|
527
|
+
/**
|
|
528
|
+
* Fetches the KYC requirement for a given quote.
|
|
529
|
+
* Updates the kycRequirement resource state with loading/success/error states.
|
|
530
|
+
*
|
|
531
|
+
* @param quoteId - The quote ID to check KYC requirements for.
|
|
532
|
+
* @returns The KYC requirement status and whether the user can place an order.
|
|
533
|
+
*/
|
|
534
|
+
transakGetKycRequirement(quoteId: string): Promise<TransakKycRequirement>;
|
|
535
|
+
/**
|
|
536
|
+
* Fetches additional KYC requirements (e.g., ID proof, address proof) for a quote.
|
|
537
|
+
*
|
|
538
|
+
* @param quoteId - The quote ID to check additional requirements for.
|
|
539
|
+
* @returns The list of additional forms required.
|
|
540
|
+
*/
|
|
541
|
+
transakGetAdditionalRequirements(quoteId: string): Promise<TransakAdditionalRequirementsResponse>;
|
|
542
|
+
/**
|
|
543
|
+
* Creates a new order on Transak. If an existing order conflicts (HTTP 409),
|
|
544
|
+
* active orders are cancelled and the creation is retried.
|
|
545
|
+
*
|
|
546
|
+
* @param quoteId - The quote ID to create an order from.
|
|
547
|
+
* @param walletAddress - The destination wallet address.
|
|
548
|
+
* @param paymentMethodId - The payment method to use.
|
|
549
|
+
* @returns The created deposit order.
|
|
550
|
+
*/
|
|
551
|
+
transakCreateOrder(quoteId: string, walletAddress: string, paymentMethodId: string): Promise<TransakDepositOrder>;
|
|
552
|
+
/**
|
|
553
|
+
* Fetches an existing order from Transak by order ID.
|
|
554
|
+
*
|
|
555
|
+
* @param orderId - The order ID (deposit format or raw Transak format).
|
|
556
|
+
* @param wallet - The wallet address associated with the order.
|
|
557
|
+
* @param paymentDetails - Optional payment details to attach to the order.
|
|
558
|
+
* @returns The deposit order details.
|
|
559
|
+
*/
|
|
560
|
+
transakGetOrder(orderId: string, wallet: string, paymentDetails?: TransakOrderPaymentMethod[]): Promise<TransakDepositOrder>;
|
|
561
|
+
/**
|
|
562
|
+
* Fetches the user's spending limits for a given currency and payment method.
|
|
563
|
+
*
|
|
564
|
+
* @param fiatCurrency - The fiat currency code.
|
|
565
|
+
* @param paymentMethod - The payment method identifier.
|
|
566
|
+
* @param kycType - The KYC level type.
|
|
567
|
+
* @returns The user's limits, spending, and remaining amounts.
|
|
568
|
+
*/
|
|
569
|
+
transakGetUserLimits(fiatCurrency: string, paymentMethod: string, kycType: string): Promise<TransakUserLimits>;
|
|
570
|
+
/**
|
|
571
|
+
* Requests a one-time token (OTT) for the Transak payment widget.
|
|
572
|
+
*
|
|
573
|
+
* @returns The OTT response containing the token.
|
|
574
|
+
*/
|
|
575
|
+
transakRequestOtt(): Promise<TransakOttResponse>;
|
|
576
|
+
/**
|
|
577
|
+
* Generates a URL for the Transak payment widget with pre-filled parameters.
|
|
578
|
+
*
|
|
579
|
+
* @param ottToken - The one-time token for widget authentication.
|
|
580
|
+
* @param quote - The buy quote to pre-fill in the widget.
|
|
581
|
+
* @param walletAddress - The destination wallet address.
|
|
582
|
+
* @param extraParams - Optional additional URL parameters.
|
|
583
|
+
* @returns The fully constructed widget URL string.
|
|
584
|
+
*/
|
|
585
|
+
transakGeneratePaymentWidgetUrl(ottToken: string, quote: TransakBuyQuote, walletAddress: string, extraParams?: Record<string, string>): string;
|
|
586
|
+
/**
|
|
587
|
+
* Submits the user's purpose of usage form for KYC compliance.
|
|
588
|
+
*
|
|
589
|
+
* @param purpose - Array of purpose strings selected by the user.
|
|
590
|
+
* @returns A promise that resolves when the form is submitted.
|
|
591
|
+
*/
|
|
592
|
+
transakSubmitPurposeOfUsageForm(purpose: string[]): Promise<void>;
|
|
593
|
+
/**
|
|
594
|
+
* Updates the user's personal or address details on Transak.
|
|
595
|
+
*
|
|
596
|
+
* @param data - The user data fields to update.
|
|
597
|
+
* @returns The API response data.
|
|
598
|
+
*/
|
|
599
|
+
transakPatchUser(data: PatchUserRequestBody): Promise<unknown>;
|
|
600
|
+
/**
|
|
601
|
+
* Submits the user's SSN for identity verification.
|
|
602
|
+
*
|
|
603
|
+
* @param ssn - The Social Security Number.
|
|
604
|
+
* @param quoteId - The quote ID associated with the order requiring SSN.
|
|
605
|
+
* @returns The API response data.
|
|
606
|
+
*/
|
|
607
|
+
transakSubmitSsnDetails(ssn: string, quoteId: string): Promise<unknown>;
|
|
608
|
+
/**
|
|
609
|
+
* Confirms payment for an order after the user has completed payment.
|
|
610
|
+
*
|
|
611
|
+
* @param orderId - The order ID to confirm payment for.
|
|
612
|
+
* @param paymentMethodId - The payment method used.
|
|
613
|
+
* @returns Whether the payment confirmation was successful.
|
|
614
|
+
*/
|
|
615
|
+
transakConfirmPayment(orderId: string, paymentMethodId: string): Promise<{
|
|
616
|
+
success: boolean;
|
|
617
|
+
}>;
|
|
618
|
+
/**
|
|
619
|
+
* Translates generic ramps identifiers to Transak-specific identifiers.
|
|
620
|
+
*
|
|
621
|
+
* @param request - The translation request with optional identifiers to translate.
|
|
622
|
+
* @returns The translated Transak-specific identifiers.
|
|
623
|
+
*/
|
|
624
|
+
transakGetTranslation(request: TransakTranslationRequest): Promise<TransakQuoteTranslation>;
|
|
625
|
+
/**
|
|
626
|
+
* Checks the status of an ID proof submission for KYC.
|
|
627
|
+
*
|
|
628
|
+
* @param workFlowRunId - The workflow run ID to check status for.
|
|
629
|
+
* @returns The current ID proof status.
|
|
630
|
+
*/
|
|
631
|
+
transakGetIdProofStatus(workFlowRunId: string): Promise<TransakIdProofStatus>;
|
|
632
|
+
/**
|
|
633
|
+
* Cancels a specific Transak order.
|
|
634
|
+
*
|
|
635
|
+
* @param depositOrderId - The deposit order ID to cancel.
|
|
636
|
+
* @returns A promise that resolves when the order is cancelled.
|
|
637
|
+
*/
|
|
638
|
+
transakCancelOrder(depositOrderId: string): Promise<void>;
|
|
639
|
+
/**
|
|
640
|
+
* Cancels all active Transak orders. Individual cancellation failures
|
|
641
|
+
* are collected and returned rather than thrown.
|
|
642
|
+
*
|
|
643
|
+
* @returns An array of errors from any failed cancellations (empty if all succeeded).
|
|
644
|
+
*/
|
|
645
|
+
transakCancelAllActiveOrders(): Promise<Error[]>;
|
|
646
|
+
/**
|
|
647
|
+
* Fetches all active Transak orders for the authenticated user.
|
|
648
|
+
*
|
|
649
|
+
* @returns The list of active orders.
|
|
650
|
+
*/
|
|
651
|
+
transakGetActiveOrders(): Promise<TransakOrder[]>;
|
|
381
652
|
}
|
|
382
653
|
export {};
|
|
383
654
|
//# sourceMappingURL=RampsController.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RampsController.d.mts","sourceRoot":"","sources":["../src/RampsController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAE3B,kCAAkC;AACnC,OAAO,EAAE,cAAc,EAAE,kCAAkC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA4B;
|
|
1
|
+
{"version":3,"file":"RampsController.d.mts","sourceRoot":"","sources":["../src/RampsController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAE3B,kCAAkC;AACnC,OAAO,EAAE,cAAc,EAAE,kCAAkC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA4B;AAIrD,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EACd,QAAQ,EACR,KAAK,EACL,UAAU,EACV,aAAa,EACb,sBAAsB,EACtB,cAAc,EACd,KAAK,EACL,SAAS,EACT,UAAU,EACV,mBAAmB,EACnB,UAAU,EACX,2BAAuB;AACxB,OAAO,KAAK,EACV,gCAAgC,EAChC,8BAA8B,EAC9B,2BAA2B,EAC3B,8BAA8B,EAC9B,mCAAmC,EACnC,2BAA2B,EAC3B,iCAAiC,EACjC,0BAA0B,EAC1B,sCAAsC,EACvC,+CAA2C;AAC5C,OAAO,KAAK,EACV,YAAY,IAAI,gBAAgB,EAChC,YAAY,EACZ,qBAAqB,EAGtB,2BAAuB;AAWxB,OAAO,KAAK,EACV,kBAA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