Documentation ¶
Index ¶
- Variables
- func RunWithdraw(payload []*tokopedia_lib.DriverAccount) (chan *WithdrawReport, error)
- type WDStatus
- type Withdraw
- func (w *Withdraw) GetGenerateKey(phone string) (*api.WindrawnGenerateKeyResp, error)
- func (w *Withdraw) GetHashedPIN(ctx context.Context, pin string, key string) (string, error)
- func (w *Withdraw) Run(dCtx *tokopedia_lib.DriverContext, pin string, report *WithdrawReport) error
- func (wd *Withdraw) SetupWindowProperty(ctx context.Context)
- func (w *Withdraw) StartWithdraw(phone, pinHashed, h, amount string) error
- type WithdrawReport
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHashedPin = errors.New("error hashing pin")
View Source
var ErrSaldoKosong = errors.New("saldo kosong")
Functions ¶
func RunWithdraw ¶
func RunWithdraw(payload []*tokopedia_lib.DriverAccount) (chan *WithdrawReport, error)
Types ¶
type Withdraw ¶
type Withdraw struct {
Api *api.TokopediaApi
}
func NewWithdraw ¶
func NewWithdraw(api *api.TokopediaApi) *Withdraw
func (*Withdraw) GetGenerateKey ¶
func (w *Withdraw) GetGenerateKey(phone string) (*api.WindrawnGenerateKeyResp, error)
func (*Withdraw) GetHashedPIN ¶ added in v1.1.69
func (*Withdraw) Run ¶
func (w *Withdraw) Run(dCtx *tokopedia_lib.DriverContext, pin string, report *WithdrawReport) error
func (*Withdraw) SetupWindowProperty ¶
func (*Withdraw) StartWithdraw ¶
type WithdrawReport ¶
type WithdrawReport struct { Email string `csv:"email"` ShopName string `csv:"shop_name"` Keterangan string `csv:"keterangan"` Invoice string `csv:"invoice"` Jumlah string `csv:"jumlah"` SisaSaldo string `csv:"sisa_saldo"` }
func GetUnwithdrawTransaction ¶
func GetUnwithdrawTransaction(tApi *api.TokopediaApi) ([]*WithdrawReport, error)
Click to show internal directories.
Click to hide internal directories.