@riocrypto/common-server 1.0.1269 → 1.0.1271
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.
|
@@ -47,7 +47,7 @@ class CircleClient {
|
|
|
47
47
|
getAddressBookRecipient(id) {
|
|
48
48
|
var _a;
|
|
49
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
const response = yield axios_1.default.get(`${this.baseUrl}/v1/addressBook/recipients
|
|
50
|
+
const response = yield axios_1.default.get(`${this.baseUrl}/v1/addressBook/recipients/${id}`, {
|
|
51
51
|
headers: {
|
|
52
52
|
Authorization: `Bearer ${this.apiKey}`,
|
|
53
53
|
},
|
|
@@ -64,6 +64,22 @@ class CircleClient {
|
|
|
64
64
|
source: {
|
|
65
65
|
type: "wallet",
|
|
66
66
|
id: originWalletId,
|
|
67
|
+
identities: [
|
|
68
|
+
{
|
|
69
|
+
type: "business",
|
|
70
|
+
name: "Rampa Labs",
|
|
71
|
+
addresses: [
|
|
72
|
+
{
|
|
73
|
+
line1: "Address1",
|
|
74
|
+
line2: "address2",
|
|
75
|
+
city: "City",
|
|
76
|
+
district: "dis",
|
|
77
|
+
postalCode: "06100",
|
|
78
|
+
country: "MX",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
],
|
|
67
83
|
},
|
|
68
84
|
destination: {
|
|
69
85
|
type: "address_book",
|
|
@@ -87,7 +103,7 @@ class CircleClient {
|
|
|
87
103
|
getPayout(id) {
|
|
88
104
|
var _a;
|
|
89
105
|
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
-
const response = yield axios_1.default.get(`${this.baseUrl}/v1/payouts
|
|
106
|
+
const response = yield axios_1.default.get(`${this.baseUrl}/v1/payouts/${id}`, {
|
|
91
107
|
headers: {
|
|
92
108
|
Authorization: `Bearer ${this.apiKey}`,
|
|
93
109
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1271",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
29
|
"@google-cloud/vision": "^4.0.2",
|
|
30
|
-
"@riocrypto/common": "^1.0.
|
|
30
|
+
"@riocrypto/common": "^1.0.1146",
|
|
31
31
|
"@types/express": "^4.17.13",
|
|
32
32
|
"axios": "^0.27.2",
|
|
33
33
|
"ccxt": "^3.0.30",
|