@riocrypto/common-server 1.0.1114 → 1.0.1116

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.
@@ -101,6 +101,39 @@ declare class BridgeClient {
101
101
  bank_beneficiary_name?: string;
102
102
  };
103
103
  }>;
104
+ getAllCustomerTransfers(customerId: string): Promise<{
105
+ id: string;
106
+ amount: string;
107
+ on_behalf_of: string;
108
+ developer_fee: string;
109
+ source: {
110
+ currency: "usdc" | "usd";
111
+ payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
112
+ external_account_id?: string;
113
+ from_address?: string;
114
+ };
115
+ destination: {
116
+ currency: "usdc" | "usd";
117
+ payment_rail: "ach" | "wire" | "avalanche_c_c" | "ethereum" | "polygon";
118
+ external_account_id?: string;
119
+ to_address?: string;
120
+ wire_message?: string;
121
+ };
122
+ state: "awaiting_source_deposit" | "pending" | "completed" | "failed";
123
+ source_deposit_instructions: {
124
+ payment_rail: "ach" | "wire" | "avalanche_c_chain" | "ethereum" | "polygon";
125
+ amount: string;
126
+ currency: "usdc" | "usd";
127
+ from_address?: string;
128
+ to_address?: string;
129
+ deposit_message?: string;
130
+ bank_name?: string;
131
+ bank_address?: string;
132
+ bank_routing_number?: string;
133
+ bank_account_number?: string;
134
+ bank_beneficiary_name?: string;
135
+ };
136
+ }[]>;
104
137
  createLiquidationAddress(bridgeCustomerId: string, currency: "usdc", chain: "avalanche_c_c" | "ethereum" | "polygon", externalAccountId: string): Promise<{
105
138
  id: string;
106
139
  currency: "usdc";
@@ -79,6 +79,16 @@ class BridgeClient {
79
79
  return data;
80
80
  });
81
81
  }
82
+ getAllCustomerTransfers(customerId) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ const { data } = yield axios_1.default.get(`${this.baseUrl}/v0/customers/${customerId}/transfers`, {
85
+ headers: {
86
+ "Api-Key": this.apiKey,
87
+ },
88
+ });
89
+ return data.data;
90
+ });
91
+ }
82
92
  createLiquidationAddress(bridgeCustomerId, currency, chain, externalAccountId) {
83
93
  return __awaiter(this, void 0, void 0, function* () {
84
94
  const { data } = yield axios_1.default.post(`${this.baseUrl}/v0/customers/${bridgeCustomerId}/liquidation_addresses`, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.1114",
3
+ "version": "1.0.1116",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "@aws-sdk/client-s3": "^3.297.0",
27
27
  "@everapi/currencyapi-js": "^1.0.6",
28
28
  "@google-cloud/storage": "^6.9.5",
29
- "@riocrypto/common": "^1.0.956",
29
+ "@riocrypto/common": "^1.0.961",
30
30
  "@types/express": "^4.17.13",
31
31
  "axios": "^0.27.2",
32
32
  "ccxt": "^3.0.30",