Skip to content

Commit 761bc34

Browse files
authored
Merge pull request #25 from nevermined-io/fix/balance-typings
Fix: add missing property
2 parents d240a56 + e90ded5 commit 761bc34

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nevermined-io/payments",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "Typescript SDK to interact with the Nevermined Payments Protocol",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

src/payments.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,12 @@ export class Payments {
490490
public async getSubscriptionBalance(
491491
subscriptionDid: string,
492492
accountAddress?: string,
493-
): Promise<{ subscriptionType: string; isOwner: boolean; balance: bigint }> {
493+
): Promise<{
494+
subscriptionType: string
495+
isOwner: boolean
496+
balance: bigint
497+
isSubscriptor: boolean
498+
}> {
494499
const body = {
495500
subscriptionDid,
496501
accountAddress,

0 commit comments

Comments
 (0)