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) Cekmining() (map[string]interface{}, error)
- func (z *ZakkiStore) Cektopup(idtopup string) (map[string]interface{}, error)
- 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) 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) Myh2h() (map[string]interface{}, error)
- func (z *ZakkiStore) Mymining() (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) 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) Cekmining ¶
func (z *ZakkiStore) Cekmining() (map[string]interface{}, error)
Cekmining memeriksa status kesulitan global, block reward, dan miner aktif.
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) 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) 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) 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) 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) 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.