@spritz-finance/service-client 0.2.27 → 0.2.28
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.
|
@@ -170,7 +170,9 @@ export declare class LiabilitiesServiceClient {
|
|
|
170
170
|
constructor();
|
|
171
171
|
getRewardTransaction(transactionId: string): Promise<RewardTransaction>;
|
|
172
172
|
createMethodFiEntity(args: CreateEntityParams): Promise<MethodFiEntity>;
|
|
173
|
+
getMethodFiEntity(userId: string): Promise<MethodFiEntity>;
|
|
173
174
|
createCheckbookUser(args: CreateCheckbookUserParams): Promise<CheckbookUser>;
|
|
175
|
+
getCheckbookUser(userId: string): Promise<CheckbookUser>;
|
|
174
176
|
createCheckbookVirtualCard(userId: string): Promise<CheckbookCardResponse>;
|
|
175
177
|
getVirtualCardBalance(cardExternalId: string, userId: string): Promise<number>;
|
|
176
178
|
getVirtualCardTransactions(cardExternalId: string, userId: string): Promise<CardTransaction[]>;
|
|
@@ -39,11 +39,21 @@ class LiabilitiesServiceClient {
|
|
|
39
39
|
.post(`/methodFi/entity`, args)
|
|
40
40
|
.then((res) => res.data);
|
|
41
41
|
}
|
|
42
|
+
async getMethodFiEntity(userId) {
|
|
43
|
+
return this.client
|
|
44
|
+
.get(`/methodfi/entity/user/${userId}`)
|
|
45
|
+
.then((res) => res.data);
|
|
46
|
+
}
|
|
42
47
|
async createCheckbookUser(args) {
|
|
43
48
|
return this.client
|
|
44
49
|
.post(`/checkbook/user`, args)
|
|
45
50
|
.then((res) => res.data);
|
|
46
51
|
}
|
|
52
|
+
async getCheckbookUser(userId) {
|
|
53
|
+
return this.client
|
|
54
|
+
.get(`/checkbook/user/${userId}`)
|
|
55
|
+
.then((res) => res.data);
|
|
56
|
+
}
|
|
47
57
|
async createCheckbookVirtualCard(userId) {
|
|
48
58
|
return this.client
|
|
49
59
|
.post(`/virtual-card/create/${userId}`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spritz-finance/service-client",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.28",
|
|
4
4
|
"description": "Service client",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"coverageDirectory": "../coverage",
|
|
52
52
|
"testEnvironment": "node"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "7706f1b4e4ab3907c91de7eef52c495ee189eeb8"
|
|
55
55
|
}
|