Skip to content

Commit b2d2971

Browse files
✨ Get data wallet transaction
1 parent 332806c commit b2d2971

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

example/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ getRefBank.then((data) => console.log(data))
4747
let getAllNotif = denovo.getAllNotif()
4848
getAllNotif.then((data) => console.log(data))
4949

50+
// Get data wallet transaction
51+
let getWalletTrans = denovo.getWalletTrans(1, 10)
52+
getWalletTrans.then((data) => console.log(data))
53+
5054
// Logout from ovo
5155
let logout = denovo.ovoLogout()
5256
logout.then((data) => console.log(data))

src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ export class Denovo {
8383
return ovoGet('v1.0/notification/status/all', '', this._aditionalHeader())
8484
}
8585

86+
getWalletTrans(page: string | number, limit: number = 10){
87+
return ovoGet('wallet/v2/transaction', {page, limit, productType: '001'}, this._aditionalHeader())
88+
}
89+
8690
ovoLogout() {
8791
return ovoGet('v1.0/api/auth/customer/logout', '', this._aditionalHeader())
8892
}

0 commit comments

Comments
 (0)