Documentation
¶
Index ¶
- type Config
- type H2HParams
- type TransferParams
- type ZakkiStore
- func (z *ZakkiStore) Cancel(idTransaksi string, allPending bool) (map[string]interface{}, error)
- func (z *ZakkiStore) Cekgacha() (map[string]interface{}, error)
- func (z *ZakkiStore) Cekh2h(idTrx string) (map[string]interface{}, error)
- func (z *ZakkiStore) Cekip(ip string) (map[string]interface{}, error)
- func (z *ZakkiStore) Cekmining(idmining string) (map[string]interface{}, error)
- func (z *ZakkiStore) Cekmyip() (map[string]interface{}, error)
- func (z *ZakkiStore) Cektopup(idtopup string) (map[string]interface{}, error)
- func (z *ZakkiStore) Cektopup2(idtopup string) string
- func (z *ZakkiStore) Checkbank() (map[string]interface{}, error)
- func (z *ZakkiStore) Checkmutasi(mutasiType string) (map[string]interface{}, error)
- func (z *ZakkiStore) Checkname(number string) (map[string]interface{}, error)
- func (z *ZakkiStore) Checktransfer(idtransfer string) (map[string]interface{}, error)
- func (z *ZakkiStore) Delcallback() (map[string]interface{}, error)
- func (z *ZakkiStore) Delnotifbot() (map[string]interface{}, error)
- func (z *ZakkiStore) Delwhitelistip(ip string) (map[string]interface{}, error)
- func (z *ZakkiStore) EnableAutoWithdraw(status bool)
- func (z *ZakkiStore) H2H(params H2HParams) (map[string]interface{}, error)
- func (z *ZakkiStore) H2HSimple(kode, tujuan, refID string) (map[string]interface{}, error)
- func (z *ZakkiStore) Leaderboard(limit int, period string) (map[string]interface{}, error)
- func (z *ZakkiStore) Listkode(jenis, productType string) (map[string]interface{}, error)
- func (z *ZakkiStore) MiningStart() (map[string]interface{}, error)
- func (z *ZakkiStore) MiningSubmit(nonce interface{}, signature string) (map[string]interface{}, error)
- func (z *ZakkiStore) Myh2h() (map[string]interface{}, error)
- func (z *ZakkiStore) Mymining() (map[string]interface{}, error)
- func (z *ZakkiStore) Mytopup() (map[string]interface{}, error)
- func (z *ZakkiStore) Mytransfer(transferType string) (map[string]interface{}, error)
- func (z *ZakkiStore) NoktelBuy(category string) (map[string]interface{}, error)
- func (z *ZakkiStore) NoktelCancel(invoiceID string) (map[string]interface{}, error)
- func (z *ZakkiStore) NoktelGetOtp(accountID string) (map[string]interface{}, error)
- func (z *ZakkiStore) NoktelHistory() (map[string]interface{}, error)
- func (z *ZakkiStore) NoktelStok() (map[string]interface{}, error)
- func (z *ZakkiStore) Setcallback(site string) (map[string]interface{}, error)
- func (z *ZakkiStore) Setnotifbot(telegramID string) (map[string]interface{}, error)
- func (z *ZakkiStore) Status() (map[string]interface{}, error)
- func (z *ZakkiStore) Tabung(jumlah int) (map[string]interface{}, error)
- func (z *ZakkiStore) Tarik(jumlah int) (map[string]interface{}, error)
- func (z *ZakkiStore) Topup(nominal int) (map[string]interface{}, error)
- func (z *ZakkiStore) Transfer(params TransferParams) (map[string]interface{}, error)
- func (z *ZakkiStore) TransferSimple(to string, amount int) (map[string]interface{}, error)
- func (z *ZakkiStore) Whitelistip(ip string) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BaseURL string
Token string
IDUser string
Email string
PIN string
AutoWithdraw bool
}
Config menyimpan parameter konfigurasi klien ZakkiStore SDK.
type H2HParams ¶
type H2HParams struct {
Kode string `json:"kode"`
Tujuan string `json:"tujuan"`
RefID string `json:"refID"`
}
H2HParams mendefinisikan parameter untuk transaksi H2H (Host-to-Host).
type TransferParams ¶
TransferParams mendefinisikan parameter untuk transfer saldo antar Virtual Account member.
type ZakkiStore ¶
type ZakkiStore struct {
// contains filtered or unexported fields
}
ZakkiStore adalah klien resmi untuk mengakses API Gateway B2B Zakki Store.
func New ¶
func New(token string) (*ZakkiStore, error)
New menginisialisasi klien ZakkiStore baru menggunakan default base URL Gateway Resmi.
func NewWithConfig ¶
func NewWithConfig(cfg Config) (*ZakkiStore, error)
NewWithConfig menginisialisasi klien ZakkiStore baru dengan konfigurasi kustom lengkap.
func (*ZakkiStore) Cancel ¶
func (z *ZakkiStore) Cancel(idTransaksi string, allPending bool) (map[string]interface{}, error)
Cancel membatalkan transaksi pending (mendukung pembatalan massal atau spesifik ID).
func (*ZakkiStore) Cekgacha ¶
func (z *ZakkiStore) Cekgacha() (map[string]interface{}, error)
Cekgacha memeriksa statistik poin, kemenangan, dan keuntungan gacha member.
func (*ZakkiStore) Cekh2h ¶
func (z *ZakkiStore) Cekh2h(idTrx string) (map[string]interface{}, error)
Cekh2h memeriksa status transaksi, Serial Number (SN), dan harga beli order H2H.
func (*ZakkiStore) Cekip ¶ added in v1.0.4
func (z *ZakkiStore) Cekip(ip string) (map[string]interface{}, error)
Cekip memverifikasi status keamanan IP tertentu (Aman/Whitelist/Blacklist).
func (*ZakkiStore) Cekmining ¶
func (z *ZakkiStore) Cekmining(idmining string) (map[string]interface{}, error)
Cekmining memeriksa detail status transaksi mining koin spesifik berdasarkan ID.
func (*ZakkiStore) Cekmyip ¶ added in v1.0.4
func (z *ZakkiStore) Cekmyip() (map[string]interface{}, error)
Cekmyip mengecek alamat IP publik server Anda yang terdeteksi oleh gateway.
func (*ZakkiStore) Cektopup ¶
func (z *ZakkiStore) Cektopup(idtopup string) (map[string]interface{}, error)
Cektopup memeriksa status pembayaran tagihan/topup QRIS berdasarkan ID topup.
func (*ZakkiStore) Cektopup2 ¶ added in v1.0.5
func (z *ZakkiStore) Cektopup2(idtopup string) string
Cektopup2 mendapatkan URL gambar struk digital dinamis (hologram receipt) berformat PNG.
func (*ZakkiStore) Checkbank ¶
func (z *ZakkiStore) Checkbank() (map[string]interface{}, error)
Checkbank memeriksa saldo VA, detail mutasi bank, dan memicu penarikan saldo otomatis (Auto-Withdraw).
func (*ZakkiStore) Checkmutasi ¶
func (z *ZakkiStore) Checkmutasi(mutasiType string) (map[string]interface{}, error)
Checkmutasi mengambil daftar riwayat mutasi Tarik/Tabung berdasarkan tipe.
func (*ZakkiStore) Checkname ¶
func (z *ZakkiStore) Checkname(number string) (map[string]interface{}, error)
Checkname memverifikasi nama pemilik nomor Virtual Account (VA) Bank Zakki tujuan.
func (*ZakkiStore) Checktransfer ¶ added in v1.0.4
func (z *ZakkiStore) Checktransfer(idtransfer string) (map[string]interface{}, error)
Checktransfer memverifikasi status transfer saldo antar member berdasarkan ID transfer.
func (*ZakkiStore) Delcallback ¶ added in v1.0.4
func (z *ZakkiStore) Delcallback() (map[string]interface{}, error)
Delcallback menghapus URL callback yang terdaftar.
func (*ZakkiStore) Delnotifbot ¶ added in v1.0.4
func (z *ZakkiStore) Delnotifbot() (map[string]interface{}, error)
Delnotifbot menghapus ID Telegram yang terdaftar untuk menonaktifkan notifikasi bot.
func (*ZakkiStore) Delwhitelistip ¶
func (z *ZakkiStore) Delwhitelistip(ip string) (map[string]interface{}, error)
Delwhitelistip menghapus IP server Anda dari whitelist API H2H.
func (*ZakkiStore) EnableAutoWithdraw ¶
func (z *ZakkiStore) EnableAutoWithdraw(status bool)
EnableAutoWithdraw mengaktifkan atau menonaktifkan fitur penarikan otomatis (Auto-Withdraw).
func (*ZakkiStore) H2H ¶
func (z *ZakkiStore) H2H(params H2HParams) (map[string]interface{}, error)
H2H mengirimkan order transaksi pembelian produk prabayar/pascabayar H2H.
func (*ZakkiStore) H2HSimple ¶
func (z *ZakkiStore) H2HSimple(kode, tujuan, refID string) (map[string]interface{}, error)
H2HSimple mengirim order H2H dengan parameter posisional (kode, tujuan, refID).
func (*ZakkiStore) Leaderboard ¶
func (z *ZakkiStore) Leaderboard(limit int, period string) (map[string]interface{}, error)
Leaderboard mengambil daftar peringkat sultan topup member teraktif.
func (*ZakkiStore) Listkode ¶
func (z *ZakkiStore) Listkode(jenis, productType string) (map[string]interface{}, error)
Listkode mengambil daftar katalog kode produk H2H, deskripsi, dan harga terupdate.
func (*ZakkiStore) MiningStart ¶ added in v1.0.4
func (z *ZakkiStore) MiningStart() (map[string]interface{}, error)
MiningStart meminta tantangan (challenge) mining baru dari server.
func (*ZakkiStore) MiningSubmit ¶ added in v1.0.4
func (z *ZakkiStore) MiningSubmit(nonce interface{}, signature string) (map[string]interface{}, error)
MiningSubmit mengirimkan nonce tebakan dan signature untuk divalidasi oleh server.
func (*ZakkiStore) Myh2h ¶
func (z *ZakkiStore) Myh2h() (map[string]interface{}, error)
Myh2h mengambil 20 riwayat pembelian H2H terupdate milik akun Anda.
func (*ZakkiStore) Mymining ¶
func (z *ZakkiStore) Mymining() (map[string]interface{}, error)
Mymining mengambil riwayat koin hasil mining SHA256 milik akun Anda.
func (*ZakkiStore) Mytopup ¶ added in v1.0.4
func (z *ZakkiStore) Mytopup() (map[string]interface{}, error)
Mytopup mengambil daftar riwayat topup sukses beserta total volume topup.
func (*ZakkiStore) Mytransfer ¶ added in v1.0.4
func (z *ZakkiStore) Mytransfer(transferType string) (map[string]interface{}, error)
Mytransfer mengambil daftar riwayat transfer saldo masuk/keluar.
func (*ZakkiStore) NoktelBuy ¶
func (z *ZakkiStore) NoktelBuy(category string) (map[string]interface{}, error)
NoktelBuy membeli nomor virtual baru berdasarkan kategori layanan.
func (*ZakkiStore) NoktelCancel ¶
func (z *ZakkiStore) NoktelCancel(invoiceID string) (map[string]interface{}, error)
NoktelCancel membatalkan nomor yang pending OTP dan melakukan auto-refund saldo.
func (*ZakkiStore) NoktelGetOtp ¶
func (z *ZakkiStore) NoktelGetOtp(accountID string) (map[string]interface{}, error)
NoktelGetOtp menarik kode OTP Telegram secara real-time dari nomor yang dibeli.
func (*ZakkiStore) NoktelHistory ¶
func (z *ZakkiStore) NoktelHistory() (map[string]interface{}, error)
NoktelHistory mengambil daftar riwayat transaksi pembelian nomor Noktel.
func (*ZakkiStore) NoktelStok ¶
func (z *ZakkiStore) NoktelStok() (map[string]interface{}, error)
NoktelStok memeriksa stok nomor virtual yang ready untuk dipesan.
func (*ZakkiStore) Setcallback ¶ added in v1.0.4
func (z *ZakkiStore) Setcallback(site string) (map[string]interface{}, error)
Setcallback mendaftarkan URL callback HTTPS Anda untuk menerima notifikasi otomatis.
func (*ZakkiStore) Setnotifbot ¶ added in v1.0.4
func (z *ZakkiStore) Setnotifbot(telegramID string) (map[string]interface{}, error)
Setnotifbot mendaftarkan ID Telegram Anda untuk notifikasi laporan transaksi bot.
func (*ZakkiStore) Status ¶
func (z *ZakkiStore) Status() (map[string]interface{}, error)
Status memeriksa metrik CPU, beban finansial, dan kesehatan sistem global.
func (*ZakkiStore) Tabung ¶
func (z *ZakkiStore) Tabung(jumlah int) (map[string]interface{}, error)
Tabung menabung/menyetorkan dana dari aplikasi utama ke rekening Virtual Account Bank (butuh PIN).
func (*ZakkiStore) Tarik ¶
func (z *ZakkiStore) Tarik(jumlah int) (map[string]interface{}, error)
Tarik menarik dana tabungan Virtual Account ke saldo aplikasi utama (butuh PIN).
func (*ZakkiStore) Topup ¶
func (z *ZakkiStore) Topup(nominal int) (map[string]interface{}, error)
Topup membuat invoice transaksi QRIS dinamis instan dengan nominal kode unik.
func (*ZakkiStore) Transfer ¶
func (z *ZakkiStore) Transfer(params TransferParams) (map[string]interface{}, error)
Transfer mengirimkan saldo antar rekening Virtual Account member Bank Zakki.
func (*ZakkiStore) TransferSimple ¶
func (z *ZakkiStore) TransferSimple(to string, amount int) (map[string]interface{}, error)
TransferSimple mentransfer saldo dengan parameter posisional (to, amount).
func (*ZakkiStore) Whitelistip ¶
func (z *ZakkiStore) Whitelistip(ip string) (map[string]interface{}, error)
Whitelistip menambahkan IP server Anda ke whitelist API H2H.