@rabby-wallet/rabby-api 0.9.12-beta.0 → 0.9.12-beta.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import { AxiosAdapter, AxiosRequestConfig } from 'axios';
2
2
  import { RateLimitedAxiosInstance } from 'axios-rate-limit';
3
3
  import { InitOptions, RabbyApiPlugin } from './plugins/intf';
4
- import { AddrDescResponse, BridgeAggregator, ApprovalStatus, AssetItem, BasicDappInfo, CEXQuote, Cex, ChainListItem, ChainWithPendingCount, Collection, CollectionList, CollectionWithFloorPrice, ComplexProtocol, ContractCredit, DbkBridgeHistoryItem, ExplainTxResponse, ExplainTypedDataResponse, GasLevel, GetTxResponse, HistoryCurve, LatestExplainTxResponse, MempoolCheckDetail, NFTApprovalResponse, NFTItem, NodeStatus, NodeStatusDetail, ParseTextResponse, ParseTxResponse, ParseTypedDataResponse, PendingTxItem, Protocol, SecurityCheckResponse, ServerChain, SlippageStatus, Summary, SupportedChain, SwapTradeList, TokenApproval, TokenItem, TotalBalanceResponse, Tx, TxAllHistoryResult, TxHistoryResult, TxPushType, TxRequest, UsedChain, BridgeTokenPair, BridgeQuote, BridgeHistory, ContractInfo, GasAccountCheckResult, ParseCommonResponse, WithdrawListAddressItem, BuyCountryItem, BuyQuoteItem, BuyHistoryList } from './types';
4
+ import { AddrDescResponse, BridgeAggregator, ApprovalStatus, AssetItem, BasicDappInfo, CEXQuote, Cex, ChainListItem, ChainWithPendingCount, Collection, CollectionList, CollectionWithFloorPrice, ComplexProtocol, ContractCredit, DbkBridgeHistoryItem, ExplainTxResponse, ExplainTypedDataResponse, GasLevel, GetTxResponse, HistoryCurve, LatestExplainTxResponse, MempoolCheckDetail, NFTApprovalResponse, NFTItem, NodeStatus, NodeStatusDetail, ParseTextResponse, ParseTxResponse, ParseTypedDataResponse, PendingTxItem, Protocol, SecurityCheckResponse, ServerChain, SlippageStatus, Summary, SupportedChain, SwapTradeList, TokenApproval, TokenItem, TotalBalanceResponse, Tx, TxAllHistoryResult, TxHistoryResult, TxPushType, TxRequest, UsedChain, BridgeTokenPair, BridgeQuote, BridgeHistory, ContractInfo, GasAccountCheckResult, ParseCommonResponse, WithdrawListAddressItem, BuyCountryItem, BuyQuoteItem, BuyHistoryList, BuyPaymentMethod } from './types';
5
5
  interface OpenApiStore {
6
6
  host: string;
7
7
  testnetHost?: string;
@@ -1084,5 +1084,9 @@ export declare class OpenApiService {
1084
1084
  start?: number;
1085
1085
  limit?: number;
1086
1086
  }) => Promise<BuyHistoryList>;
1087
+ getBuyPaymentMethods: (params?: {
1088
+ country_code: string;
1089
+ service_provider: string;
1090
+ }) => Promise<BuyPaymentMethod[]>;
1087
1091
  }
1088
1092
  export {};
package/dist/index.js CHANGED
@@ -1435,6 +1435,12 @@ export class OpenApiService {
1435
1435
  });
1436
1436
  return data;
1437
1437
  });
1438
+ this.getBuyPaymentMethods = (params) => __awaiter(this, void 0, void 0, function* () {
1439
+ const { data } = yield this.request.get('/v1/buy/get_payment_method', {
1440
+ params,
1441
+ });
1442
+ return data;
1443
+ });
1438
1444
  if (store instanceof Promise) {
1439
1445
  store.then((resolvedStore) => {
1440
1446
  this.store = resolvedStore;
package/dist/types.d.ts CHANGED
@@ -1434,4 +1434,10 @@ export interface BuyHistoryList {
1434
1434
  receive_token: TokenItem;
1435
1435
  }[];
1436
1436
  }
1437
+ export interface BuyPaymentMethod {
1438
+ id: string;
1439
+ name: string;
1440
+ type: string;
1441
+ logo_url: string;
1442
+ }
1437
1443
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rabby-wallet/rabby-api",
3
- "version": "0.9.12-beta.0",
3
+ "version": "0.9.12-beta.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [