@rabby-wallet/rabby-api 0.9.12-beta.1 → 0.9.12-beta.3
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/dist/index.d.ts +2 -1
- package/dist/types.d.ts +21 -19
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1075,6 +1075,7 @@ export declare class OpenApiService {
|
|
|
1075
1075
|
usd_amount: string;
|
|
1076
1076
|
receive_token_uuid: string;
|
|
1077
1077
|
service_provider: string;
|
|
1078
|
+
redirect_url?: string;
|
|
1078
1079
|
}) => Promise<{
|
|
1079
1080
|
url: string;
|
|
1080
1081
|
msg: number;
|
|
@@ -1084,7 +1085,7 @@ export declare class OpenApiService {
|
|
|
1084
1085
|
start?: number;
|
|
1085
1086
|
limit?: number;
|
|
1086
1087
|
}) => Promise<BuyHistoryList>;
|
|
1087
|
-
getBuyPaymentMethods: (params
|
|
1088
|
+
getBuyPaymentMethods: (params: {
|
|
1088
1089
|
country_code: string;
|
|
1089
1090
|
service_provider: string;
|
|
1090
1091
|
}) => Promise<BuyPaymentMethod[]>;
|
package/dist/types.d.ts
CHANGED
|
@@ -1404,35 +1404,37 @@ export interface BuyCountryItem {
|
|
|
1404
1404
|
name: string;
|
|
1405
1405
|
};
|
|
1406
1406
|
}
|
|
1407
|
+
export interface BuyServiceProvider {
|
|
1408
|
+
id: string;
|
|
1409
|
+
name: string;
|
|
1410
|
+
website_url: string;
|
|
1411
|
+
customer_support_url: string;
|
|
1412
|
+
image_url: string;
|
|
1413
|
+
logo_url: string;
|
|
1414
|
+
}
|
|
1407
1415
|
export interface BuyQuoteItem {
|
|
1408
|
-
service_provider:
|
|
1409
|
-
id: string;
|
|
1410
|
-
name: string;
|
|
1411
|
-
website_url: string;
|
|
1412
|
-
customer_support_url: string;
|
|
1413
|
-
image_url: string;
|
|
1414
|
-
logo_url: string;
|
|
1415
|
-
};
|
|
1416
|
+
service_provider: BuyServiceProvider;
|
|
1416
1417
|
token_amount: number;
|
|
1417
1418
|
payment_method_type: string;
|
|
1418
1419
|
}
|
|
1420
|
+
interface BuyHistoryItem {
|
|
1421
|
+
user_addr: string;
|
|
1422
|
+
status: 'pending' | 'success' | 'failed';
|
|
1423
|
+
create_at: number;
|
|
1424
|
+
service_provider: BuyServiceProvider;
|
|
1425
|
+
pay_usd_amount: number;
|
|
1426
|
+
payment_type: string;
|
|
1427
|
+
receive_tx_id: string;
|
|
1428
|
+
receive_chain_id: string;
|
|
1429
|
+
receive_token: TokenItem;
|
|
1430
|
+
}
|
|
1419
1431
|
export interface BuyHistoryList {
|
|
1420
1432
|
pagination: {
|
|
1421
1433
|
start: number;
|
|
1422
1434
|
limit: number;
|
|
1423
1435
|
total: number;
|
|
1424
1436
|
};
|
|
1425
|
-
histories:
|
|
1426
|
-
user_addr: string;
|
|
1427
|
-
status: 'pending' | 'success' | 'failed';
|
|
1428
|
-
create_at: number;
|
|
1429
|
-
service_provider: string;
|
|
1430
|
-
pay_usd_amount: number;
|
|
1431
|
-
payment_type: string;
|
|
1432
|
-
receive_tx_id: string;
|
|
1433
|
-
receive_chain_id: string;
|
|
1434
|
-
receive_token: TokenItem;
|
|
1435
|
-
}[];
|
|
1437
|
+
histories: BuyHistoryItem[];
|
|
1436
1438
|
}
|
|
1437
1439
|
export interface BuyPaymentMethod {
|
|
1438
1440
|
id: string;
|