zakkistore-sdk 1.0.0 → 1.0.1
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.
- package/index.d.ts +7 -0
- package/index.js +16 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -115,6 +115,13 @@ declare class ZakkiStore {
|
|
|
115
115
|
*/
|
|
116
116
|
tarik(jumlah: number | string): Promise<any>;
|
|
117
117
|
|
|
118
|
+
/**
|
|
119
|
+
* 25. Cek Riwayat Mutasi Tarik/Tabung
|
|
120
|
+
* Melihat riwayat mutasi tarik/tabung pada akun Anda
|
|
121
|
+
* @param type Tipe mutasi ('all' | 'tarik' | 'tabung')
|
|
122
|
+
*/
|
|
123
|
+
checkmutasi(type?: 'all' | 'tarik' | 'tabung' | string): Promise<any>;
|
|
124
|
+
|
|
118
125
|
/**
|
|
119
126
|
* 12. Transfer Saldo Antar Member
|
|
120
127
|
* Mentransfer sebagian saldo Anda ke rekening VA member/user Zakki Store lainnya
|
package/index.js
CHANGED
|
@@ -231,6 +231,22 @@ class ZakkiStore {
|
|
|
231
231
|
return this._request('/tarik', 'POST', payload);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
|
+
/**
|
|
235
|
+
* 25. Cek Riwayat Mutasi Tarik/Tabung
|
|
236
|
+
* Melihat riwayat mutasi tarik/tabung pada akun Anda
|
|
237
|
+
* @param {string} [type='all'] Tipe mutasi ('all', 'tarik', 'tabung')
|
|
238
|
+
* @returns {Promise<Object>} Respon data riwayat mutasi
|
|
239
|
+
*/
|
|
240
|
+
async checkmutasi(type = 'all') {
|
|
241
|
+
const payload = {
|
|
242
|
+
token: this.token,
|
|
243
|
+
type: String(type).trim()
|
|
244
|
+
};
|
|
245
|
+
if (this.iduser) payload.iduser = this.iduser;
|
|
246
|
+
if (this.email) payload.email = this.email;
|
|
247
|
+
return this._request('/checkmutasi', 'GET', payload);
|
|
248
|
+
}
|
|
249
|
+
|
|
234
250
|
/**
|
|
235
251
|
* 12. Transfer Saldo Antar Member
|
|
236
252
|
* Mentransfer sebagian saldo Anda ke rekening VA member/user Zakki Store lainnya
|